Re: Ipod 5G serial

2006-03-22 Thread Bluechip
I guess for core serial transfers it should be fairly simple to keep 
things generic, ala:

int set_set(int baud, int parity, int bits, int stop) // 9600N81
int ser_xmt(char* buffer, int buflen)
int ser_rcv(char* buffer, int max, int timeout)
int ser_poll(void)

Maybe some:
int ser_enable(void)
int ser_disable(void)
...if you have interrupts

Interrupt driven serial I/O may offer extra complications, but 
generically it's just:

voidser_int(void)
...I would think

And if it is a fully featured serial port, maybe some other pin level 
functions.


You might find that a good place to look for more ideas is in a DOS 
interrupt reference (Ralf Brown's Interrupt List springs to mind)


Beyond that you will need to decide what you will be doing with the 
interface and what things a programmer would like to say to that 
interface, such as:

int usb_handshake(...)
int usb_sendfile(...)
... etc. and take ir from there.

Good Luck,

BC


i meant, tihnking about keeping it generic from the start...
On 22/03/06, Daniel Stenberg [EMAIL PROTECTED] wrote:
 On Wed, 22 Mar 2006, Jonathan Gordon wrote:

  was there any discussion on how to make it more generic.. tihnking
  about usb-otg on the h300...

 Since none of it is close to be supported yet, talking on making 
non-existing

 things generic seems very premature to me.

 I believe usb-otg is a lot more complex and potentially advanced than
 supporting a mere serial port is.

 Still, let's add support for it first and then see what we can do 
generic and

 what not.

 --
   Daniel Stenberg -- http://www.rockbox.org/ -- http://daniel.haxx.se/





Re: Ipod 5G serial

2006-03-22 Thread George Styles
On 3/22/06, Bluechip [EMAIL PROTECTED] wrote:
I guess for core serial transfers it should be fairly simple to keepthings generic, ala:int set_set(int baud, int parity, int bits, int stop) // 9600N81int ser_xmt(char* buffer, int buflen)int ser_rcv(char* buffer, int max, int timeout)
int ser_poll(void)Maybe some:int ser_enable(void)int ser_disable(void)...if you have interruptsInterrupt driven serial I/O may offer extra complications, butgenerically it's just:
voidser_int(void)...I would thinkAnd if it is a fully featured serial port, maybe some other pin levelfunctions.You might find that a good place to look for more ideas is in a DOSinterrupt reference (Ralf Brown's Interrupt List springs to mind)
Beyond that you will need to decide what you will be doing with theinterface and what things a programmer would like to say to thatinterface, such as:int usb_handshake(...)int usb_sendfile(...)
... etc. and take ir from there.Good Luck,BCi meant, tihnking about keeping it generic from the start...On 22/03/06, Daniel Stenberg [EMAIL PROTECTED]
 wrote:  On Wed, 22 Mar 2006, Jonathan Gordon wrote:was there any discussion on how to make it more generic.. tihnking   about usb-otg on the h300...
   Since none of it is close to be supported yet, talking on making non-existing  things generic seems very premature to me.   I believe usb-otg is a lot more complex and potentially advanced than
  supporting a mere serial port is.   Still, let's add support for it first and then see what we can do generic and  what not.   --  Daniel Stenberg -- 
http://www.rockbox.org/ -- http://daniel.haxx.se/ One possible goal would be to re-implement Apples own serial protocol -
see http://stud3.tuwien.ac.at/~e0026607/ipod_remote/ipod_ap.html

this is already quite a sophisticated interface (best ive seen on a mp3 player !) and would allow all current and future accessories to work with Rockbox...Now if only someone would bring out a LCD remote (it IS possible with that protocl) that works with 5G and allows browsing... Im holding out for hte 'true video ipod' which is suipposed to have bluetooth. Im hoping to be able to control it from an old bluetooth phone acting as a wireless LCD remote...
g


Re: Ipod 5G serial

2006-03-22 Thread Joseph Kubik
On Wednesday 22 March 2006 01:20, Daniel Stenberg wrote:
 On Tue, 21 Mar 2006, jkubik wrote:
  Is anyone working on the Ipod 5G serial interface at the moment?
  If so, where are you?

 Since Christi hasn't shown up here yet since devcon I'll fill in and
 mention that she seems very interested in getting the serial port going on
 her iPods. We talked about it at devcon.

 Using the serial port you could get a gdb stub going, use it for debug
 outputs, make multi-player games and more...
I did a bunch of looking around last night.
It appears that rs232 is not impossible. I'm going to start with the Ipod 
Linux install, as I'm a linux person. Once I get the code working there, I'll 
post what I have here, in hopes that someone can help me put it into the 
rockbox code.
-Joseph-


Ipod 5G serial

2006-03-21 Thread jkubik
Is anyone working on the Ipod 5G serial interface at the moment?
If so, where are you?
Regardless, does anyone know where to start?

Thanks,
-Joseph-



Re: Ipod 5G serial

2006-03-21 Thread Daniel Stenberg

On Tue, 21 Mar 2006, jkubik wrote:


Is anyone working on the Ipod 5G serial interface at the moment?
If so, where are you?


Since Christi hasn't shown up here yet since devcon I'll fill in and mention 
that she seems very interested in getting the serial port going on her iPods. 
We talked about it at devcon.


Using the serial port you could get a gdb stub going, use it for debug 
outputs, make multi-player games and more...


--
 Daniel Stenberg -- http://www.rockbox.org/ -- http://daniel.haxx.se/


Re: Ipod 5G serial

2006-03-21 Thread Jonathan Gordon
was there any discussion on how to make it more generic.. tihnking
about usb-otg on the h300...
On 22/03/06, Daniel Stenberg [EMAIL PROTECTED] wrote:
 On Tue, 21 Mar 2006, jkubik wrote:

  Is anyone working on the Ipod 5G serial interface at the moment?
  If so, where are you?

 Since Christi hasn't shown up here yet since devcon I'll fill in and mention
 that she seems very interested in getting the serial port going on her iPods.
 We talked about it at devcon.

 Using the serial port you could get a gdb stub going, use it for debug
 outputs, make multi-player games and more...

 --
   Daniel Stenberg -- http://www.rockbox.org/ -- http://daniel.haxx.se/




Re: Ipod 5G serial

2006-03-21 Thread Daniel Stenberg

On Wed, 22 Mar 2006, Jonathan Gordon wrote:


was there any discussion on how to make it more generic.. tihnking
about usb-otg on the h300...


Since none of it is close to be supported yet, talking on making non-existing 
things generic seems very premature to me.


I believe usb-otg is a lot more complex and potentially advanced than 
supporting a mere serial port is.


Still, let's add support for it first and then see what we can do generic and 
what not.


--
 Daniel Stenberg -- http://www.rockbox.org/ -- http://daniel.haxx.se/