هذه الصفحة غير متوفرة حاليًا بلغتك المحلية. نحن نعمل جاهدين على إضافة المزيد من اللغات. شاكرين تفهمك ودعمك المستمر لنا.

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
On this page

Developing a Product Model Online

Updated on 2024-12-31 GMT+08:00

Overview

Before developing a product model online, you must create a product. When creating a product, enter information such as the product name, protocol type, data format, industry, and device type. The information will be used to fill in the device capability fields in the product model. The IoT platform provides standard models and vendor models. These models involve multiple domains and provide edited product model files. You can modify, add, or delete fields in the product model as required. If you want to customize a product model, you need to define a complete product model.

This topic uses a product model that contains a service as an example. The product model contains functions and fields in scenarios such as data reporting, command delivery, and command response delivery.

Procedure

  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 the button for adding a service.
  4. Specify Service ID, Service Type, and Description, and click OK.

    • Service ID: The first letter of the value must be capitalized, for example, WaterMeter and StreetLight.
    • Service Type: You are advised to set this parameter to the same value as Service ID.
    • Description: You can, for example, define the properties of light intensity (Light_Intensity) and status (Light_Status).

    After the service is added, define the properties and commands in the Add Service area. A service can contain properties and/or commands. Configure the properties and commands based on your requirements.

  5. Click the new service ID added in 4. On the page displayed, click Add Property. In the dialog box displayed, set the parameters and click OK.

    Parameter

    Description

    Property Name

    Use camel case, for example, batteryLevel and internalTemperature.

    Data Type

    • Integer: Select this value if the reported data is an integer value.
    • long: Select this value if the reported data is a long integer.
    • Decimal: Select this value if the reported data is a decimal. You are advised to set this parameter to Decimal when configuring the longitude and latitude properties.
    • String: Select this value if the reported data is a string or an enumerated value. Use commas (,) to separate values.
    • DateTime: Select this value if the reported data is a date or time.

      Property format examples: 2020-09-01T18:50:20Z and 2020-09-01T18:50:20.200Z

    • JsonObject: Select this value if the reported data is in JSON structure.
    • enum: Select this value if the reported data is enumerated values.

      If enumerated values are OPEN,CLOSE, property format examples include OPEN and CLOSE.

    • boolean: Select this value if the reported data is a Boolean value.

      Property format examples: true/false and 0/1

    • StringList: Select this value if the reported data is a string list.

    Property format examples: ["str1","str2","str3"]

    Access Permissions

    • Read: You can query the property through APIs.
    • Write: You can modify the property value through APIs.

    Value Range

    Set these parameters based on the actual situation of the device.

    Step

    Unit

    Figure 1 Adding a property - batteryLevel

  6. Click Add Command. In the dialog box displayed, set command parameters.

    • Command Name: You are advised to capitalize the full command name and use underscores (_) to separate words, for example, DISCOVERY and CHANGE_STATUS.
    • Command Parameters: Click Add Command Parameter. In the dialog box displayed, set the parameters of the command to be delivered and click OK.

      Parameter

      Description

      Parameter Name

      You are advised to start the name with a lowercase letter and capitalize the other words, example, valueChange.

      Data Type

      Set these parameters based on the actual situation of the device.

      Value Range

      Step

      Unit

      Figure 2 Adding a command - CHANGE_STATUS
    • Click Add Response Parameter to add parameters of a command response when necessary. In the dialog box displayed, set the parameters and click OK.

      Parameter

      Description

      Parameter Name

      You are advised to start the name with a lowercase letter and capitalize the other words, example, valueResult.

      Data Type

      Set these parameters based on the actual situation of the device.

      Value Range

      Step

      Unit

      Figure 3 Adding a command response parameter - valueAResult

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