Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to use UARTs

35 bytes added, 12:25, 19 January 2012
no edit summary
= Preparing IGEP =
 
=== Configure IGEP ===
NOTE: Make sure that you installed open SSH server. If you don't have it go [[How to forge a local file system server with IGEP0020 board#Installing_Open_SSH_Server|here]].
By default, UART0 is used by RS485 driver, we need to disable RS485 support, edit igep.ini file: <br>
<pre>board.ei485= yes
</pre>
Maybe you don't found this line, replaced by or type this:<br>
<pre>board.ei485= no
</pre>
By default, UART3 is used by Kernel serial console, we need to disable it, go to igep.ini file, comment next line: <br><pre>console=ttyS2,115200n8</pre> 
=== Check UARTs devices ===
root@localhost:~/PROGRAM# </pre>
Get information about UARTs, type:
<pre>setserial -g /dev/ttyS[0123]</pre>
The result will be similar at that:
<pre>root@localhost:~/PROGRAM# setserial -g /dev/ttyS[0123]
/dev/ttyS2, UART: 16654, Port: 0x0000, IRQ: 74
/dev/ttyS3, UART: 16654, Port: 0x0000, IRQ: 80
root@localhost:~/PROGRAM# </pre>If you don't have setserial installed type:<pre>apt-get install setserial</pre> 
=== Wire connectors ===
Wire connector like:
<pre> J960
------
------
</pre>
 
=== Send some data ===
p
= Compile and run program =
4,199
edits