Using vr_refreshThe vr_refresh tool is a standalone command line application that can be used to update the firmware on a module. There are no dependencies for vr_refresh. Usage: vr_refresh [OPTIONS] [SINGLE_HEX_FILE_NAME] Do not include the brackets [ ].
For example, to download the firmware to a LED controller module, the typical usage on a Windows machine would be:
The typically usage on a Linux host would be:
By default vr_refresh will use BROADCAST transmissions to establish connections. This behavior can be changed by using the -i or the -sn parameters. vr_refresh, like all VideoRay command line tools will output its usage options when run with the "-?" parameter. vr_refresh Methods of ConnectionThere are two ways to establish a connection between vr_refresh and the module.
Power on ConnectionWhen vr_refresh is run it will sit and wait for the initial announcement message sent by the module. The modules use a randomized transmission to attempt to minimize collisions when there are multiple devices on the bus. Since vr_refresh by default uses broadcasts, this means that if there are multiple devices connected and powered up at the same time it is a matter of chance as to which module will connect. It is therefore recommend that either the -sn or -i parameters be used or only as single module be connected at a time when updating firmware. Application Firmware Reboot ConnectionWhen vr_refresh is run it will send a REBOOT message immediately (-i parameter applies). If a module is connected, powered up, and accepts the REBOOT message from vr_refresh (either it is a broadcast message or the proper node id was passed in) the module will reboot and jump to the bootloader. It should then connect as desired. vr_refresh Outputvr_refresh will output status strings during operation. Examples are given below: Waiting to connect (command line: vr_refresh -c com7 -I 1); response:
Successful connection (command line: vr_refresh -c com7); response:
Successful connection VERBOSE mode (command line: vr_refresh -c com7 --verbose); response:
Sample end of firmware update (command line: vr_refresh -c com7 -verbose led_controller-1.0.0.hex); response:
|
|||||||||||||||||||||||||||
[ Help us improve this document ] [ Print this page ] |