Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1166

HATs and other add-ons • Raspbian GNU/Linux 11 (bullseye)

$
0
0
I have Raspberry Pi 0 W, attached to this I have a CANBUS USB Module:
https://www.aliexpress.com/item/1005006 ... 1802q2vTUK

I connect to the Raspberry Pi using SSH on my iMAC and type:

Code:

root@RPi0:~# lsusbBus 001 Device 002: ID 1d50:606f OpenMoko, Inc. Geschwister Schneider CAN adapterBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
In the console, if I then type:

Code:

ip link1: 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:002: usb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000    link/ether 76:51:db:3c:b2:29 brd ff:ff:ff:ff:ff:ff3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DORMANT group default qlen 1000    link/ether b8:27:eb:e1:41:8e brd ff:ff:ff:ff:ff:ff4: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
I can see 4: can0. The problem I am having is that if I then execute:

Code:

sudo reboot
Then allow time for the Pi to reboot and boot up again then:

Code:

root@RPi0:~# lsusbBus 001 Device 002: ID 1d50:606f OpenMoko, Inc. Geschwister Schneider CAN adapterBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Then:

Code:

root@RPi0:~# ip link1: 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:002: usb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000    link/ether 4a:8d:1f:7c:0c:5a brd ff:ff:ff:ff:ff:ff3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DORMANT group default qlen 1000    link/ether b8:27:eb:e1:41:8e brd ff:ff:ff:ff:ff:ff
Now there is no can0 present, if I unplug and then reconnect the USB device, it reappears, what can I do to resolve this issue so can0 always reappears in the list after a reboot ?

Is there a way to re-initialise a USB scan as if a device was freshly plugged in, something I can execute on boot ?

Statistics: Posted by SPlatten — Mon Feb 26, 2024 10:00 am



Viewing all articles
Browse latest Browse all 1166

Trending Articles