Changes between Version 28 and Version 29 of expansion/gw16126

Ignore:
Timestamp:
06/11/2019 09:14:03 PM (5 years ago)
Author:
Tim Harvey
Comment:

add firmware update via FOAT example

Legend:

Unmodified
Added
Removed
Modified
  • expansion/gw16126

    v28 v29  
    7777 - Firmware update Over AT (FOAT): Allows upgrading of the module firmware via binary 'delta' files over the AT interface using AT commands.
    7878 - Firmware update Over The Air (uFOTA): Allows upgrading the module firmware via binary 'delta' files over the air interface based on u-blox client/server solution (uFOTA), using Lightweight M2M (LWM2M). This requires the customer creats a campaign with u-blox to identify IMEI's of modems and access to the u-blox uFOTA server
    79  - EasyFlash is a windows application that allows flashing of 'full' firmware images
     79 - !EasyFlash is a windows application that allows flashing of 'full' firmware images
    8080
    8181You can use the {{{ATI}}} command on the AT tty to determine the firmware version (see [#at AT commands below])
     82
     83Examples:
     84 * FOAT:
     85{{{#!bash
     86apt install lrzsz # X/Y/Zmodem
     87DEVICE=/dev/$(for i in $(ls -d /sys/bus/usb/drivers/option/*/ttyUSB*); do basename $i; done | tail -n1)
     88echo "DEVICE=$DEVICE"
     89stty -F $DEVICE cs8 -parenb -cstopb -ixon
     90echo -n -e "AT+UFWUPD=3\r" > $DEVICE
     91sx -kv firmware.bin <$DEVICE >$DEVICE
     92sleep 1
     93echo -n -e "AT+UFWINSTALL\r" > $DEVICE
     94}}}
     95  - the actual installation of the firmware takes place when the modem receives the {{{AT+UFWINSTALL}}} command and can take up to 5 minutes to complete. If the binary delta can not apply to your firmware (ie you have a delta for the wrong version) it will fail and your firmware will go un-updated
     96  - the update is fault tolerant... in case of power outage etc the modem will boot with the old firmware
    8297
    8398[=#software]