Commit Graph
48 Commits
Author SHA1 Message Date
fengzero db914268be the basic info(plugin name, type, kind...) of the plugin is read from the dynamic library
add dynamic library search path configuration, install to
/etc/ld.so.conf.d/

dynamic library search path priority:
  1. driver.path in neuron.yaml
  2. os path
2022-01-19 16:56:10 +08:00
fengzero 9e60bd2101 plugin: add validate function in plugin funs
check whether the tag conforms to the relevant driver specifications
2022-01-17 17:19:50 +08:00
fengzero b800280314 connection api: udp/tcp/tty 2022-01-10 17:42:49 +08:00
fengzero 477a66a5ff fix conflicts when multiple threads access group config 2022-01-10 17:42:49 +08:00
fengzero d4fd6b1848 fix to read the free data when unsubscribing 2021-12-29 17:10:10 +08:00
fengzero e4f947f2d2 install plugin to lib/neuron, install public header to include/neuron 2021-12-29 17:10:10 +08:00
Parker Liu a7088140ad Fix issue of it sometimes crashed when cycle read datatag in modbus tcp plugin 2021-12-17 11:20:39 +08:00
Parker Liu 4241829ce2 Add install step in CMakeLists.txt file for install neuron output files 2021-12-16 15:32:27 +08:00
lixiumei 373aa2f167 Improve modbus tcp function test 2021-12-06 14:34:23 +08:00
fengzero fd07e7fd5c ft: modbus tcp read/write
modbus tcp server simulator
2021-11-29 12:17:33 +08:00
Parker Liu 3d4d6daf45 Fix issue of UAF of group config in node when exiting main process 2021-11-26 23:17:09 +08:00
fengzero 8893ffbb19 refactor node state and ctl(start/stop)
plugin add start/stop interface

open: init plugin struct
init: initialize other context
start: plugin start workflow
2021-11-24 16:28:05 +08:00
fengzero 3ed6f842ec refactor http error response
use the state of the adapter as the running state of the plugin
2021-11-24 14:49:21 +08:00
Parker Liu 6a1f182e46 Fix issue of system hung on restart a node 2021-11-23 16:30:25 +08:00
fengzero 2daa9f03e8 Add function test for tag, node state, node ctl and
subscribe/unsubscribe
2021-11-18 16:24:13 +08:00
lixiumei d035272b31 The plugin headers are contained in the include directory 2021-11-04 10:57:41 +08:00
lixiumei 9f9aa5ec78 Modbus_tcp_config parameter initialisation and setting 2021-11-04 10:57:41 +08:00
fengzero bd5647257e Add node state: running state and link state & api: start/stop node
note start/stop node operation
2021-10-28 18:06:02 +08:00
fengzero e738e41b5d Add api: get plugin schema & config node
check the param according to the schema
2021-10-25 18:33:28 +08:00
fengzero aa6e58b58b modbus: limit read reg count 2021-10-21 10:04:04 +00:00
fengzero bc5158522e fix: decode modbus protocol error when reading consecutive address 2021-10-21 09:34:10 +00:00
fengzero 23bd25f8c8 fix memory leak
api: get tags add query parameter group_config_name
2021-10-19 11:38:59 +08:00
fengzero 96940eb3be add read/write api
support bit/int16/uint16/int32/uint32/float
2021-10-18 14:53:24 +08:00
fengzero 6eaa2908bf api: read/write subscribe/unsubscribe 2021-10-15 07:20:23 +00:00
fengzero 60989fb4a3 del context in msg 2021-10-15 03:17:47 +00:00
fengzero e41594f6c1 api server: support CORS 2021-10-15 02:28:39 +00:00
lixiumei ee75b3c09b Perfection modbus read/write error code 2021-09-30 14:31:53 +08:00
lixiumei 64b89bfcae Add modbus read/write error code 2021-09-29 19:04:11 +08:00
lixiumei 8e2222c379 modbus read/write value 2021-09-28 12:07:39 +08:00
fengzero 7f744a1956 fix uninitialized TAILQ
causes a crash when accessing TAILQ
2021-09-26 17:46:11 +08:00
Parker Liu 3b369acf25 Add send subscribe node message when Add default group configs 2021-09-26 17:15:59 +08:00
fengzero 4f5e858146 modbus: add subscribe/unsubscribe reqeust and check for group config updates 2021-09-22 10:12:50 +08:00
Parker Liu b49332ca2d Fix issue of failed build modbus plugin in macOS 2021-09-16 11:43:59 +08:00
fengzero 370aed5e2d modbus tcp: add cycle read
del demo code
use aio timeout as timer
2021-09-15 19:00:14 +08:00
gc87 7c3a2ccfaa Complete adaptation of mqtt driver and modbus-tcp driver
1. Fix modbus write value error
2021-09-14 10:28:24 +08:00
fengzero 0fed83398e read/write 2 tags for demo 2021-09-13 17:41:42 +08:00
fengzero bb4ebdd75e refactor api server, add datatag api
use different server process api and web
rename tags field
merge json read/write
2021-09-07 16:56:33 +08:00
fengzero 288175996c Add plugin cmd function
add NEU_REQRESP_GET_SELF_NODE_ID cmd
add get_datatags_table func
define neu_addt_str_t
fix compile warning
add magic number and check function in neu_plugin_common_t
2021-09-02 11:22:51 +08:00
gc87 6872879c22 Add tags operation api
Modify modbus-tcp read and write type
2021-08-31 18:41:45 +08:00
fengzero 152302f68b del macro DEMO, find read/write tag from group config 2021-08-30 18:14:33 +08:00
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