Ender 3 V2 not connecting

Basic Information:

Printer Model: Ender 3 V2
MCU / Printerboard: 4.2.2
klippy.log

Fill out above information and in all cases attach your klippy.log file (use zip to compress it, if too big). Pasting your printer.cfg is not needed
Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there

Describe your issue:


First of all my thanks to all you folks programming these marvels and helping out and supporting all this!!

Ender 3 V2
used kiauh (with defaults) in hope it guides me to a smooth installation.
installed:
klipper
mainsail
fluidd
moonraker
pgcode

However,
Klipper reports: STARTUP
Printer is not ready
The klippy host software is attempting to connect. Please
retry in a few moments.

log complains about
Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/: [Errno 2] No such file or directory: ‘/dev/serial/by-id/’
I tried all 4 on my Pi 3B

lsusb shows Device # did change when plugged into another USB port .
Bus 001 Device 004: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 001 Device 006: ID 1a86:7523 QinHeng Electronics CH340 serial converter
etc

ls /dev/serial/by-id/*
shows
/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0

as it is already in the
/home/admin/klipper/config/printer-creality-ender3-v2-2020.cfg
file:
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command

changed serial in
/home/admin/printer_data/config/printer.cfg
to
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
resarted, firmware restarted, Pi restarted

this made things worse, now says:
mcu ‘mcu’: Unable to connect
Once the underlying issue is corrected, use the
“FIRMWARE_RESTART” command to reset the firmware, reload the
config, and restart the host software.
Error configuring printer

I cannot even find the serial settings in the Klipper menue, to maybe chage the baud rate etc.

Tried self-help,
https://www.klipper3d.org/Installation.html
talks about octoprint which I don’t have

What am I doing wrong???
tried to attach a few screenshots, discourse won’t let me.

klippy.jamesbond03.zip (9.7 KB)

Hello @SilentOrb !

This one is unique!

You started a Klipper install. Fine.

To the empty printer.cfg you added some (random) macros, but:

There is no setup (steppers, extruder etc) for the printer itself. Not even the kinematics is defined:

[printer]
kinematics = none
max_velocity = 1000
max_accel = 1000

Are you sure about the serial?

See this section to check the serial from the printer:

https://www.klipper3d.org/Installation.html#building-and-flashing-the-micro-controller

Here you find a proper printer.cfg to start with a Ender 3 V2:

Thank you for your reply, I see many have issues with Kipper not connecting, tried to figure it out myself, didn’t get far, appreciate all your help.

I used kiauh with defaults, it installed all the programsl (all ended with install ok messages).
I remember Kiauh suggesting some macros en route, didn’t really know what they were and let it install those.

After the Kipper didn’t work, checked it WinSCP and it looked install was successful indeed.

poked in some subdirs, saw as mentioned
/home/admin/klipper/config/printer-creality-ender3-v2-2020.cfg
there.

The link to check serial you provided is about building and flashing the micro-controller, however I had already flashed it prior to all this with “MRISCOC Professional firmware” successfully.

The other issue with your link was that it seemed geared towards Octoprint, but I wanted to get Kipper.

So should I redo the flashing??

You are aware that this is a Marlin Firmware and Klipper needs his own?
Follow the information in the link @EddyMI3D posted above.

This content needs to go into the printer.cfg file and you need to add the serial as obtained in the firmware flashing step above.

You are aware that this is a Marlin Firmware and Klipper needs his own?

Wow, didn’t know that.
In fact, I got to Klipper by reading that Klipper is best suited for the “MRISCOC Professional firmware”.
I thought Klipper is just a control interface like Octoprint

Klipper is a complete firmware (like Marlin) but is following a totally different philosophy. If you ask the folks here, it is waaaaayyyy better than Marlin, but this might be slightly biased in a Klipper forum.
For some more information how Klipper works refer to Klipper Architecture / Ecosystem

Blown away by all this!
So amazed of all your guys work.
Am I getting this right: Klipper outsources functions (which might not fit or are too slow on the Ender’s MCU) and runs them on a Pi. And uses it’s own FW to have the Ender MCU just follow step instructions?

Exactly. And a lot more, since it can use the full power of the RPi and is not limited by the MCU. Find some blurb here: Will a Klipper Printer print much faster?
Also it offers a very powerful macro system to customize a lot of aspects but just try it. You can always return to Marlin (nobody does :wink: )

1 Like

Got it, thank you for your replies.
Since this printer is just a loaner, would it still be able to print off the uSD card without the Pi?
That’s how the owner is used to do it.

I went through the process as described in
https://www.klipper3d.org/Installation.html#building-and-flashing-the-micro-controller

when doing this
make flash FLASH_DEVICE=/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0

I get this
make: *** No rule to make target ‘flash’. Stop.

Since it’s the first flash I made sure that OctoPrint is not connected directly to the printer.
Also, I could not find any reference to “FLASH_DEVICE”, a search shows just those two instances, is that the uSD card?

Klipper relies on a stable and permanent connection between the board and the RPi / SBC. Of course printing from SD is possible but is not following the Klipper philosophy as it is much more efficient to print from the RPi. This is called virtual_sdcard and the modern webinterfaces rely on it.

What does ls /dev/serial/by-id/* return? If nothing, then check if Debian Bullseye Bug causing Klipper to no longer find the printer board - #8 is applicable.

If the Ender 3 V2 is off it shows nothing, but when on it still shows the same
/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0

Klipper-error03

I understand your philosophies and all, but I need to make sure that the printer still functions as it was before making all these mods.
My friend is a total un-geek, he just plays discjokey with his uSD cards.

Hmm, I made the same experience. When the light is off in the night it is dark :wink:

From your screenshots it looks like you are in the wrong folders to successfully build the firmware:

  1. cd ~/klipper → Move to the folder where you have pulled Klipper
  2. make menuconfig → Settings according to the top of https://github.com/Klipper3d/klipper/blob/master/config/printer-creality-ender3-v2-2020.cfg
  3. make → Build the firmware
  4. make flash FLASH_DEVICE=/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0 → Here it probably helps if the printer is powered on and connected to the RPi

Yes, this lookes much better, the menuconfig settings were all the same still (from the correct header).

Make says
make: Nothing to be done for ‘all’.

and the make flash… says “Unable to find tty device”

uSD card is inserted, Pi is connected to Ender but “disconnected” in OctoPrint

Sorry, my fault. This one needs to be flashed via SD card:

# Flash this firmware by copying "out/klipper.bin" to a SD card and
# turning on the printer with the card inserted. The firmware
# filename must end in ".bin" and must not match the last filename
# that was flashed.

Generally you find all relevant information on top of the cfg example

Edit: I’d recommend to use Fluidd or Mainsail instead of Octoprint. Should be easy to setup using KIAUH

I had read that section, tried that in the past, didn’t flash.
Must the uSD card be formatted specially?
I have boot partition on it but it’s all empty

I did do that as mentioned on top of this thread, I just didn’t know that the Enders’ FW has to be changed.
That’s where I’m stuck now.

copied the out folder onto uSD card, inserted and turned the power on.
How long does the flash take?
How can I tell the new FW got flashed? The screen shows the old stuff still.
Thanks!

“connected” OctoPrint


Still don’t know if Klipper FW got flashed onto Ender.

If you insist on using Octoprint, you should install GitHub - thelastWallE/OctoprintKlipperPlugin: A plugin for a better integration of Klipper into OctoPrint.

Otherwise, check your klippy.log file for any errors. In doubt, attach it here.

Typically, you copy only the bin file to the root of the SD card. If you repeat it, mind

# The firmware
# filename must end in ".bin" and must not match the last filename
# that was flashed.