Changes for page Why can't the password access AT command after upgrade(-NB)?
Last modified by Mengting Qiu on 2024/08/27 18:17
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 1 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,8 +1,15 @@ 1 -{{box cssClass="floatinginfobox" title="**Contents**"}} 1 + 2 + 3 + 4 +**Table of Contents:** 5 + 2 2 {{toc/}} 3 -{{/box}} 4 4 5 5 9 + 10 + 11 + 12 + 6 6 = 1. Introduction = 7 7 8 8 This chapter describes why the password is wrong after upgrading the firmware and what to do about it. ... ... @@ -20,7 +20,7 @@ 20 20 (% style="color:blue" %)**AT command:** 21 21 22 22 * (% style="color:#037691; font-weight:bold" %)**AT+FDR**(%%)** **~/~/ Reset Parameters to Factory Default. 23 -* (% style="color:#037691; font-weight:bold" %)**AT+FDR1**(%%)** **~/~/ Reset parameters to factory default values **except for passwords**.(new)30 +* (% style="color:#037691; font-weight:bold" %)**AT+FDR1**(%%)** **~/~/ Reset parameters to factory default values except for passwords.(new) 24 24 25 25 26 26 = 3. Version Confirmation = ... ... @@ -28,7 +28,7 @@ 28 28 29 29 We are now dividing the **old firmware**(without FDR1 function) with the **new firmware**(with FDR1 function) by whether it contains FDR1 functionality. Please refer to the table: 30 30 31 -(% border="1" style="background-color:#f2f2f2; width: 891px" %)38 +(% border="1" style="background-color:#f2f2f2; width:510px" %) 32 32 |(% style="background-color:#4f81bd; color:white; width:210px" %)**General Model**|(% style="background-color:#4f81bd; color:white; width:150px" %)((( 33 33 **Firmware version** 34 34 ... ... @@ -54,27 +54,56 @@ 54 54 |(% style="width:210px" %)RS485-NB|(% style="width:150px" %)Before V1.0.8|(% style="width:150px" %)After V1.0.8 (including V1.0.8) 55 55 56 56 64 += 4. How to solve = 57 57 58 58 67 +== 4.1 Method 1: Erase the chip before upgrading the firmware == 59 59 60 -Due to the addition of the password retention function(AT+FDR1) in the new version, the password address has changed, and when the user upgrades the firmware before V1.2.0 (including v1.2.0) to the version after V1.2.1(including V1.2.1), the original password will not be used. The user can choose to erase all contents before upgrading the firmware and then burn the new version of the firmware. The user can still use the original password, but this method will restore all configurations to the default firmware Settings. 61 61 70 +The user can choose to erase all contents before upgrading the firmware and then burn the new version of the firmware. The user can still use the original password, but this method will restore all configurations to the default firmware Settings. 62 62 63 -The pa sswordaddressfor firmwarepriortov1.2.0(including v1.2.0): **0x08019000**72 +The chip can only be erased by updating the firmware through the UART TTL interface. See [[UART Connection>>url:http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H2.3UARTConnectionforSN50v3basemotherboard]]. 64 64 65 - Thepasswordaddress forfirmwareafterv1.2.1(includingV1.2.1): **0x08025D00**74 +Method of erasing full chip flash memory 66 66 76 +* Connect to the STM32CubeProgrammer 67 67 68 - So users can also chooseto query the password usingtheSTM32Cube after upgradingthefirmware.78 +[[image:image-20240827164813-1.png||height="457" width="791"]] 69 69 80 +* Select Erase full chip flash memory 81 + 82 +[[image:image-20240827165549-2.png||height="462" width="800"]] 83 + 84 + 85 +After the erase is complete, download the new firmware directly. 86 + 87 +* update firmware through UART TTL interface : **[[Instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/UART_Access_for_NB_ST_BC660K-GL/#H4.2UpdateFirmware28Assumethedevicealreadyhaveabootloader29]]**. 88 + 89 + 90 +== 4.2 Method 2: Update the firmware directly and query the password via STM32CubeProgrammer == 91 + 92 + 93 +If you do not want to erase the chip flash memory, you can also use the password address to query the password through STM32CubeProgrammer. 94 + 95 +* The password address for old firmware(without FDR1 function) : **0x08019000** 96 +* The password address for new firmware(with FDR1 function) : **0x08025D00** 97 + 98 +(% style="color:red" %)**Notice: The password can only be queried after the firmware is run once.** 99 + 100 + 101 +**Procedure for querying the password(old firmware):** 102 + 70 70 * After the firmware upgrade is complete, switch back to the FLASH and reset the node to run the new firmware once. 71 71 * Then place the switch at the ISP and connect to the STM32CubeProgrammer (same as when burning the firmware). 72 -* Click "Device memory", enter **0x08025D00** in "Address", and click "Read" 105 +* Click "Device memory", enter **0x08019000** in "Address", and click "Read" 106 +* Find the 0x08019000 address field and then read the current password as shown in the screenshot below. 73 73 74 -[[image:image-2024082 6160842-1.png||height="460" width="1247"]]108 +[[image:image-20240827171901-3.png||height="562" width="973"]] 75 75 76 76 111 +**Procedure for querying the password(new firmware):** 77 77 113 +Refer to the old and new firmware division above, and run the firmware first after updating the firmware. 78 78 79 79 80 80
- image-20240827171901-3.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.ting - Size
-
... ... @@ -1,0 +1,1 @@ 1 +326.9 KB - Content