12 063
правки
(Новая страница: «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: | |||
* | *speed in bits per second. The most popular value is 115200 | ||
* | *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. | ||
правки