39
English Documents/Can rate switching And Firmware update.md
Normal file
39
English Documents/Can rate switching And Firmware update.md
Normal file
@@ -0,0 +1,39 @@
|
||||
## 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 <path to canboot update firmware> -u <UUID obtained>
|
||||
```
|
||||
For example, `<path to canboot update firmware>` 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 <path to new frequency IDM firmware> -u <UUID obtained>
|
||||
```
|
||||
For example, `<path to new frequency IDM firmware>` 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("<your device serial port address>")'
|
||||
cd ~
|
||||
~/klippy-env/bin/python ~/klipper/lib/canboot/flash_can.py -f <firmware path> -d <your device serial port address>
|
||||
```
|
||||
|
||||
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.
|
||||
Reference in New Issue
Block a user