• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug report: gpio_switch does not accept high pin numbers
#1
Bug 
Hi,

I (still) try to connect a smoke sensor with digital output to my RPi 1 B+ using protocol gpio_switch

When I use gpio pins 23 or 25 I get the following error message in /var/log/pilight.err:
[ Oct 04 12:03:52:40032] pilight-daemon: ERROR: config device setting #2 "id" of "spare", invalid
but when I use gpio pin 7, it works like a charm, so no error message and pin status correctly showing in GUI.

On the other hand, when I use protocol relay with pins 25 or 29 this also works correctly, so no error message and pin output controllable from GUI. Also protocol dht22 works correctly with pin 27.

So in my opinion this looks like a bug which may be solved by using the same "pin range check" in the gpio_switch protocol as the one in relay.

Please let me know if you need more data.

Thank you,
woutput
 
Reply
#2
I found yesterday the same bug with a RGB-Led. I tried all over 21 and does not work. Humiture sensor works pefectly.
 
Reply
#3
(10-12-2015, 09:05 AM)Taulie Wrote: I found yesterday the same bug with a RGB-Led. I tried all over 21 and does not work. Humiture sensor works pefectly.

@Taulie: note that protocol gpio_switch makes the GPIO act as input not output as for an RGB LED. Use protocol relay for that.

In addition: I tested a software change that fixes this bug and made a pull-request. We are still discussing the implementation though...
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  High cpu usage Dergo 1 112 02-23-2019, 04:31 PM
Last Post: curlymo
Bug Bug report: WIFI dongle stops when gpio_switch.gpio = 20 woutput 16 4,288 01-03-2018, 10:11 PM
Last Post: zackdvd
  pilight Error : default_sa_restorer_v2 & CPU High Tommybear1979 5 2,273 06-30-2016, 07:36 AM
Last Post: pilino1234
Bug Bug report: double free or corruption (!prev) diman87 16 4,627 03-09-2016, 11:10 AM
Last Post: diman87
Bug Bug report: segmentation fault using rule with AFTER woutput 3 2,335 11-22-2015, 12:27 PM
Last Post: woutput
  Bug Report: pilight will not compile if the ARP protocol is not specified UndeadKernel 1 1,786 05-01-2015, 09:41 PM
Last Post: curlymo
  High cpu usage in 433gpio thread after rpi-update michbeck100 42 17,423 04-23-2015, 08:37 PM
Last Post: thomas.cristo
  webgui/ssh very slow .. high cpu usage gneandr 1 2,301 10-01-2014, 06:43 PM
Last Post: creamers

Forum Jump:


Browsing: 1 Guest(s)