80 Commits

Author SHA1 Message Date
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 15401a0711 connection: add log category 2022-06-16 08:09:05 +00:00
fengzero e93e517f95 refactor CmakeLists.txt 2022-06-15 09:45:07 +00:00
fengzero f44a8db699 plugin: remove argument in open() 2022-06-15 06:49:02 +00:00
fengzero 2d38ae5f50 refactor plugin interface config 2022-06-15 06:40:30 +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
fengzero 203328dffd copyright 2020-2022 2022-06-10 04:43:06 +00:00
fengzero dc65873e93 async process op msg 2022-06-10 04:43:06 +00:00
fengzero 5b24337575 format 2022-06-10 04:43:05 +00:00
fengzero 38a2652930 remove vector and data_expr 2022-06-10 04:43:05 +00:00
fengzero 27375c5d6c set/get setting 2022-06-10 04:43:05 +00:00
fengzero 3ba23ee65e refactor group subscribe 2022-06-10 04:43:05 +00:00
fengzero 4a1a34de43 simplify the plugin type to driver and app 2022-05-30 02:45:17 +00:00
fengzero 27d1f38b1c refactor modbus-tcp 2022-05-29 09:47:58 +00:00
fengzero a7781b63ce log: replace log with zlog 2022-05-28 09:27:52 +00:00
lixiumei ec0c8a1889 Fixing warnings in CI compilation 2022-04-15 08:13:09 +00:00
fengzero 82e061da4d move header to include/neuron 2022-04-07 08:44:04 +00:00
fengzero 45240126c9 In write msg, set the exact tag type 2022-04-01 08:40:18 +00:00
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