Advantech AOM-2721 handleiding

72 pagina's
PDF beschikbaar

Handleiding

Je bekijkt pagina 37 van 72
3.4 Serial ports
3.4.1 RS232 Loopback
UART 2 (Default RS-232 function): ROM-ED92 COMB1
UART 3: ROM-ED92 COMC1
UART 4: ROM-ED92 COMD1
UART 2
# stty -F /dev/ttyHS9 -echo -onlcr 115200 raw
# cat /dev/ttyHS9 &
# echo "Serial Port Test" > /dev/ttyHS9
UART 3
# stty -F /dev/ttyHS10 -echo -onlcr 115200 raw
# cat /dev/ttyHS10 &
# echo "Serial Port Test" > /dev/ttyHS10
UART 4
# stty -F /dev/ttyHS11 -echo -onlcr 115200 raw
# cat /dev/ttyHS11 &
# echo "Serial Port Test" > /dev/ttyHS11
3.4.2 RS-422
Test RS-422 with Adam-4520:
Adam-4520 RX- connect to the DB9 Pin 1 of ROM-ED92 COMB1
Adam-4520 RX+ connect to the DB9 Pin 2 of ROM-ED92 COMB1
Adam-4520 TX- connect to the DB9 Pin 4 of ROM-ED92 COMB1
Adam-4520 TX+ connect to the DB9 Pin 3 of ROM-ED92 COMB1
Set the GPIO#587,GPIO#588 (UART MODE1,UART MODE0) to 1,1
UART 2
# echo 587 > /sys/class/gpio/export (UART MODE1)
# echo 588 > /sys/class/gpio/export (UART MODE0)
# echo out > /sys/class/gpio/gpio587/direction
# echo out > /sys/class/gpio/gpio588/direction
# echo 1 > /sys/class/gpio/gpio587/value
# echo 1 > /sys/class/gpio/gpio588/value
# stty -F /dev/ttyHS2 speed 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr
-isig -icanon -iexten -echo -echoe -echok -echoctl -echoke
# cat /dev/ttyHS2 &
# echo "Serial Test" > /dev/ttyHS2
# echo -e "123456789-123456789-123456789-123456789-123456789-\r" | tee
/dev/ttyHS2
3.4.3 RS-485
Test RS-485 with Adam-4520:
Adam-4520 Data- connect to the DB9 Pin 1 of ROM-ED92 COMB1
Adam-4520 Data+ connect to the DB9 Pin 2 of ROM-ED92 COMB1
Set the GPIO#587,GPIO#588 (UART MODE1,UART MODE0) to 1,0
Set the SW5: 1-on

Bekijk gratis de handleiding van Advantech AOM-2721, stel vragen en lees de antwoorden op veelvoorkomende problemen, of gebruik onze assistent om sneller informatie in de handleiding te vinden of uitleg te krijgen over specifieke functies.

Productinformatie

MerkAdvantech
ModelAOM-2721
CategorieNiet gecategoriseerd
TaalNederlands
Grootte13504 MB