![ST STMC2 Скачать руководство пользователя страница 28](http://html1.mh-extra.com/html/st/stmc2/stmc2_manual_1356131028.webp)
Configuration using the stmcconfig utility
ST Micro Connect 2
28/58
7912386 Rev 12
5.14.1 Serial
configuration
The ST Micro Connect 2 is configured by the command:
stmcconfig --ip <
ip address
> --serial-relay [<
channel
> <
baud
>
<
databits
> <
parity
> <
stopbits
> <
hw flow>
]
Table 3 on page 28
lists the valid argument values for this command.
If no arguments are supplied to the
--serial-relay
option,
stmcconfig
displays the
default values used.
5.14.2 Telnet
connections
to the serial relay
Note:
The telnet client may be configured to use either character mode or line mode, see
Compatibility issues
below.
On a Linux host start a telnet session with:
host
% telnet <
ip address
> 5331
No
.telnetrc
file is required.
On a Windows host start a telnet session with:
> telnet <
ip address
> 5331
Compatibility issues
●
Line feed
Under some circumstances telnet may need to be setup to send only carriage return
(CR) when the return key is pressed.
For example, if the target attached to the serial line appears to give a double prompt
this indicates that the telnet client is sending carriage return (CR) and line feed (LF)
characters when the return key is pressed.
The telnet client should be set up to send just CR. To do this:
1.
Start telnet
> telnet
2.
Escape to command mode by pressing ^] (control key and right square bracket)
Table 3.
stmcconfig --serial-relay arguments
Argument
Possible values
Comment
<
channel
>
0
0
is the mandatory value.
<
baud
>
300
,
600
,
1200
,
1800
,
2400
,
4800
,
9600
,
19200
,
38400
,
57600
,
115200
The default is
115200
.
<
databits
>
5
,
6
,
7
or
8
The default is
8
.
<
parity
>
none
,
odd
,
even
The default is
none
.
<
stopbits
>
1
,
2
The default is
1
.
<
hw flow
>
0
,
1
Hardware flow control using the RTS and CTS signals.
0
selects disabled and is the default;
1
selects enabled.
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
Downloaded from