Firmware update (Linux)
First install dfu-programmer:
$ sudo apt-get update $ sudo apt-get install dfu-programmer $ which dfu-programmer
The last command will tell you where dfu-programmer was installed:
/usr/bin/dfu-programmer
You can check which version of dfu-programmer was installed using this command:
$ /usr/bin/dfu-programmer --version
The output should look like this:
dfu-programmer 0.6.1
Next, we'll get the Mac update package from the FlySight website:
$ wget 'http://flysight.ca/fw/flysight-update-mac-20170405.zip' $ unzip flysight-update-mac-20170405.zip -d firmware
Then we use dfu-programmer to write this firmware to the FlySight:
$ cd firmware/flysight-update-mac/ $ sudo /usr/bin/dfu-programmer at90usb646 erase $ sudo /usr/bin/dfu-programmer at90usb646 flash ./flysight.hex
The output should look something like this:
Validating... 40442 bytes used (70.53%)
Now we need to copy the new audio and configuration files onto the FlySight.
$ sudo rsync --dry-run -iva --progress --stats --no-o --no-g --no-p audio/ /path/to/device/audio/
Check the output of this command, then run it again without the --dry-run flag.
$ sudo rsync --dry-run -iva --progress --stats --no-o --no-g --no-p CONFIG.TXT /path/to/device/CONFIG_DEFAULT_v20170405.TXT
Once again, check the output, then run the command again without the --dry-run flag.
Finally, we can check what has been updated in the new configuration file:
$ cd /path/to/device/ $ diff -w CONFIG.TXT CONFIG_DEFAULT_v20170405.TXT
The old configuration file can be updated manually to incorporate any new features.