VAR-SOM-AM43 RS485-Port: Difference between revisions

From Variscite Wiki
(Created page with "= RS-485 port = Please do the following to enable and test RS-485 port: <br> 1. Perform a loopback at RS-485 port by shorting pins 1 to 3 and 2 to 4 on J11 (on the carrier boa...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
= RS-485 port =
{{PageHeader|VAR-SOM-AM43 - RS-485 Port}} {{DocImage|category1=VAR-SOM-AM43|category2=Yocto}} __toc__
Please do the following to enable and test RS-485 port: <br>
Please do the following to enable and test RS-485 port: <br>
1. Perform a loopback at RS-485 port by shorting pins 1 to 3 and 2 to 4 on J11 (on the carrier board).
1. Perform a loopback at RS-485 port by shorting pins 1 to 3 and 2 to 4 on J11 (on the carrier board).


2. Issue the following commands to the Linux shell to enable:
2. Type the following commands in the Linux shell to enable:


<pre>
<pre>
Line 11: Line 12:


# Tx enable: gpio173
# Tx enable: gpio173
$ echo 173 > /sys/class/gpio/export
$ echo 173 > /sys/class/gpio/export
$ echo "out" > /sys/class/gpio/gpio173/direction
$ echo "out" > /sys/class/gpio/gpio173/direction
$ echo 1 > /sys/class/gpio/gpio173/value
$ echo 1 > /sys/class/gpio/gpio173/value
</pre>


3.start minicom
3. Start minicom
<pre>
$ minicom -D/dev/ttyO2 -b115200 -8
$ minicom -D/dev/ttyO2 -b115200 -8
</pre>
</pre>


4. Type a few characters at the minicom and see that the loopback is working.
4. Type a few characters at the minicom and see that the loopback is working.

Latest revision as of 15:30, 24 December 2015

VAR-SOM-AM43 - RS-485 Port

Please do the following to enable and test RS-485 port:

1. Perform a loopback at RS-485 port by shorting pins 1 to 3 and 2 to 4 on J11 (on the carrier board).

2. Type the following commands in the Linux shell to enable:

$ echo 168 > /sys/class/gpio/export
$ echo "out" > /sys/class/gpio/gpio168/direction
$ echo 0 > /sys/class/gpio/gpio168/value

# Tx enable: gpio173

$ echo 173 > /sys/class/gpio/export
$ echo "out" > /sys/class/gpio/gpio173/direction
$ echo 1 > /sys/class/gpio/gpio173/value

3. Start minicom

$ minicom -D/dev/ttyO2 -b115200 -8

4. Type a few characters at the minicom and see that the loopback is working.