What's new
VORON Design

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members!

Cannot get klipper to connect

thespacecowboy

Active member
In mainsail, I am getting;
Klipper reports: STARTUP
Printer is not ready
The klippy host software is attempting to connect. Please
retry in a few moments.

When I try to connect in the console I get;
INFO:root:Starting serial connect
WARNING:root:Unable to open serial port: [Errno 2] could not open port usb-Klipper_stm32f446xx_1E0032000951303532383235-if00: [Errno 2] No such file or directory: 'usb-Klipper_stm32f446xx_1E0032000951303532383235-if00'

I just don't understand what is wrong here. I followed the LDO guide to the letter. Everything else worked.

I was able to update printer.cfg and get it loading, and I put in my ID in that file, but it doesn't want to work.

What do I do??? This is a USB setup. in ls dev/serial/by-id I can see the thing... I tried plugging it into the same port as in the guide and nothing...

mcu 'mcu': Starting serial connect
Loaded MCU 'mcu' 130 commands (v0.12.0-317-gb89d55238 / gcc: (15:8-2019-q3-1+b1) 8.3.1 20190703 (release) [gcc-8-branch revision 273027] binutils: (2.35.2-2+14+b2) 2.35.2)
MCU 'mcu' config: ADC_MAX=4095 BUS_PINS_i2c1=PB6,PB7 BUS_PINS_i2c1a=PB8,PB9 BUS_PINS_i2c2=PB10,PB11 BUS_PINS_i2c3=PA8,PC9 BUS_PINS_sdio=PC12,PD2,PC8,PC9,PC10,PC11 BUS_PINS_spi1=PA6,PA7,PA5 BUS_PINS_spi1a=PB4,PB5,PB3 BUS_PINS_spi2=PB14,PB15,PB13 BUS_PINS_spi2a=PC2,PC3,PB10 BUS_PINS_spi3=PB4,PB5,PB3 BUS_PINS_spi3a=PC11,PC12,PC10 BUS_PINS_spi4=PE13,PE14,PE12 CLOCK_FREQ=180000000 MCU=stm32f446xx PWM_MAX=255 RESERVE_PINS_USB=PA11,PA12 RESERVE_PINS_crystal=PH0,PH1 STATS_SUMSQ_BASE=256 STEPPER_BOTH_EDGE=1
mcu 'nhk': Starting serial connect
mcu 'nhk': Unable to open serial port: [Errno 11] Could not exclusively lock port /dev/serial/by-id/usb-Klipper_stm32f446xx_1E0032000951303532383235-if00: [Errno 11] Resource temporarily unavailable
webhooks client 547535454800: New connection
webhooks client 547535454800: Client info {'program': 'Moonraker', 'version': 'v0.9.3-0-g71f9e67'}
mcu 'nhk': Unable to open serial port: [Errno 11] Could not exclusively lock port /dev/serial/by-id/usb-Klipper_stm32f446xx_1E0032000951303532383235-if00: [Errno 11] Resource temporarily unavailable
mcu 'nhk': Unable to open serial port: [Errno 11] Could not exclusively lock port /dev/serial/by-id/usb-Klipper_stm32f446xx_1E0032000951303532383235-if00: [Errno 11] Resource temporarily unavailable
mcu 'nhk': Unable to open serial port: [Errno 11] Could not exclusively lock port /dev/serial/by-id/usb-Klipper_stm32f446xx_1E0032000951303532383235-if00: [Errno 11] Resource temporarily unavailable
mcu 'nhk': Unable to open serial port: [Errno 11] Could not exclusively lock port /dev/serial/by-id/usb-Klipper_stm32f446xx_1E0032000951303532383235-if00: [Errno 11] Resource temporarily unavailable

I don't even seem to be able to reflash in this state, I apparently would have to go all the way back to installing mainsail??? So I can't even effectively troubleshoot, not that I know where to start???

Guess I'm ganna reflash the OS and start all over... but I didn't miss anything... it all worked but won't connect...
... and I still have exactly the same problem. USB cable is in the port it shows in the LDO guide, top right on the PI

[ 363.799536] cdc_acm 1-1.1:1.0: ttyACM0: USB ACM device
[ 364.994639] usb 1-1.1: USB disconnect, device number 5
[ 368.413844] usb 1-1.1: new full-speed USB device number 6 using xhci_hcd
[ 368.520776] usb 1-1.1: New USB device found, idVendor=0483, idProduct=df11, bcdDevice=22.00
[ 368.520805] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 368.520821] usb 1-1.1: Product: STM32 BOOTLOADER
[ 368.520835] usb 1-1.1: Manufacturer: STMicroelectronics
[ 368.520848] usb 1-1.1: SerialNumber: STM32FxSTM32
[ 668.668323] usb 1-1.1: USB disconnect, device number 6
[ 669.260553] usb 1-1.1: new full-speed USB device number 7 using xhci_hcd
[ 669.372615] usb 1-1.1: New USB device found, idVendor=1d50, idProduct=6177, bcdDevice= 1.00
[ 669.372646] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 669.372663] usb 1-1.1: Product: stm32f446xx
[ 669.372676] usb 1-1.1: Manufacturer: katapult
[ 669.372689] usb 1-1.1: SerialNumber: 1E0032000951303532383235
[ 669.380745] cdc_acm 1-1.1:1.0: ttyACM0: USB ACM device


keymaster@raspberrypi:~/klipper $ ls /dev/serial/by-id/*
/dev/serial/by-id/usb-Klipper_stm32f446xx_1E0032000951303532383235-if00



and all the sudden it started working with this...

keymaster@raspberrypi:~/klipper $ ~/katapult-env/bin/python3 ./klippy/console.py /dev/serial/by-id/usb-Klipper_stm32f446xx_1E0032000951303532383235-if00

I guess it wants the entire path as the UID??? but is that the case in the printer.cfg too?

maybe I made some silly mistake. But leaving this for others unless mods delete.

in the guide (https://ldomotion.com/#/guide/VORON-Leviathan-V12) at the end of the guide it would have been helpful to have an example of what the UID actually looks like, especially since it contains the path, rather than <ID>


But now I am back to mainsail and it won't connect...
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_1E0032000951303532383235-if00
restart_method: command
1729061046391.png

sorry for the long thread but... please help???

Extruder max_extrude_ratio=0.266081
mcu 'mcu': Starting serial connect
webhooks client 548191262032: New connection
webhooks client 548191262032: Client info {'program': 'Moonraker', 'version': 'v0.8.0-268-ga23187b'}
Loaded MCU 'mcu' 118 commands (v0.12.0-85-gd785b396a / gcc: (15:8-2019-q3-1+b1) 8.3.1 20190703 (release) [gcc-8-branch revision 273027] binutils: (2.35.2-2+14+b2) 2.35.2)
MCU 'mcu' config: ADC_MAX=4095 BUS_PINS_i2c1=PB6,PB7 BUS_PINS_i2c1a=PB8,PB9 BUS_PINS_i2c2=PB10,PB11 BUS_PINS_i2c3=PA8,PC9 BUS_PINS_sdio=PC12,PD2,PC8,PC9,PC10,PC11 BUS_PINS_spi1=PA6,PA7,PA5 BUS_PINS_spi1a=PB4,PB5,PB3 BUS_PINS_spi2=PB14,PB15,PB13 BUS_PINS_spi2a=PC2,PC3,PB10 BUS_PINS_spi3=PB4,PB5,PB3 BUS_PINS_spi3a=PC11,PC12,PC10 BUS_PINS_spi4=PE13,PE14,PE12 CLOCK_FREQ=180000000 MCU=stm32f446xx PWM_MAX=255 RESERVE_PINS_USB=PA11,PA12 RESERVE_PINS_crystal=PH0,PH1 STATS_SUMSQ_BASE=256 STEPPER_BOTH_EDGE=1
mcu 'nhk': Starting serial connect
mcu 'nhk': Unable to open serial port: [Errno 11] Could not exclusively lock port /dev/serial/by-id/usb-Klipper_stm32f446xx_1E0032000951303532383235-if00: [Errno 11] Resource temporarily unavailable

and back to this in console


==================== attempting to connect ====================
INFO:root:Starting serial connect
WARNING:root:Unable to open serial port: [Errno 11] Could not exclusively lock port /dev/serial/by-id/usb-Klipper_stm32f446xx_1E0032000951303532383235-if00: [Errno 11] Resource temporarily unavailable


It worked ONCE. Immediately after I started it. Now it won't work either way!??!?!
 
Last edited:
Well, its hard to be absolutely sure without a klipper log, or a config file. But every time I've seen the "cannot exclusively lock" error, it's because somebody put the same device id in two places, for example, for both the main mcu, and for a toolhead board
 
SO... late last night I figured out one problem at least, (thanks to the klipper discord) which is that the LDO file has spots in it for the ID for the board, and also the ID for the nitehawk, and this was not immediately clear to me at the end of a day.
If you put the board ID in both spaces, you will have the problem which I did.
Later I will try again with this knowledge and the nitehawk connected. The guide tells you to disconnect EVERYTHING but does not mention reconnecting the nitehawk at all, I suppose because the guide ends with a console connection, not mainsail stuff as I was looking at.
Thanks so much all
 
Last edited:
Top