OS Commands
os-flash
Flashes new firmware from a sdcard file.
Usage:
os-flash [filename] [directory] [preserve_sdcard]
Parameter | Description |
---|---|
[filename] | The name of the firmware file to flash. (default: aurora-application.hex) |
[directory] | The optional directory the file is located in. (default: "/" (root)) |
[preserve_sdcard] | If specified and truthy, the SD card is not formatted after a successful flash. |
os-flash-bootloader
Flashes new bootloader firmware from a sdcard file.
Usage:
os-flash-bootloader [filename] [directory] [allow_bootstrap] [preserve_fw_file]
Parameter | Description |
---|---|
[filename] | The name of the firmware file to flash. (default: aurora-bootloader.hex) |
[directory] | The optional directory the file is located in. (default: "/" (root)) |
[allow_bootstrap] | If provided and truthy, allow the bootstrap sectors to be flashed. (warning: This is dangerous!) |
[preserve_fw_file] | If provided and truthy, the firmware file will not be deleted after a successful flash. |
os-info
Displays system information.
Usage:
os-info [verbose]
Parameter | Description |
---|---|
[verbose] | If provided and truthy displays additional information. |
Example Output:
# os-info 1
---------------------------------------------------------------------------------------------------
Version : 20200
Bootstrap Version : 10000
Bootloader Version : 20100
BLE Version : 20100
Battery Level : 100%
Profile : NO
Board : iWinks Aurora v1 rev3
Build Date : Jun 8 2017 - 18:09:56
Bytes Free : 27592
Running Time : 0.62 h
Debug Mode : OFF
Stream Debug : OFF
---------------------------------------------------------------------------------------------------
os-reset
Performs a system reset, optionally into DFU mode.
Usage:
os-reset [dfu_mode]
Parameter | Description |
---|---|
[dfu_mode] | If truthy, resets into DFU mode. Only a hardware reset can exit DFU mode. |
os-shutdown
Shutdown system and power down.
Usage:
os-shutdown
os-sleep
Go into sleep mode.
Usage:
os-sleep
os-test
Performs a comprehensive system test.
Usage:
os-test
os-thread-display
Displays all created threads and their status.
Usage:
os-thread-display