FYSETC / FYSETC-SPIDER

FYSETC Board - 3d printer motherboard for VORON and other open source project.
310 stars 148 forks source link

Unable to get canbus_uuid for SB CAN Toolhead. #126

Open Kravenovic opened 1 year ago

Kravenovic commented 1 year ago

I am trying to make my new Stealthburner toolhead, equipped with the FYSETC's SB CAN TH and UCAN. My voron 2.4 is using the Spider v2.2.

This is how my wiring setup is done: RPI4b > UCAN > SB CAN TH

I've done the make menuconfig and uploaded the firmware exactly as per https://wiki.fysetc.com/SB%20CAN%20ToolHead/. Next, I attempted to follow https://www.klipper3d.org/CANBUS.html but I found that I was unable to find the canbus_uuid.

I also attempted to follow https://github.com/Esoterical/voron_canbus, since I was out of resources but to no luck at all. To be sure, I inserted a can0 file into /etc/network/interfaces.d, but I still cannot get the can0 network up at all after running ifconfig.

As a result, running this command ~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0 returns this output:

Traceback (most recent call last):
  File "/home/pi/klipper/scripts/canbus_query.py", line 64, in <module>
    main()
  File "/home/pi/klipper/scripts/canbus_query.py", line 61, in main
    query_unassigned(canbus_iface)
  File "/home/pi/klipper/scripts/canbus_query.py", line 21, in query_unassigned
    bustype='socketcan')
  File "/home/pi/klippy-env/lib/python3.7/site-packages/can/interface.py", line 127, in __new__
    return cls(channel, *args, **kwargs)
  File "/home/pi/klippy-env/lib/python3.7/site-packages/can/interfaces/socketcan/socketcan.py", line 594, in __init__
    bind_socket(self.socket, channel)
  File "/home/pi/klippy-env/lib/python3.7/site-packages/can/interfaces/socketcan/socketcan.py", line 459, in bind_socket
    sock.bind((channel,))
OSError: [Errno 19] No such device

Running the lsusb and ifconfig command shows that there is an OpenMoko device (which I am guessing is the UCAN).

pi@mainsailos:~/klipper $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 1d50:614e OpenMoko, Inc.
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@mainsailos:~/klipper $ ifconfig

eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether e4:5f:01:e4:db:32  txqueuelen 1000  (Ethernet)
        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

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        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

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 11.243.1.215  netmask 255.255.255.0  broadcast 11.243.1.255
        inet6 fe80::6285:e531:4071:798b  prefixlen 64  scopeid 0x20<link>
        ether e4:5f:01:e4:db:33  txqueuelen 1000  (Ethernet)
        RX packets 5762  bytes 656958 (641.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 670  bytes 91766 (89.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

pi@mainsailos:~/klipper $

Would someone be able to guide me on what I have done wrong, or is the UCAN / SB CAN TH faulty? Thank you!