UC100 – Configurable Properties
You can update a device's settings by modifying the configurable properties of its TSL model via API. This topic provides the configurable parameters for UC100 TSL model, their descriptions, and how to use them.
Usage
- Have an overview of the configurable properties and their default values of UC100.
- Copy the example code and remove the comments and parameters that do not require modification.
- Edit the desired properties according to the detailed properties
description.Note: Make sure that the edited example code complies with the JSON format requirements.
- Use the edited example code as the body parameters of Update Device Properties Incrementally.
Configurable properties
The following code represents all configurable properties in the UC100 TSL model, along with their default values.
- Click a property to view its detailed description and valid values.
- Configure the example code as needed, then use it as the body parameters of Update Device Properties Incrementally to save time and effort.
{
"properties": {
"reporting_interval": 1200, // The interval for data reporting (second).
"data_storage_enable": false, // Do NOT allow the device to store data.
"retransmission_enable": false, // Disable data retransmission.
"retransmission_interval":{ // The interval for data retransmission (second).
"interval":600
},
"retrival_interval":{ // The interval for data retrieval (second).
"interval": 60
},
"modbus_channel_1":[ // Default settings of channel 1.
{
"oper": false, // Disable channel 1.
"channel_id": 1, // Channel ID.
"name_len": 1, // Channel name length.
"name": "", // Channel name.
"slave_id": , // Slave ID.
"address": 1200, // Register start address.
"type": 0, // Data type.
"sign_bit": false // Set this channle as unsigned.
}
],
"modbus_channel_2":[ // Default settings of channel 2.
{
"oper": false,
"channel_id": 2,
"name_len": 1,
"name": "",
"slave_id": ,
"address": 1200,
"type": 0,
"sign_bit": false
}
],
... // Up to 32 channels are supported.
"modbus_channel_32":[ // Default settings of channel 32.
{
"oper": false,
"channel_id": 32,
"name_len": 1,
"name": "",
"slave_id": ,
"address": 1200,
"type": 0,
"sign_bit": false
}
]
}
}
Description
Parameter | Type | Description | ||
---|---|---|---|---|
reporting_interval | Integer |
Specify the interval for data reporting (Unit: Second).
|
||
data_storage_enable | Boolean |
Decide whether to allow the device to store data. Valid value:
|
||
retransmission_enable | Boolean |
Decide whether to enable data retransmission, which allows the device to log time point of network disconnection periodically resend the accumulated data during the disconnection period upon reconnection. Valid value:
|
||
retransmission_interval | Struct |
Note: This setting ONLY takes effect
when retransmission_enable is set to
The interval for data
retransmission.true . |
||
interval | Integer |
Specify the interval for data retransmission (Unit:
Second).
|
||
retrival_interval | Struct | The time interval for data retrieval | ||
interval | Integer |
Specify the time interval for data retrieval (Unit:
Second).
|
||
modbus_channel_1 | Array | Settings of channel ID 1. | ||
oper | Boolean | Whether to enable this channel. Valid value:
|
||
channel_id | Enum | Specify the channel ID. Default value: 1 |
||
name_len | Integer |
Specify the length for channel name.
|
||
name | String | Specify the channel name. | ||
slave_id | Integer | Specify the slave ID. | ||
address | Integer |
Specify the register start address.
|
||
type | Enum | Specify the data type. Valid value: Refer to Valid value – Channel data type. |
||
sign_bit | Boolean | Decide whether this channel is signed. Valid
value:
|
||
modbus_channel_2 | Array | Settings of channel ID 2. | ||
oper | Boolean | Whether to enable this channel. Valid value:
|
||
channel_id | Enum | Specify the channel ID. Default value: 2 |
||
name_len | Integer |
Specify the length for channel name.
|
||
name | String | Specify the channel name. | ||
slave_id | Integer | Specify the slave ID. | ||
address | Integer |
Specify the register start address.
|
||
type | Enum | Specify the data type. Valid value: Refer to Valid value – Channel data type. |
||
sign_bit | Boolean | Decide whether this channel is signed. Valid
value:
|
||
... | ||||
modbus_channel_32 | Array | Settings of channel ID 32. | ||
oper | Boolean | Whether to enable this channel. Valid value:
|
||
channel_id | Enum | Specify the channel ID. Default value: 32 |
||
name_len | Integer |
Specify the length for channel name.
|
||
name | String | Specify the channel name. | ||
slave_id | Integer | Specify the slave ID. | ||
address | Integer |
Specify the register start address.
|
||
type | Enum | Specify the data type. Valid value: Refer to Valid value – Channel data type. |
||
sign_bit | Boolean | Decide whether this channel is signed. Valid
value:
|
- Valid value – Channel data type
-
0
: Coil (Default value)1
: Discrete2
: Input Register(INT16_AB)3
: Input Register(INT16_BA)4
: Input Register(INT32_ABCD)5
: Input Register(INT32_BADC)6
: Input Register(INT32_CDAB)7
: Input Register(INT32_DCBA)8
: Input Register(INT32_AB)9
: Input Register(INT32_CD)10
: Input Register(FLOAT_ABCD)11
: Input Register(FLOAT_BADC)12
: Input Register(FLOAT_CDAB)
13
: Input Register(FLOAT_DCBA)14
: Holding Register(INT16_AB)15
: Holding Register(INT16_BA)16
: Holding Register(INT32_ABCD)17
: Holding Register(INT32_BADC)18
: Holding Register(INT32_CDAB)19
: Holding Register(INT32_DCBA)20
: Holding Register(INT32_AB)21
: Holding Register(INT32_CD)22
: Holding Register(FLOAT_ABCD)23
: Holding Register(FLOAT_BADC)24
: Holding Register(FLOAT_CDAB)25
: Holding Register(FLOAT_DCBA)