On Thu, 2003-01-16 at 22:06, David McNab wrote:

> I'm running Debian Linux, and running the POSE palm emulator.
> 
> Works well in most respects. But any calls to the serial port are always
> failing, even if I set the serial port to /dev/ttyS0.
> 
> I was wanting to set the emulator to use /dev/ptyp0, so I could talk to
> the port on the host system by opening /dev/ttyp0 (saves wasting 2
> serial ports and soldering up a null modem cable).

I use a program called socat to do this. It works great for me and seems
more reliable than just using a pty pair directly. This is what I do:

Set up socat's pty's:

    socat PTY,link=/tmp/host-pty PTY,link=/tmp/pose-pty

On the pose side, set up the serial port to be /tmp/pose-pty

On the host side, set the serial port of the host software to be
/tmp/host-pty. I.e.,

pilot-xfer -p /tmp/host-pty -l

-- 
Dave Carrigan
Seattle, WA, USA
[EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL


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

Reply via email to