-
Notifications
You must be signed in to change notification settings - Fork 209
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
Update from 4.9.35-v7 to 4.9.y - piface2 digital io no more detected #159
Comments
|
Hello Phil,
1. Yes. This one
https://www.dinoshop.ch/index.php?route=product/product <https://www.dinoshop.ch/index.php?route=product/product&path=1392_2420_1392_2420&product_id=125883> &path=1392_2420_1392_2420&product_id=125883
2. Can you tell me how to install and test a particular firmware and to revert to the previous one.
So I can try.
Probably a release between 1.5 and 31.8 . I do not always do firmware update. Just for new Raspberry.
3.
Python (2.7.9)
import pifacedigitalio as piface
piface.init()
piface.digital_write(0, 1, 0)
Best regards
Reginald
De : Phil Elwell [mailto:notifications@github.com]
Envoyé : dimanche 3 septembre 2017 09:14
À : Hexxeh/rpi-firmware <rpi-firmware@noreply.github.com>
Cc : dupuisv <info@dupuis-informatique.ch>; Author <author@noreply.github.com>
Objet : Re: [Hexxeh/rpi-firmware] Update from 4.9.35-v7 to 4.9.y - piface2 digital io no more detected (#159)
1. Is this the PiFace Digital 2?
2. What is the commit hash or URL of the first firmware that doesn't work?
3. What is the simplest command to test it, and what output do you get on success and failure?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#159 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AGmd2cC9nb3LwA7ZvKFAkYKNJrZ736LMks5selGugaJpZM4PK4Lo> .
|
Reginald, You will find a list of the firmware releases on the commits page. The long strings of characters on the right of each release are commit hashes - use the copy button to get the whole string, then on the Pi run Thanks for the test - can you say what output you get when it is successful and when it fails? |
Hello Phil,
I conduct a few test . Some kind of dichotomic search:
4.9.40 3202f1b OK
4.9.41 b9becbb OK
4.9.43 bf19fe7 BAD
Traceback (most recent call last):
File "DoorControl.py", line 1173, in <module>
main()
File "DoorControl.py", line 1018, in main
init_door()
File "DoorControl.py", line 558, in init_door
piface.init()
File "/usr/local/lib/python2.7/dist-packages/pifacedigitalio/core.py", line 166, in init
raise failed_boards[0]
pifacedigitalio.core.NoPiFaceDigitalDetectedError: No PiFace Digital board detected (hardware_addr=0, bus=0, chip_select=0).
Python 2.7.9
So It’s start to fail with firmware 4.9.43
Regards
Reginald
De : Phil Elwell [mailto:notifications@github.com]
Envoyé : dimanche 3 septembre 2017 16:06
À : Hexxeh/rpi-firmware <rpi-firmware@noreply.github.com>
Cc : dupuisv <info@dupuis-informatique.ch>; Author <author@noreply.github.com>
Objet : Re: [Hexxeh/rpi-firmware] Update from 4.9.35-v7 to 4.9.y - piface2 digital io no more detected (#159)
Reginald,
You will find a list of the firmware releases on the commits page <https://github.com/Hexxeh/rpi-firmware/commits/master> . The long strings of characters on the right of each release are commit hashes - use the copy button to get the whole string, then on the Pi run sudo rpi-update <hash> to install a particular version. As I write this sudo rpi-update is equivalent to sudo rpi-update 19a1332.
Thanks for the test - can you say what output you get when it is successful and when it fails?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#159 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AGmd2YGBJzpgAwwPWPdQYj1q6bVzzH3wks5serI6gaJpZM4PK4Lo> . <https://github.com/notifications/beacon/AGmd2RtPoowdunYK0yuF1JC6OdOJJnk_ks5serI6gaJpZM4PK4Lo.gif>
|
That commit included a change to the maximum SPI bus speed (see raspberrypi/linux#2165) because 500KHz was unnecessarily restrictive. Unfortunately the spidev API doesn't separate the concepts of the maximum speed and the current default speed, so it isn't possible to permit higher speeds without also changing the default. As a result, unless clients are careful to either set a default speed (confusingly by using SPI_IOC_WR_MAX_SPEED_HZ) or to set the speed_hz property on each transfer then with the recent update they will find they are using a very high bus speed. This is going to be inconvenient for users of those client applications and libraries, but they've been lucky/unlucky so far that the default works for them. With the new maximum of 125MHz this will no longer be the case. Reading the original issue again I see it is mentioned in a change to the |
Thank you for pointing the problem
The library https://github.com/piface/pifacedigitalio ,
That does support interrupts hasn’t been upgraded to set the speed explicitly.
I also think the piface library need sudo level to run.
bulletmark/pifaceio@34ddceb
So we use the pifacedigitalio suggested by the piface2 maker.
Regards
Regi
De : Phil Elwell [mailto:notifications@github.com]
Envoyé : lundi 4 septembre 2017 11:09
À : Hexxeh/rpi-firmware <rpi-firmware@noreply.github.com>
Cc : dupuisv <info@dupuis-informatique.ch>; Author <author@noreply.github.com>
Objet : Re: [Hexxeh/rpi-firmware] Update from 4.9.35-v7 to 4.9.y - piface2 digital io no more detected (#159)
That commit included a change to the maximum SPI bus speed (see raspberrypi/linux#2165 <raspberrypi/linux#2165> ) because 500KHz was unnecessarily restrictive. Unfortunately the spidev API doesn't separate the concepts of the maximum speed and the current default speed, so it isn't possible to permit higher speeds without also changing the default.
As a result, unless clients are careful to either set a default speed (confusingly by using SPI_IOC_WR_MAX_SPEED_HZ) or to set the speed_hz property on each transfer then with the recent update they will find they are using a very high bus speed. This is going to be inconvenient for users of those client applications and libraries, but they've been lucky/unlucky so far that the default works for them. With the new maximum of 125MHz this will no longer be the case.
Reading the original issue again I see it is mentioned in a change to the pifaceio library (see bulletmark/pifaceio@ <bulletmark/pifaceio@34ddceb> 34ddceb). @XECDesign <https://github.com/xecdesign> Can we update the Raspbian build to include that commit?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#159 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AGmd2Rp2bIbaP6R19WxlaQlCCTPXZuTaks5se74YgaJpZM4PK4Lo> . <https://github.com/notifications/beacon/AGmd2V8VNYxZoY2gEED1ocGixMHFqy0iks5se74YgaJpZM4PK4Lo.gif>
|
The developer of the piface libraries no longer works for that company. We don't have Stretch packages for them. |
Thank for the information
I am making some change to pifacecommon (in the python source) to fix the problem.
Then I will look how to publish it.
Reginald
|
Hello
The case can be closed. We update to 4.9.46 and apply few changes to set the SPI max rd/wr speed.
The update spi.py is on our local copy of pifacecommon-master.
If you can just tell me how to proceed to publish this update . That would be my first contribution
Regi
|
Is the fix published somewhere? I've tried to modify the speed in the spi_ioc_transfer struct on the pifacecommon-master/spi.py file but some of the commands fail. |
No. But send me your e-mail to info@dupuis-infornatique.ch and i can send you the modified python code. |
Hi Reginald. I've tried to send you an email but my company's proxy raise an error. I'll share my email here: d.beltran@geze.com David |
@dupuisv is this issue still relevant? Else please close it, thanks :-) |
after updating the raspberry pi3 to the latest firmware the piface2 board can no more be detected
we did reproduce the same problem after a clean install of the latest jessie release.
The text was updated successfully, but these errors were encountered: