Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Emergency Commands don't work in an Emergency #717

Closed
rudihorn opened this issue May 25, 2020 · 11 comments
Closed

[BUG] Emergency Commands don't work in an Emergency #717

rudihorn opened this issue May 25, 2020 · 11 comments
Labels
bug Something isn't working

Comments

@rudihorn
Copy link

rudihorn commented May 25, 2020

Description

TFT firmware is unable to send emergency parser codes.

Steps to reproduce

  1. Compile marlin with emergency parser support Add Emergency Parser support for STM32 MarlinFirmware/Marlin#18095
  2. Issue M109 S180 from an external program. Note that you cannot send it from the TFT, as the TFT changes M109 into M104.
  3. Wait for the TFT to send an M105 to update temperature.
  4. Either press emergency stop or send M108 g code.

Expected behavior
If you skip step 3. by quickly sending the gcode then it sends the emergency code and it works.

Actual behavior
The TFT waits for an ok response.

Hardware Variant

TFT 35 V2.0

TFT Firmware Version & Main Board Firmware details

SKR Pro V1.1 with MarlinFirmware/Marlin#18095
TFT Firmware version V2.0.26.1

Additional Information

This is related to #518. Using M105 instead of M155 is just bad, especially with the synchronous command queue nature that the TFT uses. Marlin describes this approach as less than optimal and recommends using M155 which is possible.

I'm also not a fan of the silent changing of M109 to M104.

@rudihorn rudihorn added the bug Something isn't working label May 25, 2020
@rudihorn rudihorn changed the title [BUG] (short description) Emergency Commands don't work in an Emergency May 25, 2020
@rudihorn rudihorn changed the title Emergency Commands don't work in an Emergency [Bug] Emergency Commands don't work in an Emergency May 25, 2020
@rudihorn rudihorn changed the title [Bug] Emergency Commands don't work in an Emergency [BUG] Emergency Commands don't work in an Emergency May 25, 2020
@guruathwal
Copy link
Contributor

There were some changes to EMERGENCY_PARSER settings because of issue #695 raised by @thisiskeithb.

@thisiskeithb
Copy link
Contributor

thisiskeithb commented May 26, 2020

There were some changes to EMERGENCY_PARSER settings because of issue #695 raised by @thisiskeithb.

EMERGENCY_PARSER support for STM32 was just merged in Marlin (MarlinFirmware/Marlin#18095), but I'll need to some more testing.

Edit: I spoke too soon. EMERGENCY_PARSER was implemented for STM32, but not STM32F1/4.

@rudihorn
Copy link
Author

@thisiskeithb the following boards use STM32 and not STM32F4 HAL by default though:

  • SKR Pro 1.1
  • GTR 1.0
  • BTT002 1.0

It is only the mini boards that still use STM32F1.

@rightawy
Copy link

rightawy commented Jun 1, 2020

Earlier a message was displayed on screen that emergency gcodes will not work if marlin did not have emergency_parser enabled but now BTT has removed it.
earlier this lets us know in advance whether the stop button will work or not on TFT in case of actual emergency.
Now you may have to learn this hard way that the emergency gcodes will not work, like my cooling fan melted while I was pushing stop button on TFT repeatedly on one of my printer.
@bigtreetech should put that message back, to let know that the emergency gcodes will not work.

@thisiskeithb
Copy link
Contributor

The error message was removed from BigTreeTech's firmware, but with MarlinFirmware/Marlin#19279 and MarlinFirmware/Marlin#19281, EMERGENCY_PARSER is now fully supported on STM32F1 (SKR Mini 1.1, SKR Mini E3 DIP 1.0, SKR Mini E3 1.0, SKR Mini E3 1.2, SKR Mini E3 2.0).

@rudihorn
Copy link
Author

rudihorn commented Oct 7, 2020

Has this issue actually been solved or was the issue just closed?

@thisiskeithb
Copy link
Contributor

See my last comment.

@rudihorn
Copy link
Author

rudihorn commented Oct 7, 2020

This issue was never about what Marlin supports, this issue was about what the screen firmware supports. I've tried this with a Marlin that supports emergency parsing, but that is useless if the LCD cannot send emergency commands because it is waiting for an ok response.

@guruathwal
Copy link
Contributor

@rudihorn that issue is also solved now.

@rudihorn
Copy link
Author

rudihorn commented Oct 8, 2020

Okay for the record this was refiled as issue #956 and then solved by #960. Though it would be nice if the gcode screen also supported sending emergency commands immediately.

Copy link

github-actions bot commented Apr 4, 2024

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.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants