Help Center/ IoT Device Access/ Getting Started/ Quick Device Access - Property Reporting and Command Receiving/ Connecting a Smart Smoke Detector to the Platform (Quick Usage)
Updated on 2024-11-04 GMT+08:00

Connecting a Smart Smoke Detector to the Platform (Quick Usage)

Scenarios

You can use device data collection and command receiving with a Windows or Linux PC as a virtual device. This section uses a virtual smart smoke detector as an example to describe how to connect a device to the platform, enable the device to report data, and deliver commands from the platform to the device.

Prerequisites

  • You have registered a Huawei Cloud account. If you have not registered, click here to complete the registration.
  • You have subscribed to the IoTDA service. If you have not subscribed to the service, go to the IoTDA service page, and click Access Console to subscribe to the service.

Procedure

  1. Access the IoTDA service page and click Access Console. Click the target instance card.
  2. In the navigation pane, choose Overview and click Start to start the experience.

    Figure 1 Start

  3. A smart smoke detector model has been predefined for the quick usage. On the displayed page, check the properties and commands of the model and click Create Product.

    Figure 2 Quick experience - Creating a product

  4. Create a virtual smart smoke detector. Customize the node ID and device name. Click Register Device.

    Figure 3 Quick experience - Registering a device

  5. Select a device demo package as required.

    Figure 4 Quick experience - Selecting a device demonstration package

  6. Click Download Demo Package and decompress the package as prompted. Run the huaweicloud-iot-device-quickstart.exe command. If the device status changes from Inactive to Online and properties such as the temperature have reported values, the device has been connected to the platform.

    Figure 5 Quick experience - Configuring the simulated device
    Figure 6 Quick experience - Simulating device status changes

  7. Set setReportingFrequency (property reporting frequency). Click Deliver Command to deliver the new reporting frequency to the device. Check the update speed of the reported property values before and after the setting.

    Figure 7 Quick experience - Setting device property reporting frequency

Advanced Experience

By following the instructions in this section, you may have understood how to connect a device to the platform and related concepts.

You can customize a product and use a virtual device and simulated application to use the basic functions and perform development on the platform. For details, see Registering a Simulated Smart Street Light Device.