Перейти к содержанию

Навигация

Serial Port: различия между версиями

→‎Minicom: Добавил про запуск без профиля
(→‎Minicom: Добавил про запуск без профиля)
Строка 130: Строка 130:


Чтобы выйти из minicom — нажмите одновременно клавиши <kbd>Ctrl</kbd>+<kbd>A</kbd>, а затем клавишу <kbd>X</kbd>.
Чтобы выйти из minicom — нажмите одновременно клавиши <kbd>Ctrl</kbd>+<kbd>A</kbd>, а затем клавишу <kbd>X</kbd>.
==== Запуск утилиты без профиля ====
Если вам нужно один раз соединиться с serial-устройством, то вы можете не создавать профиль, а указать параметры подключения прямо в аргументах командной строки.
Например, для соединения с модемом, который подключен к порту /dev/ttyGSM нужно ввести команду:
<syntaxhighlight lang="bash">
minicom -D /dev/ttyGSM -b 115200 -8 -a off
</syntaxhighlight>
{|  border="1" class="wikitable"
|+ Расшифровка параметров
! Аргумент|| Значение|| Описание
|-
| -D || /dev/ttyGSM || Порт, к которому подключено serial-устройство
|-
| -b || 115200 ||  Скорость порта, в бит/с
|-
| -8 || 8 || Количество битов данных
|-
| -a || off|| Контроль потока данных
|-
|  || || Остальные параметры оставлены по умолчанию
|-
|}
Полный перечень аргументов смотрите во встроенной справке, которую можно вызвать командой:
<syntaxhighlight lang="bash">
~# minicom -h
Usage: minicom [OPTION]... [configuration]
A terminal program for Linux and other unix-like systems.
  -b, --baudrate        : set baudrate (ignore the value from config)
  -D, --device          : set device name (ignore the value from config)
  -s, --setup            : enter setup mode
  -o, --noinit          : do not initialize modem & lockfiles at startup
  -m, --metakey          : use meta or alt key for commands
  -M, --metakey8        : use 8bit meta key for commands
  -l, --ansi            : literal; assume screen uses non IBM-PC character set
  -L, --iso              : don't assume screen uses ISO8859
  -w, --wrap            : Linewrap on
  -H, --displayhex      : display output in hex
  -z, --statline        : try to use terminal's status line
  -7, --7bit            : force 7bit mode
  -8, --8bit            : force 8bit mode
  -c, --color=on/off    : ANSI style color usage on or off
  -a, --attrib=on/off    : use reverse or highlight attributes on or off
  -t, --term=TERM        : override TERM environment variable
  -S, --script=SCRIPT    : run SCRIPT at startup
  -d, --dial=ENTRY      : dial ENTRY from the dialing directory
  -p, --ptty=TTYP        : connect to pseudo terminal
  -C, --capturefile=FILE : start capturing to FILE
  -F, --statlinefmt      : format of status line
  -R, --remotecharset    : character set of communication partner
  -v, --version          : output version information and exit
  -h, --help            : show help
  configuration          : configuration file to use
These options can also be specified in the MINICOM environment variable.
This variable is currently unset.
The configuration directory for the access file and the configurations
is compiled to /etc/minicom.
Report bugs to <minicom-devel@lists.alioth.debian.org>.
</syntaxhighlight>


=== PuTTY ===
=== PuTTY ===