Shell API
Shell uses a UART interface that can also work in binary mode. The binary mode is used to read API commands in TLV format. DWM starts by default in binary mode after reset. The shell mode can be switched to by pressing ENTER twice within 1 second. The binary mode can be switched to by executing the command “quit” in shell mode. The shell mode and the binary mode can be switched back and forth. Press Enter in shell mode to repeat the last command. The following text provides an overview of the shell commands.
The following table gives an overview of the availability of the shell commands on the ethernet gateway and the edge node.
Command |
Description |
DWM1001 |
Gateway |
---|---|---|---|
this help |
YES |
YES |
|
this help |
YES |
YES |
|
quit |
YES |
YES |
|
GPIO clear |
YES |
YES |
|
GPIO get |
YES |
YES |
|
GPIO set |
YES |
YES |
|
GPIO toggle |
YES |
YES |
|
Show free memory on the heap |
YES |
YES |
|
Reboot the system |
YES |
YES |
|
System info |
YES |
YES |
|
Show device uptime |
YES |
YES |
|
Factory reset |
YES |
YES |
|
General purpose TWI read |
YES |
NO |
|
Read ACC device ID |
YES |
NO |
|
Read ACC values |
YES |
NO |
|
Stationary config set |
YES |
NO |
|
Stationary config get |
YES |
NO |
|
Show meas. and pos. |
YES |
NO |
|
Show meas. and pos. in CSV |
YES |
NO |
|
Show pos. in CSV |
YES |
NO |
|
Get TxPwr |
YES |
NO |
|
Set TxPwr |
YES |
NO |
|
Get node mode |
YES |
YES |
|
Set UWB mode to passive |
YES |
NO |
|
Set UWB mode to off |
YES |
YES |
|
Set mode to AN |
YES |
NO |
|
Set mode to ANI |
YES |
NO |
|
Set mode to TN |
YES |
NO |
|
Set mode to TN-LP |
YES |
NO |
|
Set mode to BN |
YES |
YES |
|
Show AN list |
YES |
NO |
|
Show BN list |
YES |
NO |
|
Set Network ID |
YES |
YES |
|
Set node label |
YES |
YES |
|
Show incoming IoT data |
YES |
NO |
|
Send IoT data |
YES |
NO |
|
Get stats |
YES |
YES |
|
Clear stats |
YES |
YES |
|
Send TLV frame |
YES |
YES |
|
Set upd rate |
YES |
NO |
|
Get upd rate |
YES |
NO |
|
Get pos |
YES |
NO |
|
Set pos |
YES |
NO |
|
Set anchor config |
YES |
NO |
|
Set tag config |
YES |
NO |
|
Set encryption key |
YES |
NO |
|
Clear encryption key |
YES |
NO |
|
Set NVM usr data |
YES |
NO |
|
anc (not found example) |
Clear NVM usr data |
YES |
NO |
Get NVM usr data |
YES |
NO |
|
Set MAC addr list once |
YES |
NO |
|
Get MAC addr list |
YES |
NO |
|
Set HW version once |
YES |
NO |
|
Set MAC address |
YES |
NO |
|
Configure node |
NO |
YES |
|
Set default UART mode |
NO |
YES |
|
Print interfaces |
NO |
YES |
|
Set local IPv4 |
NO |
YES |
|
Set DNS server IP address list |
NO |
YES |