Updating a repeater
From NodeNet
How to update your node =
Physical update
Connect to your computer and update.
Over the Air update
OTA = Over the air
Unfortunately, we first need to flash all the sensecaps with different bootloader firmware.
Adafruit Bootloader
Adafruit Bootloader Repository
Install adafruit-nrfutil
To install the utility, run the following command:
pip3 install adafruit-nrfutil
Download the Firmware
Download the firmware for the Solar P1. Note: the file is named: Seeed Studio XIAO nRF52840 BLE (and Seeed SenseCAP Solar Node). Currently available here:
xiao_nrf52840_ble_bootloader-0.9.2-OTAFIX2.1-BP1.2_s140_7.3.0.zip
Run the following command to flash the firmware:
adafruit-nrfutil --verbose dfu serial --package xiao_nrf52840_ble_bootloader-0.9.2-OTAFIX2.1_s140_7.3.0.zip -p /dev/ttyACM0 -b 115200 --singlebank --touch 1200
Flashing Steps
- Open Meshcore Flasher.
- Select the "Sensecap Solar P1".
- Put the Solar P1 in DFU mode.
- ERASE FLASH (Unfortunately, settings and history are lost).
- Flash the (pre-last, not the newest) Meshcore firmware.
- The device will reboot.
OTA (Over the Air - Using Bluetooth to Upgrade Firmware)
- Open the Meshcore client (on your phone).
- Connect the companion device.
- Select the Solar Node in the device list.
- Open "Remote Management".
- Go to "Command Line".
- At the prompt, type:
Start ota.
- It will respond:
OK - mac: xx:xx:xx:xx:xx:xx. - Now open the "Nordic Semiconductor DFU" app.
- Select the ZIP file containing the firmware you want to update.
- Select the device.
- Bluetooth will be turned on.
- Select the Solar P1 (check if the MAC address corresponds with the MAC address you got from the Remote Management command).
- Press "Start".
- Mostly, the first attempt fails...
Retry the Upgrade
- Open the DFU app again.
- Select the device (which is now called "XIAO-DFU").
- Press "Start".
- Wait and monitor the progress until it says "Completed".
- The node will reboot into the freshly installed firmware.