![ST STMC2 Скачать руководство пользователя страница 27](http://html1.mh-extra.com/html/st/stmc2/stmc2_manual_1356131027.webp)
ST Micro Connect 2
Configuration using the stmcconfig utility
7912386 Rev 12
27/58
5.12 Reset
(--reset)
The
--reset
option causes the ST Micro Connect 2 to reboot.
Syntax
stmcconfig --ip <
ip address
> --reset
Example
% stmcconfig --ip 192.168.1.1 --reset
5.13
Restore network configuration to factory defaults
(--restore-network-config)
Caution:
The
--restore-network-config
option removes the network configuration saved to
Flash and returns the network configuration to the factory default, see
Section D.1 on page
44
. All previous settings are lost. The factory default settings will be active after the ST Micro
Connect 2 has rebooted.
Note:
The
--restore-network-config
option reboots the ST Micro Connect 2.
Syntax
stmcconfig --ip <
ip address
> --restore-network-config
Example
% stmcconfig --ip 192.168.1.1 --restore-network-config
5.14
Configure serial redirect (--serial-relay)
The ST Micro Connect 2 can relay the RS-232 serial port input and output from a target
board to a terminal emulation program running on a host. Characters typed in the terminal
emulation program are sent to the target’s serial port. Characters received from the target’s
serial port are echoed in the terminal emulation program on the host.
This relay is particularly useful when the target is some distance from the host or when
different users need to access the serial port on the target board.
The sequence of actions that must be carried out are:
1.
Connect the target board to the ST Micro Connect 2 rear panel connector with a NULL
modem cable, see
Section A.4: RS-232 serial data connector on page 38
.
2.
Configure the ST Micro Connect 2 with the serial configuration, described in
Section 5.14.1
.
3.
Start a terminal emulation program on the host, see
Section 5.14.2: Telnet connections
to the serial relay on page 28
.
The ST Micro Connect 2 serial relay must be reconfigured when the ST Micro Connect 2 is
power cycled or reset with the
stmcconfig
reset facility.
The ST Micro Connect 2 serial relay is reconfigured when the
stmcconfig
--serial-relay
command is issued and any existing terminal emulation session is
terminated.
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from