How to preserve message order in the web console?
-
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
-
@zapta, try increasing your pause
-
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).
-
@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.
-
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.
-
@zapta, in my case giving the system some breathing room (WAIT) fixed the lost messages issue.
-
@chrishamm, any thoughts on the mixed message order issue?
-
@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, 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?