Advantech ROM-3310 handleiding

62 pagina's
PDF beschikbaar

Handleiding

Je bekijkt pagina 22 van 62
ROM-3310 User Manual 14
3.6 GPIO Test
You can use “ls” to list all GPIO devices, and you should also see GPIO ports in
above table.
Example of testing GPIO
Set gpio200 GPI(in)
Set gpio201 GPO (out)
Set gpio201 GPO value “1”
Get gpio200 value
As you can see in above procedure A and B, we set gpio 200 as GPI and gpio 201 as
GPO, once we send data out from gpio 201, it should be able to receive the same
data from gpio 200.
Table 3.1: ROM-3310 GPIO Default Setting
ROM-DB3900 Linux OS /sys/class/gpio ROM-DB3900 GPIO CHIP
GPIO0 gpio200 GPIO(3)
GPIO1 gpio201 GPIO(4)
GPIO2 gpio202 GPIO(5)
GPIO3 gpio203 GPIO(6)
GPIO4 gpio204 GPIO(7)
GPIO5 gpio205 GPIO(8)
GPIO6 gpio206 GPIO(9)
GPIO7 gpio207 GPIO(10)
GPIO8 gpio208 GPIO(11)
GPIO9 gpio209 GPIO(12)
#cd /sys/class/gpio
#echo in > ./gpio200/direction
#cat ./gpio200/direction
in
#echo out > ./gpio201/direction
#cat ./gpio201/direction
out
#echo 1 > ./gpio201/value
#cat ./gpio200/value
1

Bekijk gratis de handleiding van Advantech ROM-3310, 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
ModelROM-3310
CategorieNiet gecategoriseerd
TaalNederlands
Grootte7640 MB