52 Commits

Author SHA1 Message Date
hxy7yx e0f8208b80 fix(modbus): handle malloc/pthread_create errors in set_skip_timer 2026-07-13 01:51:50 -07:00
fengzero 525f758af6 fix memory issue 2026-06-26 03:28:51 +00:00
wangjun c99999b8c9 modbus: add 64-bit byte order support for WS and WR
Add support for WS (34 12 78 56) and WR (56 78 12 34) as additional 64-bit byte orders for Modbus int64, uint64, and double tags.

This change extends address suffix parsing, updates 64-bit endian conversion in the Modbus read/write paths, updates the Modbus TCP/RTU schemas, and adds functional test coverage.

Signed-off-by: wangjun <794997265@qq.com>
2026-04-16 13:59:53 +08:00
hxy7yx 750ac85102 feat(modbus):support endianess of 8-Byte data 2025-06-15 19:47:15 -07:00
hxy7yx d33fff5986 fix(modbus):clear recv buf before sending 2024-12-23 17:10:38 +08:00
hxy7yx adaad8d900 feat(modbus-tcp):support backup ip 2024-11-19 17:01:16 +08:00
fengzero 8d90cb7d08 support array type 2024-11-06 10:44:21 +00:00
hxy7yx 4a608906ad feat(modbus):support opentelemetry 2024-10-22 14:11:11 +08:00
hxy7yx c22aaf25d4 feat(modbus):support start address base 0 or 1 2024-10-14 17:13:57 +08:00
hxy7yx 64467a28a7 feat(modbus):supoort configuring endianness in node configuration 2024-10-14 14:06:44 +08:00
hxy7yx 965c4ef081 feat(modbus):support device degradation 2024-10-14 10:54:46 +08:00
hxy7yx 7a7ff99e60 fix(modbus):clear value when update 2024-08-02 17:14:52 +08:00
hxy7yx 824f856b85 fix(modbus):reconnect when recv error messages 2024-07-23 16:30:03 +08:00
hxy7yx 6c508f9f00 refactor(modbus) 2024-06-21 16:18:57 +08:00
hxy7yx 5925bf257a feat(core & modbus tcp): test read tag 2024-06-07 14:51:25 +08:00
hxy7yx 1d5d6de72c plugin(modbus): fix modbus rtu slave check 2024-03-13 16:15:09 +08:00
hxy7yx e7bf3c74ca verify that the length of modbus bytes point is even 2023-10-11 13:48:18 +08:00
hxy7yx 87d0d371f0 fix(modbus):rtu server recv&send 2023-09-21 09:51:41 +08:00
fengzero 88a96c63fd core/modbus: support bytes 2023-08-25 09:15:58 +00:00
hxy7yx d0e091fafe (modbus):tags sorting, merge reqs 2023-08-23 14:57:04 +08:00
hxy7yx 863f181e2a feat(modbus):write multiple tags 2023-08-14 16:23:22 +08:00
hxy7yx 928289eaf1 optimize modbus 2023-07-19 16:40:34 +08:00
hxy7yx 00edaadd4c Support retry when modbus read fails. 2023-06-07 14:44:16 +08:00
fengzero 187023f428 improve(modbus): speed up the recovery the modbus rtu 2023-05-30 08:22:00 +00:00
hxy7yx 6b7920aa8d Merge branch 'emqx:main' into main 2023-05-11 16:33:51 +08:00
hxy7yx e1ca981860 Open source Modbus TCP/RTU, delete existing Modbus TCP community 2023-04-10 17:56:17 +08:00
fengzero 04d990e79b modbus: connection state 2022-11-10 02:50:37 +00:00
fengzero f0858d6076 fix(modbus): rtt between neuron and device 2022-11-09 08:42:42 +00:00
lixiumei123 391ed49fcf update(metrics):modbus last_rtt_ms group_send_msgs_total 2022-11-01 08:24:10 +00:00
eeff b0e290ea86 feat: adapter callback update_metric add group name param 2022-10-27 15:30:44 +08:00
eeff 27d7b2d4d5 refactor: node metrics data structures 2022-10-20 17:15:58 +08:00
fengzero 1bb131c3f8 fix(modbus): bit operation 2022-09-23 03:06:00 +00:00
fengzero 2d28a3acac fix(modbus): recv_buf size is not enough 2022-09-21 02:20:41 +00:00
eeff 00a934453e feat(modbus): update send/receive bytes and messages statistics counters 2022-09-08 14:51:21 +08:00
fengzero 9eba2a7230 fix(modbus): read/write tag value endian 2022-08-30 08:04:21 +00:00
fengzero 4405d9cae5 feat(driver): based on the tag address, the endianness is translated 2022-08-30 07:42:40 +00:00
fengzero e48335ddd2 feat(driver): compare whether tag value changed on precision 2022-08-17 02:21:46 +00:00
fengzero 7a54325804 chore(driver): optimize the time when the driver reads tag for the first time 2022-08-16 06:24:02 +00:00
fengzero 7f9d4cd84c feat(driver): set float precision 2022-08-10 10:30:38 +00:00
fengzero ea7ee09837 chore(modbus): return response immediately after sending request 2022-08-05 09:32:21 +00:00
fengzero 58ce412192 fix: replace large stack var with heap var 2022-07-26 02:37:44 +00:00
fengzero 5cece84ca9 fix(http): aio timeout 2022-07-19 07:28:11 +00:00
fengzero 003c31e4a6 fix(connection): send with bolck flag if conn is bolck 2022-07-15 06:48:08 +00:00
fengzero 0b1fb54543 fix: cppcheck warning 2022-07-04 09:12:44 +00:00
fengzero 50f5121c3b adapter(driver): remove mtx 2022-06-20 08:14:37 +00:00
fengzero 1e29e4cb1c remove plugin_info.h & adapter_msg.h 2022-06-17 07:02:32 +00:00
fengzero 67f0c2b2f0 rename tag address and replace neu_dtype_e 2022-06-17 03:48:51 +00:00
fengzero dee69cb377 feat(driver): add total number of tags in group_timer 2022-06-14 02:46:46 +00:00
fengzero 76889e8353 feat(driver): support tag name duplication in different groups 2022-06-14 02:31:23 +00:00
fengzero 52aef263e6 modbus test 2022-06-10 04:43:06 +00:00