Hooray!!! Rockchip SDK!
1Likes

 |
|

2nd Sep 2009, 2:11 pm
|
|
Member
I love my MPx player
|
|
Join Date: Jun 2009
Posts: 174
|
|
I've just managed to initialize Radio FM from the RKP app. I can scan frequency, set volume, get the signal level and most of all listen to the radio!
Knob, I will compile a sample RKP file with radio included, I'm just wondering whether it will work on different kind of players, because to run the radio I used 2606A SDK. I know you have 2608 player so am not sure if it will work too.
I am really happy because, my biggest aim was to create RTF ebook reader, with music support. I spend a lot of time on a train and I love to listen to music and read at the same time. Unfortunately built-in ebook reader is so lame that it hurt my eyes.
|

3rd Sep 2009, 3:43 pm
|
|
Member
I love my MPx player
|
|
Join Date: Jun 2009
Posts: 174
|
|
http://www.mediafire.com/file/myjzf5jeiiz/FM.rkp
here is compiled sample FM Radio. Please test it, I want to know how it works on RK2608 or RK2706.
I noticed something great btw. Standard FM Player allows to set frequency with precision to 0,10Mhz, here I can adjust it with 0,01Mhz. I noticed that all FM stations have better signal with for example 88,22mhz instead of 88,20mhz. So fm radio works better in this RKP file than standard one :-)) Or perhaps its only my model issue.
|

4th Sep 2009, 8:55 am
|
 |
Senior Member
Valued Member
|
|
Join Date: May 2007
Posts: 1,285
|
|
Just tested out on my player rk2608. Yes it works, this is awesome work!
The volume seemed to be full on, couldn't see the option to lower it yet, and the signal to noise ratio seemed a bit low, quite high background noise on my player, but maybe there is a way somehow to alter this to suit the individual player.
btw the rk2706 players don't support rkp format at all, pity as it's a useful (and low risk) platform to test and experiment with.
__________________
-----------------------------------------------------------------------------------------------------------
|

4th Sep 2009, 9:16 am
|
|
Member
I love my MPx player
|
|
Join Date: Jun 2009
Posts: 174
|
|
I have touch buttons and I noticed that there is a higher level of noise while buttons are highlighted (highlight turns on after touching the button, and the 2 sec later it turns off). Besides that I haven't noticed difference in quality between the RKP Radio and standard one in a menu.
And yeah, I haven't included volume control here(it is set to 30). I will add it soon. Although I have couple of ideas. For example an automatic scan of the whole freq range and show the signal level on a diagram to make it visible where is the signal and where is the strongest signal. I am thinking also of radio teletext support (the text broadcasted parallel to the music stream, its supported by most of car hi-fies where you can read the name of the song, time or just name of the radio - whatever they sending at a moment). Also I will experiment if spectrum analyzer is possible. I don't know for sure about that because by standard it is not enabled.
I have some weird ideas also about that. For example to make app that would receive through FM a file, or bitmap sent by computer connected to fm transmitter :-)) I know its possible, though with very very slow bitrate. But I just like to create some weird stuff
I know most 2706 dont support rkp platform but I heard that some of the do.
Last edited by flasher86; 4th Sep 2009 at 9:22 am.
|

4th Sep 2009, 11:14 am
|
 |
Senior Member
Valued Member
|
|
Join Date: May 2007
Posts: 1,285
|
|
The quality is just as good as the standard radio on my player too, I get the same noise if I turn the volume full up to 30, 30 is just too high I think, lower setting is better. I Like your ideas and plans for this.
Can you get music or sound on a rkp app? I tried to compile with a converted pcm music file and all I could get was clicks and hisses, I wanted to add music to the snake game.
__________________
-----------------------------------------------------------------------------------------------------------
|

4th Sep 2009, 12:18 pm
|
|
Member
I love my MPx player
|
|
Join Date: Jun 2009
Posts: 174
|
|
Yes I can put music, but currently only in PCM format, which is quite annoying (files are huge). Standard platform introduces functions to play MONO 11.025KHz 8-bit Unsigned PCM stream. You can prepare this format using e.x. Sony Sound Forge (save as RAW PCM). Make sure that you ticked UNSIGNED pcm, not signed. Otherwise you get strange noises. Also 16 bit pcm is not supported yet (also strange noises), but I've already given couple of shots, and maybe I will succeed with this.
BUT, I modded the platform to be able to play PCM streams at higher sample rate. Now I can play files at 22.050KHz, 32.000KHz and even 44100KHz (though at 44100 rate it sometimes pauses playing while running some complicated operations in your RKP file. The best is 32.000KHz which is really fine quality.
In this topic I mentioned how to mod the platform to increase sample rate. Just look through few previous pages.
ps. the pcm file must be mono, but you can actually play stereo files using some trick. Platform provides 5 channels to play sounds on, at same time mixing together. Also you can set the balance of each of these channels. Then to play stereo files you may use two pcm streams of each channel (right, left) and call them on different channel at totally opposite balance set. I successfully played STEREO 44.100KHz song.
Last edited by flasher86; 4th Sep 2009 at 12:27 pm.
|

4th Sep 2009, 3:32 pm
|
|
New Member
|
|
Join Date: Sep 2009
Posts: 16
|
|
RAPID SHARE ERROR . You Need to check your upload?
|

4th Sep 2009, 4:26 pm
|
|
Member
I love my MPx player
|
|
Join Date: Jun 2009
Posts: 174
|
|
I made a few changes in the FM Radio app. I added volume control, and signal level detector.
I uploaded the source code and rkp file onto this site, but don't know when it appears. For know you can get it from here:
http://www.mediafire.com/file/ydmzy2gilnw/FM_Radio.rar
|

6th Sep 2009, 12:19 am
|
 |
Senior Member
Valued Member
|
|
Join Date: May 2007
Posts: 1,285
|
|
Yes flasher tried it again it's good now, it's got 2 more features than the standard radio too. It just needs some sort of skin and a better font.
I just translated a string of bitmaps to make my better font, I really don't like the system font on these players. Another idea could be to build in some station presets and display a radio station logo or just display a logo when the radio is in it's frequency range.
__________________
-----------------------------------------------------------------------------------------------------------
|

6th Sep 2009, 4:18 am
|
|
Member
I love my MPx player
|
|
Join Date: Jun 2009
Posts: 174
|
|
Yeah, skin would be great, its all a matter of personal needs. Skin and new font is not a problem. The logo of the radio is pretty good idea, but it would require to prepare logos on your own, as you live in different regions and can listen to different stations. I thought maybe we could collect a huge library of radio stations from many many places, which would contain logo and frequence. But I know that different stations uses often the same frequency.
I live in Poland, and I already have a list of radio stations from all the country. I will experiment with this.
I really regret that I/O files operation are not supported yet. SWIRL hasn't answered yet about accessing files. For me it would even be enough to open files, and forget about saving. At the beginning of the topic at WASM.RU someone said that accessing flash memory can be done using DMA controller (though as a RAW data, FAT file system must be reinterpreted).
I've already got access to SD Ram (internal RAM is small, but SDRam can store huge files) using DMA Controller and transfer data works, but dont know which commands are used to transfer data to/from flash. Maybe there are some datasheets of Rockchip with DMA list of instructions how to access these things.
The DMA instruction to operate with SD-Ram is DMAR_DAR0 from memap.h. There are many other instructions, but don't whether they included flash operations as all the I/O functions are precompiled into library (what a shame, I wish I could disassemble those libraries, if we had the source of these libraries there would be no problem creating a fully functional embed os in RKP file)
edit:
I found some instructions in the memap.h
#define FLASH0_DATA ((0x1fa00 )/2)
#define FLASH0_ADDR ((0x1fa00+0x04)/2)
#define FLASH0_CMD ((0x1fa00+0x08)/2)
#define FLASH1_DATA ((0x1fb00 )/2)
#define FLASH1_ADDR ((0x1fb00+0x04)/2)
#define FLASH1_CMD ((0x1fb00+0x08)/2)
these are for sure DMA instructions to operate with Flash, If I have time, I will play with these a little bit, but its a blind work I suppose. Anyway its worth a shot.
Last edited by flasher86; 6th Sep 2009 at 4:34 am.
|
|