strange thing
I have try to do this with another PI
the RFID is working
the Cnabus not
I have took the Canbus and connected it to my first PI - and it's working (so the problem is not in the device itself)
I copy the config file as is - and still not working
check the connections - all are good :
INT - PIN 32
SCK - PIN 23
SI - PIN 19
SO - PIN 21
CS - PIN 26 (CE#1)
GND - PIN 6
VCC - PIN 2
this is the line in the config :\
# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on
dtoverlay=mcp2515-can1,oscillator=8000000,interrupt=12
dtoverlay=spi-bcm-overlay
And as you can see I don't see the can0 interface
Code: Select all
pi@raspberrypi:~ $ sudo ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether b8:27:eb:ef:17:4f brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DORMANT group default qlen 1000
link/ether b8:27:eb:ba:42:1a brd ff:ff:ff:ff:ff:ff
ls /sys/bus/spi/devices/spi0.1/
modalias of_node/ power/ statistics/ subsystem/ uevent
* mean while the RFID is working - so the CLK,SI,SO - it OK
What am I missing \ doing wrong ?
* when I replace the SD card on both PI :
none of them show me the canbus device