MyMPx.org

MyMPx.org (http://mympx.org/forum/)
-   Mods and Themes (http://mympx.org/forum/mods-themes/)
-   -   Calculator for Rockchip players (http://mympx.org/forum/mods-themes/44081-calculator-rockchip-players.html)

flasher86 8th Jul 2009 9:02 am

Calculator for Rockchip players
 
Hi, recently I wrote a simple calculator in RKP format. You can find it the Download section > Tools
or click here.

It has some basic functions like division, sum or square root. It has a limitation of 7 digits (including these after the decimal point). It is caused by limitation of the compiler which supports 4-byte Float data type.

I've done it for practice purposes as I am aware that such an app is not very useful. I will upload a source code to study for those who are beginners in C and are willing to start developing some tools.

flasher86 8th Jul 2009 9:16 am

Click here to get the source code.

knob 8th Jul 2009 10:48 am

Thanks for sharing this, I have tried it out on my rk2608 320x240 player and it works fine, it's the best homebrew RockApp I have seen yet.

here's how it looks:-

http://i203.photobucket.com/albums/a...Calculator.jpg

flasher86 9th Jul 2009 3:57 am

Thanks for your approval.

One more announcement. If anyone know how to introduce Double data type (though compiler accepts defining double data type, in the end it doesn't differ from float data type) into the rock compiler, tell me and I will modify the source so the limitation of 7-digit number will grow to 15 which would be enough for any calculations.

LiquidN 4th Aug 2009 7:57 am

Hi flasher,
a calculator might be more useful than a stop watch or "fixed" calendar ...
[Something like a adressbook or so would be even more useful ;)]
Could you (or someone else) please tell me how to integrate this rkp-file on a rk2706 (onda777le)?
thanx

flasher86 4th Aug 2009 8:13 am

I have no idea how to introduce RKP platform for a rk2706 player. There is very few of them which support it. I have 2606A 320x240 player and I would like to buy a new one (2706), but only if supports some apps like rkp.

I wonder whether SDK 2706 would help with this.

btw. adressbook would be useful but I don't know yet how to write data using this platform. It would require to fill the adressbook on the pc and add it to the resource file of the rkp.

I am trying to bite the SDK so I would explicit some functions for the platform, and my goal is to make RKP application for tuning the guitar using built-in microphone. It would be VERY USEFUL for me and for many guitar-playing people I guess.

For me it would be awsome, because an electronic guitar tuner costs around 20-40 Euros.

LiquidN 4th Aug 2009 10:21 am

Ah, I guess you have an application-folder for this rkp-file in your firmware?
I just thought it could work because I have a rk 2706 IPodclone with touchscreenbased calculator.
Anyway, for me this programming-issue is to difficult.
I need easy2use tools ;)

Olli 17th Aug 2009 9:50 am

The source downloading doesnt work can u put it to work?

flasher86 18th Aug 2009 12:12 pm

Calc_Source_Code.rar - FileFactory

here you go. Do you know where can I upload these files so it wont disappear after some time?

Olli 18th Aug 2009 9:37 pm

Quote:

Originally Posted by flasher86 (Post 282480)
Calc_Source_Code.rar - FileFactory

here you go. Do you know where can I upload these files so it wont disappear after some time?

take some free hosting & upload there.!

Binh@MyMPx 19th Aug 2009 1:48 am

Quote:

Originally Posted by flasher86 (Post 282480)
Calc_Source_Code.rar - FileFactory

here you go. Do you know where can I upload these files so it wont disappear after some time?

You can upload it DIRECTLY on this site here: Downloads - MyMPx.

It should be available for as long as this site is up and I'm hoping to keep this site up as long as possible!

flasher86 19th Aug 2009 3:04 am

thanks, I will upload it onto this site.

Knob, in your player the buttons are on the left (my player has them on the right), so arent keys inverted up side down?
And how many buttons this player have? I am writing some more apps with the POWER/REC button support. The button exists in my player, but I dont know about other players, and dont know is it worth configuring this button.

The platform supports only 6 buttons by default, but I managed to add this POWER button into functionality. Have you got it? If not, how you turning this player on/off?

knob 19th Aug 2009 9:16 am

hi flasher

My player has 7 software controlled buttons in total, 4x on the direction pad, 1x play/pause, 1x menu button and 1x small back button on top which works like an escape button. The play/pause button powers the unit on/off.

The calculator works perfectly, all the buttons work the right way, I didn't need to modify the source at all.

There is also a slide switch on my player which just breaks the battery supply making a total of 8 controls, but only 7 are software controlled.

btw "swirl" is doing something with file access on www.wasm.ru

http://www.wasm.ru/forum/viewtopic.php?id=27246&p=11

cheers knob.

flasher86 20th Aug 2009 3:13 am

do you speak russian? I use google translator to follow the thread you mentioned, but its not too aquirate.

is this swirl saying that he works on the file access or would he like to use these functions? Because if he works on them its great, nevertheless I tried to use FOpen function (btw it is standard compiler function stored in stdio.h header which is transparent to the rockchip).

Rockchip software uses its own functions for opening file, and when I tried to use the standard ones, there was no reaction and the handle was always the same. The rockchip file opening functions are inavailable in RKP platform. They are stored in library RKUSBFS.A (FileOpen, FileRead, FileWrite) and there are too many links with firmware to apply it to the RKP compilation (or at least its above my programming abilities)

Btw, if anyone tries to experiment with this it is important how to write the path to the file on this platform. And to point some file at flash memory it is needed to use "U:\somefile.txt". Of course remember to double the slash in string. I dont know why they chose U for the drive, but it is the default drive for flash memory.

knob 20th Aug 2009 9:38 am

No, I don't speak Russian. I just used the translator too!.
here's how it comes out for me:-

By the way, I want to please all who are interested in (unless of course still interested) updated on the player at the rk26 ... I hope very soon выложу firmware with support for rkp the following programs:
fCreate - to create a file
fDelete - to delete a file,
fOpen - to open the file,
fClose - to close the file
fRead - to read from a file
fWrite - for entry in the file
fEof - to determine the end of the file,
fSeek - for the free movement of the file,
as well as fDialog - to open a dialogue to select a file (like in windows when you select menu option File-> Open or File-> Save)

until this is all new ...

It does look like SWIRL is working on something.
Thanks for the filehandle tip, I will have another go at trying to access the image resource from the firmware.

knob 9th Oct 2009 5:49 am

:p
Quote:

Originally Posted by flasher86 (Post 282316)
I have no idea how to introduce RKP platform for a rk2706 player. I would like to buy a new one (2706), but only if supports some apps like rkp.

yes i would like to add an rkp launcher to rk27xx it would be to cool keep the format alive

flasher86 9th Oct 2009 5:59 am

Well, I fully support you with this. But I must say that I have doubts if it is possible.

I mean, RK26XX and RK27XX use different compilers, and therefore the output code is different. We would have to write an emulator rather than a native RKP platform.

Instead, I am thinking of writing a completely new platform for RK27XX players. I noticed that firmware on these players is divided into different compiled files, which may give us a clue how to properly load an external precompiled binary code.

Then it would be easy to release some RKPapp for both RK26XX and RK27XX platforms.

Advantages are clear. We could save settings of the game, access files on flash, detect screen resolution so the game would fit to any screen resolution the player use etc. Also we could implement some sort of plugins for expanding features of firmware without making a new compilation.

Of course, I am not sure about this impossibility to port rkp platform, I am beginner at low-level programming so I may be wrong.

knob 9th Oct 2009 6:13 am

:Di am also a beginner! but the really skilled c/c++ programmers are not interested, so it's left to us to do what we can! (they are probably making ifone apps for money!)
I was thinking that since rk27xx is dual core and runs zsp400 code there may be a way. or am I missing some important point?

flasher86 9th Oct 2009 6:16 am

Yeah, I didn't think of it that way. Maybe you're right.


All times are GMT -7. The time now is 1:30 am.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 RC 2