-
Notifications
You must be signed in to change notification settings - Fork 6
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
PiFaceCAD with PiFaceRelayPlus #1
Comments
Hey, The problem appears to be with epoll and not the SPI driver (which appears to be working fine since I can talk to my board). Do you interrupts work with the latest software (apt-get update/upgrade)? I'm afraid I won't be able to help with this issue until interrupts are fixed in general. |
Thomas, that is the sort of behavior I was seeing before I sorted the SPI Have you check which version of the spi driver you are running - dmesg|grep 2015-05-30 14:19 The last 2 days I did various tests with my cirrus OpenELEC build having Just did another test with the cirrus dtoverlay removed from config.txt so With dtparam=spi=on /dev/spidev0.{0,1} show up fine and lsmod/dmesg show When also adding dtoverlay=spi-bcm2708 to use the old driver the device I think you should be safe switching to modules in you next regular so long, Hias On 8 September 2015 at 15:09, Thomas Preston [email protected]
|
Thomas, I've checked my code https://github.com/SailingGreg/startTimer and Bring GPIO25 into userspace and check it's value: $ echo 25 > /sys/class/gpio/export Now check its value after pressing switch 0: $ more /sys/class/gpio/gpio25/value On 8 September 2015 at 17:35, Greg Brougham [email protected] wrote:
|
I've gone back and taken the dtoverlay out of /boot/config.txt and rerun On 8 September 2015 at 18:19, Greg Brougham [email protected] wrote:
|
Thomas, noticed that init_epoll(void) in libmcp23s17.c, line 226 you open gpio_pin_fd = open(gpio_pin_filename, O_RDONLY | O_NONBLOCK); In the code fragment you used you do not specify not blocking on the open gpio25 = open('/sys/class/gpio/gpio25/value', 'r') On 8 September 2015 at 15:09, Thomas Preston [email protected]
|
Thomas, just checking to see if there has been any progress. Are there any Regards Greg. On 8 September 2015 at 15:09, Thomas Preston [email protected]
|
I'm afraid not. It looks like some people have had some success with root in that other thread which suggests that this is a permissions issue but I haven't checked over it myself. My post in that thread was an information dump of everything I've got at the minute - until I can get epoll to return then this issue is stuck. |
Have you had a chance to look at the permissions/group ownership? On 28 September 2015 at 13:58, Thomas Preston [email protected]
|
I've been looking at adding relays to a system that uses a PiFaceCAD and a B+ board. I thought the RelayPlus would be suitable as it is HAT compatible and the CAD can be attached on the top keeping basically the same form factor which is nice and compact.
I can access both the PiFaceCAD the RelayPlus in isolation but when I initiatlise them in the same python app the call back on the CAD buttons stop working. It leaves the CAD is an inconsistent state and it needs power cycle to reset it
Any thoughts/comments?
The text was updated successfully, but these errors were encountered: