Advantech ROM-3420 handleiding

54 pagina's
PDF beschikbaar

Handleiding

Je bekijkt pagina 20 van 54
ROM-3420 User Manual 12
#hexdump‐C/dev/mmcblk1‐s25720832‐n16
0188780030313233343536373839414243444546|0123456789ABCDEF|
3.1.5 GPIO Test
3.1.5.1 GPIO Default Setting
#cd/sys/class/gpio
You can use “ls” to list all GPIO devices, and you should also see GPIO ports in
above table.
3.1.5.2 Testing
A. Set gpio1 GPI (in)
#echoin>./gpio1/direction
#cat./gpio1/direction
in
B. Set gpio2 GPO (out)
#echoout>./gpio2/direction
#cat./gpio2/direction
out
C. Set gpio2 GPO value “0”
#echo0>./gpio2/value
D. Get gpio1 value
#cat./gpio1/value
0
As you can see in above procedure A and B, we set gpio 1 as GPI and gpio 2 as
GPO so once we send data out from gpio 2, it should be able to receive the same
data from gpio 1.
Note! Please make sure parameter “seek” is equal to 25118 as indicated in
red in above codes. If you create the file to a wrong sector, that may
damage the system.
ROM-DB3900
Linux OS
/sys/class/gpio
GPIO8 gpio1
GPIO9 gpio 2

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