Firmware restart not bringing back up the can0 network

Basic Information:

Printer Model: trident
MCU / Printerboard: mks skipr
Host / SBC mks skipr with sht36 pro
klippy (1).log (430.6 KB)

Describe your issue:

i’m having trouble getting the can0 network back online after a restart. any guess why it is happening ?

i will reply that after typing :

sudo ip link set up can0 type can bitrate 1000000

and after issuing another firmware restart the klipper host was able to reconnect to the boards…

odd, very odd…

What do you have setup in your /etc/network/interfaces.d/can0?

this :

allow-hotplug can0
 iface can0 can static
        bitrate 1000000
        # up ifconfig $IFACE txqueuelen 128                   # It will not wor>
        up ip link set $IFACE txqueuelen 128
        #up ip link set $IFACE txqueuelen 1024 restart-ms 200 # Bit more aggres>

but i found that after re-installing everything, it was working but after changing the /etc/network/interfaces file to set a static adresse it caused the issue…

auto end1
iface end1 inet static
address 192.168.2.49
netmask 255.255.255.0
gateway 192.168.2.1 # Modify this if needed
dns-nameservers 8.8.8.8 8.8.4.4 # Modify DNS servers if needed

Set it up like the official klipper docs
https://www.klipper3d.org/CANBUS.html#host-hardware

Also the note about the txquelen:
https://www.klipper3d.org/CANBUS_Troubleshooting.html#use-an-appropriate-txqueuelen-setting

Consider following this excellent guide for setting up CAN: Getting Started | Esoterical’s CANBus Guide

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.