Actions

Voron Configuration

From Just in Time

Revision as of 20:11, 1 January 2024 by Danny (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

CAN Bus upgrade

Mellow sb2040.


Steps performed:

sudo /bin/sh -c "cat > /etc/network/interfaces.d/can0" << EOF
allow-hotplug can0
iface can0 can static
    bitrate 500000
    up ifconfig \$IFACE txqueuelen 1024
EOF


sudo wget https://cdn.mellow.klipper.cn/shell/can-enable -O /usr/bin/can-enable > /dev/null 2>&1 && sudo chmod +x /usr/bin/can-enable || echo "The operation failed"

sudo sed -i '/^exit\ 0$/i \can-enable -d can0 -b 500000 -t 1024' /etc/rc.local

Flash CAN bus

python3 flash_can.py  -i can0 -f ~/klipper/out/klipper.bin -u 9ba2113afef3