PRO X10 Bridge CAN
CAN Bridge
CAN bus is a serial communication protocol bus used for real-time applications, which can transmit signals using twisted-pair wires and is one of the most widely used field buses in the world. The CAN protocol is used for communication between various different components in a car, replacing expensive and bulky wiring harnesses. The robustness of this protocol extends its use to other automation and industrial applications. Features of the CAN protocol include serial data communication with integrity, provision of real-time support, transmission rates up to 1Mb/s, 11-bit addressing, and error detection capability. On 3D printers, CAN bus is used to reduce the number of wires connecting the print head to the mainboard. Originally, it required more than ten wires, but with CAN, only four wires are needed, significantly reducing the number of wires and lowering the wiring difficulty. This chapter briefly outlines the use of bridge CAN.
Tool board uses CAN to connect to the mainboard
-
Note that the power line of the tool board is not connected to the CAN port, but to the 12V-24V power line
Flashing the mainboard firmware
- Ensure that the firmware burned on the PRO X10 mainboard is
USB bridge CAN firmware configuration
Search ID
CAN Configuration and ID Search
- If you need to use CAN, please confirm that your host computer has performed CAN configuration.
Please ensure the motherboard is connected to the host computer before performing the following operations.
Please make sure the CAN network of the host computer, the CAN rate of the bridge motherboard, and the rate of the CAN tool board are completely consistent.
Precautions Before Device Search
- Before searching for the CAN ID, please first connect to SSH.
- Please note that it is necessary to ensure that the network login is used to SSH instead of serial port login.
- Please ensure that the UTOC is connected or the CAN bridge firmware is flashed on the motherboard, and ensure that the data cable connecting the host computer has data transmission capability.
Device Search
- Now that you have successfully logged into the host computer, you can enter
lsusb
to search for devices, which will result in one of the following scenarios:- If entering
lsusb
prompts that thels
command is not found, you can enter the following command to install the command:sudo apt-get install usbutils
- If entering
lsusb
results in no response, this indicates a system issue, and we cannot help. You need to replace the system or use a confirmed normal system. - If the information shown in the image below appears, please note that this is just a reference. You only need to confirm that
1d50:606f
appears.
- If entering
1d50:606f
belongs to the device you need to use. The subsequent prompts do not need to be concerned about, as system issues may cause them to display incompletely or not at all.- If there are multiple
1d50:606f
, it is recommended to exclude one, otherwise it will affect the subsequent burning and firmware connection. For example, if it isFLY MINI PAD
, it is recommended to use the onboard UTOC and not other CAN bridge devices. - If none appear, please check whether the data cable is properly connected and whether the firmware has been correctly flashed.
You can only proceed with CAN ID search when 1d50:606f
appears.
CAN ID Search
- Enter the following command to search for the ID:
~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0
- If an ID appears and the
Application:
at the end showsKlipper
, it means this ID can be used directly. - If an ID appears and the
Application:
at the end showsCANBOOT
orKatapult
, it means the firmware needs to be flashed before it can be used.
CAN Problem Collection
- If you cannot find the CAN ID, see the document below.
- CAN Problem Collection
Fill in the CAN ID into the Configuration
-
Open the printer web interface, find
printer.cfg
in the configuration options on the left sidebar. For fluidd, it is{...}
; for mainsail, it isMachine
. Click to enter and locateprinter.cfg
. -
Copy the queried UUID and fill it into the
canbus_uuid:
field under the[mcu]
node in theprinter.cfg
configuration. After saving and restarting, the mainboard can be connected. If Klipper prompts that the firmware needs to be updated or reports errors such as ADC, it indicates that Klipper has connected to the mainboard. -
If the
Application:
displays Canboot, it cannot be configured into the configuration file. You need to flash the Klipper firmware before proceeding.dangerousNote: All IDs mentioned in the documentation are examples. Each mainboard's ID is different. Please modify and fill in according to the actual obtained ID.
-
Below is a reference configuration:
dangerous- This is a reference configuration method for one mainboard and one tool board.
- If it is the mainboard ID, it must be
[mcu]
pluscanbus_uuid:
followed by the ID you searched for. - If it is the tool board, it must be
[mcu tool board name]
pluscanbus_uuid:
followed by the ID you searched for.