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

Навигация

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

Новая страница: «Before you start working with the port, you need to adjust its speed and other parameters depending on what device is connected to it: *speed in bits per second.…»
(Новая страница: «You can send data to the serial port and receive it from there. In Linux, serial ports are represented as some pseudo-files from the ''/dev/'' folder, for example…»)
(Новая страница: «Before you start working with the port, you need to adjust its speed and other parameters depending on what device is connected to it: *speed in bits per second.…»)
Строка 10: Строка 10:
You can send data to the serial port and receive it from there. In Linux, serial ports are represented as some pseudo-files from the ''/dev/'' folder, for example, in the Wiren Board it is ''/dev/ttyAPP0'', ''/dev/ttyNSC1'', ''/dev/ttyUSB0'' (all have tty in the name).
You can send data to the serial port and receive it from there. In Linux, serial ports are represented as some pseudo-files from the ''/dev/'' folder, for example, in the Wiren Board it is ''/dev/ttyAPP0'', ''/dev/ttyNSC1'', ''/dev/ttyUSB0'' (all have tty in the name).


Перед тем, как начать работать с портом, надо настроить его скорость и другие параметры в зависимости от того, какое устройство к нему подключено:
Before you start working with the port, you need to adjust its speed and other parameters depending on what device is connected to it:
* скорость в битах в секунду. Самое популярное значение 115200
*speed in bits per second. The most popular value is 115200
* количество бит в символе, чётность, количество стоп-битов. Самая популярная конфигурация называется ''8N1'' - восемь бит в символе, проверки чётности нет, один стоп-бит
*number of bits in the symbol, parity, number of stop bits. The most popular configuration is called ''8N1'' - eight bits per character, no parity, one stop bit
* аппаратный и программный контроль потока. Если не знаете - поставьте нет в обоих настройках.
*hardware and software flow control. If you do not know it - put ''no'' in both cases.




12 063

правки