Utility applications for SharkRF openSPOT
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
ospupdfw

README.md

ospupdfw

ospupdfw is an utility written in Python which downloads and updates firmware of a SharkRF openSPOT device.

Usage:

Update SharkRF openSPOT firmware

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  -d [DEVICE], --device [DEVICE]
                        serial device port where the openSPOT is connected to
                        (default: /dev/ttyACM0)
  -i, --info            print openSPOT info and exit (default: False)
  -t {beta,stable}, --type {beta,stable}
                        firmware type (default: stable)
  -fw FW_VERSION, --firmware FW_VERSION
                        firmware version to download and install (default:
                        0131)
  -hw HW_VERSION, --hardware HW_VERSION
                        hardware version (see the sticker at bottom of your
                        openSPOT) (default: 1.1)

Example output:

veijo@kirsikka:~/srf-osp-utility$ ./ospupdfw -t beta -fw 0132 
Downloading the firmware:
  https://x.sharkrf.com/fw-beta/osp/srf-osp-1.1-0132.bin
Opening serial device /dev/ttyACM0

SharkRF openSPOT device information (/dev/ttyACM0):
inf
sercon: inf: SharkRF openSPOT (openspot2)
  SRF-OSP-1.1-433 eu v0131 0A236A54 up 278
  diag 0,0000008a,000000a1,00000058,00000057,00000037,00000088
ready.
 

Do you want to continue (Y/N)?
y
Rebooting SharkRF openSPOT device to bootloader
Waiting the bootloader directory /media/veijo/BOOTLOADER/ to show up
Copying srf-osp-1.1-0132.bin to /media/veijo/BOOTLOADER/
Please, wait a couple of minutes

Please, stand by one more minute, the openSPOT is starting up!
veijo@kirsikka:~/srf-osp-utility$