Generic sysfs GPIO update Topic is solved

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!
Posts: 9
Joined: Sunday 19 November 2017 12:47
Target OS: Raspberry Pi
Domoticz version: V3.8775
Location: Bavaria

Re: Generic sysfs GPIO update

Post by doncoron » Tuesday 12 December 2017 10:44

Good morning,

@guantolento, what would you like to do with your button. Or what has the button for function?

For the Generic sysfs GPIO is nothing new from the Wiki Page.

best regards


Posts: 59
Joined: Friday 10 June 2016 23:46
Target OS: Linux
Domoticz version:

Re: Generic sysfs GPIO update

Post by Timeless » Monday 18 December 2017 12:30

kofec wrote:
Friday 20 October 2017 13:03

Code: Select all

2017-10-20 12:54:09.796  Sysfs GPIO: Startup - polling:no interrupts:yes debounce:50msec inputs:1 outputs:6
2017-10-20 12:54:09.799  EventSystem: reset all events...
2017-10-20 12:54:09.803  EventSystem: reset all device statuses...
2017-10-20 12:54:09.805  Sysfs GPIO: Edge detection started
Segmentation fault

Code: Select all

2017-10-19 22:46:50.318 Sysfs GPIO: Startup - polling:yes interrupts:no debounce:5msec inputs:1 outputs:8
2017-10-19 22:46:50.320 EventSystem: reset all events...
2017-10-19 22:46:50.323 EventSystem: reset all device statuses...
[update] When I write this post I found the diffrence. On failing Rpi I have one setting:

Code: Select all

echo "in" > /sys/class/gpio/gpio14/direction
echo "both" > /sys/class/gpio/gpio14/edge
And this cause: Segmentation fault
Yes polling:no interrupts:yes seems to cause this issue, I also experienced this today. The sysfsGPIO plugin crashes when one INPUT pin has edge detection enabled and OUTPUT pins are also defined. When INPUT & OUTPUT pins are defined but with no edge detection it works just fine. Also one INPUT pin with edge detection and no OUTPUT pins works fine as well. I've not yet pinpointed the piece of code responsible for the segmentation fault.
"The greatest good you can do for another, is not to share your own riches, but to reveal to him, his own."
- Benjamin Disraeli -

Posts: 297
Joined: Wednesday 21 December 2016 10:11
Target OS: Raspberry Pi
Domoticz version: current

Re: Generic sysfs GPIO update

Post by blauwebuis » Saturday 27 January 2018 1:54

I added some things to the wiki

Posts: 57
Joined: Wednesday 01 March 2017 10:07
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: The Netherlands

Re: Generic sysfs GPIO update

Post by OldPensionado » Tuesday 13 March 2018 19:24

henrivb wrote:
Wednesday 24 May 2017 10:19

Also: You must export gpio-pins before they can be used within Domoticz. The tools that you need to install to do this depend on the OS you are running (like raspi-gpio for Raspberry Pi). Google is your best friend to find these. Other topics in this forum may also help you out on this.
@henrivb: I've searched this forum a lot but so far I'm unable to export the gpio-pins correctly. I am using raspi-gpio. Please see my post ... 30#p173820

Thanks in advance!
RPi 1, model B
Raspbian Jessie Lite
Domoticz V3.8153

Well, such is life. And it's getting sucher and sucher...

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests