Skip to content

Create Device Model

A device model is a digital representation of an end device in the cloud, abstracting the common characteristics of the device into a data model, using attributes to define the device and the information it can provide externally.

This article introduces the steps to create a device model. The process is as follows:

  1. Go to the edge unit details page and select Edge Resources -> Device Models from the left menu.

  2. Click the Create Device Model in the upper right corner of the end device list.

  3. Fill in the basic information.

    • Model Name : A combination of lowercase letters, numbers, hyphens (-), and dots (.), with no consecutive symbols, and it must start and end with a letter or number and contain up to 253 characters.
    • Protocol : DCE 5.0 Cloud Edge Collaboration supports the connection of various protocol devices, including Modbus.
    • Namespace : The resources in the namespace where the device is located are isolated from each other.
    • Description : Description information of the device model.
  4. Fill in the device configuration. You can add device Twin Attributes and Tag . Associated device instances can directly reference the model configuration.

    • Twin Attributes : Optional. It refers to the dynamic data of the end device, including proprietary real-time data, such as the on or off state of a light, temperature and humidity of sensors.
    • Tag : Optional. By tagging devices, different devices can be categorizes and managed.

    Adding Twin Attributes, Users can select the proper register type based on the device type and fill in the proper parameters. The parameter descriptions are as follows:

    • Name : Required. The attribute name of the device.
    • Type : Required. It includes string, int, float, boolean.
    • Access Mode : The access permission for the twin attribute of the device includes Read/Write, Read Only.
    • Unit : Optional. The attribute value unit.
    • Value Range : Limits the range of the acquired raw data.

Next step: Create End Devices

Comments