-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflict with Pi-Somfy #112
Comments
thanks for pointing me to pi-somfy - cool project! I think the conflict here is that pi-somfy uses pygpio which uses pigpio. I had not seen this project before but it looks like a project very similar to pi-blaster (with more features and better doc ;P). I do not think this is a GPIO problem but probably more a DMA channel problem. Are you on a raspberry pi 4? Pi-blaster uses channel 7 by default on the 4 and so does pigpio (according to their doc). You will want to change the channel for one of the program and see if it works afterwards. With pigpio, they say:
With pi-blaster you will need to edit the channel in the source code and recompile: Let me know if you are able to get it to work! |
Thanks I also think DMA channels could be a problem but I still couldn't fix the issue. I am using a Raspberry Pi Model 4B. I don't know how Pi-Somfy invokes pigpiod so I have enabled the pigpiod daemon (sudo systemctl enable pigpiod) and edited it's service (/lib/systemd/system/pigpiod.service) to use the DMA channels you described: Is there a way to view which DMA channels are in use? |
That should be good. If you turn off pi-blaster, does pigpiod works on this channel? Unfortunately, I never found a good way to figure out which DMA channels are in use. I think they have the same issue. So we just pick something that seems free. They say:
Can you try with 6 and 5? The first step of this experiment would be to find another DMA channel that works without pi-blaster and then try with pi-blaster. |
I have run some tests today. This is what I found: First I changed the DMA to channel 5 in pi-blaster. Same result as before. pi-blaster and Pi-Somfy conflicted each other. Then I changed it channel 6. I was a bit skeptical about this one because I read at a forum post:
The same thing happened. pi-blaster and Pi-Somfy conflicted each other. Finally I changed it to channel 8. In this case Pi-Somfy never worked. I am now not sure that this is a DMA problem. Under channel 8 there is clearly a DMA issue and pi-blaster blocks pigpio. |
I am afraid the best way to resolve this would be to use pigpiod to control your rgb strip. You can try forking |
I use Pi-Somfy to control my shutters and homebridge-gpio-rgb-ledstrip to control my LED strip. homebridge-gpio-rgb-ledstrip is using pi-blaster that is why I created the issue here.
It looks like that Pi-Somfy and pi-blaster has some kind of conflict. My LED strip uses GPIO pins 17, 22, 24 and I have setup pi-blaster to control only these:
DAEMON_OPTS="--gpio 17,22,24"
Pi-Somfy uses GPIO 4.
If I used my LED's before and want to control my shutters I have to restart Pi-Somfy. After restart the shutters work but the LED strip no longer can be controlled via homebrdige. If I restart pi-blaster the LED strip can be controlled again but the shutters won't work.
I believe there is some kind of conflict between the two.
The text was updated successfully, but these errors were encountered: