Create End Device¶
End device can be connected to edge nodes and support access via the Modbus protocol. Once an end device is connected, it can be managed centrally in the cloud management plane.
This article describes the steps to create end device and bind them to edge nodes.
Create an End Device¶
Follow these steps to create an end device:
-
Navigate to the edge unit details page and select Edge Resources -> End Devices from the left menu.
-
Click the Create Device button located at the top right corner of the end device list.
-
Fill in Basic Information .
- Device Name : Use a combination of lowercase letters, numbers, hyphens (-), and periods (.). Avoid consecutive symbols and ensure the name starts and ends with a letter or number. It can have a maximum of 253 characters.
- Namespace : Specify the namespace where the device resides. Namespaces help isolate resources from each other.
- Device Model : The associated device model.
- Protocol : The protocol of the associated device model will be automatically filled in and cannot be modified here.
- Description : Provide a brief description of the device.
-
Fill in Device Settings , and you can click Add Twins and Tag .
- Twin Attributes : Optional. Refers to the dynamic data of the end device, including proprietary real-time data such as the on/off state of a light, temperature, and humidity readings from a sensor.
- Tag : Optional. Classify and manage different device by assigning labels to them.
To add twins attributes, you can select the corresponding register type based on the device type and fill in the corresponding parameters. The parameter descriptions are as follows:
- Attribute Name : Required. The device attribute name.
- Desired Value : Optional. The desired value of the attribute, which can be filled when the access permission is Read or Write.
- Collection Interval : Optional. The interval at which data is collected from the device.
- Report Cycle : Optional. The interval at which data is reported from the device.
- Visitors : The method used to access the device attribute must be consistent with the mapper's access method when the platform is connected to the device.
-
Fill in Access Settings .
The access parameters for the platform to connect to the device should be provided in YAML format as follows:
-
Verify that the configured information is correct, then click OK to complete the device creation.
Binding End Device to Edge Nodes¶
An end device can be associated with only one edge node. Once the device is bound to a node, applications deployed on that node can access real-time data from the device using the device twin created in the cloud.
The steps are as follows:
-
Go to the edge unit details page and select the left menu Edge Resources -> End Devices .
-
On the right side of the end device list, click the ┇ button and select Bind Node from the popup menu.
-
In the dialog box, select the node to bind and click OK to complete the binding of the edge node.
Next step: Manage End Device