Commit Graph

28 Commits

Author SHA1 Message Date
fengzero 96940eb3be add read/write api
support bit/int16/uint16/int32/uint32/float
2021-10-18 14:53:24 +08:00
lixiumei ee75b3c09b Perfection modbus read/write error code 2021-09-30 14:31:53 +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
lixiumei 8e2222c379 modbus read/write value 2021-09-28 12:07:39 +08:00
fengzero d25f93290e fix json parse unit test
clang-format neu_types.h
2021-09-26 17:24:47 +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
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 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
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 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
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 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 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
Parker Liu 520130243d Change the config of clang-format for AlignAfterOpenBracket 2021-08-03 14:48:57 +08:00
alvin1221 aed38e0942 Add datatag_table APIs 2021-07-29 16:54:09 +08:00
Parker Liu 34f2663033 Change the source code style by clang-format 2021-07-22 18:55:24 +08:00
Parker Liu c7e9b1f8d6 Add plugin manager file 2021-07-22 18:44:21 +08:00
Parker Liu a3eeb5971e add neuron core framework files 2021-07-16 14:41:21 +08:00