The device firmware can be updated in two ways
1. Use programming software and programming cable for firmware programming
2. Use the update software to update the firmware over the air (OTA)
Use programming software and programming cable for firmware programming
1. Programming Tools
USB programming cable
a. Connect USB cable to micro USB port and computer USB port
b. Default set as normal operating status after device is powered on, hence slide switch (SW2) to BOOT. See image:
c. Then press button (SW1) to reset, entering programming mode
2. Programming steps of using programming software to program firmware
1)、Open the STM32 programming software Flash Loader Demonstrator, select the corresponding serial port number, and click Next directly.
2)、Then Next
3)、Then next
4)、Select the hex file of BootLoader to be programmed and click Next
5)、After programming BootLoader, click back.
6)、Select application hex for programming
7)、Application hex programming is successful, so far the programming steps are completed
NOTE: For devices with battery that cannot or difficult to disassemble, such as Tag, slide switch on programming cable to NOR and press SW1 reset button to enter working mode , or else the device will remain in programming mode. For device that battery can be disassembled, users could reassemble the battery after disconnecting the programming cable. And the device normally starts up and enters working mode
Use the update software to update the firmware over the air (OTA)
1、Insert UWB Dongle to USB port of computer and open RfUpdateApp.exe
2、Select corresponding serial port to UWB Dongle and click Connect
3、Select firmware that requires update (can update UWB Dongle, Tag, anchor etc.), click Open File button and select corresponding firmware hex file. And select app.hex file. bootloader.hex is just a device guiding file, see image
4、Select firmware and related firmware information will appear below, confirm and select “Start update” button to begin update, see image
Device firmware download to UWB Dongle successful
5、Click “Read Status” button to read current status of UWB Dongle, UWB Dongle status shown below in the image
Dongle’s Firmware Version:
UWB Dongle firmware type is Locate_Dongle_UWB-USB-01-V01.00,
UWB Dongle firmware version number is 19123050
AskToUpdate En:
Disable, USB Dongle enquire firmware initiatively function (suitable for anchor)
WaitForUpdate En:
Enable, UWB_Dongle waiting to update device
Firmware Type:
Firmware type saved by UWB Dongle that requires update, current type is Locate_Tag_UTAG-9056-V2.1/V2.2
Firmware Version:
Firmware version saved by UWB Dongle that requires update, current version is 19123050
Firmware Size:
Firmware size saved by UWB Dongle that requires update, current firmware size is 48556 bytes
Need Update Version:
Specify the firmware version number of the update device,None means not specified.
6、When there is matching device that enquires update, the list below will be shown. Update will not occur if firmware version is the same, if version is different update will occur straight away. Device will enquire every 10-20 minutes
7、After firmware finish updating, if there are no other device that requires firmware update, it is recommended to press “Stop Update”to avoid UWB Dongle from causing error update to other device
Use the update software to update the firmware over the air (OTA)
The premise of using network firmware update is that anchor is working normally and is connected to network, the method for firmware update is sending firmware hex file via network. Specific operating procedure as below:
1、Open NetUpdateApp.exe
(1) Network update software can be divided into Anchor and Tag, please select page according to devices that require update
(2) Select IP of this PC, i.e. Server IP set by anchor
(3) Set communication Port, i.e. Server Port set by anchor
(4) Click “Start Monitor” to start monitoring anchor enquiring update packet
Note that when starting the network monitoring, the Anchor and Tag pages will open the network monitoring at the same time, but the firmware update can only be done in one option. In addition, the process of the Tag firmware update is that the update program first sends the Tag firmware to all Anchors, and Tag will ask the Anchor if it needs to update the firmware every 10-20 minutes. If Tag needs to be updated, the firmware update between Anchor and Tag will be performed through UWB wireless signal. At this time, the role of Anchor is similar to Dongle in OTA.
Demo Video for Programming
Screen recording of programming process
https://drive.google.com/file/d/1cQnMtRc5GeLKYNP_fIpnYInlyLPmiRCg/view?usp=sharing
Dongle Programming
https://drive.google.com/file/d/1yOIDHHtCQVpz9FZC3eXd-2stxjjXwJ9w/view?usp=sharing
Anchor Programming
https://drive.google.com/file/d/1aPNOSsPEHrIPgBg7_unzK5WvykTvjVvQ/view?usp=sharing
Tag Programming
https://drive.google.com/file/d/10_qezSmMjLfB5hezVPIkxWHxYotOg_Ds/view?usp=sharing