vicencb
874ce63806
Do not segfault when closing last connection ( #83 )
2022-04-06 17:19:08 +03:00
Victor Antonovich
06ccb29384
Fix crash due to missing logw() argument ( fixes #84 )
2022-04-06 16:26:26 +03:00
Victor Antonovich
1efb812013
Fix for "Resource temporarily unavailable" error in tty read() ( #78 )
2021-11-12 18:04:31 +03:00
Danny
b22ffa0856
feature-reply-on-broadcast
2021-06-19 12:37:55 +07:00
Victor Antonovich
461ce8baa0
Do not wait for a reply for RTU broadcast address #61
2020-08-13 17:39:30 +04:00
Victor Antonovich
5eb74fa568
Fix GCC C99 compatibility error
2020-05-22 16:56:31 +04:00
Victor Antonovich
f5becef211
Take into account tty parity bit in the timing calculations ( #59 )
2020-05-22 15:47:50 +04:00
Victor Antonovich
88916fe82d
Add IPv6 support ( #53 )
2019-07-17 17:04:22 +04:00
Victor Antonovich
2aa063db79
Add command-line and config options to set an TCP socket address ( #53 )
...
Still no IPv6 support though.
2019-07-16 11:14:37 +04:00
Victor Antonovich
c582e6f052
Move queue_next_elem() outside of the switch
block ( fix #52 )
2019-07-08 13:24:45 +04: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
b5e3c5324a
Implement tty reconnect with exponential backoff
2019-01-04 19:28:22 +04:00
Victor Antonovich
d507507d29
Try to reinit tty on EOF ( #41 )
2019-01-04 12:54:48 +04:00
Victor Antonovich
77f1ccd345
Merge branch 'master' of https://github.com/3cky/mbusd.git
2018-04-26 13:55:47 +03:00
Victor Antonovich
fb4f8fb569
Handle incorrect Modbus/TCP data length header field #31
2018-04-26 13:10:57 +03:00
dwyer-employee
8f2ccf1ec0
Modbus RTU Exception Forwarding ( #29 )
...
Add checking for Modbus exception codes returned by RTU slaves
These PDUs are now forwarded to the TCP client.
2018-03-26 13:12:43 +03:00
James Jarvis
54fffd0895
Applied sysfs gpio RS-485 directional control patch from APRS World
2017-02-16 16:34:31 -06:00
Victor Antonovich
85943e89f5
Fix #3
2015-12-17 13:12:32 +04: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