Sb-update

From University of Washington - Ubicomp Research Page
Jump to navigationJump to search

sb-update

sb-update is a program which allows you to reflash, verify, and query the version of sensor board firmware. It works with either the MSB or LSB (provided that the bootloader is installed on them). sb-update accepts Intel HEX format firmware files. Note: The reflash and verify commands switch the sensor board to its bootloader mode. To switch back to regular operation, you must either power-cycle the board or issue the get-version command.

If you'd like to understand how sb-update works behind the scenes, see the bootloader protocol details.

usage

    Typical Usage

      sb-update /dev/ttyS0 get-version
      sb-update /dev/ttyS0 reflash firmware.hex
      sb-update /dev/ttyS0 verify firmware.hex
      

    Available Commands

      get-version               queries the firmware for its version
      reflash <firmware.hex>    reflashes the firmware on the sensor board with the specified hex file
      verify <firmware.hex>     verifies that the firmware on the sensor board matches the specified hex file
      

example output

    Typically the msb-server will output something similar to the following. Where the final recieved stats will continue until the program is terminated or an error occurs.
    [root@imote2 /root]#./sb-update /dev/ttyS0 get-version
    Resetting firmware. OK!
    Querying sensor board for version... Failed.
    Trying to boot from bootloader...
    Querying sensor board for version... OK!
    Hardware version = 3, Firmware version = 1.6
    
    [root@imote2 /root]#./sb-update /dev/ttyS0 reflash MSBv1.hex
    Switching to bootloader... OK!
    MSB/LSB Bootloader 0.71
    Copyright 2006 University of Washington
    ........................................................
    ........................................................
    ........................................................
    ................................. OK
    
    [root@imote2 /root]#./sb-update /dev/ttyS0 verify MSBv1.hex
    Switching to bootloader... OK!
    MSB/LSB Bootloader 0.71
    Copyright 2006 University of Washington
    ........................................................
    ........................................................
    ........................................................
    ................................. OK