当前位置:网站首页>Anxinco EC series modules are connected to the multi protocol access products of onenet Internet of things open platform
Anxinco EC series modules are connected to the multi protocol access products of onenet Internet of things open platform
2022-07-07 23:33:00 【Little river god is tangled】
Catalog
One 、OneNET Creation of multi protocol access
2. Switch to the old console :OneNET - Old version of IOT console
3. Create multi protocol access products
1. Platform connection elements
2.EC-01 Development board ready
3、 ... and 、 Instruction access
1. First EC-01F To complete network access :
Preface
Anxinco technology released a while ago NB-IoT Module ——EC Series modules . It also supports TCP、HTTP、MQTT And LwM2M agreement . especially LwM2M agreement , This is a WiFi What the module does not have .OneNET There is also a separate product creation of this Agreement on the platform , But this Agreement does not apply to WiFi Access to .
So here's the problem , If you want to use WiFi and EC Family modules also support access OneNet How to achieve ,OneNET In the old version of the platform , There are multiple protocol access ways to create products . For example, use MQTT Access Agreement , So you can use it WiFi Class direct connected devices and NB Class devices are connected at the same time .
This chapter will teach you how to multi protocol access OneNET Open platform of Internet of things .
One 、OneNET Creation of multi protocol access
1. Enter into OneNET Home page :OneNET - China Mobile Internet of things open platform , And go to the console :
2. Switch to the old console :OneNET - Old version of IOT console
3. Create multi protocol access products
4. Create device
Two 、EC-01 Access preparation
1. Platform connection elements
EC-01 Three elements are needed to access the created device :
- product ID, This article tests ID:485938
- equipment ID, This article tests ID:877672367
- Device authentication information , Equipment authentication in this paper :ec01test
product ID You can check it in the product overview :
equipment ID And authentication information can be found in : device details . see
2.EC-01 Development board ready
Anxinko's EC There are three development boards in the series , In line with the consistent stingy principle of the sufficient author , We choose EC-01F-Kit This development board :
The total required hardware equipment is :
- EC-01F-Kit Development board
- Mobile IOT network card 300M A year
- NB The antenna
On some treasure , The whole set is for sale , But here's the thing :
After the IOT network card is connected to the development board , You can't load other development boards , Otherwise, it will cause locking .
3、 ... and 、 Instruction access
1. First EC-01F To complete network access :
Only after successful network access , To access OneNET, The instruction flow related to network access is as follows :
2. Access OneNET
After successful network access , You can use AT Instruction access OneNET, The specific process is as follows :
- step 1: Use mqtt conf Command configuration cloud The type is OneNet
- step 2: Use mqtt open and mqtt connect establish mqtt Connect
- step 3: Use mqtt sub subscribe topic
- step 4: Use mqtt pub send data
- step 5: When mqtt server When sending data ,mqtt receive The command will be automatically received , And ”+ECMTRECV: XXX” Of Format , Print out
- step 6: Use mqtt disconnect Delete mqtt ConnectThe specific instructions are as follows :
// step 1: AT+ECMTCFG ="cloud",0,1,3 // step 2: AT+ECMTOPEN=0,"183.230.40.39",6002 // step 3:AT+ECMTCONN=0," equipment ID"," product ID"," Authentication information " AT+ECMTCONN=0,"877672367","485938","eec01test" // subscribe Topic Use it to receive the platform carefully AT+ECMTSUB=0,1,"test",2 // Publishing data streams AT+ECMTPUB=0,0,0,0,"$dp","{"ec_data":36,"es_data_str":"hello OneNET"}" // disconnect AT+ECMTDISC=0
The normal process is as follows :
Four 、 Data interaction
1. Data upload
Data upload uses release instructions :AT+ECMTPUB
The upload format is generally json Format , Instruction example :
AT+ECMTPUB=0,0,0,0,"$dp","{"ec_data":36,"es_data_str":"hello OneNET"}"
In this directive , Uploaded numerical data named :"ec_data", The value is :36;
The string type data name is :"es_data_str", The content of the string is :"hello OneNET"
The platform displays the result as :
2. Data reception
be familiar with MQTT Everyone who agrees knows , Want to receive data , All need to subscribe , Subscription requires Topic, however OneNET The products of multi protocol access are different , It has no Topic, So we can subscribe Topic, The instructions are as follows :
AT+ECMTSUB=0,1,"test",1
Directive :“test”, Namely Topic, Specific parameters can be found in the official website of Anxin docs see :https://docs.ai-thinker.com/_media/nb-iot/nb-ioAT Instruction set v1.0.pdf
OneNET The platform issues instructions :
5、 ... and 、 reminder
Article OneNET Platform equipment is test equipment , Post article , I will delete relevant devices , Please create your own products and equipment for testing ,AT The parameters of the instruction should be your own related parameters .
边栏推荐
- 【7.4】25. K 个一组翻转链表
- LDO穩壓芯片-內部框圖及選型參數
- Given an array, such as [7864, 284, 347, 7732, 8498], now you need to splice the numbers in the array to return the "largest possible number."
- UE4_ Ue5 panoramic camera
- Entity层、DAO层、Service层、Controller层 先后顺序
- 云原生数据仓库AnalyticDB MySQL版用户手册
- Adrnoid Development Series (XXV): create various types of dialog boxes using alertdialog
- 系统架构设计师备考经验分享:论文出题方向
- MATLAB signal processing [Q & A essays · 2]
- How to generate unique file names
猜你喜欢
SAP HR 家庭成员信息
MATLAB signal processing [Q & A essays · 2]
漏洞复现----49、Apache Airflow 身份验证绕过 (CVE-2020-17526)
高效的S2B2C电商系统,是这样帮助电子材料企业提升应变能力的
RE1 attack and defense world reverse
LeeCode -- 6. Zigzag transformation
Installing spss25
2022注册测绘师备考开始 还在不知所措?手把手教你怎么考?
Cloud native is devouring everything. How should developers deal with it?
Senior programmers must know and master. This article explains in detail the principle of MySQL master-slave synchronization, and recommends collecting
随机推荐
Count the top 10 films at the box office and save them in another file
POJ2392 SpaceElevator [DP]
S2b2b mall solution of intelligent supply chain in packaging industry: opening up a new ecosystem of e-commerce consumption
FPGA basics catalog
Vs extension tool notes
SAP HR 劳动合同信息 0016
ROS2专题(03):ROS1和ROS2的区别【01】
产业共融新势能,城链科技数字峰会厦门站成功举办
Design and implementation of spark offline development framework
How to login and enable synchronization function in Google browser
windows设置redis开启自动启动
UE4_ Use of ue5 blueprint command node (turn on / off screen response log publish full screen display)
云原生正在吞噬一切,开发者该如何应对?
家用电器行业渠道商协同系统解决方案:助力家电企业快速实现渠道互联网化
系统架构设计师备考经验分享:论文出题方向
As a new force, chenglian premium products was initially injected, and the shares of relevant listed companies rose 150% in response
在软件工程领域,搞科研的这十年!
Summary of SQL single table query 2020.7.27
Solution: prompt "unsupported video format" when inserting avi format video into the message
The text editor of markdown class should add colors to fonts (including typora, CSDN, etc.)