このページは、お客様の言語ではご利用いただけません。Huawei Cloudは、より多くの言語バージョンを追加するために懸命に取り組んでいます。ご協力ありがとうございました。

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Gateways and Child Devices

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

Overview

IoT devices can connect to IoTDA in two modes.

  • Directly connected devices: Devices directly connect to the platform using specified protocols.
  • Indirectly connected devices: Devices that do not support the TCP/IP protocol stack cannot directly communicate with the platform and need to use gateways as media for data forwarding. Devices directly connected to the platform through MQTT can be used as gateways.

The following figure shows the relationship between directly connected devices and indirectly connected devices.

Figure 1 Gateways and child devices

Service Flow

You can use the APIs provided by IoT device SDKs to connect gateways and child devices to the platform. API names of SDKs vary depending on the language. For details, see IoT Device SDK (Java), IoT Device SDK (C), IoT Device SDK (C#), IoT Device SDK (Android), and IoT Device SDK Tiny (C).

Table 1 Service Flow

Child Device Management Process at the Application Side

Child Device Management Process at the Gateway Side

Figure 2 Child device management process at the application side

Figure 3 Child device management process at the gateway side

1. A user uploads the product model of a gateway to the platform and registers the gateway.

2. The gateway calls the authentication API to go online.

3. The user uploads the product model of a child device to the platform.

4. After the gateway authentication is successful, an application calls the API for creating a device. (The device information entered in the API request must be consistent with that defined in the product model). After the child device is added, the user can view it on the console. For details, see Viewing a Child Device. The user can also add child devices on the console. For details, see Adding a Child Device on the Platform.

4. After the gateway authentication is successful, the gateway calls the API described in Platform Notifying a Gateway of New Child Device Connection. (The device information entered in the API request must be consistent with that defined in the product model). After the processing is complete, the platform sends the processing result to the gateway through the API described in Platform Responding to a Request for Adding Child Devices.

5. The status of the newly added child device is still displayed as Inactive on the console. This is because the gateway has not reported the latest status of the child device to the platform. Call the API described in Gateway Updating Child Device Status after the child device is added or before the child device reports data.
NOTE:

The status of a child device indicates whether the child device is connected to the gateway, and the gateway reports the status to the platform for status updates. If the gateway cannot report the status of a child device, the child device status is not updated on the platform. For example, after a child device connects to the platform through a gateway, the child device status is displayed as online. If the gateway is disconnected from the platform, the gateway can no longer report the child device status and the platform will consider the child device online.

6. The gateway calls the API described in Gateway Reporting Device Properties in Batches to report the data of the child device. The parameters in the API request are the information about the gateway and the child device.

7. The gateway subscribes to a topic for command delivery, and receives and processes commands delivered by the application or platform.

8. The application calls the API for deleting a device to command the gateway to delete the child device. The gateway deletes the device upon receiving the command.

8. The gateway calls the API described in Gateway Requesting for Deleting Child Devices. After receiving the request, the platform processes the data and sends the result to the device through the API described in Platform Responding to a Request for Deleting Child Devices.

Connecting a Gateway to the Platform

Connect a gateway to the platform by integrating the gateway with the SDK. For details, see Indirectly Connecting to the Platform.

Adding a Child Device on the Platform

  • Method 1

    After the gateway is connected to the platform, call the API Creating a Device to connect the child device to the platform.

  • Method 2

    Access the IoTDA service page and click Access Console. Click the target instance card. In the navigation pane, choose Devices > All Devices. On the device list, click a gateway to access its details page. On the Child Devices tab page, click Add Child Device.

    Figure 4 Device - Adding a child device

Viewing a Child Device

  1. Access the IoTDA service page and click Access Console. Click the target instance card.
  2. In the navigation pane, choose Devices > All Devices. In the device list, click View in the row of a gateway to access its details.
  3. On the Child Devices tab page, view the status, device ID, and node ID of the child devices connected to the platform through the gateway.
  4. Click View in the row of a child device to view its details.

    Figure 5 Device - Child device details

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback