This document describes the commands that can be used to test the OMI EVT board.
This project uses Zephyr as the OS and nRF Connect SDK for BLE support.Before using the commands below, make sure you have vscode and nRF Connect SDK installed. You can follow the nRF Connect SDK Getting Started guide to install it.
| Command |
Description |
ble on |
Turn ON BLE and advertising as OMI shell |
ble off |
Turn OFF BLE |
| Command |
Description |
charger get |
Get battery voltage |
| Command |
Description |
flash id |
Read flash chip JEDEC ID |
flash erase $ADDR |
Erase flash page for the given $ADDR |
flash read $ADDR $N |
Read $N bytes from address $ADDR |
flash write $ADDR $VAL |
Write $VAL (hex encoded, e.g. aabbccdd) to $ADDR |
| Command |
Description |
imu get |
Obtain IMU readings (acc/gyro) |
| Command |
Description |
mic capture [sec] |
Capture microphone data for the given number of seconds (default: 1) |
| Command |
Description |
led on $num |
Turn ON LED (0-3) |
led off $num |
Turn OFF LED (0-3) |
| Command |
Description |
button check |
Check button state |
| Command |
Description |
motor on |
Turn ON motor |
motor off |
Turn OFF motor |
| Command |
Description |
sdcard mount |
Mount SD card filesystem |
sdcard unmount |
Unmount SD card filesystem |
sdcard ls $path |
List files in $path on the SD card |
sdcard read $path |
Read from file at $path |
sdcard write $path $data |
Write to file at $path with data $data |
| Command |
Description |
System off |
Turn OFF the device |