<
From version < 53.28 >
edited by Xiaoling
on 2023/08/02 14:57
To version < 53.25 >
edited by Xiaoling
on 2023/08/02 14:46
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -4,6 +4,7 @@
4 4  {{toc/}}
5 5  
6 6  
7 +
7 7  = 1. The use of this guideline =
8 8  
9 9  
... ... @@ -20,8 +20,6 @@
20 20  |1NCE| | |
21 21  |China Mobile| | |
22 22  
23 -
24 -
25 25  == 2.1 1NCE SIM Card. ==
26 26  
27 27  
... ... @@ -106,9 +106,9 @@
106 106  [[image:image-20230802112413-7.png]]
107 107  
108 108  
109 -=== 3.3.2 Simulate with MQTT.fx ===
108 +== 3.3.2 Simulate with MQTT.fx ==
110 110  
111 -==== 3.3.2.1 Establish MQTT Connection ====
110 +=== 3.3.2.1 Establish MQTT Connection ===
112 112  
113 113  
114 114  After we got MQTT Credentials, we can first simulate with PC tool MQTT.fx tool to see if the Credentials and settings are fine.
... ... @@ -125,11 +125,8 @@
125 125  
126 126  * (% style="color:#037691" %)**Password:**(%%) <Your ThingSpeak MQTT Password>
127 127  
127 +=== 3.3.2.2 Publish Data to ThingSpeak Channel ===
128 128  
129 -
130 -==== 3.3.2.2 Publish Data to ThingSpeak Channel ====
131 -
132 -
133 133  [[image:image-20230802112413-9.png]]
134 134  
135 135  [[image:image-20230802112413-10.png]]
... ... @@ -148,29 +148,28 @@
148 148  [[image:image-20230802112413-11.png]]
149 149  
150 150  
151 -=== 3.3.3 Configure NB-IoT Sensor for connection ===
147 +== 3.3 Configure NB-IoT Sensor for connection ==
152 152  
153 -==== 3.3.3.1 AT Commands: ====
149 +=== 3.3.1 AT Commands: ===
154 154  
155 155  
156 156  In the NB-IoT, we can run below commands so to publish the channels like MQTT.fx
157 157  
158 -* (% style="color:blue" %)**AT+PRO=3,1** (%%) ~/~/ Set to use ThingSpeak Server and Related Payload
154 +* **AT+PRO=3,1**   ~/~/ Set to use ThingSpeak Server and Related Payload
159 159  
160 -* (% style="color:blue" %)**AT+CLIENT=<Your ThingSpeak MQTT ClientID>**
156 +* **AT+CLIENT=<Your ThingSpeak MQTT ClientID>**
161 161  
162 -* (% style="color:blue" %)**AT+UNAME=<Your ThingSpeak MQTT User Name>**
158 +* **AT+UNAME=<Your ThingSpeak MQTT User Name>**
163 163  
164 -* (% style="color:blue" %)**AT+PWD=<Your ThingSpeak MQTT Password>**
160 +* **AT+PWD=<Your ThingSpeak MQTT Password>**
165 165  
166 -* (% style="color:blue" %)**AT+PUBTOPIC=<YOUR_CHANNEL_ID>**
162 +* **AT+PUBTOPIC=<YOUR_CHANNEL_ID>**
167 167  
168 -* (% style="color:blue" %)**AT+SUBTOPIC=<YOUR_CHANNEL_ID>**
164 +* **AT+SUBTOPIC=<YOUR_CHANNEL_ID>**
169 169  
166 +=== 3.3.2 Uplink Examples ===
170 170  
171 -==== 3.3.3.2 Uplink Examples ====
172 172  
173 -
174 174  For S31-NB
175 175  
176 176  For SE01-NB
... ... @@ -196,7 +196,7 @@
196 196  For SN50V3-NB
197 197  
198 198  
199 -==== 3.3.3.3 Map fields to sensor value ====
194 +=== 3.3.3 Map fields to sensor value ===
200 200  
201 201  
202 202  When NB-IoT sensor upload to ThingSpeak. The payload already specify which fileds related to which sensor value. Use need to create fileds in Channels Settings. with name so to see the value correctly.
... ... @@ -230,6 +230,7 @@
230 230  |(% colspan="1" style="background-color:#4f81bd; color:white; width:124px" %)mod5|(% colspan="1" style="width:91px" %)mod|(% colspan="1" style="width:102px" %)Battery|(% colspan="1" style="width:159px" %)RSSI|(% colspan="1" style="width:153px" %)DS18B20 Temp|(% colspan="1" style="width:152px" %)adc0|(% colspan="1" style="width:148px" %)exit_state/input PA4|(% colspan="1" style="width:164px" %)Weight|(% colspan="1" style="width:152px" %) |(% colspan="1" style="width:66px" %) |(% colspan="1" style="width:66px" %)
231 231  |(% colspan="1" style="background-color:#4f81bd; color:white; width:124px" %)mod6|(% colspan="1" style="width:91px" %)mod|(% colspan="1" style="width:102px" %)Battery|(% colspan="1" style="width:159px" %)RSSI|(% colspan="1" style="width:153px" %)count|(% colspan="1" style="width:152px" %) |(% colspan="1" style="width:148px" %) |(% colspan="1" style="width:164px" %) |(% colspan="1" style="width:152px" %) |(% colspan="1" style="width:66px" %) |(% colspan="1" style="width:66px" %)
232 232  
228 +
233 233  == 3.4 Datacake ==
234 234  
235 235  == 3.4.1 Define Product ==
... ... @@ -237,6 +237,7 @@
237 237  
238 238  Firstly, we need to set the MQTT mode to datacake, and we need to run(% style="color:blue" %)** AT+PRO=3,2**(%%). This command is set to datacake. After running the command, the device automatically sets the server address, port.
239 239  
236 +
240 240  By chosing to add the device under a (% style="color:blue" %)**"New Product"**(%%) you are required to give a name for this product. You can name it something like (% style="color:blue" %)**"My First MQTT Product"**.
241 241  
242 242  [[image:image-20230802112413-14.png]]
... ... @@ -454,6 +454,7 @@
454 454  
455 455  * (% style="color:#037691" %)**AT+PUBTOPIC=device name** (%%) ~-~-> 只需要 Device Name 吗?对的
456 456  
454 +
457 457  Users do not need to fill in the client, username, and password. But the configuration information of the device requires setting the client, username, and password, which can be entered freely. (软件自动填充为 Device Name 吧).这边不用提示了,客户不需要输入。(大部分客户还是会自己去设置这个的,提高安全性)
458 458  
459 459  (% style="color:blue" %)**CLIENT :“Any value”**
... ... @@ -509,6 +509,8 @@
509 509  
510 510  * **SUBTOPIC: “Any value”**
511 511  
510 +
511 +
512 512  === 3.7.2 Simulate with MQTT.fx ===
513 513  
514 514  
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0