This article describes how to use Thing Specification Language (TSL) models to achieve communication between devices and IoT Platform in multiple scenarios.


The following operations are performed:
  1. Create a product: Create a product in the IoT Platform console .
  2. Add a TSL feature or Batch add TSL features: Configure a TSL model for the product.
  3. Complete device-side development: Configure your device for TSL-based communication and connect the device to IoT Platform.


Notice If you use a custom TSL module, each feature in the TSL data must carry the identifier of the custom module. Format: module identifier:feature identifier.

For example, if you use the {tsl.functionBlockId} custom module, you must specify TSL features by using the following formats:

  • Properties: {tsl.functionBlockId}:{}.
  • Events: {tsl.functionBlockId}:{tsl.event.identifier}.
  • Services: {tsl.functionBlockId}:{tsl.service.identifier}.
  1. Submit device data. IoT Platform parses the data based on the Alink protocol.
    You can set properties, set desired property values, and call services in IoT Platform. For information about the data format that is defined by the Alink protocol, see Device properties, events, and services and Desired device property values.
  2. Verify data in IoT Platform: IoT Platform verifies the properties, events, and service call data that are submitted by devices. Service call data includes request parameters and call results. The verified data is displayed on the TSL Data tab of the Device Details page in the IoT Platform console .
  3. Optional:Configure server-side subscriptions or data forwarding. Your server can obtain device properties, events, property setting results, and service call results based on data forwarding rules.
    For information about data formats, see Data formats.