# EMI and connection lost error

**URL:** <https://klipper.discourse.group/t/emi-and-connection-lost-error/5155>\
**Category:** General Discussion\
**Created:** [November 29, 2022, 9:14pm UTC](https://klipper.discourse.group/t/emi-and-connection-lost-error/5155 "2022-11-29T21:14:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![keybored](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/keybored/32/1465_2.png) [@keybored](https://klipper.discourse.group/u/keybored)\
**Post date:** [November 29, 2022, 9:14pm UTC](https://klipper.discourse.group/t/emi-and-connection-lost-error/5155/1 "2022-11-29T21:14:05Z")

</div>

### Basic Information:

Printer Model: CR-10S  
 MCU / Printerboard: BTT SKR E3 Mini V3.0  
 `klippy.log`  
[klippy.log](https://bin.foss.wtf/?e48ad3535a11c117#DSKacn8tsGmx3p3kQtkBDKCFZTgy5Drq3gf2yY5WdeCR)  
moonraker.log  
[moonraker.log](https://klipper.discourse.group/uploads/short-url/ip1DdCGhzPD7JGX3OwqoIiffsdO.log) (196.0 KB)

### Describe your issue:

I’ve been experiencing random lost connections for a month or so. Mid print, the SBC stops and errors out "Lost MCU connection ‘mcu’ ". What I’ve done to diagnose it:

Changed the SBC to a different one, (Odroid XU4 → OrangePi 3LTS)  
Changed Linux distro (Debian Bullseye, Dietpi 8.2.x)  
Changed USB cable/taped the 5V pin  
Reinstalled/reflashed everything  
Lowered Baud to 115200  
Tested the connection via the Command Dispatch Benchmark  
Changed SBC and cable routes, trying to lower possible interferences

The klippy.log is quite unhelpful. It shows a `Got EOF when reading from device` (line 11954.0) after a small spike in `bytes_retransmit` (from 9 to 44). While this does usually indicate a poor USB cable, I don’t think it’s the true cause here. I’ve changed a couple, with no observable differences.

Moonraker and dmesg show nothing of relevant (other than the usual USB reconnect line). Interestingly, after an error-induced shutdown, Moonraker has trouble reconnecting to Klipper and hangs on the connecting screen until you reboot the SBC. I’m running two instances, but I couldn’t assess whether the second printer (undergoing “maintenance”) is affected too. I’m starting to run out of options here.

[Update]

After it occurred again, I tried to reconnect immediately, which resulted in Klipper hanging indefinitely in the “Startup” phase. No amount of firmware restart solved it, only rebooting the SBC. It’s also interesting how Mainsail showed the MCU with its load during startup, meaning Klipper was able to get an initial connection. So it’s a MCU firmware issue?

---

<div class="post-metadata">

**Author:** ![mykepredko](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/mykepredko/32/2085_2.png) [@mykepredko](https://klipper.discourse.group/u/mykepredko)\
**Post date:** [November 30, 2022, 5:22am UTC](https://klipper.discourse.group/t/emi-and-connection-lost-error/5155/2 "2022-11-30T05:22:39Z")

</div>

Have you checked your bulk (12V/24V) power supply?

If you get a voltage underage or a spike you could get what you’re seeing.

---

<div class="post-metadata">

**Author:** ![keybored](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/keybored/32/1465_2.png) [@keybored](https://klipper.discourse.group/u/keybored)\
**Post date:** [November 30, 2022, 8:21am UTC](https://klipper.discourse.group/t/emi-and-connection-lost-error/5155/3 "2022-11-30T08:21:53Z")

</div>

The interruptions happen well after the print has started, hours in usually. If it was a PSU issue and an undervolting was occurring, it would probably happen during the heat up phase. The board is also (theoretically) voltage-regulated in two separate spots. I will try to switch PSUs anyway.

---

<div class="post-metadata">

**Author:** ![hcet14](https://avatars.discourse-cdn.com/v4/letter/h/ecd19e/32.png) [@hcet14](https://klipper.discourse.group/u/hcet14)\
**Post date:** [November 30, 2022, 8:06pm UTC](https://klipper.discourse.group/t/emi-and-connection-lost-error/5155/4 "2022-11-30T20:06:11Z")

</div>

Do you have an old laptop or PC? If yes, you may try to replace Odroid XU4 ant/or OrangePi 3LTS with that and try if it works.

---

<div class="post-metadata">

**Author:** ![keybored](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/keybored/32/1465_2.png) [@keybored](https://klipper.discourse.group/u/keybored)\
**Post date:** [November 30, 2022, 10:18pm UTC](https://klipper.discourse.group/t/emi-and-connection-lost-error/5155/5 "2022-11-30T22:18:18Z")

</div>

I’ve not tried a third platform yet, and I think that I’m going to do just that.

But first I want to try and connect it via UART instead of USB. Given the symptoms, it looks like there’s something that’s truncating or obstructing the connection specifically between the port and the MCU. It might be worth it to check if it’s an USB issue.

I’m inclined to think that something on the board simply stopped working. Probably a filter or a varistor, by looking at the schematics.

---

<div class="post-metadata">

**Author:** ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)\
**Post date:** [April 28, 2024, 10:47am UTC](https://klipper.discourse.group/t/emi-and-connection-lost-error/5155/6 "2024-04-28T10:47:05Z")

</div>


