Last modified by Mengting Qiu on 2025/03/08 11:33
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,3 +1,10 @@ 1 +(% class="wikigeneratedid" %) 2 +**Table of Contents:** 3 + 4 +{{toc/}} 5 + 6 + 7 + 1 1 = 1. The use of this guideline = 2 2 3 3 ... ... @@ -9,46 +9,50 @@ 9 9 10 10 The -NB and -NS models support (% style="color:blue" %)**LTE Cat NB2**(%%), with below frequency band: multiple frequency bands of (% style="color:blue" %)**B1/B2/B3/B4/B5/B8/B12/B13/B14/B17/B18/B19/B20/B25/B28/B66/B70/B85**(%%) . Make sure you use a the NB-IoT SIM card. 11 11 19 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %) 20 +|(% style="background-color:#4f81bd; color:white" %)**SIM Provider**|(% style="background-color:#4f81bd; color:white" %)**APN**|(% style="background-color:#4f81bd; color:white" %)**NB-IoT Coverage**|(% style="background-color:#4f81bd; color:white" %)**Comments** 21 +|1NCE| | | 22 +|China Mobile| | | 12 12 13 -== 2.1 1NCE SIM Card. == 14 14 15 15 16 -(% border="1" cellspacing="4" style="width:510px;background-color:#F2F2F2" %) 17 -|(% style="background-color:#4F81BD;color:white" %)SIM Provider|(% style="background-color:#4F81BD;color:white" %)APN|(% style="background-color:#4F81BD;color:white" %)NB-IoT Coverage|(% style="background-color:#4F81BD;color:white" %)Comments 18 -|1NCE| | | 19 -|China Mobile| | | 26 +== 2.1 1NCE SIM Card. == 20 20 21 21 29 + 22 22 = 3. Configure to connect to different servers = 23 23 32 +== 3.1 General UDP Connection == 24 24 25 -= NB-IoT 服务器对接例子 = 26 26 27 -= 1. General UDP Connection = 28 - 29 29 The NB-IoT Sensor can send packet to server use UDP protocol. 30 30 31 -== 1.1 Simulate UDP Connection by PC tool == 32 32 38 +=== 3.1.1 Simulate UDP Connection by PC tool === 39 + 40 + 33 33 We can use PC tool to simulate UDP connection to make sure server works ok. 34 34 35 35 [[image:image-20230802112413-1.png]] 36 36 37 -== 1.2 Configure NB-IoT Sensor == 38 38 39 -=== 1.2 .1ATCommands ===46 +=== 3.1.2 Configure NB-IoT Sensor === 40 40 41 -AT Commands :48 +==== 3.1.2.1 AT Commands ==== 42 42 43 -* AT+PRO=2,0 ~/~/ Set to use UDP protocol to uplink , Payload Type select Hex payload 50 + 51 +**AT Commands:** 52 + 53 +* AT+PRO=2,0 ~/~/ Set to use UDP protocol to uplink ,Payload Type select Hex payload 44 44 * AT+SERVADDR=120.24.4.116,5601 ~/~/ Set UDP server address and port 45 45 * AT+CFM=1 ~/~/ If the server does not respond, this command is unnecessary 46 46 47 47 [[image:image-20230802112413-2.png]] 48 48 49 -=== 1.2.2 Uplink Example === 50 50 60 +==== 3.1.2.2 Uplink Example ==== 51 51 62 + 52 52 [[image:image-20230802112413-3.png]] 53 53 54 54 ... ... @@ -101,9 +101,8 @@ 101 101 * User Name: <Your ThingSpeak MQTT User Name> 102 102 * Password: <Your ThingSpeak MQTT Password> 103 103 115 +=== 1.2.2 Publish Data to ThingSpeak Channel === 104 104 105 -=== 1.2.2 Publish Data to ThingSpeak Channel === 106 - 107 107 [[image:image-20230802112413-9.png]] 108 108 109 109 [[image:image-20230802112413-10.png]] ... ... @@ -113,7 +113,6 @@ 113 113 * Topic: channels/YOUR_CHANNEL_ID/publish 114 114 * Payload: field1=63&field2=67&status=MQTTPUBLISH 115 115 116 - 117 117 Where 63 and 67 are the value to be published to field1 & field2. 118 118 119 119 ... ... @@ -136,7 +136,6 @@ 136 136 * AT+SUBTOPIC=<YOUR_CHANNEL_ID> 137 137 138 138 139 - 140 140 === 1.3.2 Uplink Examples === 141 141 142 142 For S31-NB ... ... @@ -272,7 +272,6 @@ 272 272 273 273 )))|(% colspan="1" rowspan="1" %)RSSI|(% colspan="1" rowspan="1" %)count|(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) 274 274 275 - 276 276 = 4. Datacake = 277 277 278 278 == 1.1 Define Product == ... ... @@ -395,7 +395,7 @@ 395 395 396 396 [[image:image-20230802112413-30.png]] 397 397 398 -== 1.2 Simulate Connection 405 +== 1.2 Simulate Connection == 399 399 400 400 [[image:image-20230802112413-31.png]] 401 401 ... ... @@ -408,10 +408,9 @@ 408 408 * AT+PUBTOPIC=any value 409 409 * AT+SUBTOPIC=any value 410 410 411 - 412 412 = 6. ThingsBoard.Cloud (via MQTT) = 413 413 414 -== 1.1 Configure ThingsBoard 420 +== 1.1 Configure ThingsBoard == 415 415 416 416 === 1.1.1 Create Device === 417 417 ... ... @@ -518,7 +518,6 @@ 518 518 * Broker Port: 1883 519 519 * Client ID: “Any value” 520 520 521 - 522 522 On the section User credentials, set the following information:(这边加一个截图) 523 523 524 524 * User Name: “Any value” Tago validates your user by the token only ... ... @@ -526,7 +526,6 @@ 526 526 * PUBTOPIC: “Any value” 527 527 * SUBTOPIC: “Any value” 528 528 529 - 530 530 == 5.2 Simulate with MQTT.fx == 531 531 532 532 [[image:image-20230802112413-47.png]] ... ... @@ -561,7 +561,6 @@ 561 561 * PUBTOPIC: “Any value” 562 562 * SUBTOPIC: “Any value” 563 563 564 - 565 565 [[image:image-20230802112413-52.png]] 566 566 567 567