Commit Graph

139 Commits

Author SHA1 Message Date
Valerio De Benedetto
6c5ff15b5e Fixes after merge 2024-09-20 14:02:42 +02:00
Hang Zhou
2def1aa693 resolve segment fault and Error on modbus connection 2024-09-20 14:00:54 +02:00
Valerio De Benedetto
0dffd91e3d
Merge pull request #64 from debevv/create_api
New *_create() APIs
2024-09-20 13:22:29 +02:00
Valerio De Benedetto
8db45adfac Fixes to multi_server_rtu examples 2024-09-20 13:20:27 +02:00
Valerio De Benedetto
8fafaa3bfe New *_create() APIs 2024-07-24 17:48:17 +02:00
Valerio De Benedetto
67bd7b2075
Merge pull request #54 from pseudotronics/Illegal-Function-Default-Case
Make Unknown Functions Reply to Client
2024-06-25 11:02:48 +02:00
SENTRY\bryan.flannery
599efd327c Made default case for unknown functions reply to client. 2024-06-21 10:31:42 -05:00
Valerio De Benedetto
97cda016ec Merge remote-tracking branch 'origin/master' 2024-06-14 16:25:15 +02:00
Valerio De Benedetto
f0a4374ac5 Fix to server FC handler define 2024-06-14 16:17:48 +02:00
Valerio De Benedetto
480c063d25
Update README.md 2024-04-13 14:03:32 +02:00
Valerio De Benedetto
d7ecb2ce8c Merge remote-tracking branch 'refs/remotes/dervomsee/patch-1' 2024-04-11 13:23:43 +02:00
Valerio De Benedetto
50f2285874 Vscode support 2024-04-11 13:23:32 +02:00
Valerio De Benedetto
363e7f7480 Minor fixes for clangd warnings 2024-04-11 12:46:24 +02:00
dervomsee
cc325134b0
add/delete some spaces 2024-04-10 11:49:22 +02:00
dervomsee
3c736c7185
Add NMBS_CLIENT_DISABLED/NMBS_SERVER_DISABLED #ifndef to sections, that are client/server specific. 2024-04-10 11:47:22 +02:00
Valerio De Benedetto
4ffbc09147
Merge pull request #46 from m-rashvand/master
win32 example: Fix a bug where a HANDLE pointer is used instead of HANDLE.
2024-03-16 18:10:03 +01:00
M. Rashvand
e5d720c55d
Fix a bug where a HANDLE pointer is used instead of HANDLE. 2024-03-16 14:31:29 +03:30
Valerio De Benedetto
a25ee5781a FC 43 / 14 Read Device Identification 2024-02-10 03:13:28 +01:00
Valerio De Benedetto
dccaa4f432 WIP FC 43 / 14 Read Device Identification 2024-02-10 02:47:31 +01:00
Valerio De Benedetto
0234a563c1 Fixes to potential buffer overflows on received data 2024-02-08 11:31:48 +01:00
Valerio De Benedetto
dde2653cb8 WIP buffer overflow on received data 2024-02-08 10:00:50 +01:00
Valerio De Benedetto
dba38fc917 Fixes to linux TCP server example 2024-02-07 15:53:54 +01:00
Valerio De Benedetto
dc6a9ee949
Update README.md 2023-12-07 14:59:42 +01:00
Valerio De Benedetto
5cdeeea5a7 Server callbacks args tests 2023-12-07 14:34:02 +01:00
Valerio De Benedetto
8a0f4af727 Updated README for server callbacks args 2023-12-07 13:24:38 +01:00
Ali Moallem
8518842709 Fix callback argument in nanomodbus.c 2023-12-06 10:09:46 +03:30
Hossein.M
8aca15dfc9 Add argument for callbacks structure 2023-12-06 10:03:29 +03:30
Valerio De Benedetto
18207a40fe
Update README.md 2023-11-22 13:17:15 +01:00
Valerio De Benedetto
a650381a10
Updated README.md 2023-11-16 09:41:50 +01:00
Valerio De Benedetto
fa49e2ef7d
Merge pull request #40 from arhiv6/patch-1
Update list of definitions from README.md
2023-10-18 18:06:21 +02:00
arhiv6
51ff1bd4db
Update list of definitions from README.md
Define NMBS_SERVER_WRITE_FILE_RECORD_DISABLED available to users, but not documented. This commit fix it.
2023-10-17 12:14:33 +07:00
Valerio De Benedetto
0642bbb1de
Update README.md 2023-08-25 18:39:02 +02:00
Valerio De Benedetto
7550fe9587 Fixes after FC23 merge 2023-08-14 20:50:49 +02:00
maxlemo
6368841c2b fix test 2023-08-02 12:22:29 -04:00
maxlemo
efefe26a0a uncomment other tests 2023-08-02 11:52:06 -04:00
maxlemo
71818afd59 add minimal test 2023-08-02 11:51:03 -04:00
maxlemo
e3b13ccdd1 adds fc23 server code 2023-08-02 11:11:14 -04:00
maxlemo
5991219763 add fc23 2023-08-02 10:57:17 -04:00
Valerio De Benedetto
9f6b24e03f
Merge pull request #35 from arhiv6/file_record
Add registers count checking for file_read and file_write operations
2023-07-19 16:54:09 +02:00
Vyacheslav Verkhovin
8dafc721fa Add registers count checking for file_read and file_write operations
MODBUS Application Protocol Specification does not require it explicitly
but without this checking PDU of a request or response may exceed 253 bytes.
2023-07-14 00:54:49 +07:00
Valerio De Benedetto
bd302660b6 Merge remote-tracking branch 'arhiv6/file_record' 2023-07-13 09:04:27 +02:00
Valerio De Benedetto
e3456986b5 Using VLA where possible 2023-07-11 14:07:55 +02:00
Arne Hoch
b884081eff FIX incorrect calculation of payload bytes 2023-07-11 13:52:42 +02:00
Vyacheslav Verkhovin
d391300654 Fixed function handle_read_file_record() logic according to specification
According to MODBUS specification we must finish checking all checks
before starting processing subrequests.
2023-07-06 19:43:20 +07:00
Valerio De Benedetto
ae6a93c963 Changes for SDCC 3.9.0 compatibility, part 2 2023-07-06 08:14:25 +02:00
Valerio De Benedetto
a08d59c5f0 Changes for SDCC 3.9.0 compatibility 2023-07-03 16:47:26 +02:00
Valerio De Benedetto
92b95be241 Updated arduino examples 2023-07-02 16:43:44 +02:00
Valerio De Benedetto
2e36f024bc Various fixes 2023-06-30 10:49:05 +02:00
Vyacheslav Verkhovin
e5b51cc4e7 Add File Records functions
Add both File Records functions (0x14 Read and 0x15 Write) for Client
and Server roles. Also, add a little tests and example.

Resolves: [#1] and [#24]
2023-06-30 10:11:32 +07:00
Valerio De Benedetto
cbd4fa69fb Updated gitignore 2023-06-29 11:14:40 +02:00