4G module DTU gateway access platform series tutorial (1): OneNET platform access tutorial details

4G module DTU gateway ZL-LTE series OneNET platform connection tutorial (MQTT new version)

Today, I will introduce the first part of a series of tutorials on how to connect the DEVELOPLINK device DTU ZL-LTE-300 to the platform through the MQTTS function, the OneNET platform access tutorial. There are also access tutorials for Alibaba Cloud, Tencent Cloud, and Baidu Cloud.
————————————————————————————————————————
Interested in IoT technology, please join us Group, welcome various technical exchanges, QQ group: 830407941 If you
are interested in our products, please check Taobao, free custom project
DEVELOPLINK ____DTU
DEVELOPLINK ____Air724 core board
———————————————————— ————————————————————

1. Account and login

1. Account registration

1.1 Account registration is a prerequisite for using the functions and services of the OneNET platform. The account registered on OneNET is applicable to all services of the OneNET system. Fill in the real information and perform authentication

Insert picture description here

1.3 After the registration is completed, you will automatically return to the homepage and log in to your account through the entrance in the upper right corner

Insert picture description here

2 Account authentication

2.1 Account authentication

OneNET provides two authentication methods: enterprise authentication and personal authentication. You can choose one method for authentication according to actual needs.

verification method Suitable Certification time
Enterprise Certification Applicable to enterprises, individual industrial and commercial households, institutions, social organizations, etc. Certification through business license, organization code certificate and other relevant qualifications The certification requires manual review. The certification will be submitted during working hours and completed within 24 hours; if submitted during non-working hours, the certification will be completed within the next working day
Personal authentication Suitable for personal development enthusiasts, authenticated by personal ID The comparison table of OneNET service products affected by real-name authentication is as follows, please choose the authentication method according to the actual usage.

Different authentication levels have different resource usage rights

verification method Total number of products allowed to be created Total number of connected devices for each product
No real-name authentication 3 10
Complete personal verification 10 1000
Complete corporate certification No limit No limit

2.2 After the authentication is completed, click "Developer Center" in the upper right corner to enter the OneNET service console

Insert picture description here
Insert picture description here

2. Products and equipment

1. Create a product

In order to use OneNET's IoT suite functions and services, you need to create products on the OneNET platform

1.1 Login

Use OneNET account to log in to the developer center

Insert picture description here

Enter the MQTT IoT suite through the product navigation in the left column

Insert picture description here

1.2 Create a product

Click Add Product in the upper right corner and follow the prompts on the pop-up page to fill in the basic information of the product to create the product; please follow the prompts to fill in the corresponding content as completely and comprehensively as possible, which will make it easier for you to manage the product later

Insert picture description here

Insert picture description here

Click OK to complete the product creation

Insert picture description here

2. Automatic device creation

Insert picture description here

Token generation tool link: https://open.iot.10086.cn/doc/mqtt/book/manual/auth/tool.html

  • (1) Open the token generation tool token.exe

Insert picture description here

  • (2) Fill in the corresponding parameters and click generate (among which, please refer to the token algorithm for the parameter filling method )

Insert picture description here

  • Timestamp:

Insert picture description here

  • aceess_key acquisition:

Insert picture description here

  • The token is generated as follows:

Insert picture description here
Insert picture description here

Insert picture description here

###3. Manually create a device

3.1 Click on the product information in the product list to enter the product details

Insert picture description here

Insert picture description here

3.2 Click on the device list on the left , enter the device list, click on the right to add a device

Insert picture description here

3.3 Edit the device name and device description, click Add to finish adding the device

Among them, the device name is the unique identification code (IMEI code) of the DTU device + the serial port channel number, which is unique under this product

Insert picture description here

Insert picture description here

Insert picture description here

Three, equipment connection

1. Device access

This article will introduce how to use MQTT.fx for device access through examples

According to Quick Start to create a product and create a device description, create MQTTS products, and create device

Device details:

Insert picture description here
Insert picture description here

Insert picture description here

In this example, the related parameters of device access are as follows:

Product****ID Equipment name Device key
651033086 8674350******971 cx4K0vERguW5+pzWHX6cklo2ts321ygPl0WzUalm1v4=

Insert picture description here
Insert picture description here

2. Device connection

If the configuration is successful, at this time, the device in the platform console is in the "online" state

Insert picture description here

Four, upload data test

Now your device is connected to the OneNET platform. The last step, let's try if he can upload data through the serial port! (You can add the data stream template first, and then send the data to the data stream template. Or send the data directly)

1. Add data flow template

Insert picture description here

Insert picture description here

2. Send data

When sending to the OneONT platform, the OneJson format is required to be recognized by the platform

Insert picture description here

Select serial port 1, send data to test
Insert picture description here
Insert picture description here

Insert picture description here

For more details, please refer to the development document on OneNET official website.
————————————————————————————————————————
Interested in IoT technology, please join us Group, welcome all kinds of technical exchanges,
QQ group: 830407941 If you
are interested in our products, please check Taobao, free customized items:
DEVELOPLINK
Air724 DTU

Guess you like

Origin blog.csdn.net/sym_robot/article/details/110161585