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
lixiumei
8e2222c379
modbus read/write value
2021-09-28 12:07:39 +08:00
gc87
335b355d52
Add operation function of NEU_DTYPE_ERRORCODE type
...
- Add test case
2021-09-28 12:03:31 +08:00
fengzero
72a19cfeed
add subscribe/unsubscribe common function
2021-09-27 14:13:07 +08:00
fengzero
3a5d779e13
add bit type function, decode write req to val
2021-09-27 14:13:07 +08:00
fengzero
a9c18532ee
del add/update group config dst_node_id
2021-09-26 17:24:47 +08:00
fengzero
d25f93290e
fix json parse unit test
...
clang-format neu_types.h
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
gc87
eb00cc6070
Refactoring the OPC-UA driver
...
1. Simplify the code of read and write
2021-09-24 16:10:03 +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
f552b41253
Add forward subscribe/unsubscribe message to driver adapter
...
* Add vector_find_index/vector_find_item/vector_has_elem util function
for vector.
* Forward subscribe/unsubsribe message in manager, and make sure to
forward the subscribe/unsubsribe message only once.
2021-09-22 18:28:32 +08:00
fengzero
4f5e858146
modbus: add subscribe/unsubscribe reqeust and check for group config updates
2021-09-22 10:12:50 +08:00
fengzero
44f05110d2
refactor decode/encode json
...
decode buf to neu_data_val_t
encode neu_data_val_t to buf
compile yaml as a dynamic library
2021-09-22 10:12:50 +08:00
Parker Liu
05ee33fefe
Add unittest for serialize/deserialize int-val and string-val pair
2021-09-18 16:47:03 +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
Parker Liu
7b89528f85
Add anchor/unanchor functions for tag group config
2021-09-16 14:19:17 +08:00
lixiumei123
22c8ea8fdd
add plugin manager test ( #77 )
...
* add plugin manager test
* Plugin manager test add a check if the plugin_info is equal to param_update
2021-09-16 11:04:41 +08:00
fengzero
312d432569
fix use nng in plugins by linking dynamic libraries
...
clang-format message_handle
2021-09-16 10:14:08 +08:00
Parker Liu
8d14c5ec8c
Add get/set familly functions for cstr/string/bytes/array/vec
2021-09-15 19:02:28 +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
Parker Liu
8df731b7ce
Add a new data value type with serialize/deserialize function
...
* Add a structure for fixed array
* Add a structure for bytes
* Add unit test cases of neuron data type
2021-09-13 09:03:46 +08:00
gc87
112f9fe0f3
Add opcua plugin support
...
1. Update README.md
2. Update install-lib.sh
3. Add the key field to the variable
4. Use config to read
5. It works
2021-09-12 22:58:51 +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
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
1d974b7120
Add add/del/update/get plugin function
2021-09-07 16:56:33 +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
363a04e1c5
Add process msg macro
...
get nodes/config return vector_t
2021-09-03 11:22:13 +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
Parker Liu
31b158af53
Add a definition of NEU_PLUGIN_MAGIC_NUMBER for magic number of plugin
2021-09-02 12:07:36 +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
e1eeb63e1a
Add judgement of cplusplus in all header files of include
2021-08-30 14:36:44 +08:00
lixiumei
bc35514856
Add datatag table test
2021-08-30 11:39:53 +08:00
gc87
ef2b27a4a7
Improve variable interface
...
1. Add neu_variable_next interface
2. Add ubyte get/set interface
3. Add boolean get/set interface
4. Add word get/set interface
5. Add uword get/set interface
6. Add dword get/set interface
7. Add udword get/set interface
2021-08-27 17:06:26 +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
fengzero
2707499b17
remove tcp epoll, add modbus tcp plugin
...
send/receive data synchronously
2021-08-25 11:38:06 +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
fengzero
2abc5a6f27
Add tcp for connecting device and add modbus tcp plugin
...
*use epoll process tcp connection
*define modbus protocol struct and pack function
2021-08-24 11:52:22 +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
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
gc87
973e0b234f
Simple implementation of variable serialize and deserialize and Use list instead of vector to implement task queue.
2021-08-13 17:12:25 +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
Parker Liu
ae47b8e9ce
Add datatag manager and datatag group config
2021-08-06 18:31:51 +08:00
alvin1221
1ac8867c9b
Fix merge conflicts
2021-08-06 15:59:33 +08:00