[BUG] Communication timeout while printing #204

Closed
opened 2021-09-21 10:58:21 -05:00 by markecskace · 14 comments
markecskace commented 2021-09-21 10:58:21 -05:00 (Migrated from github.com)

Bug Description

<I am using MEGA_S_TMC_BLT_10_v1.3.0.hex on my Mega S with BL touch. Also octoprint. After print starts, printer randomly stops and looses connection with octoprint.
This is what I see in octoprint terminal window:
Send: N66 G1 X105.403 Y124.354 E5.11206*85 Recv: Error:checksum mismatch, Last Line: 65 [...] Communication timeout while printing, trying to trigger response from printer. Configure long running commands or increase communication timeout if that happens regularly on specific commands or long moves. [...] Recv: Error:Line Number is not Last Line Number+1, Last Line: 65 [...]>``
I have to power off/on printer. If I disconnect the connected camera on raspberry it seems to print next project ok.
I did reflash version 1.2.0. and it is working perfect with camera and octolapse. No problems with version 1.2.0.

Steps to Reproduce

  1. [First Step]
    Start print using octoprint and connected and enabled camera.
  2. [Second Step]
    Wait and see if it will manage to print or not.
  3. [and so on...]

Expected behavior: [Like version 1.2.0, but with added features of version 1.3.0. ;) ]

Actual behavior: [It randomly stops printing after loosing connection.]

Additional Information

Thank you for all your work so far!

  • Provide pictures or links to videos that clearly demonstrate the issue.
  • See How Can I Contribute for additional guidelines.
<!-- ------ PLEASE USE THIS TEMPLATE! -------- Have you read all Wiki articles in cluding the FAQ? https://github.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/wiki Do you want to ask a question? Are you looking for support? Please don't post here. Instead please use one of the support links at https://github.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/issues/new/choose --> ### Bug Description <I am using MEGA_S_TMC_BLT_10_v1.3.0.hex on my Mega S with BL touch. Also octoprint. After print starts, printer randomly stops and looses connection with octoprint. This is what I see in octoprint terminal window: `Send: N66 G1 X105.403 Y124.354 E5.11206*85 Recv: Error:checksum mismatch, Last Line: 65 [...] Communication timeout while printing, trying to trigger response from printer. Configure long running commands or increase communication timeout if that happens regularly on specific commands or long moves. [...] Recv: Error:Line Number is not Last Line Number+1, Last Line: 65 `[...]>`` I have to power off/on printer. If I disconnect the connected camera on raspberry it seems to print next project ok. I did reflash version 1.2.0. and it is working perfect with camera and octolapse. No problems with version 1.2.0. ### Steps to Reproduce 1. [First Step] Start print using octoprint and connected and enabled camera. 2. [Second Step] Wait and see if it will manage to print or not. 3. [and so on...] **Expected behavior:** [Like version 1.2.0, but with added features of version 1.3.0. ;) ] **Actual behavior:** [It randomly stops printing after loosing connection.] #### Additional Information Thank you for all your work so far! * Provide pictures or links to videos that clearly demonstrate the issue. * See [How Can I Contribute](#how-can-i-contribute) for additional guidelines.
knutwurst commented 2021-09-22 07:00:11 -05:00 (Migrated from github.com)

You are the second person who reported the issue. But it's weird, because it works on 99% of all other machines with octoprint.

Can you give me some more information about your setup like

  • Octoprint Version
  • Raspberry Pi Version
  • All Installed Plugins
  • Comm speed

Did you try another power supply for the Pi and/or the camera?

The communication may be more "fragile" since there is a second serial interface in use. But technically it should not make any difference.

To test that, I built another version for you which disables the wifi-functionality completely. Please let me know if this fixes your issue.
MEGA_S_TMC_BLT_10_v1.3.0-noWifi.hex.zip

Best,
Olli

You are the second person who reported the issue. But it's weird, because it works on 99% of all other machines with octoprint. Can you give me some more information about your setup like - Octoprint Version - Raspberry Pi Version - All Installed Plugins - Comm speed Did you try another power supply for the Pi and/or the camera? The communication may be more "fragile" since there is a second serial interface in use. But technically it should not make any difference. To test that, I built another version for you which disables the wifi-functionality completely. Please let me know if this fixes your issue. [MEGA_S_TMC_BLT_10_v1.3.0-noWifi.hex.zip](https://github.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/files/7210465/MEGA_S_TMC_BLT_10_v1.3.0-noWifi.hex.zip) Best, Olli
markecskace commented 2021-09-22 07:24:53 -05:00 (Migrated from github.com)

Thank you!

Will report back after some testing.

My setup:

Octoprint version 1.6.1
Raspberry Pi 4 Model B, 4GB with OFFICIAL RASPBERRY PI 4 USB-C 15.3W POWER SUPPLY, 5.1V, 3.0A

Plugins:

PrettyGCode, "url": "https://github.com/Kragrathea/OctoPrint-PrettyGCode"
GcodeEditor, "url": "https://github.com/ieatacid/OctoPrint-GcodeEditor"
Filament Manager, "url": "https://github.com/OllisGit/OctoPrint-FilamentManager"
Exclude Region, "url": "https://github.com/bradcfisher/OctoPrint-ExcludeRegionPlugin"
Camera Settings, "url": "https://github.com/The-EG/OctoPrint-CameraSettings"
Octolapse", "url: "https://github.com/FormerLurker/Octolapse"
Calibration-Companion, "url": "https://github.com/iFrostizz/OctoPrint-CalibrationCompanion"
Bed Visualizer, "url": "https://github.com/jneilliii/OctoPrint-BedLevelVisualizer"

Baudrate: 250000

I did not try another power supply. Camera is Logitech c270 webcam plugged directly into the Pi4.

Thank you! Will report back after some testing. My setup: Octoprint version 1.6.1 Raspberry Pi 4 Model B, 4GB with OFFICIAL RASPBERRY PI 4 USB-C 15.3W POWER SUPPLY, 5.1V, 3.0A Plugins: PrettyGCode, "url": "https://github.com/Kragrathea/OctoPrint-PrettyGCode" GcodeEditor, "url": "https://github.com/ieatacid/OctoPrint-GcodeEditor" Filament Manager, "url": "https://github.com/OllisGit/OctoPrint-FilamentManager" Exclude Region, "url": "https://github.com/bradcfisher/OctoPrint-ExcludeRegionPlugin" Camera Settings, "url": "https://github.com/The-EG/OctoPrint-CameraSettings" Octolapse", "url: "https://github.com/FormerLurker/Octolapse" Calibration-Companion, "url": "https://github.com/iFrostizz/OctoPrint-CalibrationCompanion" Bed Visualizer, "url": "https://github.com/jneilliii/OctoPrint-BedLevelVisualizer" Baudrate: 250000 I did not try another power supply. Camera is Logitech c270 webcam plugged directly into the Pi4.
Daddycool2708 commented 2021-09-22 07:30:05 -05:00 (Migrated from github.com)

Hello
Yes I have the same issue. But the printer is still sending the temperature of the bed and hotend.
My setup ist a Raspberry Pi3 with octoprint 1.6.1 and the official power supply. The camera is the official Pi cam.

The installed plug ins are

Print time Genius
Filament Manager
PSU power control
Arc welder
Cura thumbs
Exclude region

Hello Yes I have the same issue. But the printer is still sending the temperature of the bed and hotend. My setup ist a Raspberry Pi3 with octoprint 1.6.1 and the official power supply. The camera is the official Pi cam. The installed plug ins are Print time Genius Filament Manager PSU power control Arc welder Cura thumbs Exclude region
knutwurst commented 2021-09-22 12:22:16 -05:00 (Migrated from github.com)

@Daddycool2708
MEGA_S_v1.3.0-noWifi.hex.zip
Here is the unmodified Mega S Version (without BLTouch and Trinamic Drivers)

@Daddycool2708 [MEGA_S_v1.3.0-noWifi.hex.zip](https://github.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/files/7212640/MEGA_S_v1.3.0-noWifi.hex.zip) Here is the unmodified Mega S Version (without BLTouch and Trinamic Drivers)
markecskace commented 2021-09-22 13:30:53 -05:00 (Migrated from github.com)

You are the second person who reported the issue. But it's weird, because it works on 99% of all other machines with octoprint.

Can you give me some more information about your setup like

* Octoprint Version

* Raspberry Pi Version

* All Installed Plugins

* Comm speed

Did you try another power supply for the Pi and/or the camera?

The communication may be more "fragile" since there is a second serial interface in use. But technically it should not make any difference.

To test that, I built another version for you which disables the wifi-functionality completely. Please let me know if this fixes your issue.
MEGA_S_TMC_BLT_10_v1.3.0-noWifi.hex.zip

Best,
Olli

I am testing this version and so far it seems to be perfect! I did print some calibration cubes and no problems with camera on and octolapse running.
Really appreciate your extra work!

> > > You are the second person who reported the issue. But it's weird, because it works on 99% of all other machines with octoprint. > > Can you give me some more information about your setup like > > * Octoprint Version > > * Raspberry Pi Version > > * All Installed Plugins > > * Comm speed > > > Did you try another power supply for the Pi and/or the camera? > > The communication may be more "fragile" since there is a second serial interface in use. But technically it should not make any difference. > > To test that, I built another version for you which disables the wifi-functionality completely. Please let me know if this fixes your issue. > [MEGA_S_TMC_BLT_10_v1.3.0-noWifi.hex.zip](https://github.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/files/7210465/MEGA_S_TMC_BLT_10_v1.3.0-noWifi.hex.zip) > > Best, > Olli I am testing this version and so far it seems to be perfect! I did print some calibration cubes and no problems with camera on and octolapse running. Really appreciate your extra work!
knutwurst commented 2021-09-23 07:26:32 -05:00 (Migrated from github.com)

Thank you so much for testing!
Would you mind to test another version linked below?
It's the same as 1.3.0 but with decreased wifi module frequency, so there is more room for the cpu to handle USB requests.

I need to find the sweet spot where both serial connections work reliable. If it's not possible at all, I'l deactivate Wifi for all USB/Octoprint users.

MEGA_S_TMC_BLT_10_v1.3.0-115k.hex.zip
MEGA_S_v1.3.0-115k.hex.zip

Please use it like before! Don't change anything in your configuration! Just use your printer connected to octorprint with 250.000 bps.

Best
Olli

Thank you so much for testing! Would you mind to test another version linked below? It's the same as 1.3.0 but with decreased wifi module frequency, so there is more room for the cpu to handle USB requests. I need to find the sweet spot where both serial connections work reliable. If it's not possible at all, I'l deactivate Wifi for all USB/Octoprint users. [MEGA_S_TMC_BLT_10_v1.3.0-115k.hex.zip](https://github.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/files/7217481/MEGA_S_TMC_BLT_10_v1.3.0-115k.hex.zip) [MEGA_S_v1.3.0-115k.hex.zip](https://github.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/files/7217482/MEGA_S_v1.3.0-115k.hex.zip) Please use it like before! Don't change anything in your configuration! Just use your printer connected to octorprint with 250.000 bps. Best Olli
Daddycool2708 commented 2021-09-23 08:42:08 -05:00 (Migrated from github.com)

Hi Olli

I just tested the 115k version, but it is not working. I get the same error. I attach a screenshot from my octoprint.

erorr

But I canceled the print before I made the screenshot.

Hi Olli I just tested the 115k version, but it is not working. I get the same error. I attach a screenshot from my octoprint. ![erorr](https://user-images.githubusercontent.com/63515156/134517807-4a46d920-b4de-4629-b025-d53d3aa4857f.JPG) But I canceled the print before I made the screenshot.
knutwurst commented 2021-09-23 08:53:01 -05:00 (Migrated from github.com)

@Daddycool2708 : The Octoprint speed should be 250k as before. The 115k only applies to the Wifi Module, not usb
134517807-4a46d920-b4de-4629-b025-d53d3aa4857f
!

@Daddycool2708 : The Octoprint speed should be 250k as before. The 115k only applies to the Wifi Module, not usb ![134517807-4a46d920-b4de-4629-b025-d53d3aa4857f](https://user-images.githubusercontent.com/36196269/134520455-0ce3f565-61f8-465f-90b6-0c33eff3741d.JPG) !
Daddycool2708 commented 2021-09-23 09:41:42 -05:00 (Migrated from github.com)

I did set it back to 250k but the result is the same. I get timeouts.

I did set it back to 250k but the result is the same. I get timeouts.
knutwurst commented 2021-09-23 10:05:42 -05:00 (Migrated from github.com)

last one.. I promise!
If this doesn't work with Octoprint, I'll disable Wifi per default.

MEGA_S_TMC_BLT_10_v1.3.0-250k.hex.zip
MEGA_S_v1.3.0-250k.hex.zip

last one.. I promise! If this doesn't work with Octoprint, I'll disable Wifi per default. [MEGA_S_TMC_BLT_10_v1.3.0-250k.hex.zip](https://github.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/files/7218734/MEGA_S_TMC_BLT_10_v1.3.0-250k.hex.zip) [MEGA_S_v1.3.0-250k.hex.zip](https://github.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/files/7218735/MEGA_S_v1.3.0-250k.hex.zip)
Daddycool2708 commented 2021-09-23 11:34:12 -05:00 (Migrated from github.com)

no not working from me, sorry 😢

no not working from me, sorry 😢
knutwurst commented 2021-09-23 11:42:02 -05:00 (Migrated from github.com)

Fixed in Release 1.3.1

Fixed in Release [1.3.1](https://github.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/releases/tag/1.3.1)
markecskace commented 2021-09-23 14:01:32 -05:00 (Migrated from github.com)

Hello! Sorry for my late response.
I went straight for MEGA_S_TMC_BLT_10_v1.3.0-250k.hex.zip and it is also not working for me.
Thank you for version 1.3.1!

Hello! Sorry for my late response. I went straight for MEGA_S_TMC_BLT_10_v1.3.0-250k.hex.zip and it is also not working for me. Thank you for version 1.3.1!
github-actions[bot] commented 2021-11-22 19:56:05 -06:00 (Migrated from github.com)

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wp/Marlin-2-0-x-Anycubic-i3-MEGA-S#204
No description provided.