• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

How to preserve message order in the web console?

Scheduled Pinned Locked Moved
General Discussion
3
9
299
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    zapta
    last edited by zapta 16 Dec 2023, 19:26

    Consider the macro below which generates a few messages a second. On the web console the order of the messages is shuffled because of the grouping.

    Is it possible to cause the web interface to maintain the order similar to the Panel Due? This can be done for example by allowing to disable the grouping, or by adding new groups at the bottom of the list, or by changing the message order within each group.

    while iterations < 30
    echo {"iteration " ^ iterations}
    G4 P200 ; Wait 300ms

    bd15b93c-e7e7-4be5-8f76-f26e940eb4f0-image.png

    undefined undefined 2 Replies Last reply 16 Dec 2023, 19:38 Reply Quote 0
    • undefined
      jens55 @zapta
      last edited by 16 Dec 2023, 19:38

      @zapta, try increasing your pause

      undefined 1 Reply Last reply 16 Dec 2023, 20:32 Reply Quote 0
      • undefined
        zapta @jens55
        last edited by 16 Dec 2023, 20:32

        Thanks @jens55. This macro is a simple test case to demonstrate the issue, which happened to me in other real-life situations.

        I think that the problem here is that the order of the groups (bottom up) is reversed to the order of messages within a group (top down).

        undefined 1 Reply Last reply 16 Dec 2023, 21:57 Reply Quote 0
        • undefined
          jens55 @zapta
          last edited by 16 Dec 2023, 21:57

          @zapta, I can't say about reversing the sequence but I have run into situations where the messages get lost when they occur at too fast a rate so I am theorizing that maybe the reversed order might be a symptom of the same issue.

          undefined 1 Reply Last reply 16 Dec 2023, 23:47 Reply Quote 0
          • undefined
            zapta @jens55
            last edited by 16 Dec 2023, 23:47

            I had lost messages in the past. It happens when the printer is opened in another browser page which steals some of the messages. It doesn't handle properly multiple pages opened at the same time.

            undefined 1 Reply Last reply 17 Dec 2023, 00:56 Reply Quote 0
            • undefined
              jens55 @zapta
              last edited by 17 Dec 2023, 00:56

              @zapta, in my case giving the system some breathing room (WAIT) fixed the lost messages issue.

              1 Reply Last reply Reply Quote 1
              • undefined
                zapta @zapta
                last edited by 18 Dec 2023, 06:45

                @chrishamm, any thoughts on the mixed message order issue?

                undefined 1 Reply Last reply 18 Dec 2023, 13:59 Reply Quote 0
                • undefined
                  chrishamm administrators @zapta
                  last edited by 18 Dec 2023, 13:59

                  @zapta It isn't possible to disable grouping as you propose. RRF combines multiple messages in a single output if the messages are written within a short period of time. Perhaps the order of messages is OK if you change the sort direction in the console?

                  In the future a solution for https://github.com/Duet3D/RepRapFirmware/issues/925 or operating the machine in SBC mode (in case a Duet 3 is used) may help.

                  chrishamm created this issue 26 Oct 2023, 15:51 in Duet3D/RepRapFirmware

                  open Return full code reply via HTTP rr_reply code for corresponding rr_gcode calls #925

                  Duet software engineer

                  undefined 1 Reply Last reply 18 Dec 2023, 16:14 Reply Quote 0
                  • undefined
                    zapta @chrishamm
                    last edited by 18 Dec 2023, 16:14

                    @chrishamm, reversing the order of the groups (oldest top, similar to Panel Due) should avoid the mixed order.

                    BTW, is it possible to split the lines in each group and display them in reverse order as independent messages using the same timestamp from the group?

                    1 Reply Last reply Reply Quote 0
                    2 out of 9
                    • First post
                      2/9
                      Last post
                    Unless otherwise noted, all forum content is licensed under CC-BY-SA