Last modified by Mengting Qiu on 2025/03/08 11:33
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Xiaoling1 +XWiki.Edwin - Content
-
... ... @@ -35,6 +35,7 @@ 35 35 |(% style="width:117px" %)China Mobile|(% style="width:151px" %)No need configure|(% style="width:474px" %)China Mainland, HongKong|(% style="width:135px" %) 36 36 |(% style="width:117px" %)China Telecom|(% style="width:151px" %)ctnb|(% style="width:474px" %)China Mainland|(% style="width:135px" %) 37 37 38 + 38 38 = 3. Configure to connect to different servers = 39 39 40 40 == 3.1 General UDP Connection == ... ... @@ -134,6 +134,7 @@ 134 134 135 135 * (% style="color:#037691" %)**Password:**(%%) <Your ThingSpeak MQTT Password> 136 136 138 + 137 137 ==== 3.3.2.2 Publish Data to ThingSpeak Channel ==== 138 138 139 139 ... ... @@ -163,7 +163,7 @@ 163 163 164 164 In the NB-IoT, we can run below commands so to publish the channels like MQTT.fx 165 165 166 -* (% style="color:blue" %)**AT+PRO=3,1** (%%) **~/~/ Set to use ThingSpeak Server and Related Payload**168 +* (% style="color:blue" %)**AT+PRO=3,1** (%%) ~/~/ Set to use ThingSpeak Server and Related Payload 167 167 168 168 * (% style="color:blue" %)**AT+CLIENT=<Your ThingSpeak MQTT ClientID>** 169 169 ... ... @@ -175,6 +175,7 @@ 175 175 176 176 * (% style="color:blue" %)**AT+SUBTOPIC=<YOUR_CHANNEL_ID>** 177 177 180 + 178 178 ==== 3.3.3.2 Uplink Examples ==== 179 179 180 180 ... ... @@ -236,11 +236,26 @@ 236 236 |(% colspan="1" style="background-color:#4f81bd; color:white; width:143px" %)SN50V3-NB mod5|(% colspan="1" style="width:103px" %)mod|(% colspan="1" style="width:102px" %)Battery|(% colspan="1" style="width:157px" %)RSSI|(% colspan="1" style="width:154px" %)DS18B20 Temp|(% colspan="1" style="width:153px" %)adc0|(% colspan="1" style="width:151px" %)exit_state/input PA4|(% colspan="1" style="width:160px" %)Weight|(% colspan="1" style="width:152px" %) |(% colspan="1" style="width:67px" %) |(% colspan="1" style="width:69px" %) 237 237 |(% colspan="1" style="background-color:#4f81bd; color:white; width:143px" %)SN50V3-NB mod6|(% colspan="1" style="width:103px" %)mod|(% colspan="1" style="width:102px" %)Battery|(% colspan="1" style="width:157px" %)RSSI|(% colspan="1" style="width:154px" %)count|(% colspan="1" style="width:153px" %) |(% colspan="1" style="width:151px" %) |(% colspan="1" style="width:160px" %) |(% colspan="1" style="width:152px" %) |(% colspan="1" style="width:67px" %) |(% colspan="1" style="width:69px" %) 238 238 239 -== 3.4 Datacake == 240 240 243 +== 3.4 [[Datacake>>https://datacake.co/]] == 244 + 245 + 246 +(% class="wikigeneratedid" %) 247 +Dragino NB-IoT sensors has its template in **[[Datacake>>https://datacake.co/]]** Platform. There are two version for NB Sensor, 248 + 249 + 250 +(% class="wikigeneratedid" %) 251 +As example for S31B-NB. there are two versions: S31B-NB-1D and S31B-NB-GE. 252 + 253 +* **S31B-NB-1D**: This version have pre-configure DataCake connection. User just need to Power on this device, it will auto connect send data to DataCake Server. 254 +* **S31B-NB-GE**: This verson doesn't have pre-configure Datacake connection. User need to enter the AT Commands to connect to Datacake. See below for instruction. 255 + 256 + 241 241 === 3.4.1 Create device === 242 242 243 243 260 +**Add Device** in DataCake. 261 + 244 244 [[image:image-20230808162301-1.png]] 245 245 246 246 ... ... @@ -247,10 +247,12 @@ 247 247 [[image:image-20230808162342-2.png]] 248 248 249 249 268 +**Choose the correct model** from template. 269 + 250 250 [[image:image-20230808162421-3.png]] 251 251 252 252 253 -The device ID needs to be filled in with IMEI, and a prefix of** 'f' **needs to be added. 273 +**Fill Device ID**. The device ID needs to be filled in with IMEI, and a prefix of** 'f' **needs to be added. 254 254 255 255 [[image:image-20230808163612-7.png]] 256 256 ... ... @@ -264,7 +264,7 @@ 264 264 265 265 Users can use their phones or computers to scan QR codes to obtain device data information. 266 266 267 -[[image:image-20230808170051-8.png]] 287 +[[image:image-20230808170051-8.png||height="255" width="259"]] 268 268 269 269 [[image:image-20230808170548-9.png]] 270 270 ... ... @@ -297,6 +297,7 @@ 297 297 298 298 [[image:image-20230809173127-4.png]] 299 299 320 + 300 300 Please select the NB95S31B template. 301 301 302 302 [[image:image-20230809173310-5.png]] ... ... @@ -305,6 +305,7 @@ 305 305 306 306 [[image:image-20230809173800-7.png]] 307 307 329 + 308 308 Successfully imported template. 309 309 310 310 [[image:image-20230809173835-8.png]] ... ... @@ -314,8 +314,10 @@ 314 314 315 315 [[image:image-20230809174053-9.png]] 316 316 339 + 317 317 === 3.5.2 Simulate Connection === 318 318 342 + 319 319 We have completed the configuration of UDP. We can try sending packets to node red. 320 320 321 321 [[image:image-20230810083934-1.png]] ... ... @@ -325,13 +325,11 @@ 325 325 === 3.5.3 Configure NB-IoT Sensors === 326 326 327 327 328 -* (% style="color:blue" %)**AT+PRO=2,0(hex format) or 2,1(json format) **352 +* (% style="color:blue" %)**AT+PRO=2,0(hex format) or 2,1(json format) **(%%)** **~/~/ Set to UDP Server and Payload 329 329 330 -* (% style="color:blue" %)**AT+SERVADDR=xx.xx.xx.xx,port (%%) ~/~/ Set Server IP and port **354 +* (% style="color:blue" %)**AT+SERVADDR=xx.xx.xx.xx,port **(%%)** **~/~/ Set Server IP and port 331 331 332 332 333 - 334 - 335 335 == 3.6 ThingsBoard.Cloud (via MQTT) == 336 336 337 337 === 3.6.1 Configure ThingsBoard === ... ... @@ -476,13 +476,16 @@ 476 476 477 477 * (% style="color:#037691" %)**AT+PWD=“Your device token”** 478 478 501 + 479 479 === 3.7.2 Simulate with MQTT.fx === 480 480 504 + 481 481 [[image:image-20230802112413-52.png]] 482 482 483 483 484 484 [[image:image-20230808105300-2.png]] 485 485 510 + 486 486 Users can run the (% style="color:blue" %)**AT+PRO=3,5**(%%) command, and the payload will be converted to **JSON format**. 487 487 488 488 [[image:image-20230808105217-1.png]] ... ... @@ -498,7 +498,6 @@ 498 498 [[image:image-20230802112413-51.png||height="184" width="696"]] 499 499 500 500 501 - 502 502 == 3.8 TCP Connection == 503 503 504 504