Jump to content

error when trying to monitor gpio events with `gpiomon gpiochip0 40` - `error waiting for events: No such device`


Recommended Posts

Posted

Just checked the info there, but don't see how is this helpful with the issue I mentioned?
`gpiomon gpiochip0 40`  returns an error `error waiting for events: No such device` and I think that this is due to some issue with the kernel.
 

Posted

This is my situation, but i am using gpios for driving relays with this simple script:
 

Spoiler
#!/bin/bash
task(){
	gp=$1
        [[ ! -d /sys/class/gpio/gpio${gp} ]] && echo ${gp} > /sys/class/gpio/export
        echo "out" > /sys/class/gpio/gpio${gp}/direction
        echo "0" > /sys/class/gpio/gpio${gp}/value
        sleep 10
        echo "1" > /sys/class/gpio/gpio${gp}/value

}

task "$1"

 


 

ls -l /sys/class/gpio 
total 0
--w------- 1 root root 4096 Jan  1  1970 export
lrwxrwxrwx 1 root root    0 Jan  1  1970 gpiochip0 -> ../../devices/platform/soc/1c20800.pinctrl/gpio/gpiochip0
lrwxrwxrwx 1 root root    0 Jan  1  1970 gpiochip352 -> ../../devices/platform/soc/1f02c00.pinctrl/gpio/gpiochip352
lrwxrwxrwx 1 root root    0 Oct 20 11:22 gpiochip412 -> ../../devices/platform/soc/1c1c000.usb/usb2/2-1/2-1.4/2-1.4.4/2-1.4.4.1/2-1.4.4.1:1.0/gpio/gpiochip412
--w------- 1 root root 4096 Jan  1  1970 unexport

 

If this can help you in some way ...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines