Commit Graph

8 Commits

Author SHA1 Message Date
gc87 ebe450e303 Read and write Modbus driver through MQTT driver
1. Add config cmd to neu_manager
2. Modify MQTT driver to read and write
3. Fix modbus response
2021-08-28 16:43:47 +08:00
fengzero 1be8327439 read/write fixed value for demo 2021-08-28 14:15:04 +08:00
fengzero e09963911d Add unit test for modbus point
sort modbus point for optimizing read efficiency
read modbus point(coil, input, hold reg, input reg)
write modbus point(coil, hold reg)
2021-08-27 17:04:15 +08:00
fengzero 8194e2b2c7 Add write operation for modbus tcp, and process NEU_REQRESP_READ_DATA/NEU_REQRESP_WRITE_DATA
NEU_REQRESP_READ_DATA:
	interval > 0: just parse modbus point
	interval ==0: read modbus point
2021-08-26 15:39:34 +08:00
fengzero 8f72ec0c7e refactor: modbus tcp read point
use point module process modbus point order
remove timerfd epoll
2021-08-25 18:38:39 +08:00
Parker Liu 9c42cdea41 Fix failed build in macOS by remove using epoll
The modbus tcp plugin can not work good because we use replace some functions
with empty function.
2021-08-25 16:24:28 +08:00
fengzero 2707499b17 remove tcp epoll, add modbus tcp plugin
send/receive data synchronously
2021-08-25 11:38:06 +08:00
fengzero 2abc5a6f27 Add tcp for connecting device and add modbus tcp plugin
*use epoll process tcp connection
*define modbus protocol struct and pack function
2021-08-24 11:52:22 +08:00