2026年5月8日 星期五

Klipper,使用 Fly D5 控制板及 EBB42 CAN 工具板

 



--------------
$ ip -s link show can0
5: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
    link/can 
    RX:  bytes packets errors dropped  missed   mcast           
             0       0      0       0       0       0 
    TX:  bytes packets errors dropped carrier collsns           
             0       0      0       0       0       0 
$ sudo ip link set can0 up type can bitrate 1000000

$ ip -s link show can0
5: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UP mode DEFAULT group default qlen 10
    link/can 
    RX:  bytes packets errors dropped  missed   mcast           
             0       0      0       0       0       0 
    TX:  bytes packets errors dropped carrier collsns           
             0       0      0       0       0       0 

$ pip3 install python-can

$ python3 ~/klipper/scripts/canbus_query.py can0
Found canbus_uuid=8545cb97859e, Application: Klipper
Found canbus_uuid=82360ff863a5, Application: Klipper
Total 2 uuids found
SocketcanBus was not properly shut down

--------------

printer.cfg

--------------
[mcu]
# 主板 Fly D5 的 UUID
canbus_uuid: 8545cb97859e 

[mcu can]
# EBB42 的 UUID
canbus_uuid: 82360ff863a5
--------------






沒有留言:

張貼留言

網誌存檔