<
From version < 53.26 >
edited by Xiaoling
on 2023/08/02 14:49
To version < 53.30 >
edited by Xiaoling
on 2023/08/02 15:05
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -4,7 +4,6 @@
4 4  {{toc/}}
5 5  
6 6  
7 -
8 8  = 1. The use of this guideline =
9 9  
10 10  
... ... @@ -21,6 +21,8 @@
21 21  |1NCE| | |
22 22  |China Mobile| | |
23 23  
23 +
24 +
24 24  == 2.1 1NCE SIM Card. ==
25 25  
26 26  
... ... @@ -105,9 +105,9 @@
105 105  [[image:image-20230802112413-7.png]]
106 106  
107 107  
108 -== 3.3.2 Simulate with MQTT.fx ==
109 +=== 3.3.2 Simulate with MQTT.fx ===
109 109  
110 -=== 3.3.2.1 Establish MQTT Connection ===
111 +==== 3.3.2.1 Establish MQTT Connection ====
111 111  
112 112  
113 113  After we got MQTT Credentials, we can first simulate with PC tool MQTT.fx tool to see if the Credentials and settings are fine.
... ... @@ -124,8 +124,11 @@
124 124  
125 125  * (% style="color:#037691" %)**Password:**(%%) <Your ThingSpeak MQTT Password>
126 126  
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 +
129 129  [[image:image-20230802112413-9.png]]
130 130  
131 131  [[image:image-20230802112413-10.png]]
... ... @@ -144,14 +144,14 @@
144 144  [[image:image-20230802112413-11.png]]
145 145  
146 146  
147 -== 3.3 Configure NB-IoT Sensor for connection ==
151 +=== 3.3.3 Configure NB-IoT Sensor for connection ===
148 148  
149 -=== 3.3.1 AT Commands: ===
153 +==== 3.3.3.1 AT Commands: ====
150 150  
151 151  
152 152  In the NB-IoT, we can run below commands so to publish the channels like MQTT.fx
153 153  
154 -* (% style="color:blue" %)**AT+PRO=3,1** (%%) ~/~/ Set to use ThingSpeak Server and Related Payload
158 +* (% style="color:blue" %)**AT+PRO=3,1** (%%) ~/~/ Set to use ThingSpeak Server and Related Payload
155 155  
156 156  * (% style="color:blue" %)**AT+CLIENT=<Your ThingSpeak MQTT ClientID>**
157 157  
... ... @@ -164,10 +164,9 @@
164 164  * (% style="color:blue" %)**AT+SUBTOPIC=<YOUR_CHANNEL_ID>**
165 165  
166 166  
171 +==== 3.3.3.2 Uplink Examples ====
167 167  
168 -=== 3.3.2 Uplink Examples ===
169 169  
170 -
171 171  For S31-NB
172 172  
173 173  For SE01-NB
... ... @@ -193,7 +193,7 @@
193 193  For SN50V3-NB
194 194  
195 195  
196 -=== 3.3.3 Map fields to sensor value ===
199 +==== 3.3.3.3 Map fields to sensor value ====
197 197  
198 198  
199 199  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.
... ... @@ -229,7 +229,7 @@
229 229  
230 230  == 3.4 Datacake ==
231 231  
232 -== 3.4.1 Define Product ==
235 +=== 3.4.1 Define Product ===
233 233  
234 234  
235 235  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.
... ... @@ -244,7 +244,7 @@
244 244  
245 245  In the second step you have to define the device which should be added to the product.
246 246  
247 -[[image:image-20230802112413-15.png]]
250 +[[image:image-20230802112413-15.png||height="859" width="1290"]]
248 248  
249 249  Enter a name here (such as "My First MQTT Device") and complete the creation of the device by clicking on the (% style="color:blue" %)**"Next"**(%%) button.
250 250  
... ... @@ -256,15 +256,15 @@
256 256  
257 257  You will then see a device view with an empty dashboard. Now, the first thing we want to do is navigate to the Device configuration. To do this, use the tab bar and click on (% style="color:blue" %)**"Configuration"**.
258 258  
259 -[[image:image-20230802112413-16.png]]
262 +[[image:image-20230802112413-16.png||height="495" width="1310"]]
260 260  
261 -[[image:image-20230802112413-17.png]]
264 +[[image:image-20230802112413-17.png||height="741" width="1303"]]
262 262  
263 263  To create a first database field, please click on the (% style="color:blue" %)**"Add Field"**(%%) button as marked in the screenshot above.
264 264  
265 265  This will open another modal asking for some required input for your first field.
266 266  
267 -[[image:image-20230802112413-18.png]]
270 +[[image:image-20230802112413-18.png||height="878" width="1305"]]
268 268  
269 269  [[image:image-20230802112413-19.png]]
270 270  
... ... @@ -300,10 +300,8 @@
300 300  
301 301  (% style="color:blue" %)**Subscribe**
302 302  
303 -Data is published according to the following structure:
306 +Data is published according to the following structure: **dtck~/~// **
304 304  
305 -dtck~/~//
306 -
307 307  Subscribe to topics using this structure to receive messages via MQTT when readings (via API or MQTT) arrive in the Datacake Cloud. Messages are published whenever there is a change to a corresponding database field.
308 308  
309 309  
... ... @@ -330,10 +330,8 @@
330 330  
331 331  To upload data into the Datacake Cloud and into a specific device, you publish the data to the respective topic structure.
332 332  
333 -Due to the nature of MQTT, the topic prefix differs as follows:
334 +Due to the nature of MQTT, the topic prefix differs as follows: (% style="color:blue" %)**dtck-pub~/~//**
334 334  
335 -dtck-pub~/~//
336 -
337 337  (% style="color:blue" %)**example:**
338 338  
339 339  AT+SUBTOPIC=dtck/nbmattest/936c0db6-e9a5-4353-9fdb-3f63c8bfce7e/Temperature
... ... @@ -506,7 +506,6 @@
506 506  
507 507  * **SUBTOPIC: “Any value”**
508 508  
509 -
510 510  === 3.7.2 Simulate with MQTT.fx ===
511 511  
512 512  
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0