Reading Mainboard and Toolboard IDs
Before starting, completely power off the printer and disconnect the power supply. Do not plug or unplug wiring harnesses, rearrange interface cable order, or touch terminals while the system is powered on.
- Motherboard USB IDs: Used to search for mainboards connected to the FLY-Pi V3 via USB that have been flashed with USB firmware.
- CANBus UUID: Used to search for CAN toolboards connected to the FLY-Pi V3
can0network. - RS232 Tool Board: Used to configure toolboards connected to the FLY-Pi V3's onboard RS232 interface.
- Both USB IDs and CANBus UUIDs are searched via SSH over the network, not through the
DEVICESfeature on the web interface.
- Get motherboard USB ID
- Get the CANBus UUID
- RS232 tool board
Mainboard USB ID Retrieval
Notes
When you need to connect or reconnect the mainboard USB cable, please completely turn off the printer and disconnect the power supply first. Do not plug or unplug the wiring harness while powered on.
- You must log in to the host via SSH before executing the search command.
- Before operating, please confirm that the mainboard has been flashed with USB firmware and is connected to the host's USB port via a Type-C data cable.
- This tutorial is only for searching for the mainboard USB ID and is not applicable to searching for the tool board ID.
- For tool board devices, please use the USB or CAN ID retrieval tutorial in the corresponding product documentation.
Procedure
Search for the USB Device ID
Log in to the host via SSH, then execute the following command to list all USB serial device IDs:
ls /dev/serial/by-id/*
/dev/serial/by-id/ is part of the device path and cannot be omitted. Please copy the entire line of the path output by the terminal, and do not copy only the usb-Klipper_... name.
- Correct:
/dev/serial/by-id/usb-Klipper_stm32f072xb_123456-if00 - Incorrect:
usb-Klipper_stm32f072xb_123456-if00
Unusable IDs
After executing the command, please avoid using the following two types of IDs:
| ID Characteristic | Reason | Example |
|---|---|---|
usb-1a86_USB_Serial-if00-port0 | The default name of generic serial chips such as CH340, which cannot be used as the Klipper mainboard connection address | /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 |
Contains katapult | The device is in Katapult flashing mode and needs to be flashed with Klipper firmware first | /dev/serial/by-id/usb-katapult_xxxxxxxxxxxx |
Search Results
Under normal circumstances, the terminal will display a device path similar to the figure below. The ID in the figure is only used as a format example.
No usable ID found: View device firmware and connection troubleshooting
If the command returns multiple usable IDs, please combine the mainboard MCU model and the changes in the device list before and after plugging/unplugging to confirm the complete device path corresponding to the mainboard.
Fill the USB ID into the Configuration
Open printer.cfg in Fluidd or Mainsail:
Fluidd: Click the Loading... | Mainsail: Click "Machine" on the left, then open Loading... |
The device paths in the documentation are all examples. The USB ID of each mainboard may be different, so please copy the actual path returned by the SSH command in full.
Find the [mcu] configuration section and change serial to the complete device path you just queried:
[mcu]
serial: /dev/serial/by-id/usb-Klipper_xxxxxxxxxxxx
When using USB firmware, you should configure serial. Do not fill in canbus_uuid in the same [mcu] configuration section at the same time.
For the configuration location, refer to the figure below:
| Fluidd Configuration Example Loading... | Mainsail Configuration Example Loading... |
After the modification is complete, click SAVE & RESTART in the upper right corner to save the configuration and restart Klipper.
CANBus UUID Acquisition
Preparation
- Toolboard Status: Ensure the toolboard has been flashed with
Klipper-canfirmware or is inKatapult-canmode - Important Note: This tutorial is only for searching toolboard IDs, not for mainboard IDs
- Connection Requirement: The toolboard must be connected to one of the following devices:
UTOCmodule- A mainboard flashed with
USB Bridge CANfirmware
- Power Requirement: Some mainboards cannot detect the toolboard when powered only through USB. Completely power off the machine first, then connect a supported
12V-24Vlow-voltage supply according to the mainboard documentation. Power it on again before searching for the toolboard ID - Final Connection: The above devices need to be connected to the host machine
CAN Network Configuration Requirements
- Default Configuration: This tutorial assumes the host machine has already configured the CAN network
- Fly Users: If using a Fly host running the Fly-FAST system, CAN is configured by default (1Mbps rate)
- First-time Use: Please be sure to read the tutorial below first: CAN Configuration Tutorial
Connecting via SSH
- Log in to SSH over the network (do not use serial login)
- Ensure the host machine is properly connected to the CAN network devices
Searching for CAN ID
- Search command for standard host machines
~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0
- Search command for FLY host machines
python3 ~/klipper/scripts/canbus_query.py can0
Explanation of Search Results
- Note: The mainboard ID has already been configured into Klipper in previous documentation, so the mainboard's
CANIDcannot normally be found during a search - Quick Verification Method: If confirmation is needed, first disconnect the CAN connection cable between the mainboard and the toolboard, then re-run the search
- After executing the search command, the following situations may occur:
| Result Displayed | Status Description | Next Steps |
|---|---|---|
Application: Klipper | Device has Klipper firmware flashed | The ID can be used directly |
Application: CANBOOT or Katapult | Device is in Bootloader mode | Klipper firmware must be flashed before use |
Total 0 uuids found | No devices found | Please check the following issues: 1. Whether the CAN network configuration is correct 2. Whether the CAN baud rate is consistent (default 1Mbps) 3. Whether this ID is already in use in the configuration (if so, comment it out, save, power off, and restart) |
If a device ID is already configured in printer.cfg, it will not appear in the search results. To search again, please:
- Comment out that device ID in the configuration file
- Save the configuration and restart Klipper
- Power off and restart all devices
Configuring the CAN Device ID
1. Locate the Configuration File
Based on the web interface being used, find the printer.cfg configuration file:
Fluidd Loading... | Mainsail Loading... |
2. Add Device Configuration
Add the toolboard configuration to printer.cfg:
[mcu toolboard]
canbus_uuid: <fill in the queried ID here>
toolboardis the name of the toolboard; modify it according to the actual situation- For a mainboard ID, the configuration section should be
[mcu] - In normal configurations, the mainboard uses
[mcu], and the toolboard uses[mcu toolboard]
3. Save and Restart
- Click the SAVE & RESTART button in the top right corner
- The system will automatically save the configuration and restart Klipper
All IDs appearing in this documentation are examples only; the actual IDs differ from board to board. Please modify and fill in the ID based on what you actually obtain.
RS232 Toolboard
RS232 Reference Wiring
The FLY-Pi V3 provides 2 XH2.54-4P RS232 terminals. RS232 toolboards require a separate power supply and must share a common ground with the FLY-Pi V3; otherwise, communication cannot be established.
RS232 Interface Configuration
The two RS232 interfaces on the FLY-Pi V3 use fixed device nodes. The left SERIAL3 corresponds to /dev/serial3, and the right SERIAL4 corresponds to /dev/serial4. No USB or CAN ID search commands are required.
- The toolboard must be flashed with RS232 firmware, otherwise communication will not work.
- The toolboard and FLY-Pi V3 must share a common ground; they are already grounded when using the same
12V/24Vpower supply. - The two RS232 interfaces can be used individually or simultaneously.
- The fixed device node after
serial:cannot be modified.
Wiring Guidelines
| Left SERIAL3 Interface Loading... | Right SERIAL4 Interface Loading... |
Writing the Fixed Device Node
Open printer.cfg in Fluidd or Mainsail and add the corresponding configuration based on the interface used:
- Left Interface (SERIAL3)
- Right Interface (SERIAL4)
[mcu toolboard]
serial: /dev/serial3
baud: 250000
restart_method: command
/dev/serial3 is the fixed device node for the left interface and cannot be changed.
[mcu toolboard]
serial: /dev/serial4
baud: 250000
restart_method: command
/dev/serial4 is the fixed device node for the right interface and cannot be changed.
When connecting two RS232 toolboards at the same time, each MCU configuration section must use a different name, such as [mcu toolboard] and [mcu toolboard2], and fill in /dev/serial3 and /dev/serial4 respectively.
After completing the configuration, click SAVE & RESTART to save and restart Klipper.