Updated on 2024-11-04 GMT+08:00

Exporting and Importing a Product Model

A product model can be exported from or imported to the IoT platform.

  • After a product is developed, tested, and verified, you can export the online defined product model to the local host.
  • If you have a complete product model (developed offline or exported from other projects or platforms) or use an Excel file to develop a product model, you can import the product model to the platform.

Exporting a Product Model

After a product is developed, tested, and verified, you can export the online defined product model to the local host.

  1. Access the IoTDA service page and click Access Console. Click the target instance card.
  2. In the navigation pane, choose Products. In the product list, click the name of a product to access its details.
  3. On the page displayed, click Export to export the product model to the local host.

    Figure 1 Product Model - Exporting a product model

Importing a Product Model

If you have a complete product model (developed offline or exported from other projects or platforms) or use an Excel file to develop a product model, you can import the product model to the platform.

The product model imported from the local host does not contain a codec. If the device reports binary code, go to the IoTDA console to develop or import a codec.

  • Import from Local
    1. Access the IoTDA service page and click Access Console. Click the target instance card.
    2. In the navigation pane, choose Products. In the product list, click the name of a product to access its details.
    3. On the Basic Information tab page, click Import from Local. In the dialog box displayed, load the local product model and click OK.
      Figure 2 Product - Uploading a product model
  • Import from Excel
    1. Access the IoTDA service page and click Access Console. Click the target instance card.
    2. In the navigation pane, choose Products. In the product list, click the name of a product to access its details.
    3. On the Model Definition tab page, click Import from Excel. In the product template downloaded, enter the service ID in the Device sheet and set parameters such as properties, commands, and events in the Parameter sheet. Import the Excel file and click OK.
      Figure 3 Product - Importing a product model using an Excel file