sim7020 data uploaded to onenet

Just before we recorded how access onenet, no concrete data analysis report, to achieve today reporting and analysis of the following data, based on AT commands sim7020C

 

The first is access, which the record can be a reference, and execute the following command to see the device online, but be aware that, after the return instruction to respond promptly, within 5 seconds, or else timeout

+ MIPLVER AT? 

AT + MIPLBOOTSTRAPPARA = 0 , 1     // After this command is determined to get version 2.1.1 version of the 

AT + MIPLCREATEEXT = " 183.230.40.40 " 


AT + MIPLADDOBJ = 0 , 3303 , 2 , 11 , 7 , 3              // Add property 

the AT + MIPLOPEN = 0 , 180 [                          // returns msgid after successful registration, 
                  
the AT + MIPLOBSERVERSP = 0 , msgid, . 1                // returns after a successful observerid 

the AT + MIPLOBSERVERSP = 0 , observerid,1             // Successful return discoverid 

the AT + MIPLDISCOVERRSP = 0 , discoverid, 1 , 34 is , " 5700; 5701; 5601; 5602; 5603; 5604; 5605 " 

Perform here, if normal, you will see the device online

 

Data reporting, using

AT+MIPLNOTIFY

 

 Upload follows

 

 In onenet platform to see the data as follows

 

 

Note: I was here before this operation, but this place can not view the data, I use the application management, it is that you can see in the web and mobile terminal, but later do not know why, next time, you can view it data may not be updated, or the details of the operation before I did not pay attention.

 

Here are a few places to be analyzed

First, the name of the object variable is already defined, where you can view the document IPSO-Smart-Objects-Starter-Pack

As follows:

 

 These have been defined herein, can not be used is not defined, and where the object corresponding to each small segment, a maximum value, minimum value,

 

 I have here, 5700; 5701; 5601; 5602; 5603; 5604; 5605 is in accordance with the 3303 here, it is reported, it needs corresponding to the corresponding reported, such as

  AT+MIPLNOTIFY=0,72459,3303,0,5601,4,2,10,0,0

I reported this to 5601, that is,  Min the Measured  Value

So I onenet list which will receive, I reported here is 10, the corresponding is 10, I put the minimum value set to 10

 

 最大值是65536,我是通过  AT+MIPLNOTIFY=0,72459,3303,0,5602,4,5,65536,0,0,发送到5602的,如图就是最大值

 

 

 

理解了这里,就可以根据数据按照需要,在应用那里对应了,应用其实就是app,跨平台,编辑好后,包括PC还有手机端,就可以在手机登录你的onenet,在运用中查看,关于应用的,这里不再详细些,比较简单,可以试试,比如我这里的

 

 我编辑的是手机端,只需要登录onenet手机端,在应用里面就可以看到,很简单实用

 

我这里给出三个很重要的手册,基本上可以搞得定SIM7020C,其他的按照自己需要去官网找

git上地址:   https://github.com/ChenChangXiong/NB-IOT

 

 

按照我这文档,应该不会有任何问题,轻松搞定SIM7020C,少走弯路,之前我第一次自己慢慢摸索,看了不少东西,算是搞定

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/ChenChangXiong/p/12102409.html