4.2 Commands for interactive board control
When the serial connection is set up according to previous steps and opened you will be presented by terminal
interface. This package provides console application for executing commands. It is advised to reset MCU board
when serial connection is already opened, however it is not mandatory.
The board is operated by transmitting text based commands through UART. In general, every command starts
with specification of a function keyword followed by a parameter keyword specifying what action should be
applied upon that function.
Table 1. Description and usage of commands
Action Description Usage
on Turns function on function on
off Turns function off (when functions are not specified, turns off all
functions)
function off
off
state Returns state of function in logical format (on/off) function state
level Returns state of function in number format function level
states Returns state of all functions in logical format (on/off) states
levels Returns state of all functions in number format levels
help Displays help with information about all commands and their usage help
clear Clears text from terminal window clear
Table 2. Description of functions
Function Description
vcc VCC voltage
vcc1 VCC1 voltage
vcc1_dsc VCC1 discharge switch
vcc2 VCC2 voltage
vcc2_dsc VCC2 discharge switch
out1 OUT1 voltage
out1_dsc OUT1 discharge switch
out2 OUT2 voltage
out2_dsc OUT2 discharge switch
in1 IN1 detection
in2 IN2 detection
coff1 Cut-off feature switch (output channel 1)
coff2 Cut-off feature switch (ouput channel 2)
tp1 Test Pulse feature switch (input channel 1)
tp2 Test Pulse feature switch (input channel 2)
An example of using commands on a serial console is shown in Figure 7.
UM3176
Commands for interactive boardcontrol
UM3176 - Rev 1 page 8/15