PDA

View Full Version : COWON O2 User Program SDK


CvP
11-15-2008, 22:45
SDK Programme 1.03: http://www.cowonglobal.com/zeroboard/zboard.php?id=C08&category=&no=344&bmenu=support&category=26



COWON O2 User Program SDK V1.03:

What is User Program SDK?
It is a programming tool which customers can create User Program to run on COWON O2.

SDK is supported by Linux only

Manual can be found here (http://download.cowon.com/data/C08/O2/SDK/README_ENG.txt)


i wonder how much variety is possible.

Morfesto
11-19-2008, 10:52
I tried downloading the SDK but it won't extract some of the files.

I get an error along these lines:

The system can not find the path specified.
Can not create O2_SDK_V1_01\toolchain\arm-linux\sys-include\asm-arm\arch\arch\arch\....

And then it just keeps repeating arch\ ad nauseum.

Something about being over 260 characters.

Dark~~Glower
11-19-2008, 16:31
I tried downloading the SDK but it won't extract some of the files.

I get an error along these lines:

The system can not find the path specified.
Can not create O2_SDK_V1_01toolchainarm-linuxsys-includeasm-armarcharcharch....

And then it just keeps repeating arch ad nauseum.

Something about being over 260 characters.

Same thing happened to me. But I realized that was supposed to be extracted maybe under linux. It seems that windows puts a limit to subfolders you can create. I tried to check those arch folder and I think they don't have the same content so don't think that there are errors in the SDK. Try to extract them under linux and see. I didn't have the opportunity to try that yet.

Morfesto
11-19-2008, 21:51
I was going to try but it looks like my linux box is unresponsive atm.
It's headless so tomorrow I'm going to have to attach a monitor to it and figure out why it's not responding to SSH.

Dark~~Glower
11-19-2008, 23:33
I was going to try but it looks like my linux box is unresponsive atm.
It's headless so tomorrow I'm going to have to attach a monitor to it and figure out why it's not responding to SSH.

Do you own an o2?

The Kite Eating Tree
11-20-2008, 01:25
I successfully extracted the SDK in linux with no problems, so I guess that's the solution.

Morfesto
11-20-2008, 08:10
I do UPS is being annoying so I don't have it in my hands yet..... I should have it tomorrow.

I got it from http://ncix.com/products/index.php?minorcatid=1086#Cowon%20America

Dark~~Glower
11-21-2008, 00:31
I do UPS is being annoying so I don't have it in my hands yet..... I should have it tomorrow.

I got it from http://ncix.com/products/index.php?minorcatid=1086#Cowon%20America

Cool! I got mine on Wednesday 19th and ordered it from compu2000 the 13th Nov. I dont know how much it cost you but I got it there for $340 CAD including tax and shipping which I think is rather cheap compared to ncix I think, u tell me...

CvP
11-21-2008, 01:34
Do you own an o2?

I do UPS is being annoying so I don't have it in my hands yet..... I should have it tomorrow.

I got it from http://ncix.com/products/index.php?minorcatid=1086#Cowon%20America

Cool! I got mine on Wednesday 19th and ordered it from compu2000 the 13th Nov. I dont know how much it cost you but I got it there for $340 CAD including tax and shipping which I think is rather cheap compared to ncix I think, u tell me...
such off topic posts :/

Dark~~Glower
11-21-2008, 02:06
My bad!

Morfesto
11-29-2008, 18:33
Is anyone actually working on any apps?

I wish I could code but I only know unix/linux shell scripting :(

Affainyi
11-29-2008, 19:44
Is anyone actually working on any apps?

I wish I could code but I only know unix/linux shell scripting :(


What IDE can be used to program? Obviously not a windows based one cos the sdk can't be opened in windows....I only know a lil java and matlab...

Mr. Black
12-02-2008, 16:20
1.03 released, first post updated.

Morfesto
12-02-2008, 16:37
Looks like they added the following... which makes sense now.

"SDK is supported by Linux only"

Dark~~Glower
12-02-2008, 19:33
What IDE can be used to program? Obviously not a windows based one cos the sdk can't be opened in windows....I only know a lil java and matlab...

YEY!! There is a SDK manual now!!!! here (http://download.cowon.com/data/C08/O2/SDK/README_ENG.txt)

Affainyi
12-02-2008, 19:55
YEY!! There is a SDK manual now!!!! here (http://download.cowon.com/data/C08/O2/SDK/README_ENG.txt)
great...let the programming begin!

notredame72
12-06-2008, 19:56
I know not a lot of people have an O2 yet, or can use SDK for that matter. But what about a SDK sub-forum? Just an idea.

Affainyi
12-06-2008, 22:57
I know not a lot of people have an O2 yet, or can use SDK for that matter. But what about a SDK sub-forum? Just an idea.

isn't that what this is?

nintendude7cubed
12-06-2008, 23:28
I'll learn how to use sdk when i get my ubuntu's internet to work, which unfortunately will be either a very long time from now, or never!!!

Morfesto
12-07-2008, 09:05
Ubuntu has a built in network manager it should work automatically .... are you trying to get wireless to work in linux?

PM me if your having any issues ill help you get your internet access working in linux.

notredame72
12-07-2008, 10:34
isn't that what this is?

nah this is just a thread.

Affainyi
12-07-2008, 14:47
nah this is just a thread.
okay then, sorry for my ignorance...

revmike
12-10-2008, 12:36
There is a guy on the cowon america forums who has already developed two little programs for the O2, a stopwatch and just a bouncing box, that you bat around the screen, simple I know, but at least someone is working on developing apps for the O2.

Affainyi
12-10-2008, 13:03
amazing!...off I go to frequent those forums as well...goood job revmike!


.....maybe we should invite the chappie over here and bleat requests into his ear?


EDIT: Just tried both apps....the bounce is nice but the stopwatch is what has me impressed. It is so very powerful looking and totally sleek! Everyone with a working O2 should try this stopwatch program because I assure you you will be excited by what it hints at for future programs......it is amazing!

notredame72
12-10-2008, 16:46
ooh man i just cant wait for my o2 to get here! I've been countin' down the days and tryin to pass time the best i can. and @ affainyi, no prob,i was the noobiest noob in all of noobfoundland at one time =D

Affainyi
12-10-2008, 20:44
get the apps here (http://www.cowonamerica.com/forums/showthread.php?t=14752)

Arcanos
12-10-2008, 21:32
OP here, just for clarification, I didn't write the stopwatch app, it was one of the sample apps that came with the SDK.

Affainyi
12-10-2008, 21:48
don't mind about that.....you are making an attempt to make some apps and that alone makes you deserving of all the praise we can heap on you! Welcome to iaudiophile! Here's to mutually beneficial stay.....Cheers!

nintendude7cubed
12-13-2008, 14:47
YEY!! There is a SDK manual now!!!! here (http://download.cowon.com/data/C08/O2/SDK/README_ENG.txt)
Well according to this manual there is a way to compile programs using windows via Cygwin.. I'm installing it as instructed in the manual right now,,,

Edit: Cygwin is taking forever to download.. as in it has been going now for like 5 hours and isn't done yet cuz i picked a crappy mirror server.. So ill have you guys posted in a couple days on how this works

notredame72
12-13-2008, 15:02
man i can't wait for some good programs to come out! its just that, how many people own an o2? less programmers to choose from...

nintendude7cubed
12-17-2008, 13:16
amazing!...off I go to frequent those forums as well...goood job revmike!


.....maybe we should invite the chappie over here and bleat requests into his ear?


EDIT: Just tried both apps....the bounce is nice but the stopwatch is what has me impressed. It is so very powerful looking and totally sleek! Everyone with a working O2 should try this stopwatch program because I assure you you will be excited by what it hints at for future programs......it is amazing!
I think the bounce is hilariously generic! And I totally agree on the awesome stopwatch interface! It did however disappoint when i couldn't play my music while using both of these... I wonder if any programs will have this sort of ability, by this i mean multitasking with programs so you actually can. Maybe this calls for a firmware update to include this.

Another random point is that i think the advantage of cowon's sdk over apple, is chances are, you won't have to pay for any of these programs since its a little more open source... Anyone else think so?

Affainyi
12-20-2008, 23:04
Hmmm, the last post on this thread has some interesting ramblings on the O2 by arcanos that bear some perusal........

http://www.cowonamerica.com/forums/showthread.php?t=14752&page=2

Ok so just to make sure this isn't missed lemme post it in a stickied thread....there is a beta pong game for the O2. Get it here (http://www.jetaudio.com/forums/showthread.php?p=40911). and make sure to thank arcanos for his good hard work!

nintendude7cubed
12-29-2008, 00:50
can someone tell me how to get cygwin to work with the SDK? I am totally oblivious to the whole terminal concept and it seems like every command that i correspond with what the readme tells me to do, it says everything is either invalid or nonexistant!!![cursing] BTW i did install cygwin completely as told so the libraries shouldn't be a problem...

Affainyi
01-07-2009, 15:03
hmmm, just a thought...I've never used rockbox but I've heard a lot of good things about it....isn't it the solution for every single one of the O2's problems? Once it is developed to run on the O2 that is? Just a thought.....

tpilk
01-07-2009, 15:28
hmmm, just a thought...I've never used rockbox but I've heard a lot of good things about it....isn't it the solution for every single one of the O2's problems? Once it is developed to run on the O2 that is? Just a thought.....

It absolutely would be, but I think it's a long way off if it even happens at all. AFAIK, there's no existent rockbox port to any touchscreen PMP or DAP. It's a pretty big undertaking which involves several dissected subjects. Anybody wanna donate their O2 to science? Our resident Hulk, BruceBanner, maybe...

I had rockbox on my iriver iHP120 and it was pretty great. Ditto for the X5 before the screen took a beatdown.

But if you go to the rockbox forums there's a 36 page thread (http://forums.rockbox.org/index.php?topic=10164.0) about viability on the D2, which is encouraging. Still, it's a big leap from that happening to an O2 port. Could be years from now.

But I'm hoping. Always hoping.

Mr. Black
01-07-2009, 15:28
Rockbox as a programme for the O2 would be cool

Affainyi
01-07-2009, 15:32
yeah i am always hoping as well but I agree that it is extremely unrealistic unless one of the core rockbox developers buys an O2 and plays with the sdk and the device sufficiently.....well time will tell.....especially since it's viable for the D2....

I'm hoping the sdk on the O2 will make any rockbox development easier.....after all there's all the code you would need in there unlike the D2 rockbox which they had to build from scratch if I am not mistaken....

tpilk
01-07-2009, 15:49
I think, from a hardware standpoint alone, there's more than enough in the O2 to make it an attractive candidate for a port.

We've pretty much all been saying in every thread here that the firmware is the anchor dragging the O2 into the fiery pits of user frustration. The ability of the O2 is obvious, but it's criminally hampered by a clunky interface and the bizarre lack of relatively simple features. We're not mad that there's no wifi, we're pissed that there's no EQ for video, you can't change text color for dark wallpapers and many other things we're all familiar with. Rockbox would fix them all and improve on dozens more.

Reading dfkt's review of the O2 on abi, I'd have to think that the majority of his points would be addressed.

dfkt
01-07-2009, 16:05
The issue with Rockbox is that it's very audio-centric, and the video part of it is in its infancy (MPEG1/2). It wouldn't do much good for the O2 as a PMP.

However, dual-booting Rockbox for audio and O2 OF for video would be a godsend. Even if there's still no BBE for video... or even folder-advance, ffs.

Affainyi
01-07-2009, 16:09
yeah....well....no use speculating, time will tell, in the meantime I hope next firmware has ID3 tag browsing at the very least......

dfkt
01-07-2009, 16:12
(Nevermind.)

tpilk
01-07-2009, 16:20
However, dual-booting Rockbox for audio and O2 OF for video would be a godsend. Even if there's still no BBE for video... or even folder-advance, ffs.

That's the biggest draw. I'd absolutely do that and I think the change would be huge. But like you said it wouldn't give us any benefit as far as video goes. I remember it took a pretty long time for the X5 port to get video support after it was released.

But in the long run, it could theoretically add more codec support and improve playback, etc, etc.

nintendude7cubed
01-08-2009, 22:53
yeah....well....no use speculating, time will tell, in the meantime I hope next firmware has ID3 tag browsing at the very least......
They should make 2 different versions of the firmware. one that dose sort Id3 and one that doesn't.. I for one love id3 sorting because it offers many different ways to sort stuff rather than picking one in the beginning and being stuck with it, however, some like the freedom of folder trees because of the flexibility and whatnot.. Each of these should get updated with the same bugfixes as well

Affainyi
01-09-2009, 00:35
They should make 2 different versions of the firmware. one that dose sort Id3 and one that doesn't.. I for one love id3 sorting because it offers many different ways to sort stuff rather than picking one in the beginning and being stuck with it, however, some like the freedom of folder trees because of the flexibility and whatnot..

Why not both at once like all the other Cowon players do and a few other brands do as well? That is, with the option to use whichever you prefer. Correct me if I am wrong about all other cowons having this....

UPDATE: SDK GAMES (http://iaudiophile.net/forums/showthread.php?t=25205)

Affainyi
01-21-2009, 22:53
new app.....take a look (http://www.cowonamerica.com/forums/showthread.php?t=15078)

It seems to be a sort of keyboard for taking notes with.

nintendude7cubed
01-22-2009, 16:23
new app.....take a look (http://www.cowonamerica.com/forums/showthread.php?t=15078)

It seems to be a sort of keyboard for taking notes with.
well i did a test run on this thing.. it is obviously just a preview which means there are plenty of bugs. A few including when you press return, it doesn't do anything to the actual file. This is when i open it with notepad on my computer and it doesn't move down or even space out the next word..
It saves them as a generic file. I haven't tried opening it with any word processors yet. Oh and the last thing is that you can't open the file back up on your o2. This means if you saved it, then thats it until it gets to your computer. Still once the bug is fixed i could see typing a paper or something on this. As long as you don't try to touch 2 keys at once, then it is very very responsive and clean. The only issue with me was the backspace being in a weird spot. I kept pressing return thinking it was backspace. Still if these bugs were fixed, it could be very practical even if it is an emergency school paper. You could have your text typed up all nice and copy and paste it into your document in whatever format it needs to be in. I'm excited for the final version of this![thumbsup][thumbsup][thumbsup]

kasrhp
01-29-2009, 11:32
Has anyone been able to check the Korean forums(translated) to see whats going on over there. I know the o2 is supposed to be selling very well over there.

Ludd
02-17-2009, 01:52
screenshot app, seems they are taking the app development into interesting areas now

http://www.cowonamerica.com/forums/showthread.php?t=15219

dfkt
02-17-2009, 07:07
Oh my god, they use the volume plus and minus button combined for that app - what I recommended for a play/pause function. I sure hope someone will make that a play/pause hardware button(s) function instead of a that screenshot app.

Ludd
02-17-2009, 08:19
Well since we all believe cowon firmware programmers are working on improvements ala "D2 UI on the O2" and are waiting for that maybe no one has thought of making that sort of app. But if they aren't planning to fix that you can request such an app on the cowon development wikia....I'm sure it's not that hard to make because the apps are allowed to manipulate file playback. Most of the programmers are working on other, more extensive apps at the moment though.

a.z.p.z
05-13-2009, 11:13
hi guys!
1:what kind of sdk verjhen realese????
2:how built apps by sdk?
3:what apps format?
4:what is the GUI?(o2)

Mister Ed
11-26-2009, 01:14
Hello Everyone,

Long time lurker, first time poster.

I've been messing about with the O2 SDK for a couple of days now. And I thought it might be fun to try and make O2 programming more easily accessible to more people. So I ported a BASIC interpreter to it.

Attached are some screen shots (from the X11 runtime) showing; the file browser that lets you select and run any of the ".bas" files that you've loaded onto your O2, a virtual keyboard for handling the INPUT procedure, a version of Lights Out written in O2BASIC, and the error message screen for when you get stuff wrong.

There's loads of stuff still to do, but I wondered if this would be interesting to anyone.

The code for Lights Out looks like this;
10 REM Lights Out - A Game in O2BASIC

15 REM Initialise the variables
20 LET lightsOut = GETIMG("lights_out.tga")
30 LET lightOn = GETIMG("light_on.tga")
32 LET refreshIcon = GETIMG("refresh.tga")
35 LET exitIcon = GETIMG("exit.tga")
40 LET boardX = (480 / 2) - (272 / 2)
45 LET moves = 0
50 DIM board(5,5)

89 REM Randomise and then draw the board
90 GOSUB 2000
100 GOSUB 1000

109 REM Wait for user to touch the screen, then wait for them to let go
110 IF NOT TOUCHDOWN THEN 110
115 IF TOUCHDOWN THEN 115

117 REM Did we hit one of the icons (refresh/exit)
120 IF TOUCHX >= 480 - 32 AND TOUCHY >= 272 - 32 THEN 5000
130 IF TOUCHX >= 480 - 32 AND TOUCHY < 272 - 32 AND TOUCHY >= 272 - 64 THEN 90

139 REM Otherwise, work out which row and column we hit
140 LET cX = (TOUCHX - (boardX + 11))
141 LET cD = cX / 52
142 IF cX MOD 52 > 40 THEN 999
143 LET cM = (cX MOD 52) / 52
145 LET col = (cD - cM) + 1

150 LET cY = (TOUCHY - 10)
151 LET cD = cY / 52
152 IF cY MOD 52 > 40 THEN 999
153 LET cM = (cY MOD 52) / 52
155 LET row = (cD - cM) + 1

159 REM Toggle a light (if we got this far)
160 GOSUB 4000

999 GOTO 110

1000 REM Draw the board
1005 CLS
1010 PUTIMG boardX,0,lightsOut
1060 FOR dx = 1 TO 5
1070 FOR dy = 1 TO 5
1075 IF board(dx,dy) = 0 THEN 1100
1080 PUTIMG boardX + 11 + (52 * (dx - 1)),10 + (52 * (dy - 1)),lightOn
1100 NEXT dy
1110 NEXT dx
1120 PUTIMG 480 - 32,272 - 64,refreshIcon
1130 PUTIMG 480 - 32,272 - 32,exitIcon
1140 PRINT "Moves:"
1150 PRINT moves
1200 UPDATE
1999 RETURN

2000 REM Randomize the board
2010 FOR iX = 1 TO 5
2012 FOR iY = 1 TO 5
2014 LET board(iX,iY) = 0
2016 NEXT iY
2018 NEXT iX
2060 FOR r = 1 TO 100
2080 LET col = RND(5) + 1
2085 LET row = RND(5) + 1
2087 GOSUB 4000
2090 NEXT r
2095 LET moves = 0
2999 RETURN

3999 REM Toggle a light and the surrounding ones
4000 LET moves = moves + 1
4001 LET lX = col
4002 LET lY = row
4003 GOSUB 4100
4004 LET lX = col + 1
4005 LET lY = row
4006 GOSUB 4100
4007 LET lX = col
4008 LET lY = row + 1
4009 GOSUB 4100
4010 LET lX = col - 1
4012 LET lY = row
4013 GOSUB 4100
4014 LET lX = col
4015 LET lY = row - 1
4016 GOSUB 4100
4017 GOSUB 1000
4018 RETURN

4099 REM Toggle a single light
4100 IF lX >= 1 AND lX <= 5 AND lY >= 1 AND lY <= 5 THEN 4110
4101 RETURN
4110 LET light = board(lX,lY)
4120 IF light = 1 THEN 4140
4130 LET board(lX,lY) = 1
4135 RETURN
4140 LET board(lX,lY) = 0
4145 RETURN

5000 REM Quit
Cheers,
Ed.

Mister Ed
12-01-2009, 16:33
There's a couple of updates in the thread over on the Cowon American board;

http://www.cowonamerica.com/forums/showthread.php?t=26084

Mister Ed
12-22-2009, 03:19
Here's a link for you folks;
http://www.green-eyed-monster.com/o2basic/

More details over at Cowon America;
http://www.cowonamerica.com/forums/showthread.php?t=26084

fogshore
02-10-2010, 20:10
Has anyone been able to check the Korean forums(translated) to see whats going on over there. I know the o2 is supposed to be selling very well over there.

Yep. I've check it. I don't see anything wrong.

Schimanzki
09-21-2011, 05:38
Here's a link for you folks;
http://www.green-eyed-monster.com/o2basic/

More details over at Cowon America;
http://www.cowonamerica.com/forums/showthread.php?t=26084

can you tell me where I can find the threads now ? In jetaudioforum there are no o2 apps.

Best Regards from Germany

CoCoBar
12-06-2012, 20:17
SDK is supported by Linux only?????