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

м
FuzzyBot переименовал страницу Working with serial port/en в Serial Port/en без оставления перенаправления: Часть переводимой страницы Working with serial port.
(Новая страница: «The most convenient tool to work with the serial port from the console is ''minicom'' (available in the standard image of the Wiren Board controller). Minicom is…»)
м (FuzzyBot переименовал страницу Working with serial port/en в Serial Port/en без оставления перенаправления: Часть переводимой страницы Working with serial port.)
 
(не показаны 4 промежуточные версии 2 участников)
Строка 67: Строка 67:
The most convenient tool to work with the serial port from the console is ''minicom'' (available in the standard image of the Wiren Board controller). Minicom is convenient to use for working with devices that are controlled by text commands or output text messages. The examples of such devices are GSM modems (controlled by AT commands), including the GSM module built into the Wiren Board; GPS modules operating under the NMEA Protocol, etc.
The most convenient tool to work with the serial port from the console is ''minicom'' (available in the standard image of the Wiren Board controller). Minicom is convenient to use for working with devices that are controlled by text commands or output text messages. The examples of such devices are GSM modems (controlled by AT commands), including the GSM module built into the Wiren Board; GPS modules operating under the NMEA Protocol, etc.


Краткая инструкция (считаем, что мы будем работать с портом /dev/ttyAPP0):
Brief instructions (we believe that we will work with the port /dev/ttyAPP0):
* В первый раз запускаем '''minicom''' с ключом, создающим профиль работы с портом (в нём хранятся номер порта, скорость передачи данных, чётность, и т.д.):
* For the first time, run minicom with a key that creates a port profile (it stores the port number, data rate, parity, etc.):
<pre>
<pre>
  $ minicom -s /dev/ttyAPP0
  $ minicom -s /dev/ttyAPP0
</pre>
</pre>
* Зайти в настройки (нажать ''Ctrl+A'', затем ''O''), выбрать пункт ''Serial port setup'', там установить порт ''/dev/ttyAPP0'', скорость и чётность - ''115200, 8N1'', ''Hardware flow control - No'', ''Software flow control - No''
* Go to settings (press Ctrl+A, then O), select Serial port setup, there set port /dev/ttyAPP0, speed and parity - 115200, 8N1, Hardware flow control - No, Software flow control - No
* Сохранить настройки: ''Save setup as _dev_ttyAPP0''
* To save settings: Save setup as _dev_ttyAPP0
* Далее запускать как:
* Then run as:
<pre>
<pre>
  $ minicom /dev/ttyAPP0
  $ minicom /dev/ttyAPP0
</pre>
</pre>
(все параметры будут сразу браться из профиля с названием ''/dev/ttyAPP0'', который мы ранее создали)
(all settings will be taken from the profile name /dev/ttyAPP0 that we previously created)
* Теперь можно вводить данные, которые вы хотите отправить в порт. Приходящие в порт данные от внешних устройств также будут выводиться
* You can now enter the data you want to send to the port. Data coming to the port from external devices will also be displayed


----
----
Строка 86: Строка 86:
== modbus-client ==
== modbus-client ==


Одним из самых удобных средств отладки коммуникаций Modbus из командной строки Wiren Board является утилита '''modbus-client'''.
One of the most convenient means of debugging Modbus communications from the command line of Wiren Board is the modbus-client utility. Description and examples can be found on this page [[modbus-client/en|modbus-client]].
Описание и примеры можно найти на этой странице [[Special:MyLanguage/modbus-client|modbus-client]].




== Работа с последовательным портом из своей программы ==
==  
Work with serial port from your program ==


http://tldp.org/HOWTO/Serial-Programming-HOWTO/
http://tldp.org/HOWTO/Serial-Programming-HOWTO/
wb_editors
14 355

правок