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!
doncoron
Posts: 9
Joined: Sunday 19 November 2017 12:47
Target OS: Raspberry Pi
Domoticz version: V3.8775
Location: Bavaria
Contact:

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

DonCoron

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

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 -

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

Re: Generic sysfs GPIO update

Post by blauwebuis » Saturday 27 January 2018 1:54

I added some things to the wiki

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

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 http://www.domoticz.com/forum/viewtopic ... 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...

JohanE
Posts: 3
Joined: Wednesday 28 March 2018 21:47
Target OS: Linux
Domoticz version:
Contact:

Re: Generic sysfs GPIO update

Post by JohanE » Wednesday 28 March 2018 22:25

Removed

Post Reply

Who is online

Users browsing this forum: Maxx and 3 guests