2011-02-22 07:56:49     Serial driver inter-character timeout

Document created by Aaronwu Employee on Aug 26, 2013
Version 1Show Document
  • View in full screen mode

2011-02-22 07:56:49     Serial driver inter-character timeout

Peter Gombos (HUNGARY)

Message: 98333   

 

Hi,

 

I have to implement an ancient serial protocol (Modbus). This protocol requires to detect broken frames with 1.5 character timeout. It means couple of 10 microseconds at medium speed. As far as I see there is no timeout support neither Blackfin hardware nor serial driver.

 

What do you suggest to detect this short timeout?

 

Peter

QuoteReplyEditDelete

 

 

2011-02-22 12:27:43     Re: Serial driver inter-character timeout

Mike Frysinger (UNITED STATES)

Message: 98339   

 

you mean VTIME/VMIN in the termios settings ?

 

have you seen libmodbus ?

  libmodbus.org/

 

an older version is in the dist, but should be trivial to upgrade ...

QuoteReplyEditDelete

Attachments

    Outcomes