UART Access for LoRa ST v4 base model
Table of Contents:
- 1. LoRaST v4 base Hardware
- 2. UART for AT Commands
- 3. UART for Firmware Upgrade
1. LoRaST v4 base Hardware
Below hardware use LoRaST v4 module. They supports UART Access for AT Command and Firmware Upgrade.
Models | Mother Board | UART for AT Commands | UART for Upgrade Firmware |
PS-LB, PS-LB-NA, SDI12-LB | SIB | Instruction | Instruction |
SN50v3, S31-LB, S31B-LB, D20-LB.D20S-LB, D21-LB, D22-LB | SN50v3 | ||
LHT65N | LHT65N | ||
2. UART for AT Commands
2.1 Generate software set up for AT Commands via UART
1. Use a general serial tool.
2. Connect PC to device's UART interface
3. Set up serial tool with : BaudRate: 9600, databit:8, No parity, No flow control.
4. The password is the last six characters of APPSKEY or PIN of box
Example:
APPSKEY= 41 85 71 A7 5D 7E 54 52 25 58 74 85 96 14 74 85
The password:147485
2.2 UART Connection for SIB mother board
2.3 UART Connection for SN50v3 base mother board
3. UART for Firmware Upgrade
3.1 Check Your device already have bootloader
3.1.1 What is Dragino Bootloader?
Dragino Bootloader is a customizer made bootloader which support below features:
- OTA Update via LoRa
- OTA Batch update configure via LoRa
All Dragino End Devices base on LoRa ST v4 supports Dragino Bootloader.
3.1.2 How can i know if my device already have bootloader?
If a device has a bootloader. it will output bootloader info to UART when boot. As below:
3.1.3 How to upload bootloader to device?
If your is LoRa ST v4 base hardware and doesn't have bootloader. You can upload a bootloader to it.
Downlink Link for OTA bootloader.
Update a firmware via TremoProgrammer:
LoRaSTv4 Base hardware support UART update firmware. the UART connection is the same as AT Command connection, with the need for two extra action. See below for the steps:
Step1: Set BOOT Switch to PROG mode. PROG mode is for update firmware specially.
Step2: Press Reset button, the module will then boot into program mode.
Step3: Use TremoProgrammer to update the firmware to LoRaST v4.
Step4: Set BOOT Switch to FLASH position. Press Reset button again and module will run the new software.
Below is the method for how to update via TremoProgrammer:
1. TremoProgrammer download link: https://www.dropbox.com/sh/j0qyc7a9ejit7jk/AACtx2tK4gEv6YFXMIVUM4dLa?dl=0
2. Run TremoProgrammer.
3. Choose software and set the address to 0x08000000.
4. Rember to set BOOT Switch to FLASH after update finish. And you should be about to see Bootloader info in output after update
3.2 Update Firmware (Assume the device already have a bootloader)
3.2.1 Update a firmware via Dragino bootloader
3.2.2 Update a firmware via TremoProgrammer
Make sure your device already bootloader while use this update. Other device won't be able to boot ( can be solve by upload a bootloader to the device).
LoRaSTv4 Base hardware support UART update firmware. the UART connection is the same as AT Command connection, with the need for two extra action. See below for the steps:
Step1: Set BOOT Switch to PROG mode. PROG mode is for update firmware specially.
Step2: Press Reset button, the module will then boot into program mode.
Step3: Use TremoProgrammer to update the firmware to LoRaST v4.
Step4: Set BOOT Switch to FLASH position. Press Reset button again and module will run the new software.
Below is the method for how to update via TremoProgrammer:
1. Software download link: https://www.dropbox.com/sh/j0qyc7a9ejit7jk/AACtx2tK4gEv6YFXMIVUM4dLa?dl=0
2. Run TremoProgrammer.
3. Choose software and set the address to 0x0800D000. VERY IMPORTANT for this address.
4. Rember to set BOOT Switch to FLASH after update