-
Notifications
You must be signed in to change notification settings - Fork 3
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
/dev/pigpio access issue some time after script start #2
Comments
I just realized I had SPI interface disabled on my RPi though... SPI still worked all fine despite that. |
First of all, thank you for using berry-spi :) Your issue sounds "mysterious" and at this point I'm not sure, if the problem is in the extension, Pigpio itself or maybe a hardware problem. Do you use the regular or the bitbanging interface? |
Thank you for a quick response, In the following days I'll try with php-pigpio as you suggested and I'll provide feedback then. Let me know if you need any additional details on that. Best, |
I'm not sure if that's related but when I launched it with php-pigpio I got these warnings:
... and then after more in-depth analysis I realized that in certain point of my script execution I do But then... I thought... isn't it an exact reason why it didn't work properly with berry-spi? I mean... since the script works as a kind of Next thing I try is to run it without forking on berry-spi and we see if it changes anything. Best, |
Thanks for mentioning the forking, this could be the right lead. php-pigpio: berry-spi
I'm exactly the same opinion.
I am looking forward to the results :) |
I use pigpio library for SPI communication via berry-spi but also for controlling some servos via /dev/pigpio from the same script.
At first when I run the script everything works flawlessly until some time (sometimes it's a couple hours sometimes couple minutes) when it can't control the servo anymore while SPI communication still works. Servo locks itself in some position and I can't move it by hand so it seems some signal to it is still being sent but it's kinda deaf for signals of different lengths.
sample command sent to servo for is:
echo "s 22 1500" > /dev/pigpio
where 22 is the pin number, 1500 is an example signal length
strangely /dev/pigout output is (when servo stil works):
when it stops:
Sample debug printout after terminating the script:
php-cpp version is 2.1.1
The text was updated successfully, but these errors were encountered: