OneNET supports users to upload data through TCP transparent transmission, making it possible for any protocol device to access OneNET. The device is connected to OneNET through TCP. After successful authentication, data interaction will be performed between the device and OneNET. Custom scripts are used in OneNET to analyze the data uploaded by the device and issue data to the device.
Long connection
User-defined script, supporting lua only
High flexibility
Support the transmission of device data through one connection
Restriction Item | Item | Over-limit Description |
---|---|---|
Number of scripts in product | 10 or less | |
Script file size | Less than 2M | |
Single script running memory | Less than 100kB | Discard data beyond the range |
Single script execution time | Less than 2ms | Discard data in case of timeout |
Traffic restriction | The length of the uplink/downlink data message of the device should not exceed 1k. | Discard data beyond the range |
TCP transparent transmission is not restricted due to its high flexibility. It is mainly suitable for user-defined protocols. It supports the interaction of any protocols according to user-defined scripts, and script modification and upload at any time. The protocol supports the transmission of data from multiple devices through one connection. Multiple devices can be connected in a centralized manner to upload and issue data. It is widely applied in smart meters such as smart power meters and smart water meters.