M291 messages are not always displayed in macros
-
@aitor thanks for the detailed description and the video.
About the S0 und S1. If multiple messages shall be displayed only the latest one is shown.
This was a design decision. So I can't do anything immediately about it. But if you want it blocking you could use S2 message, but with the downside the it will stop your script.
About the screensave issue. This looks like a bug, later today i will try to reproduce on my setup and will keep you updated.
-
Good morning @mfs12,
Yes it was clear to me that this was not going to be shown, but as you mentioned to try it I couldn't avoid it, besides I still don't understand very well why this was done, I don't see any sense in it, as a solution I use M118 this way:
M118 P0 S"0. No buttons are displayed (non-blocking)" L0 M291 R"0. No buttons" P"0. No buttons are displayed (non-blocking)" S0 M300 S300 P1000 G4 S5 M400 M118 P0 S"1. Only Close is displayed (non-blocking)" L0 M291 R"1. Only Close" P"1. Only Close is displayed (non-blocking)" S1 M300 S300 P1000 G4 S5 M400 M291 R"2. Only OK" P"2. Only OK is displayed (blocking, send M292 to resume the execution)" S2 M291 R"3. OK and Cancel" P"3. OK and Cancel are displayed (blocking, send M292 to resume the execution or M292 P1 to cancel the operation in progress)" S3
On the other hand this other code doesn't work for me, but I don't know if I'm using it right, I understand that when using M118 P2 only the message should be shown in the panel due right? but they are not shown and in case 1 if, I understood it right? or I'm using it wrong? (in version 3.2.11 it didn't work either):
M118 P2 S"0. No buttons are displayed (non-blocking)" L0 M291 R"0. No buttons" P"0. No buttons are displayed (non-blocking)" S0 M300 S300 P1000 G4 S5 M400 M118 P2 S"1. Only Close is displayed (non-blocking)" L0 M291 R"1. Only Close" P"1. Only Close is displayed (non-blocking)" S1 M300 S300 P1000 G4 S5 M400 M291 R"2. Only OK" P"2. Only OK is displayed (blocking, send M292 to resume the execution)" S2 M291 R"3. OK and Cancel" P"3. OK and Cancel are displayed (blocking, send M292 to resume the execution or M292 P1 to cancel the operation in progress)" S3
I will be attentive to the updates that you make and I will comment you if I find something else.
Thanks and best regards
-
Hey @aitor, well so i could reproduce your problem. I simplified your script to a bare test case. It would be nice when you could confirm that they reproduce the faulty behavior on your device.
If you check the attached macros
- without M292 command message is displayed test-m291-s1-ok.g
- with M292 command message is not displayed test-m291-s1-fail.g
-
Good morning @mfs12,
I have already tested as follows
Running the macros from PanelDue:
test-m291-s1-ok.g
It shows (but takes a little while)
test-m291-s1-fail.g
Not shown (I assume that this is normal, as mentioned above)Running the macros from ControlWeb without the Screensaver:
test-m291-s1-ok.g
The message was displayed (a bit faster)
test-m291-s1-fail.g
Not displayed (in my tests it did display because of giving it more time between messages, my Z-axis is quite fast)Running the macros from ControlWeb with the Screensaver active:
test-m291-s1-ok.g
The message takes a while to display, and lasts less than a second on screen, then it is hidden behind Screensaver (clicking on Screensaver shows the message, but it is not automatically disabled as it was in previous versions), Screensaver is not blocked.
test-m291-s1-fail.g
Not shown at any time, Screensaver remained active but did not crashThese were my results, to replicate the Screensaver error, I don't think these macros will help you.
Best regards, thanks
-
Hey @aitor, also could reproduce the screensaver bug.
Thanks for reporting both issues. I created to issues:
- M291 S0 and S1 issue https://github.com/Duet3D/PanelDueFirmware/issues/146
- M291 S3 and S4 screensaver issue https://github.com/Duet3D/PanelDueFirmware/issues/147
Any update concerning this problems will be reflected in the gitlab issues.
-
Hey @Aitor, i think i found the issues. I build a test release. Would be cool if you could test them and provide feedback. If positive I am going to build another release candidate.
Check the attached image file.
-
@Aitor weird enough... so far this fixes only the screensaver bug. The other one persists. When i was testing it it appeared ok, but i was wrong!
-
Good morning @mfs12
Running the macros from PanelDue:
M291 S0 and S1 messages are not shown, this is fine according to what we have discussed.
M291 messages S2 and S3 are displayed normally.Running macros from ControlWeb without the guard:
M291 S0 and S1 messages are displayed but very late, I had to switch from G4 S5 to G4 S10 to get the messages displayed
M291 messages S2 and S3, displayed normally.
Running the macros from ControlWeb with Screensaver active:
The Screensaver is not blocked, so it works correctly, the message is not hidden and Screensaver is not deactivated, it behaves like "Running macros from ControlWeb without the screensaver" but with the Screensaver active at all times, I do not dislike this behaviour,but this is my opinion.
The Screensaver bug is fixed, I will do more tests if I find something and let you know.
I'll be happy to do more tests, let me know with anything, I'll be happy to help in any way I can.
By the way, if something is not well understood tell me, it may be a bad translation.
Best regards and thanks
-
Good morning @mfs12
I hadn't read your last message, as far as I've been able to check it's a timing thing, since version 3.2.9 which is the first one I tried since "3.1", I've noticed that the messages are a bit slower.
As I don't know about programming I can't know why.
Best regards
-
@Aitor thanks for testing.
I had deeper look into M291 S0 and S1 issue and this seems to be more complex. So let's see how long i twill take to fix that. The only workaround so far is to avoid M292 gcodes in scripts.
-
M292 codes should not be used in scripts, except in exceptional circumstances such as emergencies, where you might want to dismiss a dialogue that hasn't been acknowledged so that you can display a new message.
-
-
I am seeing similar issues, which I described here: https://forum.duet3d.com/topic/22667/m291-messages-ignored-by-paneldue/17?_=1626901114508
-
@Aitor this issue should be solved with release paneldue-3.4.0-pre1.
I mark this issue as solved now. If you are still experiencing problems as described here either re-open this thread or start a new thread.
https://forum.duet3d.com/topic/24889/paneldue-3-4-0-pre1-released/6