LAA cli (aka. laacli)ī
laacli is a command line application, running on the LAA, allowing to control the LAA hardware.
$ laacli --help
Linaro Automation Appliance CLI
Usage: laacli <COMMAND>
Commands:
button Virtual buttons
led User LED
power Power rails
rev LAA Revision
temp Query temperature (°C)
usb USB Hub
usbg-ms USB Gadet Mass storage
watt Power consumption
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
Commandsī
ledī
Control the color of the user led.
$ laacli led --help
User LED
Usage: laacli led <COLOR>
Arguments:
<COLOR> Desired color [possible values: green, off, yellow]
powerī
Control the state of the different power rails.
$ laacli power --help
Power rails
Usage: laacli power <VBUS> <STATE>
Arguments:
<VBUS> VBus rail [possible values: 1v8, 3v3, 5v, 12v]
<STATE> Desired state [possible values: on, off, reset]
revī
Print the LAA hardware revision.
$ laacli rev
LAA rev 1.01
tempī
Print the thermal probe values.
$ laacli temp --help
Query temperature (in °C)
Usage: laacli temp <PROBE>
Arguments:
<PROBE> Probe name [possible values: amb, dut, sys]
usbī
Control the DUT USB ports state.
$ laacli usb --help
USB Hub
Usage: laacli usb <PORT> <STATE>
Arguments:
<PORT> USB port
<STATE> Desired state [possible values: on, off, reset, start]
usbg-msī
Control the USB OTG port to act as a USB mass storage device using USB gadget mode (USB mass storage emulation).
$ laacli usbg-ms --help
USB Gadget Mass storage emulation
Usage: laacli usbg-ms <STATE> [FILENAME]
Arguments:
<STATE> Desired state [possible values: on, off, status]
[FILENAME] filename [default: ]
Calling On or Off twice
If you call laacli usbg-ms on <FILE>
or laacli usbg-ms off
twice in a
row, the second call will fail and return 1.
This is expected, using laacli usbg-ms status
will print the current state
(On
or Off
).
wattī
Print the instant power consuption of the power rails.
$ laacli watt --help
Power consumption
Usage: laacli watt <VBUS>
Arguments:
<VBUS> VBus rail [possible values: 1v8, 3v3, 5v, 12v]
laacli will return:
$ laacli watt 5v
4.968V
0.433A
2.14344W