Skip to content
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

Closed
dupuisv opened this issue Sep 2, 2017 · 13 comments
Closed

Comments

@dupuisv
Copy link

dupuisv commented Sep 2, 2017

after updating the raspberry pi3 to the latest firmware the piface2 board can no more be detected

  • Jessie lite
  • Piface 2
  • Rapberry pi3 (using spi interface)
    we did reproduce the same problem after a clean install of the latest jessie release.
@pelwell
Copy link
Collaborator

pelwell commented Sep 3, 2017

  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?

@dupuisv
Copy link
Author

dupuisv commented Sep 3, 2017 via email

@pelwell
Copy link
Collaborator

pelwell commented Sep 3, 2017

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 sudo rpi-update <hash> to install a particular version. As I write this sudo rpi-update is equivalent to sudo rpi-update 19a13325227cb59d44dbf6d235b5965439413aa4.

Thanks for the test - can you say what output you get when it is successful and when it fails?

@dupuisv
Copy link
Author

dupuisv commented Sep 3, 2017 via email

@pelwell
Copy link
Collaborator

pelwell commented Sep 4, 2017

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 pifaceio library (see bulletmark/pifaceio@34ddceb). @XECDesign Can we update the Raspbian build to include that commit?

@dupuisv
Copy link
Author

dupuisv commented Sep 4, 2017 via email

@XECDesign
Copy link

The developer of the piface libraries no longer works for that company. We don't have Stretch packages for them.

@dupuisv
Copy link
Author

dupuisv commented Sep 4, 2017 via email

@dupuisv
Copy link
Author

dupuisv commented Sep 4, 2017 via email

@dBeltranGeze
Copy link

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.

@dupuisv
Copy link
Author

dupuisv commented Oct 28, 2017

No. But send me your e-mail to info@dupuis-infornatique.ch and i can send you the modified python code.
Reginald

@dBeltranGeze
Copy link

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

@Ruffio
Copy link

Ruffio commented Dec 27, 2020

@dupuisv is this issue still relevant? Else please close it, thanks :-)

@dupuisv dupuisv closed this as completed Dec 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants