Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

User:Pau pajuelo

811 bytes removed, 18:13, 28 August 2012
m
Test RS-485 communication with two IGEP0020 boards
| 5 |---------- B --------------| 5 |
--- ---
</pre> Setup a NFS-TFTP environment (poky-image-sato) for each board using kernel image with RS-485 support, and power up  Build the example for your target boards (485-example.c at the end of this article),   $ cd linux-omap-2.6.28.10-3 $ arm-none-linux-gnueabi-gcc 485-example.c -o 485-example -Iinclude -Iarch/arm/include and copy to target rootfs.  Now, open a [[Using SSH to communicate|ssh console]] to the first board and execute the microcom command:   root@igep0020:~# microcom /dev/ttyS0 connected to '/dev/ttyS0' (9600 bps), exit with ctrl-X... On second board, open a ssh and execute the 485 example:   root@igep0020:~# ./485-example If all is ok, should appear "ABC" in microcom console.   root@igep0020:~# microcom /dev/ttyS0 connected to '/dev/ttyS0' (9600 bps), exit with ctrl-X... ABC
= Appendix A: 485-example.c&nbsp;: Basic example of RS-485 half duplex transmission =
4,199
edits