Skip to main content

USB to CAN Firmware Flashing

Note
  • The DIP switches need to be set to the position shown below

SSH into the Host Machine

Warning
  • Before compiling the firmware, you need to connect to the host machine via SSH using WiFi
  • First, please: Connect to the host machine SSH via WiFi


USB to CAN Firmware Flashing

Tip
  • A USB to CAN firmware has already been pre-compiled in the FLYOS-FAST system. No need to compile it manually. Just execute the command below to flash it
  • Alternatively, you can choose to manually compile the USB to CAN firmware
  • Choose carefully according to your device; the FLY system defaults to 1M

  • The FAST system defaults to a 1M baud rate. If you need 500K, you need to change the canbus_bitrate setting in the system configuration

  • This command flashes the 1M USB to CAN firmware

fly-flash -d c8 -h -f /usr/lib/firmware/klipper/stm32f407-32k-usbcan-1m.bin
  • This command flashes the 500k USB to CAN firmware
fly-flash -d c8 -h -f /usr/lib/firmware/klipper/stm32f407-32k-usbcan-500k.bin


Search for CAN ID

  1. Open a browser and enter the IP address of the host computer in the address bar. For example, if the IP address of my host computer is 192.168.101.179, simply enter it and press Enter.
  1. Open the WEB interface of the host computer, and in the configuration options of the left sidebar, find:
  • For fluidd: {…}, click into it to find printer.cfg
  • For mainsail: Machine, click into it to find printer.cfg
  1. After clicking into printer.cfg, click on DEVICES in the upper right corner.

  2. Click CAN, then refresh.

    • Refresh in fluidd
    • Refresh in mainsail
  3. Copy the ID; click the arrow to copy it.

    • In fluidd, confirm whether the item pointed to by the first arrow is Klipper; if so, click the arrow on the right to copy it.
    • In mainsail, confirm whether the item pointed to by the first arrow is Klipper; if so, click the arrow on the right to copy it.

Fill in CAN ID

  1. Close DEVICES and fill in the ID
Note
  • Please change the following in the configuration file:
[mcu] 
serial: /tmp/klipper_host_mcu

to

[mcu host] 
serial: /tmp/klipper_host_mcu
  • Add:
[mcu]
canbus_uuid: <Replace this with the ID you just looked up>
  • In fluidd, find [MCU]
  • In mainsail, find [MCU]
  1. Fill the ID into the configuration
tip
  • After filling in the ID, click SAVE & RESTART in the upper right corner.
  1. If Klipper shows a message ADC out of range, this is normal. Connect the heated bed and thermistor to the mainboard, and configure the thermistor pins for the extruder and heated bed, then save and restart.
dangerous

Note: All IDs shown in the documentation are examples. Each mainboard has a different ID, so please fill in the actual ID you obtained.


Loading...
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
- 3D Mellow -
Loading...