Title: i need help to identify the relay gpio [Print This Page] Author: melop Time: 6/19/2020 01:07 Title: i need help to identify the relay gpio hey there everyone , totaly new here.
i received not long ago a rockhip chines dev board , it came with android installed on it, and some devices attached to it , leds,sensors,thermal sensor, camera ,relay and more. most of them are connected via gpio , some usb on the board
this is a IOT-3288X
since most the devices are connected via gpios is that the weird part for example are the gpio names, for example there is a led connected to multiple place on the board 1 led 3 colors , they are all under gpio_sw in /sys/class/gpio_sw/ . so instead of having a normal such as LEDWHITE it has totaly different names for example to turn on the white led i have to
which make no sense, but i guess everything is messed up
so right now i am trying to understand which gpio is turning on a relay gate ,
i did checked the hardware pins on a chines manual and it seems that the relay is connected to pin 19 and 20 , however when i exported the pins to the /sys/class/gpio/export and then tried to changed the value of it, it did not work. i am at a stage that i am sitting on it for over 16h straight trying to figuring this out without any success
note that i even exported all 264 pins , and tried to change all of them to direction out , however the device crashed and restart , i tried to minimized it to 100 (batch of 100) than minimzed to 10, it carshed all the way, i tried also to change all the values to 1 (without the direction out, so gpio that are on out should've work) it did no changes , i tried to set the value to 0 (on all pins) nothing happen aswell.
when exporting the all the pins , some did not work (all the gpios pins in sys/kernel/debug/gpio could not be exported inside the gpio folder im not sure why , pehaps they are being used or already open/mounted? so how do i use them)
there is an app on the android , which allow me to change the relay more (normaly open, normaly close) (perhaps that can help idk)
any of u have an idea how can i determine what the app is controlling ?
of figuring out what gpio is that so i can turn on and off the relay on my command/demand ?