ucom and sio

Daniel O'Connor doconnor at gsoft.com.au
Sat Jan 8 16:45:48 PST 2005


On Sun, 9 Jan 2005 06:08, Brandon Fosdick wrote:
> If I use tip it works fine. But if I try to write a C program that opens
> the device it hangs on open, unless I set it to non-blocking. Then open
> returns and I set it back to blocking then try a read or a write. read()
> blocks regardless of whether any data has been sent by the other device
> (a terminal app on my palm pilot for debugging purposes) and write()
> blocks without sending anything. If I set the device to be non-blocking
> read() will return the data that was sent by the other device, but
> write() will still block.

Is it blocking waiting for carrier detect to come up?
Try using the cuaNN device instead.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050109/3a5de2f7/attachment.bin


More information about the freebsd-stable mailing list