Modbus
Clone
Summary
Browse
Changes
Graph
Print debug info to stderr to help catch the bug!
debug_read80holdreg
2022-10-05, Mario de Sousa
9a9096db9e16
merge
2021-06-07, Edouard Tisserant
e319814f1c17
optimization: normalize buffer when it becomes empty after data purge
2021-06-06, mjsousa
4f584251c73d
fix bug: frame data read from network was potentially being moved inside buffer (lb_normalize()) before it was processed by caller to read_frame()
2021-06-06, mjsousa
cadd89d14ca5
add parenthesis to #define'd constants so later multipications work correctly
2021-06-02, mjsousa
5b6407edfe8e
fix bug with receive buffer handling. Was causing data corruption during communication errors with long frames.
2021-06-02, mjsousa
6f6451e78531
Add KeepAlive support for all TCP sockets.
2021-03-22, Edouard Tisserant
16ea5cbbda4e
merge
2020-06-01, Mario de Sousa
7c955a1d39e8
correct version of --> Allow "" and NULL on TCP host and service (=> IP=INADDR_ANY, and port=0)
2020-06-01, Mario de Sousa
1aed7a582ca7
Undo changes inserted in previous commit (included 2 unrelated changes)
2020-06-01, Mario de Sousa
d6effe86bc2f
Allow "" and NULL on TCP host and service (=> IP=INADDR_ANY, and port=0)
2020-06-01, Mario de Sousa
f14859c24751
merge
2019-12-10, Mario de Sousa
9334c8280602
change hton() and ntoh() so we don't use (u8 *) to (u16 *) casts. Some compilers incorrectly change the pointer to force alignment with even addresses.
2019-12-10, Mario de Sousa
fe4088d5573a
Mario's fix for the pointer alignment problem. See changeset 4: 99009b24d401.
2019-12-10, bmakuc
6e94a1dddc5f
Variables start_addr and count were read from query_packet using function mb_ntoh_safe. It looks like some compilers change the pointer alignment if the first byte starts at an odd address. Because mb_ntoh_safe uses pointers slave address and count (number of registers) were not read correctly from the buffer when several modbus slaves were present in network. In this temporary solution pointer aritmetics is replaced by simple 256 multiplication.
2019-11-27, bmakuc
99009b24d401
Setting socket option so that TCP Modbus slave can re-use same port immediately after freeing it
2019-02-11, Edouard Tisserant
1223f413e054
Let Makefile use default CFLAGS and CC instead of overriding them
2018-11-16, Edouard Tisserant
19bf8e678c42
Remove incorrect inlines
2017-03-18, Andrey Skvortsov
59783e8ee3d2
Initial commit.
2017-03-05, Mario de Sousa
ae252e0fd9b8