probonopd / WirelessPrinting

Print wirelessly from Cura, PrusaSlicer or Slic3r to your 3D printer connected to an ESP8266 or ESP32 module
352 stars 65 forks source link

Printer stop the print randomly #150

Open cpeuschel opened 4 years ago

cpeuschel commented 4 years ago

if i start printing with Cura (4.5) with Octoprint-Cura-Plugin (3.5.12) and Continuous build (bf50a18) the printer stop the print randomly. Im using Wemos d1 mini with SD-Card shield Any Ideas?

probonopd commented 4 years ago

Can you see via telnet what is going on?

probonopd commented 4 years ago

Do you have the same issue with this build? https://github.com/probonopd/WirelessPrinting/releases/tag/bad8e51

cpeuschel commented 4 years ago

Can you see via telnet what is going on?

Nothing unusual.

Do you have the same issue with this build? https://github.com/probonopd/WirelessPrinting/releases/tag/bad8e51

Yes, same issue.

It is necessary to power on the PC? i think if my mac goes to sleepmode, the print is stoping.

cpeuschel commented 4 years ago

Ok, strange. If i open an terminal with telnet and my macbook goes to sleep mode or i hit the button "go to sleep mode", the printer stops the print. If i start my mac again, the print go on.

probonopd commented 4 years ago

It is necessary to power on the PC? i think if my mac goes to sleepmode, the print is stoping.

Not for normal operation. With telnet, maybe.

probonopd commented 4 years ago

Which kind of printer with which kind of mainboard and firmware are you using?

cpeuschel commented 4 years ago

Which kind of printer with which kind of mainboard and firmware are you using?

Ender2, SKR mini E3 v1.2 with Marlin 2.0.4.4

cpeuschel commented 4 years ago

maybe its not an issue

probonopd commented 4 years ago

Could you try e.g., on the Ender-2 with Marlin 1.x?

cpeuschel commented 4 years ago

Sure. It will take some minutes :D

cpeuschel commented 4 years ago

I think i cant install marlin 1.x on the skr mini e3

probonopd commented 4 years ago

ah, you don't have the original Ender-2 board left?

cpeuschel commented 4 years ago

i dont think so. There no rx + tx pins left

cpeuschel commented 4 years ago

With telnet connection it took 10 secounds to write "sending" image

With telnet connection and sleep mode by mac it took over one minute. image

cpeuschel commented 4 years ago

I have modify follow code:

inline void telnetSend(const String line) {
  Serial.println("\n sending");
  if (serverClient && serverClient.connected())     // send data to telnet client if connected
  {
    Serial.println("client available");
    serverClient.println(line);
    Serial.println("sending");
  } else {
    Serial.println("Client not available");
  }
}
probonopd commented 4 years ago

What is that line of ?=)(/&$§"§$%()=)&$§$%/)= there, do you have any clue where this might be coming from?

cpeuschel commented 4 years ago

no, sorry. I will try to find out.

BTW. can u reproduce that?

probonopd commented 4 years ago

When does this ?=)(/&$§"§$%()=)&$§$%/) occur: Immediately after you connect using telnet or when you send a print job?

cpeuschel commented 4 years ago

i see this if i connect the d1 to Serial-Monitor without printer is connected

probonopd commented 4 years ago

Please describe your test setup more completely. What have you connected to what, and what do you do when the ?=)(/&$§"§$%()=)&$§$%/) occurs? Currently I cannot reproduce your results.

cpeuschel commented 4 years ago

if i connect the wemos d1 with an usb cable to my Mac (or Windows); open the Serial-Monitor with the Arduino IDE (Baudrate 115200) and the "?=)(/&$§"§$%()=)&$§$%/)" occurs.

probonopd commented 4 years ago

You need to connect the wemos d1 mini to your 3D printer board using the pinout described. Then connect to the wemos d1 mini from your computer via telnet. Everything else won't work because the code will not run if no printer board is attached that responds to the commands...

cpeuschel commented 4 years ago

Ich muss mal deutsch schreiben, weil mein englisch so lala ist, wie du vielleicht gemerkt hast. :)

Mir ist klar, dass ich den D1 mit meinem Drucker verbinden muss, um überhaupt drucken zu können.

Ich habe dieses Setup nur aufgebaut um zu prüfen, warum mein Drucker nicht weiter druckt wenn mein Macbook in den Ruhezustand geht und ich via Telnet dran bin.

Generell ist mir das (https://github.com/probonopd/WirelessPrinting/issues/150#issuecomment-600216686) aufgefallen.

Ich kann aber morgen mal versuchen das nachzustellen, wenn ich den Drucker dran hab

probonopd commented 4 years ago

Das Telnet braucht man ja nur zum Debugging, und während der Zeit sollte das Macbook so eingestellt werden dass es nicht in den Ruhezustand geht.

cpeuschel commented 4 years ago

Ja gut. Aber Strange ist es trotzdem. Lass uns hier schließen.

probonopd commented 4 years ago

Please add a comment here if you are experience sudden print stops, too. Then we will reopen the ticket.

probonopd commented 4 years ago

I experienced this now (WirelessPrinting bad8e51 on Prusa i3).

Argh. Need to see if it is an issue in master still.

probonopd commented 4 years ago

We should come up with some large test gcode that we can run on printers without needing any filament... to find out what is going on.

Seesm to happen only with "larger" gcode files?

probonopd commented 3 years ago

Does anyone have any ideas how to debug this?

baykah commented 3 years ago

it did it again today, 1mo gcode in spiff, print stoped at 85% saying complete and when I try to dl the gcode back, stop at 85% ..

I just received a wemos and the SD shield to try, could it be that it is link to upload speed / time ?, 1mo gcode seemed very long ..

It looks like the file may be corrupted in the flash ?

probonopd commented 3 years ago

Unfortunately I don't know what is causing this yet.

baykah commented 3 years ago

Hello ! i'm back, sorry I completely stopped using your solution, because with the self complited modified prusa firmware to use serial 2, I started having issue even with printing from SD, no bed heating, hang up of the printer. I went back to official .bin from prusa and everything went back to normal.

Then a few month ago, I bought a daugter board with TMC sillent driver that need to solder wire in the back of the rambo mini board.

Then, today, I dismounted the board again to solder wire to TX and RX test pad in the back of the board, in the mean time, I got some WEMOS D1 with the SD shield.

I'll start again experimenting your work ! but with the "original" firmware from prusa

probonopd commented 2 years ago

Could it be that the WS2812 neopixel code is causing this?

baykah commented 2 years ago

zero issue so far since moving to original prusa firmware and to WEMOS D1 with the SD shield

probonopd commented 1 year ago

In case this issue arises again, for debugging/prolonged stress testing without needing to actually print anything:

Marlin includes a native simulator that runs on Windows, Linux, and macOS, an invaluable tool for speedier development and debugging. It can simulate either a common Graphical LCD or TFT with Classic UI.

https://twitter.com/MarlinFirmware/status/1561811939642179586

  1. Download the "Simulator" example configuration which uses motherboard BOARD_LINUX_RAMPS.
  2. Build the firmware most easily with the "Build" button in the Auto Build Marlin extension for VSCode.
  3. Click the "Run" button or reveal and double-click the built native binary.

https://twitter.com/MarlinFirmware/status/1561813417190735873

Possibly this Marlin timing simulator is even more helpful?

https://github.com/eyal0/Marlin