Commit Graph

58 Commits

Author SHA1 Message Date
fengzero 4be9539c6f rename module name 2022-03-17 10:46:16 +00:00
fengzero e83c4253ba optimize neuron running directory
neuron
  /config/neuron.yaml
  /config/public.pem
  /config/private.key
  /plugins/xxx.so
  /plugins/schema/xxx.json
2022-03-17 07:20:44 +00:00
fengzero d375e69ebf uninstall plugin 2022-03-17 02:14:05 +00:00
fengzero 1e5c34e2c1 del connection_mode in modbus schema 2022-03-02 05:34:13 +00:00
fengzero ecfab3e6b5 del the global schema, each driver maintains its own schema 2022-03-02 05:34:13 +00:00
eeff b845b61175 Fix modbus_tcp_config memory leak 2022-02-21 10:17:09 +08:00
fengzero 75474e3def error codes classify 2022-02-11 11:54:13 +08:00
fengzero e70c72e043 remove opcua errorcode 2022-02-11 11:54:13 +08:00
fengzero 84accdf861 Delete the first errorcode in the read/write result 2022-02-11 11:54:13 +08:00
fengzero ef78632f50 ft: modbus and mqtt network exception 2022-02-09 17:43:22 +08:00
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