Re: Serial port of the zaurus

michael shiloh <[email protected]> Wed, 11 Jun 2003 15:21:43 -0700 (PDT)
Newsgroups gmane.comp.handhelds.zaurus.devel
Message-ID <Pine.LNX.4.44.0306111503380.32001-100000@magritte.magrittesystems.com>
It is weird. We use it to control our products; once it's  working,
it works really well. but getting it to work is tricky.

first, make sure you kill the pppd daemon, but first kill the line
that restarts the daemon whenever it dies. this is described in
http://www.zauruszone.farplanet.net/wiki/index.php?SerialPort

next, we discovered that zconsole doesn't return the serial port
setting to their original state. it could be that other programs
don't. in you program, you would do well to set ALL of the parameters
to a state you like.

a good trick to figuring out what the parameters should be is this:
On your desktop, get things working, then write a program that calls 
tcgetattr and dumps (or even saves in a file) the contents of your 
termios structure.  then on your zaurus app, start with these values, 
modify only what you need, and use tcsetattr to set these attributes.

good luck, and let me know if you need more pointers.

i'm also interested in your project - sounds like it would work
with our stuff too. if your project is open to the public, would you 
mind posting a URL or something? our stuff is at www.makingthings.com

michael

On Wed, 11 Jun 2003, Mohamed Badawi wrote:

> Hi,
>      I'm still new to Qt and zaurus.. but I'm developing a project on Zaurus 
> using Qt that interfaces with a Data Aquisition circuit on a serial port. I 
> still can't figuer out how to manipulate the (read/write) the Zaurus I/O 
> port.. I would be thankful for any kind of help.... Thanx alot
> 
>                   Badawi