Link to home
Start Free TrialLog in
Avatar of widyanto
widyanto

asked on

serial chat communications using cradle

Hi,

I have a Tungsten C that has a USB cradle port.
I am about to make an application that communicate with the desktop via the USB cradle port. I know that I can use all these functions to connect to serial port:
SrmOpen(logical_port, baud_rate, &port)
SrmSend(port, buffer, number_of_bytes, &error_code)
SrmReceive(port, buffer, number_of_bytes, timeout_ticks, &error_code)
SrmSendFlush(port)
SrmReceiveFlush(port, timeout)
SrmClose(port)

But, how does the desktop get the information? Is the desktop supposed to open a server to receive the data when the palm PDA use SrmSend function? If it is, what port number does the desktop has to listen a connection?

I seen a tutorial: http://mobile.eric-poncet.com/palm/tutorial/serial.html
But, I can't get it to work. Why does the server has to be run at port#6416 ? Is port number 6416 only for POSE? What about for the real USB cradle port for Tungsten C? Will it connect to the same port number?

Thanks,
Widy
Avatar of vadim_ti
vadim_ti

i think to make desktop server side for usb is quite difficult,
more simple solutiion is to make a conduit and to work via hotsync
Avatar of widyanto

ASKER

Yeah, I looked at some way to communicate using USB, and it's quite difficult.
Do you know where I can get a tutorial for simple conduit? or what book that has a simple tutorial for conduit?

Thanks,
Widy
you can download CDK (conduit development kit) from PalmSource
it is well documented and there are examples

http://www.palmos.com/dev/dl/dl_sdks/dl_cdk/
I can't find the examples, can you give me links.

Thanks
after you install cdk you have  examples
widyanto,

When you hotsync to Palm OS emulator,  using virtual phone,  you must bind to a port number. All hoitsync calls are then redirected to that port number. 6416 in the default port.
-------------------------------------------
Virtual Phone works best if you select TCP/IP. Selecting TCP/IP redirects all data transfers intended for the serial port to a TCP/IP socket and does not require the use of a null modem cable.

The IP address: entry field default is localhost:6416. This option is available when Serial Port is set to TCP/IP. You can indicate host and port number that the Palm OS Emulator is to connect to. Virtual Phone must use the same settings

:)
The examples in the CDK is not really clear. Is there any other example that has a step by step?

What is "virtual phone" ?
Is it only POSE can use a port number? or a real Palm device can hotsync using port number?

Thanks,
ASKER CERTIFIED SOLUTION
Avatar of msjammu
msjammu
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial