Commit Graph
74 Commits
Author SHA1 Message Date
eeff 5a30828af4 Revert "Add function neu_plugin_notify_event_update_lic"
This reverts commit 1838192023.
2022-03-11 23:38:23 +08:00
fengzero 7f3630626a tag option: parse the last identification character 2022-03-02 05:34:13 +00:00
eeff 1838192023 Add function neu_plugin_notify_event_update_lic 2022-03-01 12:22:24 +08:00
eeff 4aff210d0e Add function neu_plugin_send_lic_cmd 2022-02-28 16:09:14 +08:00
Parker Liu ea630e3739 Fix issue of failed to owner zero-length array/vector 2022-02-14 16:54:52 +08:00
fengzero 8650468b4f bit operations use the bit type 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 c4f6d8c710 unpack array 2022-02-09 17:43:22 +08:00
fengzero 3bc0dc3187 search group filter unanchored 2022-02-09 17:43:22 +08:00
fengzero 93a2b24680 add change string type function 2022-02-09 17:43:22 +08:00
fengzero f25ed185a3 float supports changing endianness 2022-02-09 17:43:22 +08:00
fengzero 11e2089d29 format 2022-01-24 11:16:26 +08:00
fengzero 6fee48aa69 add function pack tag value 2022-01-24 11:16:26 +08:00
fengzero 34bf8fe971 parse the public parameters of the tag address
. bit or string length
2022-01-24 11:16:26 +08:00
fengzero aa905c43b3 add a function to convert type to str 2022-01-24 11:16:26 +08:00
eeff 528d910340 Add functions for notifying tags event
1. Add neu_plugin_notify_event_add_tags
  2. Add neu_plugin_notify_event_del_tags
  3. Add neu_plugin_notify_event_update_tags
2022-01-21 18:58:34 +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
Parker Liu 28adc16926 Reformatting neu_data_expr.c and hash_table.c to pass CI 2022-01-17 17:38:47 +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
Parker Liu 6db6271d1c Fix memory leak issue when shared data value 2022-01-17 16:05:52 +08:00
fengzero 477a66a5ff fix conflicts when multiple threads access group config 2022-01-10 17:42:49 +08:00
Parker Liu 10c7aec8b6 Add function neu_datatag_tbl_to_vector for store datatag table 2022-01-10 16:45:51 +08:00
Parker Liu acb14bcdf3 Add shared data value mode for transfer data between adapters
* Add a function neu_dvalue_to_owned for owner all values in data value
  and sub data values in it.
* Add a neu_trans_buf struct for wrap shared data value and
  core_databuf.
* replace core_databuf with neu_trans_buf in read/write/transfer
  message.
2021-12-31 15:01:25 +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
eeff 4b6e9acc1e Fix datatag name uniqueness checking 2021-12-03 17:30:55 +08:00
eeff 3b606a10b4 Add neu_datatag_alloc and neu_datatag_free 2021-12-03 17:30:55 +08:00
eeff 5a40a66ac1 Refactor: variable renamning
Rename neu_datatag_table to datatag_table
2021-12-03 17:30:55 +08:00
eeff 019efe4d2c Add function neu_plugin_self_node_name 2021-11-30 09:58:49 +08:00
Parker Liu ae131c4da6 Fix building error in tcp_server/neu_plugin_common.c for macOS 2021-11-29 18:49:24 +08:00
Parker Liu dfeb5fb4a7 Add function neu_system_ref_group_config for reference a special group config 2021-11-26 18:37:56 +08:00
fengzero f839095692 api: node supports updating name 2021-11-24 14:49:21 +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
fengzero 2daa9f03e8 Add function test for tag, node state, node ctl and
subscribe/unsubscribe
2021-11-18 16:24:13 +08:00
fengzero 9948e0fd6f fix the node to which the subscribed config stored in the adapter belongs 2021-11-03 03:27:32 +00:00
fengzero 6dc62e1885 Add api: get sub group configs 2021-11-02 18:04:47 +08:00
Parker Liu dea8adb412 Fix issue of incorrect calculate size of array of cstr 2021-10-29 10:16:45 +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 bbb9bfc34c Add api: get node setting
store node settings in adapter
2021-10-26 15:31:40 +08:00
Parker Liu 0767be8347 Add definition of error codes 2021-10-25 18:34:35 +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
Parker Liu 43b5a2de80 Change val_data to p_val_data in value_data_serialize function 2021-10-21 10:21:22 +08:00
Parker Liu 597cf8a9da Fix issue of incorrect serialize primary value of array 2021-10-20 15:05:46 +08:00
Parker Liu e09f221616 Fix issue of incorrect free referenced value in neu_dvalue_uninit function 2021-10-20 09:42:06 +08:00
Parker Liu 5eacdf938d Fix memory leak issue in serial/deserial data value 2021-10-19 16:43:05 +08:00
fengzero 5ba8e31494 fix the occasional crash of the read and write api
add api handle ctx to the list before sending cmd
2021-10-19 14:38:29 +08: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
Parker Liu f57880ec89 Improve the implementation of serialize/deserialize data value
* Fix some memory leak in serialize/deserialize function
* Modify unit test case for data value
2021-10-09 18:07:57 +08:00
Parker Liu fc8740dc75 Ad get value type function for data value 2021-10-08 11:33:56 +08:00
Parker Liu f431b27b9b Delete some abolition functions and add some functions for fix issue of
memory leaking

* Delete neu_dvalue_array_new and neu_dvalue_vec_new
* Delete set/get function for vec and array
* Add free sub data value in array and vector
2021-09-29 18:51:41 +08:00