On Wed, Apr 07, 2010 at 02:59:03PM +0200, Erwin Authried wrote: > > > > I have just discovered that there are now 'standard' linux ioctls to > > work with rs485 lines : TIOCGRS485 & TIOCSRS485. > > > > (see > > http://git.kernel.org/?p=linux/kernel/git/gerg/m68knommu.git;a=commitdiff;h=c26c56c0f40e200e61d1390629c806f6adaffbcc) > > > > Of course, not all hardware drivers implement them. > > > > And also, I do not know how to use them. > > > > Philippe > > I found this example that seems to use those new ioctls: > > http://foxlx.acmesystems.it/?id=28 > > If you look into this example, it doesn't look promising because RTS is > released by a call from userspace after sending. I can't see much > advantage over using tcdrain() and releasing RTS afterwards, if tx_empty > is implemented correctly by the serial driver.
This example seems closer (at least the name of the ioctl, and some fields in the struct) and more promising : http://wiki.myigep.com/trac/wiki/HowToUseRS485 Philippe -- Philippe De Muyter phdm at macqel dot be Tel +32 27029044 Macq Electronique SA rue de l'Aeronef 2 B-1140 Bruxelles Fax +32 27029077 _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev