Skip to content

Command tool Basic usage

Matthieu Antoine edited this page Oct 15, 2020 · 2 revisions

Command tool - Basic usage

Useful Tips

  • The commands are case-insensitive, so getversion is the same as GetVersion.
  • You can create alias to simply commands, such as alias 'toto= WifiPassiveScan B 0x421 beacon 20 10 110 complete'.
  • You can find commands using command find, such as:
>> find eui
- GetChipEUI: Get the modem Chip EUI
- GetJoinEUI: Get the modem Join EUI
- SetJoinEUI: Set the modem Join EUI
- GetDeviceEUI: Get the modem Device EUI
- SetDeviceEUI: Set the modem Device EUI
  • To list all available commands:
>> help
- ...
- ...

Shortcuts

Below shortcuts are available:

  Ctrl + a   Go to the beginning of the line (Home)
  Ctrl + e   Go to the End of the line (End)
  Ctrl + p   Previous command (Up arrow)
  Ctrl + n   Next command (Down arrow)
  Ctrl + w   Delete word before cursor

Command aliases

The terminal has command alias feature that allows to register alias for commands and arguments. Note that the aliases are stored in volatile memory. Therefore resetting the Nucleo board erase the aliases defined.

At boot the alias help is available for list_programs command.

Display all known aliases

>> alias
...

Set new aliases

>> alias 'myalias=mycmd myarg1 myarg2'

Deleting alias

>> unalias myalias
Clone this wiki locally