Repository navigation
Unable to send or receive SPI data after upgrade to 2.0 #444
Unanswered
HeroDesign
asked this question in
Q&A
Replies: 1 comment 9 replies
|
the release 2.0 is the first for v2. 2.8.0 is the most recent. In moving to it best to read each release note to understand changes. var console = new Console(); |
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have a system that uses SPI for communication between a raspberry pi 3b+ and custom hardware.
The system was built using and older version of pi4j (1.0 I think, circa 2013). I have recently needed to update the firmware on our build for the pi and was forced up upgrade to pi4j 2.0.
Since that update I have not been able to successfully send and receive SPI data using pi4j.
I have removed our custom hardware from the system and looped MOSI and MISO and tested with python successfully to ensure SPI is working at a low level.
However, I'm unable to get pi4j to work.
Here are the relevant section of code:
Configure SPI, all settings taken from our previous working build:
Attempted RW, here I am using spi.transfer, in the old version I used Spi.wiringPiSPIDataRW(0, message, 8200); :
success is always 0 and the readMessage is always empty.
Thanks in advance for any help!
All reactions