Where's my serial port for ender 3 v 2 .. 4.2.2

<
I’m facing
"~/klipper $ ls /dev/serial/by-id/ "
it respond with
ls: cannot access '/dev/serial/by-id/
': No such file or directory
plz help

I used RASPI imager + RASPI 4 4gb>

Hello @ahmedbadran !

  1. Is the printer plugged in?
  2. What OS image did you use?

Hello @EddyMI3D

  1. **first time no , …i forgot to plug the printer to raspi 4 … moreover i flashed the printer with " Klipper.img after renaming it as enderfirmware.img " …
    **Second time i re-pluged it again to the raspi …
    In both trials it keep giving me the same message
    " ls: cannot access '/dev/serial/by-id/ ': No such file or directory"

  2. I used many os img , like :-
    *raspberry pi os
    *Octopi
    *Mainsail os
    *OctoKlipper Pi
    All of them stopped me at the same connection with the printer !!

finally , I started to think that i have a problem with the printer … especially i tried to flash “Jyers firm ware” to both the printer and its screen … but the screen is black screen now !!!

Can you connect to the printer with the help of pronterface?

You also may try with different USB cables. Some are only for powering/charging and can’t be distinguished from full data cables.

3 months ago i was able to connect the printer with Pronterface … after the Klipper problem i didn’t succeeded at all … maybe because i’m using win11 now!!
i tried many cables too
any other ideas?

You are right. Pronterface makes no sense with Klipper.
I assume you tried all USB ports of the Pi.
Do you have the chance to try with another Pi?

yes i have the chance … but tell me in details what to try
im Literally can’t operate the printer nether by the Klipper nor the ordinary firm wares Mariln , Jyers … because the screen turned to be black !!
so i desperately looking to any help i can get

You can swap the SD card from the first Pi to the other one.
I should boot as the first one.

I assume you have a 32-bit board with the printer, yes?

1 Like

sorry i didn’t understand… im new at these things
please tell more details

I would like to recommend this here:

Definitely go with something pre-configured and tested like fluiddpi Image if you are a Linux novice.

If you want to check if Linux can “see” the printer at all, you can run the command “dmesg” to see if Linux has detected the device.

The last few lines should show something like this:

[  383.138762] usb 1-1.1.3: new full-speed USB device number 5 using dwc_otg
[  383.271762] usb 1-1.1.3: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[  383.271775] usb 1-1.1.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[  383.271782] usb 1-1.1.3: Product: USB Serial
[  383.326985] usbcore: registered new interface driver usbserial_generic
[  383.327026] usbserial: USB Serial support registered for generic
[  383.330063] usbcore: registered new interface driver ch341
[  383.330137] usbserial: USB Serial support registered for ch341-uart
[  383.330249] ch341 1-1.1.3:1.0: ch341-uart converter detected
[  383.332646] usb 1-1.1.3: ch341-uart converter now attached to ttyUSB0

Look for the lines “New USB full speed device …” (This means that Linux has detected that some USB device has been Plugged in) And for “… now attached to ttyUSB0” (This means Linux has succesfully identified the USB device as serial USB device and is useable now, i.e. klipper should be able to talk to the printer mainboard)

details plz … im new in these

Connect via ssh, run the following command in the shell and check what happen if you replug USB:

sudo dmesg -wH

You will see errors, something similar to enderbender or nothing.
Nothing or errors means that you have a hardware issue or something is incompatible. The pi’s not allways like USB devices^^ You can try another cable or a shorter cable :slight_smile:

The enderbender message means usb device has been detected :slight_smile:

Good luck!

PS: If you see enderbender like messages you can also reach your serial device via: /dev/ttyUSB0 (or something similar, see your dmesg message). Sadly less stable if the connection is lost and replugged because it can be renamend to ttyUSB1 then. But i think it fine and will work forever :slight_smile:

1 Like

thnx a lot bro … i’ve removed both run-out cable + LCD cable from printer board …

i have got the following msg
[ +0.000042] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[ +0.016626] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[ +0.000064] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[ +0.147133] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ +0.000124] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ +0.015036] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Jan 4 2021 19:56:29 version 7.45.229 (617f1f5 CY) FWID 01-2dbd9d2e
[ +2.267002] random: crng init done
[ +0.000022] random: 7 urandom warning(s) missed due to ratelimiting
[ +0.476475] 8021q: 802.1Q VLAN Support v1.8
[ +0.241269] Adding 262140k swap on /var/swap. Priority:-2 extents:1 across:262140k SSFS
[ +0.103635] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[ +0.367086] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[ +0.000763] bcmgenet fd580000.ethernet eth0: Link is Down
[ +2.988037] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ +1.616661] ICMPv6: process `dhcpcd’ is using deprecated sysctl (syscall) net.ipv6.neigh.wlan0.retrans_time - use net.ipv6.neigh.wlan0.retrans_time_ms instead
[ +7.012501] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled

…but i can write without end

Did you replug the USB connection to the printer while watching dmesg?

If you want to leave dmesg again press ctrl+c

1 Like

no i didn’t replug the printer … i kept it connected with the raspi when i ran dmesg!
do i need to plug and replug the printer and how

Pull the USB cable out of the PI and plug it in again and observe dmesg messages. This will show you all newly detected hardware.
But possibly you should consider asking a friend for help. This will only help by identify the problem, it’s a long way from here until you have a working system :confused:

1 Like

i told you so in my above comment