Mercurial
Mercurial
>
Modbus
/ file revisions
summary
|
shortlog
|
changelog
|
graph
|
tags
|
bookmarks
|
branches
|
file
| revisions |
annotate
|
diff
|
comparison
|
rss
|
help
(0)
tip
mb_slave.c
Mon, 01 Jun 2020 14:28:49 +0100
Mario de Sousa
merge
file
|
diff
|
annotate
Mon, 01 Jun 2020 14:24:57 +0100
Mario de Sousa
Undo changes inserted in previous commit (included 2 unrelated changes)
file
|
diff
|
annotate
Mon, 01 Jun 2020 14:15:03 +0100
Mario de Sousa
Allow "" and NULL on TCP host and service (=> IP=INADDR_ANY, and port=0)
file
|
diff
|
annotate
Tue, 10 Dec 2019 15:51:32 +0000
Mario de Sousa
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.
file
|
diff
|
annotate
Tue, 10 Dec 2019 09:30:59 +0100
bmakuc
Mario's fix for the pointer alignment problem. See changeset 4: 99009b24d401.
file
|
diff
|
annotate
Wed, 27 Nov 2019 14:53:22 +0100
bmakuc
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.
file
|
diff
|
annotate
Sun, 05 Mar 2017 00:05:46 +0000
Mario de Sousa
Initial commit.
file
|
diff
|
annotate
(0)
tip