Commit Graph

6 Commits

Author SHA1 Message Date
Victor Antonovich
8591a2f1c1 Move CRC calculation function to modbus.c 2023-12-25 16:34:09 +03:00
Dustin Lundquist
5c064928ae modbus: read only a single frame at a time
When multiple modbus frames were queued in the socket buffer
conn_read() would read until it completely drained the
kernel's socket buffer or filled the connection buffer. The first modbus
frame in the buffer is then processed and sent to the tty, then the
buffer is reused for the reponse after it is received from the tty
possibly overwritting any subsequent modbus request frames already read.

Avoid this by maintaining pre-connection length to read, so we only read
a single modbus frame at a time.
2019-01-25 14:13:12 -08:00
Victor Antonovich
fb4f8fb569 Handle incorrect Modbus/TCP data length header field #31 2018-04-26 13:10:57 +03:00
kapyar
d04736878d mbusd 0.2.0:
+ RTS RS-485 transmit/receive control
* RTU response receiving by length
* Standard exception codes for receive error (04) and timeout (0x0B)
2015-02-25 10:33:57 +00:00
kapyar
0bb1a8910e * Updated build infrastructure (x86_64 build fixed);
* Fixed serial interface initialization under Linux;
* Default RTU client response wait timeout increased to 50 ms;
+ Added Eclipse CDT project files.
2013-11-18 08:57:00 +00:00
kapyar
0696cbd292 Initial revision 2003-09-13 20:34:30 +00:00