I'm using some CanAble Pro adapters I bought off AliExpress and I could communicate with the devices connected to them initially.
Since then, not sure if related to upgrading Debian Bullseye to Debian Bookworm, Firmware BUG / incompatibility, or what else, my program using python-can says it sent the CAN message correctly, yet nothing appears in ifconfigand the device does not react at all. candump doesn't log anything either.
Is there a way to check the current version of the firmware ? I'm not even sure these are STM32 microcontroller based ...
dfu-util
dfu-util -l -v
dfu-util 0.11
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
libusb version 1.0.26 (11724)
Found Runtime: [1d50:606f] ver=0000, devnum=6, cfg=1, intf=1, path="1-1.2.5", alt=0, name="candleLight firmware upgrade interface", serial="003D00474E56510220373334"
Found Runtime: [1d50:606f] ver=0000, devnum=7, cfg=1, intf=1, path="1-1.2.7", alt=0, name="candleLight firmware upgrade interface", serial="002A002D4730511420303650"
dmesg can
dmesg | grep -i can
[ 6.060750] usb 1-1.2.5: Product: candleLight USB to CAN adapter
[ 6.350431] usb 1-1.2.7: Product: candleLight USB to CAN adapter
[ 13.570422] CAN device driver interface
[ 14.755824] vc4-drm soc:gpu: [drm] Cannot find any crtc or sizes
[ 14.758447] vc4-drm soc:gpu: [drm] Cannot find any crtc or sizes
[ 17.209193] IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
[ 18.232968] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[ 80.618222] can: controller area network core
[ 80.618297] NET: Registered PF_CAN protocol family
[ 80.633199] can: raw protocol
dmesg usb
dmesg | grep -i usb
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 usbcore.autosuspend=-1 console=ttyAMA0,115200 console=tty1 root=PARTUUID=24485673-02 rootfstype=ext4 fsck.repair=yes rootwait cfg80211.ieee80211_regdom=DK
[ 0.130337] usbcore: registered new interface driver usbfs
[ 0.130410] usbcore: registered new interface driver hub
[ 0.130479] usbcore: registered new device driver usb
[ 0.130709] usb_phy_generic phy: supply vcc not found, using dummy regulator
[ 2.186821] usbcore: registered new interface driver lan78xx
[ 2.189407] usbcore: registered new interface driver smsc95xx
[ 3.172220] dwc_otg 3f980000.usb: DWC OTG Controller
[ 3.174397] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[ 3.176626] dwc_otg 3f980000.usb: irq 89, io mem 0x00000000
[ 3.183203] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[ 3.187477] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.189742] usb usb1: Product: DWC OTG Controller
[ 3.191973] usb usb1: Manufacturer: Linux 6.1.0-rpi7-rpi-v7 dwc_otg_hcd
[ 3.194281] usb usb1: SerialNumber: 3f980000.usb
[ 3.197171] hub 1-0:1.0: USB hub found
[ 3.202491] usbcore: registered new interface driver usb-storage
[ 3.223804] usbcore: registered new interface driver usbhid
[ 3.226123] usbhid: USB HID core driver
[ 3.533042] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 3.783286] usb 1-1: New USB device found, idVendor=0424, idProduct=9514, bcdDevice= 2.00
[ 3.793823] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.824944] hub 1-1:1.0: USB hub found
[ 4.223063] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 4.943509] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00, bcdDevice= 2.00
[ 4.957971] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 5.104863] SMSC LAN8700 usb-001:003:01: attached PHY driver (mii_bus:phy_addr=usb-001:003:01, irq=199)
[ 5.127546] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:ad:01:4e
[ 5.243134] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[ 5.383561] usb 1-1.2: New USB device found, idVendor=1a40, idProduct=0201, bcdDevice= 1.00
[ 5.397749] usb 1-1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 5.408045] usb 1-1.2: Product: USB 2.0 Hub [MTT]
[ 5.429748] hub 1-1.2:1.0: USB hub found
[ 5.793396] usb 1-1.2.1: new high-speed USB device number 5 using dwc_otg
[ 5.933537] usb 1-1.2.1: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11
[ 5.949444] usb 1-1.2.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 5.964214] usb 1-1.2.1: Product: USB 2.0 Hub
[ 5.973611] hub 1-1.2.1:1.0: USB hub found
[ 6.103075] usb 1-1.2.5: new full-speed USB device number 6 using dwc_otg
[ 6.236459] usb 1-1.2.5: New USB device found, idVendor=1d50, idProduct=606f, bcdDevice= 0.00
[ 6.245040] usb 1-1.2.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6.252554] usb 1-1.2.5: Product: candleLight USB to CAN adapter
[ 6.258602] usb 1-1.2.5: Manufacturer: bytewerk
[ 6.263165] usb 1-1.2.5: SerialNumber: 003D00474E56510220373334
[ 6.363040] usb 1-1.2.7: new full-speed USB device number 7 using dwc_otg
[ 6.496460] usb 1-1.2.7: New USB device found, idVendor=1d50, idProduct=606f, bcdDevice= 0.00
[ 6.505038] usb 1-1.2.7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6.512551] usb 1-1.2.7: Product: candleLight USB to CAN adapter
[ 6.518597] usb 1-1.2.7: Manufacturer: bytewerk
[ 6.523159] usb 1-1.2.7: SerialNumber: 002A002D4730511420303650
[ 13.523767] gs_usb 1-1.2.5:1.0: Configuring for 1 interfaces
[ 13.531393] gs_usb 1-1.2.7:1.0: Configuring for 1 interfaces
[ 13.535596] usbcore: registered new interface driver gs_usb
[ 14.520158] usbcore: registered new interface driver brcmfmac
ifconfig shows packet counter stuck at zero
can0: flags=193<UP,RUNNING,NOARP> mtu 16
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
can1: flags=193<UP,RUNNING,NOARP> mtu 16
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lsusb
lsusb -v
Bus 001 Device 007: ID 1d50:606f OpenMoko, Inc. Geschwister Schneider CAN adapter
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x1d50 OpenMoko, Inc.
idProduct 0x606f Geschwister Schneider CAN adapter
bcdDevice 0.00
iManufacturer 1 bytewerk
iProduct 2 candleLight USB to CAN adapter
iSerial 3 002A002D4730511420303650
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0032
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 150mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0020 1x 32 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0020 1x 32 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 254 Application Specific Interface
bInterfaceSubClass 1 Device Firmware Update
bInterfaceProtocol 1
iInterface 224 candleLight firmware upgrade interface
Device Firmware Upgrade Interface Descriptor:
bLength 9
bDescriptorType 33
bmAttributes 11
Will Detach
Manifestation Intolerant
Upload Supported
Download Supported
wDetachTimeout 255 milliseconds
wTransferSize 2048 bytes
bcdDFUVersion 1.1a
Device Status: 0x0000
(Bus Powered)
Bus 001 Device 006: ID 1d50:606f OpenMoko, Inc. Geschwister Schneider CAN adapter
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x1d50 OpenMoko, Inc.
idProduct 0x606f Geschwister Schneider CAN adapter
bcdDevice 0.00
iManufacturer 1 bytewerk
iProduct 2 candleLight USB to CAN adapter
iSerial 3 003D00474E56510220373334
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0032
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 150mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0020 1x 32 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0020 1x 32 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 254 Application Specific Interface
bInterfaceSubClass 1 Device Firmware Update
bInterfaceProtocol 1
iInterface 224 candleLight firmware upgrade interface
Device Firmware Upgrade Interface Descriptor:
bLength 9
bDescriptorType 33
bmAttributes 11
Will Detach
Manifestation Intolerant
Upload Supported
Download Supported
wDetachTimeout 255 milliseconds
wTransferSize 2048 bytes
bcdDFUVersion 1.1a
Device Status: 0x0000
(Bus Powered)
It's like the CAN device is properly recognized but it's doing absolutely nothing ...
I'm using some CanAble Pro adapters I bought off AliExpress and I could communicate with the devices connected to them initially.
Since then, not sure if related to upgrading Debian Bullseye to Debian Bookworm, Firmware BUG / incompatibility, or what else, my program using python-can says it sent the CAN message correctly, yet nothing appears in
ifconfigand the device does not react at all.candumpdoesn't log anything either.Is there a way to check the current version of the firmware ? I'm not even sure these are STM32 microcontroller based ...
dfu-util
dmesg can
dmesg usb
ifconfig shows packet counter stuck at zero
lsusb
It's like the CAN device is properly recognized but it's doing absolutely nothing ...