Elton User Manual Rev 1.04
Page 65
The
RS485_util
provides the option to enable or disable RS485/422 direction control on the UART ports.
NOTE
: The
RS485_util
must be run after the ports are opened. Running the utility before the ports are
open may result in the Terminal utility resetting the flag settings.
Before transmitting, set the mode for individual ports.by replacing the
-n
parameter with the port number as
shown the syntax below.
#sudo rs485_util ttyTHS<n> 1
During transmission the RX protocol will be disabled. After the transmission is complete the RX protocol will
be enabled as depicted in the syntax and screen below.
#sudo rs485_util ttyTHS<n> 0
Figure 17.3-2: Enabled RX Protocol Screen
The table below lists the GPIO values and transceiver modes.
Sysfs GPIO
Number
RS232 RS422 RS485
443
1
1
0
444
0
1
1
CAN Controller Configuration
The AGX Xavier Series Module integrate two independent CAN ports/channels which support connectivity to
two CAN networks. The CAN interfaces
can0
and
can1
are routed to the Elton baseboard via CAN busses.
The maximum speed that is supported is 1 mbps.
The CAN network driver provides a generic interface to setup, configure, and monitor CAN devices. The
program
ip
is used to configure bit-timing parameters.
The following command line invokes the IP link to set the CAN bus bitrate before all operations begin.
sudo ip link set can0 type can bitrate 1000000
The following command line toggles the link up or down.
sudo ip link set up can0
The following command line sends CAN-frames via CAN_RAW sockets.
cansend can0 5A1#1122334455667788
The command
candump
dumps traffic on a CAN network The following syntax shows the message received
from the CAN bus.
candump can0