Различия
Здесь показаны различия между двумя версиями данной страницы.
| Следующая версия | Предыдущая версия | ||
|
dev:ubuntu:serial [2011/04/04 07:56] jamis7005 создано |
dev:ubuntu:serial [2011/04/09 17:06] (текущий) jamis7005 [Getting info about serial] |
||
|---|---|---|---|
| Строка 1: | Строка 1: | ||
| ====== How to use serial ports on Ubuntu ====== | ====== How to use serial ports on Ubuntu ====== | ||
| + | ===== General info ===== | ||
| 1. Embedded (motherboard) port names look like: | 1. Embedded (motherboard) port names look like: | ||
| Строка 15: | Строка 16: | ||
| sudo apt-get install setserial | sudo apt-get install setserial | ||
| + | ===== VirtualBox ===== | ||
| 4. Using serail port with VirtualBox: | 4. Using serail port with VirtualBox: | ||
| - VirtualBox Manager / VM properties / COM ports | - VirtualBox Manager / VM properties / COM ports | ||
| Строка 20: | Строка 22: | ||
| - point each port to appropriate host device, for instance - /dev/ttyMI0 | - point each port to appropriate host device, for instance - /dev/ttyMI0 | ||
| + | ===== Wine ===== | ||
| 5. Using serial ports with Wine: | 5. Using serial ports with Wine: | ||
| - | <note> | + | Adding standard port: |
| - | To be continued... | + | ln -s /dev/ttyS0 ~/.wine/dosdevices/com1 |
| - | </note> | + | Adding Moxa serial board port: |
| + | ln -s /dev/ttyMI0 ~/.wine/dosdevices/com2 | ||
| + | |||
| + | |||
| + | ===== Getting info about serial ===== | ||
| + | 6. You can use it to know what file in /dev is responsible for your serial port. | ||
| + | dmesg | grep serial | ||
| + | dmesg | grep tty | ||