## CAN Frequency Switching First, connect to the host computer. Recompile the firmware for the CAN communication device (U2C or Can Bridge) directly connected to the host computer and set the frequency to 1M to communicate with IDM. Use the following command to query IDM's UUID: ```bash ~/klippy-env/bin/python ~/klipper/lib/canboot/flash_can.py -q ``` Download the required frequency IDM firmware and canboot overlay firmware from the cloud drive. Execute the following command: ```bash ~/klippy-env/bin/python ~/klipper/lib/canboot/flash_can.py -f -u ``` For example, `` could be ~/Canboot 1M.bin. Fill in your data and remember to remove the `< >` brackets. Wait for the execution to complete, then enter: ```bash ~/klippy-env/bin/python ~/klipper/lib/canboot/flash_can.py -f -u ``` For example, `` could be ~/IDM_CAN_8kib_offset_1M.bin. Fill in your data and remember to remove the `< >` brackets. If you want to switch to USB communication, you can flash firmware with the USB label using the same method and solder the mode-setting jumper on the back of IDM to the side with USB. ## If you are currently using USB firmware and want to update or switch to CAN mode: ```bash cd ~/klipper/scripts ~/klippy-env/bin/python -c 'import flash_usb as u; u.enter_bootloader("")' cd ~ ~/klippy-env/bin/python ~/klipper/lib/canboot/flash_can.py -f -d ``` The device serial port address refers to the address in the format /dev/serial/by-id/****. Please note that the serial port number for the second time should be different. Re-query it. Fill in your data and remember to remove the `< >` brackets. #### via DFU if you managed to get your idm into dfu mode, you can use the command below to upload canboot ``` sudo dfu-util -d ,0483:df11 -R -a 0 -s 0x8000000:leave -D ``` and the command below to upload main firmware ``` sudo dfu-util -d ,0483:df11 -R -a 0 -s 0x8002000:leave -D ``` Fill in your data and remember to remove the `< >` brackets.