Changes for page Dragino -NB/-CB device connection to AWS platform instructions
Last modified by Mengting Qiu on 2025/07/29 15:24
From version 49.1
edited by Mengting Qiu
on 2025/07/29 13:42
on 2025/07/29 13:42
Change comment:
There is no comment for this version
To version 24.3
edited by Bei Jinggeng
on 2024/05/29 18:06
on 2024/05/29 18:06
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 9 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -Dragino -NB/-CBdevice connection to AWS platform instructions1 +Dragino NB device connection to AWS platform instructions - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. ting1 +XWiki.Bei - Content
-
... ... @@ -27,30 +27,38 @@ 27 27 28 28 a. Fill in any name 29 29 30 +b. Configure the policy you created 30 30 31 - b. Fill in * to Policyactionand Policy resource (* standsfor all)32 +[[image:image-20240528173144-3.png||height="572" width="931"]] 32 32 33 -[[image:image-20250103152135-2.png||height="777" width="1544"]] 34 34 35 - 36 36 c. After clicking to enter the policy configuration page, follow the clicking sequence below to go to the json configuration interface, and then fill in the following fields in the "statement" keyword: 37 37 37 +(% data-sider-select-id="7bc0f6db-481d-435a-ad0c-92cf0ede3ea4" %) 38 +(% data-sider-select-id="8026a4d9-df91-4895-b9c5-3d6ac9b46012" %)**{** 38 38 39 -**{ 40 - "Version": "2012-10-17", 41 - "Statement": [ 42 - { 43 - "Effect": "Allow", 44 - "Action": "iot:*", 45 - "Resource": "*" 46 - } 47 - ] 48 -}** 40 +**~ "Version": "2012-10-17",** 49 49 42 +**~ "Statement": [** 50 50 44 +**~ {** 51 51 52 - [[image:image-20250103151957-1.png||height="529"width="935"]]46 +**~ "Effect": "Allow",** 53 53 48 +**~ "Action": "",** 49 + 50 +**~ "Resource": ""** 51 + 52 +**~ }** 53 + 54 +**~ ]** 55 + 56 +**}** 57 + 58 + 59 +[[image:image-20240528173203-4.png||height="517" width="942"]] 60 + 61 + 54 54 d. Create this policy 55 55 56 56 ... ... @@ -91,9 +91,9 @@ 91 91 92 92 (% style="color:blue" %)**5. When you click to create things, the certificate download page will pop up** 93 93 102 +(% data-sider-select-id="398c8d35-75ff-4077-85bb-9e0377efa186" %) 103 +(% data-sider-select-id="087aa6c7-c542-4afc-9ce6-291538c31764" %)**This certificate is very important.**(%%) After creating the device, you must download the certificate of the device so that our NB device can connect normally. 94 94 95 -**This certificate is very important.** After creating the device, you must download the certificate of the device so that our NB device can connect normally. 96 - 97 97 Please download all the following certificates and put them in a folder. 98 98 99 99 [[image:image-20240528173926-10.png]] ... ... @@ -106,17 +106,12 @@ 106 106 107 107 = 4. Connect to AWS using Dragino-NB device = 108 108 117 +(% class="wikigeneratedid" data-sider-select-id="0bc6b974-b38c-48e7-b228-e220f1938e7f" %) 118 +== 4.1 F(% data-sider-select-id="293a2a9f-2191-4013-b0d9-8bcfb95a179a" %)or -NB /-NS model(%%) == 109 109 110 - (% id="cke_bm_37736S" style="color:red; display:none" %)** **(% style="color:red"%)**Note: **(%%)Inordertoavoidproblems withcertificatewriting,you needto settheserial portassistant toautomatically add anewline characterwhensending commands, if thereis no such newline character,the certificatewritten will be invalid.(Using the serial port assistant as an example)120 +=== (% data-sider-select-id="293a2a9f-2191-4013-b0d9-8bcfb95a179a" %)4.1.1 Upgrade the firmware to configure TTS firmware to set the certificate(%%) === 111 111 112 -[[image:image-20240822090554-1.png||height="501" width="656"]] 113 113 114 - 115 -== 4.1 For -NB /-NS model == 116 - 117 -=== 4.1.1 Upgrade the firmware to configure TLS firmware to set the certificate === 118 - 119 - 120 120 User can change device firmware to:: 121 121 122 122 * Update with new features. ... ... @@ -131,15 +131,17 @@ 131 131 132 132 * Update through UART TTL interface : **[[Instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/UART_Access_for_NB_ST_BC660K-GL/#H4.2UpdateFirmware28Assumethedevicealreadyhaveabootloader29]]**. 133 133 134 -=== 4.1.2 Configure certificate === 135 135 138 +=== (% data-sider-select-id="bb7de328-bb5d-4fe5-a008-7bf36bbf2d64" %)4.1.2 Configure certificate(%%) === 136 136 140 + 137 137 After upgrade the firmware, the serial port displays as follows: 138 138 139 -[[image:image-20250306113602-1.png||height="401" width="856"]] 143 +(% data-sider-select-id="8b6a9e23-dec0-476c-acd4-098aa19fe1f3" %) 144 +[[image:image-20240528174330-13.png||height="286" width="568"]] 140 140 141 141 142 -==== 4.1.2.1 Configure CA certificate ==== 147 +==== (% data-sider-select-id="4f272daa-a217-4469-8de7-f4905835bbad" %)4.1.2.1 Configure CA certificate(%%) ==== 143 143 144 144 145 145 Please input the certificate in PEM format for the user. ... ... @@ -193,12 +193,12 @@ 193 193 194 194 After successful execution, as shown in the following figure. 195 195 196 -[[image:image-202 50306113849-2.png||height="742" width="456"]]201 +[[image:image-20240528174502-15.png]] 197 197 198 198 Display (% style="color:blue" %)**"Successfully configured CA certificate."**(%%) If the configuration is successful, otherwise it is considered configuration failure. 199 199 200 200 201 -==== 4.1.2.2 Configure client certificate ==== 206 +==== (% data-sider-select-id="0b9009b4-385e-4e1e-91d4-0175c1af339d" %)4.1.2.2 Configure client certificate(%%) ==== 202 202 203 203 204 204 Use the AT command AT+CLICERT as follows: ... ... @@ -250,7 +250,7 @@ 250 250 Display (% style="color:blue" %)**"Successfully configured client certificate."**(%%) Configuration successful, otherwise configuration failed. 251 251 252 252 253 -==== 4.1.2.3 Configure client private key ==== 258 +==== (% data-sider-select-id="7c5a8abc-e707-467b-ac02-db0a89098320" %)4.1.2.3 Configure client private key(%%) ==== 254 254 255 255 256 256 Use the AT command AT+CLIKEY, as shown below ... ... @@ -316,20 +316,16 @@ 316 316 Display(% style="color:blue" %)** "Successfully configured client private key."**(%%) If the configuration is successful, otherwise it is considered configuration failure. 317 317 318 318 319 -==== 4.1. 2.4Re-upgrade the firmware ====324 +==== (% data-sider-select-id="9c62fd56-4ff5-48af-8cca-db4565d1f25d" %)4.1.3.3 Re-upgrade the firmware(%%) ==== 320 320 321 321 322 -After completing the certificate configuration,Burnthe [[bootloader>>https://www.dropbox.com/sh/u0uzvvnn58yrie4/AAAvvF_KRveNgmDejzp23ziLa/NB-IoT/Bootloader?dl=0&subfolder_nav_tracking=1]]firmwarefirst, then re-burntheoriginalworking [[firmware>>https://www.dropbox.com/sh/u0uzvvnn58yrie4/AACREHllkTe0rATD4ZOqddyga/NB-IoT?dl=0]].327 +After the certificate configuration is completed, Re-upgrade to the firmware you originally used. 323 323 324 324 325 -==== 4.1.2.5 For certificate coverage of the -NB/-NS model ==== 326 - 327 -For the -NB/-NS models, there is no AT command available to clear configured certificates. Therefore, if users do not wish to use the pre-configured certificates, they only need to follow the instructions above and use the AT+CACERT, AT+CLICERT, and AT+CLIKEY commands to assign custom meaningless characters to the device. This will overwrite the original certificates. 328 - 329 - 330 +(% data-sider-select-id="02f5aceb-0a5d-4922-8c3a-7e6772f46ad4" %) 330 330 == 4.2 For -CB /-CS model == 331 331 332 -=== 4.2.1 Upgrade the firmware to configure T LS firmware to set the certificate ===333 +=== (% data-sider-select-id="293a2a9f-2191-4013-b0d9-8bcfb95a179a" id="cke_bm_59113S" style="display:none" %) (% data-sider-select-id="293a2a9f-2191-4013-b0d9-8bcfb95a179a" %)4.2.1 Upgrade the firmware to configure TTS firmware to set the certificate(%%) === 333 333 334 334 335 335 User can change device firmware to:: ... ... @@ -342,19 +342,22 @@ 342 342 343 343 Methods to Update Firmware: 344 344 346 +* (Recommended way) OTA firmware update via BLE: [[**Instruction**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/BLE_Firmware_Update_NB_Sensors_BC660K-GL/]]. 347 + 345 345 * Update through UART TTL interface : **[[Instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/UART_Access_for_NB_ST_BC660K-GL/#H4.2UpdateFirmware28Assumethedevicealreadyhaveabootloader29]]**. 346 346 347 -=== 4.2.2 Configure certificate === 348 348 351 +=== (% data-sider-select-id="bb7de328-bb5d-4fe5-a008-7bf36bbf2d64" %)4.2.2 Configure certificate(%%) === 349 349 353 + 350 350 After upgrade the firmware, the serial port displays as follows: 351 351 352 -[[image:image-20250306114107-2.png||height="371" width="744"]] 356 +(% data-sider-select-id="8b6a9e23-dec0-476c-acd4-098aa19fe1f3" %) 357 +[[image:image-20240528174330-13.png||height="286" width="568"]] 353 353 354 354 355 -==== 4.2.2.1 Configure CA certificate ==== 360 +==== (% data-sider-select-id="4f272daa-a217-4469-8de7-f4905835bbad" %)4.2.2.1 Configure CA certificate(%%) ==== 356 356 357 -(% style="color:red" %)**Note:You should select one of the certificates.Either CA1 or CA3 can be used** 358 358 359 359 Please input the certificate in PEM format for the user. 360 360 ... ... @@ -407,12 +407,12 @@ 407 407 408 408 After successful execution, as shown in the following figure. 409 409 410 -[[image:image-202 50306134213-1.png]]414 +[[image:image-20240528174502-15.png]] 411 411 412 412 Display (% style="color:blue" %)**"Successfully configured CA certificate."**(%%) If the configuration is successful, otherwise it is considered configuration failure. 413 413 414 414 415 -==== 4.2.2.2 Configure client certificate ==== 419 +==== (% data-sider-select-id="0b9009b4-385e-4e1e-91d4-0175c1af339d" %)4.2.2.2 Configure client certificate(%%) ==== 416 416 417 417 418 418 Use the AT command AT+CLICERT as follows: ... ... @@ -464,7 +464,7 @@ 464 464 Display (% style="color:blue" %)**"Successfully configured client certificate."**(%%) Configuration successful, otherwise configuration failed. 465 465 466 466 467 -==== 4.2.2.3 Configure client private key ==== 471 +==== (% data-sider-select-id="7c5a8abc-e707-467b-ac02-db0a89098320" %)4.2.2.3 Configure client private key(%%) ==== 468 468 469 469 470 470 Use the AT command AT+CLIKEY, as shown below ... ... @@ -530,26 +530,26 @@ 530 530 Display(% style="color:blue" %)** "Successfully configured client private key."**(%%) If the configuration is successful, otherwise it is considered configuration failure. 531 531 532 532 533 -==== 4.2.2.4 Re-upgrade the firmware ====537 +==== (% data-sider-select-id="7c5a8abc-e707-467b-ac02-db0a89098320" %)4.2.2.4 (%%)For -CB /-CS model(% data-sider-select-id="7c5a8abc-e707-467b-ac02-db0a89098320" %) Certificate setting error/change certificate(%%) ==== 534 534 539 +(% data-sider-select-id="7c5a8abc-e707-467b-ac02-db0a89098320" %)When you set the wrong certificate or you need to re-set another certificate. 540 +Please use the following three commands: 535 535 536 - Aftercompleting the certificate configuration, Burn the [[bootloader>>https://www.dropbox.com/scl/fo/ztlw35a9xbkomu71u31im/AE23WqlQ8CKU4cuy-sP1JkM/Utility/NB-IoT%20Bootloader?rlkey=ojjcsw927eaow01dgooldq3nu&e=1&subfolder_nav_tracking=1&dl=0]]firmware first, then re-burn theoriginal working [[firmware>>https://www.dropbox.com/scl/fo/ztlw35a9xbkomu71u31im/ANd2flSqspRRXl-ksF6gUqk/LTE-M?dl=0&rlkey=ojjcsw927eaow01dgooldq3nu&subfolder_nav_tracking=1]].542 +(% data-sider-select-id="fbe1c153-2a79-4b56-b8ef-0afb2ae3dfc1" %) 537 537 544 +AT+DELCLIKEY} 538 538 539 - ====4.2.2.5 For -CB /-CS model Certificatesettingerror/changecertificate====546 +(% data-sider-select-id="39d0e453-8af0-4093-8619-270f431f12c4" %) 540 540 548 +AT+DELCLICERT} 541 541 542 -(% data-sider-select-id="7c5a8abc-e707-467b-ac02-db0a89098320" %)When you set the wrong certificate or you need to re-set another certificate. 543 -Please use the following three commands: 550 +(% data-sider-select-id="51d2a3c0-6e7d-462f-9561-8b464ccdafac" %) 544 544 545 -(% style="color:blue" %)**AT+DELCLIKEY}** 552 +AT+DELCACERT} 553 + 546 546 547 -(% style="color:blue" %)**AT+DELCLICERT}** 548 - 549 -(% style="color:blue" %)**AT+DELCACERT}**(%%) 550 -(% style="color:blue" %) 551 - 552 -(% style="color:red" %)**Note: 1.When there is no certificate on the device, a deletion error will be displayed. 555 +(% data-sider-select-id="51d2a3c0-6e7d-462f-9561-8b464ccdafac" %) 556 +(% data-sider-select-id="c65833ed-31b6-4744-b487-cbe596273f6d" %)**Note:1.When there is no certificate on the device, a deletion error will be displayed. 553 553 2.When the device already has a certificate, using the command to configure the certificate again will display a configuration error.** 554 554 555 555 ... ... @@ -592,9 +592,8 @@ 592 592 593 593 594 594 (% data-sider-select-id="f443b9bc-1195-4fe2-965d-7de84f78747f" %) 595 -== 5.5 Set the MQOS == 599 +== 5.5 Set the MQOS == 596 596 597 - 598 598 (% data-sider-select-id="cf7bb573-8375-4479-9801-df8bb7dab3ba" style="color:blue; font-weight:bold" %)**AT+MQOS**(% data-sider-select-id="cf7bb573-8375-4479-9801-df8bb7dab3ba" style="color:blue" %)**=XX (Depends on your server configuration)** 599 599 600 600 Please find it in AWS's MQTT test client ... ... @@ -626,3 +626,4 @@ 626 626 [[image:image-20240528175133-19.png||height="563" width="1022"]] 627 627 628 628 [[image:image-20240528175154-20.png||height="752" width="1042"]] 632 +
- image-20240814155410-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.kai - Size
-
... ... @@ -1,1 +1,0 @@ 1 -77.8 KB - Content
- image-20240822090554-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -75.4 KB - Content
- image-20250103151957-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Bei - Size
-
... ... @@ -1,1 +1,0 @@ 1 -53.9 KB - Content
- image-20250103152135-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Bei - Size
-
... ... @@ -1,1 +1,0 @@ 1 -121.6 KB - Content
- image-20250306113602-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -32.7 KB - Content
- image-20250306113801-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -65.1 KB - Content
- image-20250306113849-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -65.9 KB - Content
- image-20250306114107-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -33.7 KB - Content
- image-20250306134213-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -67.1 KB - Content