EDIT: I suspect the problem may be related to the version of Raspian I was using: 2015-01-31-raspbian. I took the SD card out of the RPi 2 Model B and placed it into an older RPi which was known to work with the PiFace CAD 2. A similar error occurred as in the previous post. After downgrading the version of Raspian on the same older model RPi the PiFace CAD 2 then worked. Not sure what to do know whether to wait and see if Raspian gets an update or if the problem lies elsewhere? It would be useful to know if anyone else is having the same problem or if they have PiFace CAD 2 working on RPi 2 Model B running 2015-01-31-raspbian.
I had a working project. I built a new sd card to increase storage and then the project didn't work showing a very similar error you show above! I thought the piface had failed while I was building the new sd card.
Thanks for posting this. I hope something is sorted soon. Did you say you can downgrade the Raspbian version?
I hope something is sorted soon as I need to finish this project asap and now nothing works!
On my Raspberry Pi B, my internet radio using PiFaceCaD stopped working following the update to the Raspberry Pi 2 kernel.
It appears that with the recent kernel update, the way in which the kernel handles devices has changed with a device tree now being used.
I found this out here - Raspberry Pi • View topic - Breakage after rpi-update? Read this.
I have got my radio working by:
- sudo raspi-config
- 8 Advanced Options
- A5 Device Tree - which I disabled
My radio now works again
I assume this will also allow the PiFaceCaD to work with the RPi 2, good luck.
Yes that worked. Thanks so much Simon, really happy the solution was so easy to implement. Much appreciated.
Yes that worked for me also. Thank you Simon. Much appreciated.
After the latest updates to my rpi 2 mod b
The PIFaceCad and Piface Digital event listeners do not seem to work anymore. Pressing the switches no longer triggers a listener event. My software stopped working, so I tried the example programs, and they do not see switch presses either.
Using the emulators or polling shows the switch states when you press a button on on the real hardware, but any example using listeners does not work any longer on either board ...
The LCD works for write, clear, etc.
Any idea what disabled the interrupts but allows polling of the switches to work. The examples, Like weather, used to work fine.
Both PiFaceCad and PiFaceDigital switch interrupt listeners fail. ( each board is connected to a rpi 2 model b ) Each worked previously.
Each will show switch states on the emulator, when a button on the real hardware board is pressed.
I got the same issue.
Installed as per instructions here but getting a Python error related to GPIO25 when trying to run sysinfo.py
pi@raspberrypi ~ $ sudo python3 /usr/share/doc/python3-pifacecad/examples/sysinfo.py
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pifacecommon/interrupts.py", line 363, in bring_gpio_interrupt_into_userspace
IOError: [Errno 2] No such file or directory: '/sys/devices/virtual/gpio/gpio25/value'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/doc/python3-pifacecad/examples/sysinfo.py", line 61, in <module>
cad = pifacecad.PiFaceCAD()
File "/usr/lib/python3/dist-packages/pifacecad/core.py", line 50, in __init__
File "/usr/lib/python3/dist-packages/pifacecad/core.py", line 87, in init_board
File "/usr/lib/python3/dist-packages/pifacecad/core.py", line 59, in enable_interrupts
File "/usr/lib/python3/dist-packages/pifacecommon/interrupts.py", line 210, in gpio_interrupts_enable
File "/usr/lib/python3/dist-packages/pifacecommon/interrupts.py", line 368, in bring_gpio_interrupt_into_userspace
IOError: [Errno 16] Device or resource busy