[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldsync-hackers] coldsync and serial troubles



hi

i found solution for syncronization via serial cable without error
messages.

after adding small delay beforó serial port closing all work fine.
i add:
 usleep(10000);
before line:
 return (p->fd >= 0 ? close(p->fd) : 0);
into function serial_close() in file libpconn/PConnection_serial.c

value 10000 is experimental - with usleep(1000) sometimes all work,
sometimes i get error. this small  delay don't change speed if is not
needed.

i think error is not in coldsync - very small delay from tcdrain() to
close() are not correctly handled with kernel and/or libc.

my system is rh linux 7.2 with kernel 2.4.20-xfs.
hardware - via c3 800MHz on via chipset, 64mb of ram.

ps: sorry, my english is bad ;(

-- 
This message was sent through the coldsync-hackers mailing list.  To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body.  For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.