?
Solved

serial chat communications using cradle

Posted on 2004-10-05
8
Medium Priority
?
304 Views
Last Modified: 2013-12-27
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
0
Comment
Question by:widyanto
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 6

Expert Comment

by:vadim_ti
ID: 12241549
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
0
 

Author Comment

by:widyanto
ID: 12242758
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
0
 
LVL 6

Expert Comment

by:vadim_ti
ID: 12242825
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/
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:widyanto
ID: 12255971
I can't find the examples, can you give me links.

Thanks
0
 
LVL 6

Expert Comment

by:vadim_ti
ID: 12256558
after you install cdk you have  examples
0
 
LVL 6

Expert Comment

by:msjammu
ID: 12257877
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

:)
0
 

Author Comment

by:widyanto
ID: 12258797
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,
0
 
LVL 6

Accepted Solution

by:
msjammu earned 2000 total points
ID: 12259118
widyanto:

If you are new to Conduit development I suggest you not to use any wizards to create code for you. Write whole conduit manually yourself (using VC++ in your case).

When I started with it i faced similar problems like you have,
Here is a book that had one simple conduit example that I learned from

Palm Programming: The Developer's Guide
By Neil Rhodes, Julie McKeehan
http://www.oreilly.com/catalog/palmprog/toc.html

I also suggest you to Join the Conduit Developer Forum
The Conduit Developer Forum is a great place for conduit information. You can know here the problems others are facing and the solutions they got for them
http://www.palmos.com/dev/tech/conduits/

Also see the Conduit Development Knowledge base at
http://kb.palmsource.com/cgi-bin/palmsource.cfg/php/enduser/std_alp.php?p_lva=&p_li=&p_page=1&p_prod_lvl1=%7Eany%7E&p_cat_lvl1=6

Also see these usefull resources

http://uk.builder.com/whitepapers/0,39026692,60088979p-39000971q,00.htm
http://itpapers.zdnet.com/abstract.aspx?docid=88980&promo=50001
http://uk.builder.com/whitepapers/0,39026692,60088980p-39000971q,00.htm

Hope this help

Regards
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With Windows Embedded Handheld, called Windows Mobile, Microsoft re-designed the user interface. The Start Icon moved down to the bottom, inside the menu bar area.   If you need to hide the Start Icon and/or the SIP (soft input panel, softwar…
Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question