Skip to content

Display better error in AP Config Page when OTA fails #138

@LeeLeahy2

Description

@LeeLeahy2

Subject of the issue

The Over The Air (OTA) firmware update fails. On an RTK Express system running v1.10 firmware, entering WiFi Config mode and then initiating a firmware upload of RTK_Surveyor_Firmware.bin displays the message "OTA could not begin" on the browser and then reboots due to a failed assertion.

Your workbench

  • What version of RTK Surveyor firmware are you running? v1.10
  • Are you connected to the device over Bluetooth? What app? No, connected via WiFi to 192.168.4.1
  • Are you transmitting NTRIP back to the device? No
  • How is everything being powered? Battery / USB cable
  • Are there any additional details that may help us help you? See attached log file.

Steps to reproduce

  1. Power on the RTK Express system
  2. Load firmware v1.10
  3. Power on the RTK Express system
  4. Press and release the Setup button to enter Setup mode
  5. Press and release the Setup button multiple times until WiFi Config is selected
  6. Wait for the RTK Express to enter WiFi config mode
  7. On a PC or MAC, select the WiFi network "RTK Config"
  8. With a browser, connect to http://192.168.4.1/
  9. Click on the "System Configuration" button near the bottom of the screen
  10. Click on the "Choose File" button
  11. Using the dialog box that pops up select the "RTK_Surveyor_Firmware.bin" file
  12. Click the upload button

Expected behavior

The system should fail gracefully, displaying a message on the browser and then continue operation in WiFi Config mode.

Actual behavior

The system resets due to a failed assertion.

I realize that this is old firmware and that the fix will not be made to the old firmware. However a fix should be applied to any new firmware to enable the download to fail gracefully back to WiFi Config mode.

What I was trying to test was the upgrade path from old firmware to new firmware. There have been several changes to the partition structure over the past couple of months. As I understand things, the old APP partition was 1.9MB and the when the current image is greater than 1.9MB I would expect the firmware download to fail.

I believe there needs to be a small (< 1.9MB) intermediate firmware image built using the new partition structure. This image gets downloaded to the device before any new firmware images are downloaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions