Go to advanced search

by AlBPt
Mon Jul 15, 2019 10:46 am
Forum: Python
Topic: Using spidev on python to connect the mcp2515
Replies: 0
Views: 195

Using spidev on python to connect the mcp2515

Hi I want to connect the rasp with the can bus via mcp2515. I have installed the latest version raspbian(4.19.57), and there are sth wrong. I have a sample successfully run on the old version OS(4.4.x), everything is ok, but when I run "sudo apt-get update & sudo apt-get upgrade" or I reinstall the ...
by AlBPt
Mon Jul 15, 2019 10:16 am
Forum: Python
Topic: Using SPI on python
Replies: 21
Views: 3366

Re: Using SPI on python

... Hi , I met the same problem , when I used the old version raspbian , the code (spi.xfer2()) worked right and when I use the new version raspbian like lateset version or run "sudo apt-get update & sudo apt-get upgrade", wrong. So what's your mean about re-installing the RPI software???? If you h...
by AlBPt
Mon Jul 15, 2019 6:58 am
Forum: Python
Topic: Using SPI on python
Replies: 21
Views: 3366

Re: Using SPI on python

The pigs version (like the working C program) bypasses the Linux SPI driver. So the SPI hardware is okay and the wiring is correct. This suggest the Linux SPI driver is corrupted or misconfigured. I'd be tempted to write a new image to the SD card. I re-installed the RPI software and now it works! ...

Go to advanced search