Skip to main content
FW version: Stable

Nested terminal

The term command offers a higher-level interface for text-mode interaction. It can send out a string specified as a command line argument. If no arguments are given, it opens up a nested terminal session. In such a way, one device can act as a terminal gateway to another.

Send out a string through UARTCOM:

term -1 1 "Hello, world!"
tip
  • The UART speed is defined by the msgconf command.
  • The 1 is USARTCOM interface number.

Send a command to the remote YOS device

Send a command to the remote controller with address 0 over interface 3 - CAN bus. The command is run 0 0- stop the motor:

term 0 3 run 0 0

Open up a nested terminal

Open session over CAN to the device with address 3 (to exit, type quit):

term 0 3

After this command, all the terminal input will be redirected to the device with address 3.