Это старая версия документа.



Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/users/p/prom-auto/domains/prom-auto.ru/wiki/inc/parser/handler.php on line 1458

Warning: Declaration of syntax_plugin_tablecalc::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /home/users/p/prom-auto/domains/prom-auto.ru/wiki/lib/plugins/tablecalc/syntax.php on line 41

Warning: Declaration of syntax_plugin_tablecalc::render($mode, &$renderer, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /home/users/p/prom-auto/domains/prom-auto.ru/wiki/lib/plugins/tablecalc/syntax.php on line 72

Warning: Declaration of syntax_plugin_offline::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /home/users/p/prom-auto/domains/prom-auto.ru/wiki/lib/plugins/offline/syntax.php on line 60

Warning: Declaration of syntax_plugin_offline::render($format, &$renderer, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /home/users/p/prom-auto/domains/prom-auto.ru/wiki/lib/plugins/offline/syntax.php on line 67

Warning: preg_match(): Compilation failed: invalid range in character class at offset 3416 in /home/users/p/prom-auto/domains/prom-auto.ru/wiki/inc/parser/lexer.php on line 118
A PCRE internal error occured. This might be caused by a faulty plugin

====== How to use serial ports on Ubuntu ====== ===== General info ===== 1. Embedded (motherboard) port names look like: /dev/ttyS0 /dev/ttyS1 2. Moxa CP-114 (it's been verified, but other board like CP-132 haven't been yet) port names look like: /dev/ttyMI0 /dev/ttyMI1 /dev/ttyMI2 /dev/ttyMI3 3. To communicate with devices via the followed programs are used: sudo apt-get install cutecom sudo apt-get install setserial ===== VirtualBox ===== 4. Using serail port with VirtualBox: - VirtualBox Manager / VM properties / COM ports - Check one or both COM-ports - point each port to appropriate host device, for instance - /dev/ttyMI0 ===== Wine ===== 5. Using serial ports with Wine: Adding standard port: ln -s /dev/ttyS0 ~/.wine/dosdevices/com1 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 responcible for your serial port. <code> dmesg | grep serial [ 0.624634] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A [ 5.117510] parport_serial 0000:04:01.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 </code> ===== For more concrete information you can use following ===== <code> dmesg |В grep tty </code> 7. You can use it to know what file in /dev is responcible for your serial port

dev/ubuntu/serial.1302262374.txt.gz · Последние изменения: 2011/04/08 15:32 — alexeyb
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0