Commit Graph

33 Commits

Author SHA1 Message Date
eeff 019efe4d2c Add function neu_plugin_self_node_name 2021-11-30 09:58:49 +08:00
fengzero f839095692 api: node supports updating name 2021-11-24 14:49:21 +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 bd07258233 Rename the NEU_REQRESP_GET_NODE_STATE/NEU_REQRESP_NODE_STATE 2021-10-28 18:20:25 +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
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 21ddcf8bce api modify & plugin param schema
get node: add plugin_id in response
get plugin: add query param plugin_id
2021-10-21 08:53:36 +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
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
fengzero a9c18532ee del add/update group config dst_node_id 2021-09-26 17:24:47 +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
Parker Liu f4ad674df0 Add support subscribe/unsubscribe node in adapter and other functions
* Add subscribe/unsubscribe node in command and request interface.
* Add neuron request structure for subscribe/unsubscribe node.
* Add subscribe node before enter message loop.
* Add unsubscribe node after exit message loop.
* Add compare function for primitive value.
2021-09-23 18:17:39 +08:00
Parker Liu 19aaceadda Add int-val and string-val pair structue for data value
* Add neu_int_val_t and neu_string_val_t structures and functions
* Add functions for set/get int-val and string-val in data value
* Add functions for supoort serial/deserial int-val and string-val
2021-09-17 19:59:02 +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
fengzero 07e9b226cf Add node/group config api
support add/del/update/get
rename group config json field
2021-09-09 22:07:00 +08:00
lixiumei 93a090ea95 Add plugin json parse 2021-09-09 10:22:29 +08:00
lixiumei 342841d624 add adapter json parse and test 2021-09-07 18:05:49 +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 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 437ae67c47 Add message NEU_REQRESP_GET_DATATAGS for get datatag table
* Add two message NEU_REQRESP_GET_DATATAGS and NEU_REQRESP_DATATAGS
* Add get datatag table function in bus manager and datatag manager
2021-08-19 18:47:35 +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 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
gc87 4ad524d908 Format code. 2021-07-23 11:15:15 +08:00
gc87 fe61a75f8e Add stdint reference. 2021-07-23 10:51:09 +08:00
Parker Liu 34f2663033 Change the source code style by clang-format 2021-07-22 18:55:24 +08:00
Parker Liu 9eded28ee5 Add some message types and reqresp types for read data from plugin 2021-07-16 14:41:21 +08:00
Parker Liu a3eeb5971e add neuron core framework files 2021-07-16 14:41:21 +08:00