nicolaiB wrote: 20 Feb 2025, 09:17
Good to hear that the ConCan is now working. Your observation is correct, that there aren't any settings in PiCtory regarding the ConCan, so your approach with ip link is correct.
Nicolai
Hello Nicolai,
I am reopening this thread because I recently upgraded my Revolution Pi Connect S image to bookworm (I was using bullseye-armhf) and now the conCAN module has stopped working.
Although with the old image I had the conCAN working correctly and I could receive the CAN messages, now with the same system but with the new image I have problems.
Before I took all the following data from my RevPi Connect S I configured via Cockpit --> Pictory the modules of the system (Connect S with the conCan on the right side.) And I saved the project and clicked on ‘reset drive’ in pictory.
The problem I have is that I can't read CAN messages with
candump can0. I am sure that the CAN bus, the other CAN devices and the CAN connections are correct because it worked before and I didn't change anything about it (only the RevPi image).
Before I used
candump can0 I used:
sudo ip link set can0 down
sudo ip link set can0 type can bitrate 500000
sudo ip link set can0 up
cat /etc/revpi/image-release
Code: Select all
250124-revpi-bookworm-arm64-default
lsmod | grep hi311x
Code: Select all
hi311x 20480 0
can_dev 53248 1 hi311x
dmesg | grep -i can
Code: Select all
[ 2.771484] CAN device driver interface
[ 2.815996] hi3110 spi0.0 can0: 3110 successfully initialized.
[ 6.463398] vc4-drm gpu: [drm] Cannot find any crtc or sizes
[ 6.469602] vc4-drm gpu: [drm] Cannot find any crtc or sizes
[ 1873.194659] can: controller area network core
[ 1873.194730] NET: Registered PF_CAN protocol family
[ 1873.203848] can: raw protocol
apt list --installed pictory
Code: Select all
Listing... Done
pictory/bookworm,now 2.12.0-1+deb12+1 all [installed,automatic]
N: There are 18 additional versions. Please use the '-a' switch to see them.
pi@RevPi111847:~$ apt list -a pictory
Listing... Done
pictory/bookworm,now 2.12.0-1+deb12+1 all [installed,automatic]
pictory/bookworm 2.11.1-1+deb12+1 all
pictory/bookworm 2.11.0-1+deb12+1 all
pictory/bookworm 2.10.0-1+deb12+1 all
pictory/bookworm 2.9.0-1+deb12+1 all
pictory/bookworm 2.8.0-1+revpi12+1 all
pictory/bookworm 2.6.0-1+revpi12+2 all
pictory/bookworm 2.6.0-1+revpi12+1 all
pictory/bookworm 2.5.2-1+revpi12+1 all
pictory/bookworm 2.5.1-1+revpi12+1 all
pictory/bookworm 2.5.0-1+revpi12+1 all
pictory/bookworm 2.4.0-1+revpi12+1 all
pictory/bookworm 2.3.2-1+revpi12+1 all
pictory/bookworm 2.3.1-1+revpi12+1 all
pictory/bookworm 2.3.0-1+revpi12+1 all
pictory/bookworm 2.2.2-1+revpi12+1 all
pictory/bookworm 2.2.1-1+revpi12+1 all
pictory/bookworm 2.2.0-1+revpi12+1 all
pictory/bookworm 2.1.2-1+revpi12+1 all
ip link show
Code: Select all
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 c8:3e:a7:11:5b:ea brd ff:ff:ff:ff:ff:ff
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether c8:3e:a7:11:5b:eb brd ff:ff:ff:ff:ff:ff
4: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UP mode DEFAULT group default qlen 10
link/can
5: pileft: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether e2:b6:e9:60:b8:d7 brd ff:ff:ff:ff:ff:ff
piTest -d
Code: Select all
pi@RevPi111847:~$ piTest -d
Found 4 devices:
Address: 0 module type: 105 (0x69) RevPi Connect V1.0
Module is present
input offset: 113 length: 6
output offset: 119 length: 5
Address: 31 module type: 96 (0x60) RevPi DIO V1.5
Module is present
input offset: 0 length: 70
output offset: 70 length: 18
Address: 32 module type: 109 (0x6d) RevPi CON CAN V0.0
Module is present
input offset: 0 length: 0
output offset: 0 length: 0
Address: 64 module type: 24580 (0x6004) ModbusRTU Master Adapter V0.0
Module is present
input offset: 124 length: 101
output offset: 225 length: 73
/boot/firmware/config.txt
Code: Select all
# For more options and information see
# http://rptl.io/configtxt
# Some settings may impact device functionality. See link above for details
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
# Automatically load initramfs files, if found
auto_initramfs=1
# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=1
# Don't have the firmware create an initial video= setting in cmdline.txt.
# Use the kernel's default instead.
disable_fw_kms_setup=1
# Run in 64-bit mode
arm_64bit=1
# Disable compensation for displays with overscan
disable_overscan=1
# Run as fast as firmware / board allows
arm_boost=1
[all]
dtoverlay=dwc2,dr_mode=host
dtoverlay=revpi-connect
dtparam=eth0_mac_hi=0xc83ea711
dtparam=eth0_mac_lo=0x5bea
dtparam=eth1_mac_hi=0xc83ea711
dtparam=eth1_mac_lo=0x5beb
dtoverlay=revpi-con-can
ip -details -statistics link show can0
Code: Select all
4: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UP mode DEFAULT group default qlen 10
link/can promiscuity 0 allmulti 0 minmtu 0 maxmtu 0
can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
bitrate 500000 sample-point 0.875
tq 125 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1 brp 2
hi3110: tseg1 2..16 tseg2 2..8 sjw 1..4 brp 1..64 brp_inc 1
clock 16000000
re-started bus-errors arbit-lost error-warn error-pass bus-off
0 0 0 0 0 0 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 tso_max_size 65536 tso_max_segs 65535 gro_max_size 65536 parentbus spi parentdev spi0.0
RX: bytes packets errors dropped missed mcast
0 0 0 0 0 0
TX: bytes packets errors dropped carrier collsns
0 0 0 0 0 0
I have sent you all the data that I thought might be useful.
Thank you very much for your help.
Best regards,
Marc M.