Exactly. This is my greatest fear.

In data venerdì 02 aprile 2010 15:54:27, Andrew Kohlsmith (mailing lists 
account) ha scritto:
: > On Thursday 01 April 2010 09:38:15 pm Philippe De Muyter wrote:
> > We use a pure user-level solution with
> >
> >     ioctl(fd, TIOCMBIS, TIOCM_RTS);
> >     /* wait some delay or rely on a CTS */
> >     write(fs, message, message_len);
> >     /* eventually wait for a message_len based delay*/
> >     tcdrain(fd);
> >     ioctl(fd, TIOCMBIC, TIOM_RTS);
> 
> The biggest problem with that is not being able to have good control of the
> delay between the tcdrain() and ioctl(); for things like ModBus you end up
> with corrupted responses because the unit you've addressed has already
>  started writing its response before you have shut off your transmitter.
> 
> For ModBus slave devices this solution would work without much issue at
>  all.
> 
> -A.
> 
> _______________________________________________
> 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
> 

-- 
Fabio Giovagnini

Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
_______________________________________________
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

Reply via email to