Commit Graph

44 Commits

Author SHA1 Message Date
lixiumei ec0c8a1889 Fixing warnings in CI compilation 2022-04-15 08:13:09 +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
eeff c59f09028e Revert "Make sample app plugin send license get value command"
This reverts commit a89fae19db.
2022-03-11 23:39:24 +08:00
eeff 082ffd4af5 Revert "Make sample app plugin handle NEU_REQRESP_UPDATE_LIC request"
This reverts commit dd0bd8a448.
2022-03-11 23:38:23 +08:00
eeff dd0bd8a448 Make sample app plugin handle NEU_REQRESP_UPDATE_LIC request 2022-03-01 12:22:24 +08:00
eeff a89fae19db Make sample app plugin send license get value command 2022-02-28 16:09:14 +08:00
Parker Liu ebb533ce61 Fix the sample app can not be normal exiting when exit neuron 2022-01-21 14:33:35 +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
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
fengzero e4f947f2d2 install plugin to lib/neuron, install public header to include/neuron 2021-12-29 17:10:10 +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
Parker Liu 8b78fef7db Fix issue of failed building arm32/arm64 target for simulator 2021-12-09 14:05:53 +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
Parker Liu be83f83101 Send a exit message to a node that should be stoped 2021-11-23 12:14:53 +08:00
alvin1221 616d2cebc2 format plugin_sample_app.c 2021-11-17 14:45:39 +08:00
alvin1221 7d5522630d Support cross compile & Fix incompatible errors 2021-11-16 22:28:12 +08:00
Parker Liu 5eacdf938d Fix memory leak issue in serial/deserial data value 2021-10-19 16:43:05 +08:00
fengzero e41594f6c1 api server: support CORS 2021-10-15 02:28:39 +00: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
Parker Liu 940acfd3f6 Improve the implementation of set/get functions in data value 2021-09-28 17:22:25 +08:00
Parker Liu e6ff008086 Add response message and support result of array for read/write
* Add support MSG_DATA_READ_RESP/MSG_DATA_WRITE_RESP in adapter
  for read/write data
* Add NEU_REQRESP_READ_RESP/NEU_REQRESP_WRITE_RESP in core manager
  for read/write data
* Add return result of array in sample driver plugin for read/write data
* Add handle result of array in sample app plugin for read/write data
2021-09-28 12:08:43 +08:00
Parker Liu 3b369acf25 Add send subscribe node message when Add default group configs 2021-09-26 17:15:59 +08:00
Parker Liu ba89625545 Switch to neu_data_val_t in sample plugin for read and write 2021-09-26 15:06:05 +08:00
gc87 5898c2ab8e Add cyclic reading support and subscription support 2021-09-24 16:10:03 +08:00
Parker Liu 74f1c33968 Add periodic read command and subscribe/unsubscribe driver command
* Add commands for start/stop periodic read and support in manager
* Add commands for subscribe/unsubscribe driver and support in manager
* Add commands for group config changed and support in manager
2021-09-16 19:12:05 +08:00
Parker Liu 1e7264f4a7 Add a standalone CMakeLists file for sample plugins 2021-09-16 11:50:31 +08:00
Parker Liu 94aed75898 Add functions of add/del/update/get plugin lib for plugin lib
* Add functions of add/del/update/get plugin lib in plugin_manager.c
* Add command of add/del/update/get plugin lib in adapter.c
2021-09-03 19:21:52 +08:00
fengzero be1d8919b5 Add plugin cmd function
add/del/update/get node
add/del/update/get group config
send read/write cmd
response trans data
get self node id
2021-09-02 15:56:30 +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
Parker Liu 7d6cd69c2e Add a waiting for get group configs in sample app plugin 2021-08-27 16:47:14 +08:00
Parker Liu 0013a64ba3 Fix issue of mqtt plugin can't get databuf response from driver
* Sometimes add subscription pipe to group config will be executed before
  bind adapter, the wrong pipe will be subscribe in group config. So we
  wait for complete binding adapter and then add subscription pipe.
* Fix issue of failed to build with gcc 10.3.0
2021-08-26 14:26:33 +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
gc87 11f7141af2 Improve MQTT driver and Variable
1. Variable array serialization and deserialization support
2. Variable basic data type setting
3. Variable export function unit test
4. Integrate MQTT and Variable
5. Delete the work queue in the MQTT driver
2021-08-25 12:10:30 +08:00
Parker Liu f14dadb4e3 Add support sync command of add/del/update node and group config
* Support these sync command in adapter.c
* Add some interface functions in neu_manager.c to support these command
* Add enum type of error code for neuron
2021-08-24 19:21:57 +08:00
Parker Liu c5681f6dfc Add sample code for get nodes/grp_configs/tagtable command
* Move source files of datatag table and tag group config to base
* Fix memleak when execute command of get nodes/grp_configs/tagtable
2021-08-20 15:48:24 +08:00
Parker Liu 5ba72cefb6 Add a sender adapter id for command message
* Change the node_id to dst_node_id in plugin request
2021-08-19 16:12:46 +08:00
Parker Liu 401228fd36 Add support static plugin in plugin manager 2021-08-18 15:01:36 +08:00
gc87 1cd7b4877e Simple implementation of using MQTT commands to control the reading and writing of neuron drive data. 2021-08-15 08:08:36 +08:00
Parker Liu c791bc301a Add support write data command and dispatch transfer data
Support the write data command in sample plugin, adapter and manager.
Add the default subsribe pipes for dispatch transfer data.
2021-08-13 17:13:31 +08:00
Parker Liu 62b35e1285 Add some request/resposne/command for adapter and plugin
Add structure definition for request/response/command, add get nodes
function and get group configs function in manager.
2021-08-12 19:29:25 +08:00
Parker Liu e699329d14 Add sample app plugin and add message dispatcher
Add some message/request/event for improvement transfer data
2021-08-11 16:11:32 +08:00