Mainboard ID Reading and Viewing
- This tutorial is only applicable to the mainboard ID reading and viewing methods.
If you are using a toolboard, please refer to the corresponding product's ID search tutorial. - If you are using a toolboard, you can directly click the button below to jump:
Connect Toolboard - If you have flashed the USB firmware, please check the USB-ID Acquisition section.
- If you have flashed the USB Bridge firmware, please check the CAN-ID Acquisition section.
- USB ID Acquisition
- CANBus UUID Acquisition
Precautions
- Must connect to the host computer via SSH. Please use network login to connect to the host computer (e.g., Raspberry Pi).
- Before proceeding, ensure the mainboard has been flashed with the USB firmware.
- This tutorial is only applicable for Mainboard ID lookup, not for Toolboard ID lookup.
- Confirm the mainboard is connected to the host computer's USB port via Type-C.
- To look up the Toolboard ID, please refer to the relevant tutorial in the corresponding product directory.
Steps
Search for USB Device ID
- Execute the following command to list all USB serial device IDs:
ls /dev/serial/by-id/*
⚠️ Important Note: Unusable IDs
After executing the command, please identify and avoid using the following two types of IDs:
| ID Characteristics | Reason | Example |
|---|---|---|
usb-1a86_USB_Serial-if00-port0 | This is the default name for generic serial chips like CH340 and cannot be used for configuration. | /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 |
Contains katapult | Indicates the device is in bootloader mode. It must be flashed with Klipper firmware before use. | /dev/serial/by-id/usb-katapult_xxxxxxxxxxxx |
Execution Result Explanation:
- Normal Case: The terminal will display an ID similar to the example below (the image is for illustration only).
Loading...
- Troubleshooting for Abnormal Issues
If multiple IDs appear, please select the corresponding ID based on your mainboard's MCU model.
Enter the USB ID into the Configuration
Loading... |
Loading... |
Note: All IDs appearing in this document are examples. The actual ID for each mainboard is different. Please modify and enter based on the ID you actually obtained.
Enter the USB ID
- Locate
[mcu], then replace it.
- Please replace in the configuration file:
- Do not configure
canbus_uuid:.
[mcu]
serial: <Replace here with the ID you just queried>
- Reference
Loading... |
Loading... |
- Click the
SAVE & RESTARTbutton in the top right corner. After clicking, Klipper will automatically save and restart.
Precautions
- Must connect to the host computer via SSH, please use network login to connect to the host computer (such as Raspberry Pi and other devices).
- Before operation, ensure that the mainboard has been flashed with the
USB Bridge CANfirmware. - This tutorial is only applicable for mainboard ID search, not for toolboard ID search.
- Please confirm that the host computer and the mainboard are correctly connected.
- To view the toolboard ID, please refer to the relevant tutorial in the corresponding product directory.
CAN Precautions
- This tutorial assumes that your host computer has already been configured for CAN.
- If you are using a
Flyhost computer, it is assumed thatCANis already configured and the CAN baud rate is1M. - If you are using
CANfor the first time, be sure to read the tutorial below first. - CAN Configuration Tutorial
Searching for CAN ID
-
Search command for a regular host computer:
~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0 -
Search command for a FLY host computer:
python3 ~/klipper/scripts/canbus_query.py can0- After executing the search command, there will be several possible outcomes. Please troubleshoot and determine based on your situation:
- If an ID appears and
Application:at the end displaysKlipper, it means this ID can be used directly. - If an ID appears and
Application:at the end displaysCANBOOTorKatapult, it means firmware flashing is required before it can be used. - If
Total 0 uuids foundappears, there are several possible situations:- There is an issue with the CAN network configuration.
- The CAN baud rate is inconsistent. Please ensure the host computer's CAN baud rate matches that of the mainboard, toolboard, etc.
- If the corresponding ID is already configured in
Klipper, you need to first disable the ID in the system configuration, then shut down, power off, and restart.Loading...
- If an ID appears and
- After executing the search command, there will be several possible outcomes. Please troubleshoot and determine based on your situation:
Enter the CAN ID into the configuration
-
Copy the queried UUID and then configure it in
printer.cfg. -
If
Application:displays Canboot, it cannot be configured; you need to flash the Klipper firmware to proceed to the next step.Loading...dangerousNote: All IDs appearing in the document are examples. The actual ID for each mainboard is different. Please modify and fill in based on the ID you actually obtain.
Loading... |
Loading... |
- Below is a reference configuration:
dangerous
[mcu]
canbus_uuid: <Replace here with the ID you just queried>- The mainboard ID must be
[mcu]pluscanbus_uuid:plus the ID you searched for. - Do not configure
serial:.
Loading...- Click
SAVE & RESTARTin the upper right corner. After clicking, it will automatically save and restart Klipper.
- The mainboard ID must be