Table of Contents:

1. Introduction

This chapter describes why the password is wrong after upgrading the firmware and what to do about it.

2. Why can't the password access AT command after upgrade(-NB)?

Because the new version of -NB firmware has updated the factory reset function, users can choose to restore all parameters to factory Settings, or keep the password to restore the rest of the parameters to factory Settings.

This update changes the password address of the firmware, so the password will be invalid after the customer upgrades from the old version of firmware (without FDR1 function) to the new version of firmware (with FDR1 function).

Two different restore factory Settings configurations.

AT command:

  • AT+FDR       // Reset Parameters to Factory Default.
  • AT+FDR1     // Reset parameters to factory default values except for passwords.(new)

3. Version Confirmation

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:

General Model

Firmware version

(without FDR1 function)

Firmware version

(with FDR1 function)

CPL03-NB, S31-NB, SN50V3-NB, TS01-NB, D20-NB, DS03A-NB, DDS04-NB, DDS45-NB, DDS20-NB, DDS75-NB, LDS12-NB, LDS40-NB, LMS01-NB, MDS120-NB,  MDS200-NB, SE01-NB, SPH01-NB;

Before V1.2.1After V1.2.1 (including V1.2.1)

WL03A-NB, SDI-12-NB;

Before V1.0.2

After V1.0.8 (including V1.0.2)

SW3L-NB, PS-NB;

Before V1.0.5

After V1.0.5 (including V1.0.5)

RS485-NBBefore V1.0.8After V1.0.8 (including V1.0.8)

4. How to solve

Users can manually query the password via STM32CubeProgrammer.

4.1 UART connection and firmware update methods

Users can query passwords only using the UART interface via the STM32CubeProgrammer.

See UART Connection.

update firmware through UART TTL interface : Instruction.

4.2 query the password via STM32CubeProgrammer

Users can use the password address to query the password through STM32CubeProgrammer.

  • The password address for old firmware(without FDR1 function) : 0x08019000
  • The password address for new firmware(with FDR1 function) : 0x08025D00

Notice: The password can only be queried after the firmware is run once.

Procedure for querying the password(old firmware):

  • After the firmware upgrade is complete, switch back to the FLASH and reset the node to run the firmware once.
  • Then place the switch at the ISP and connect to the STM32CubeProgrammer (same as when burning the firmware).
  • Click "Device memory", enter 0x08019000 in "Address", and click "Read"
  • Find the 0x08019000 address field and then read the current password as shown in the screenshot below.

image-20240827171901-3.png

Procedure for querying the password(new firmware):

Refer to the old and new firmware division above, and run the firmware first after updating the firmware.

  • After the firmware upgrade is complete, switch back to the FLASH and reset the node to run the new firmware once.
  • Then place the switch at the ISP and connect to the STM32CubeProgrammer (same as when burning the firmware).
  • Click "Device memory", enter 0x08025D00 in "Address", and click "Read"
  • Find the 0x08025D00 address field and then read the current password as shown in the screenshot below.

image-20240827180414-1.png

5. Special case

If the user has never changed the password manually, the user cannot find the valid password through the above two password addresses. In this case, the valid password is still the original password on the node box label (AT+PIN).

Invalid query screenshot example:

image-20240827181447-4.png

image-20240827181431-3.png

 

Tags:
    
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0