Alexander,

>I know of one Handspring
>application that when lunched on Palm provides server services to a desktop
>app running on PC without HotSync. So it proves this is possible. I just
>don't know hot this app is implemented.

I suspect you are talking about the "File Installer" sample application, which
allows a desktop to push/pull databases over USB without involving Hot Sync.

But it *does* require a special PRC to be active on the device -- and it is not
just a hack.  It has to be the active user interface application.  It opens the
USB port (as a serial port) and awaits instructions, then processes them when
received.

This is conceptually the same thing as a communications program opening a
regular serial port and waiting on data.  However, notice that in order for it
to work, it must be the active UI app and must have the port open and awaiting
data.  This is not a "background" operation.  Having the serial port open and
waiting on data also decreases battery life severely.

You could make it appear to be a background process in your application by
having the serial port open and checking for data as part of your normal event
loop.  When you receive data on the serial port, presumably a connection has
been established.  Setup your own handshaking and exchange of data.

Doug


--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to