PanelDueFirmware 3.2-RC3 released
-
@dc42 Thanks for the update. The current 3.2 LPC fork is based on the Duet3D 3.2-beta2 (as released) version not sure if the checks you mention are present in that or not. I see there have been a lot of changes in the SBC interface for beta2. I will be integrating/testing those as soon as beta2 is released and will investigate this further once I have the beta2 changes.
-
@gloomyandy said in PanelDueFirmware 3.2-RC3 released:
@wilriker I look after the LPC port and have a couple of questions if you can spare some time...
- Is the panelDue causing any extra json requests to be sent to DSF, or is it just likely that having both the panelDue and DSF making requests is putting extra strain on the available buffer space?
There are a very few extra requests going through to DCS (macro and file listings) but they are sent very rarely. It's your second thought that I'd true though, PanelDue with the latest firmware does make an ObjectModel request once per second and that puts extra strain on the available output buffers such that e.g. Duet 2 with no SBC and 24 buffers regularly responds with out of buffer messages if PanelDue and DWC are connected (I use this example since SBC support needs even more memory)
- What are the assumptions made about available output buffers (if any)?
Sorry, I don't understand this question.
- It seems odd that a partial response is being sent to DSF. Is that what you would expect if the system runs out of output buffers? I would have thought that it would make more sense to assemble all of a json response before sending it?
It really seems odd to me that the binary communication between RRF and DCS sees partial responses, though I am not totally familiar how these are assembled. For JSON responses, AFAIK, it does actually try to allocate the required output buffers dynamically and errors out if along the way there are not enough available. @dc42 and/or @chrishamm should be able to shed some more light on this part.
There has been a fix added to RRF 3.2-beta1 such that in this case it at least returns a clean error instead of a partial response. Since I don't know how close your fork actually is to "mainline" it was an assumption that this might not have been included yet.
Did not want to offend you or your work. Sorry, if that came across like "not my fault, go blame someone else".The LPC port uses the same mechanism for handling a lack of buffers as does the Duet ports, so it seems likely that if the LPC has problems then in other circumstances (under heavy load or whatever) the Duet versions will hit the same problem. We do have a smaller number of buffers defined (16), but that is the same as number used by some other Duet hardware (that using SAM3XA mcus), but perhaps those Duets will never be used with an SBC?
As an addition to what @T3P3Tony already mentioned the old SAM3 based Duet boards never even got to RRF 2 - due to the lack of RAM. So they will never support SBC (officially).
-
@wilriker Thanks for the reply, my question about "assumptions" was just speculation I wasn't sure if it was assumed/required that there was sufficient buffer space for say a certain type of json response. I can confirm that that when running with the panelDue/SBC all 16 buffers (on the LPC version) are indeed used so I think your diagnosis of a lack of buffers is correct.
It looks like the SBC interface has changed a fair bit between beta1 and beta2 so I'll take a closer look at the partial json problem once I've merged the beta2 changes. Will let you know if I think there may be a general problem there.
-
@docbobo said in PanelDueFirmware 3.2-RC3 released:
@wilriker Let me know if there's anything I can do.
So, I tried but unfortunately (or luckily) I cannot reproduce your issue with
M300
not playing on PanelDue. I tried playing various tunes from various sources (USB, HTTP, Panel itself) in in all cases sounds were played as expected.Can you provide me with an example? Also I am running RRF 3.2-beta2 now. Please check if that makes a difference.
-
@wilriker said in PanelDueFirmware 3.2-RC3 released:
So, I tried but unfortunately (or luckily) I cannot reproduce your issue with
M300
not playing on PanelDue. I tried playing various tunes from various sources (USB, HTTP, Panel itself) in in all cases sounds were played as expected.Can you provide me with an example? Also I am running RRF 3.2-beta2 now. Please check if that makes a difference.
Will do. However, won’t be able to do this before the end of week.
-
@gloomyandy said in PanelDueFirmware 3.2-RC3 released:
It looks like the SBC interface has changed a fair bit between beta1 and beta2
Yes, it uses a separate task now.
-
I have just checked, and the code to avoid sending malformed JSON responses when there is output buffer overflow is present only for M409 responses. I've made a note to fix this in the next beta.
-
@oozeBot said in PanelDueFirmware 3.2-RC3 released:
@wilriker we are using Duet 3 / RPi combos running 3.2b1 and the PanelDue is on 3.2-RC3+1. I just had it happen again on a machine that had been turned off overnight. What I didn't catch was the state reported in the top right corner of the PanelDue, but I believe it was "Printing". I feel sure this will happen again today, so I'll report back.
I will point out that I didn't notice this nearly as often (or at all?) on the earlier betas.. it feels new to 3.2-RC3+1. Thanks
I tracked this down to be an issue (or intended? limitation - waiting on feedback from @chrishamm) in DSF.
M291
in macros will currently not updatestate.messageBox
in the ObjectModel and that's the source for these dialogs showing up on PanelDue. It works ifM291
is sent directly.
As mentioned before I notified @chrishamm about this. -
@docbobo said in PanelDueFirmware 3.2-RC3 released:
@wilriker no, it’s not waking up the panel. It was mostly black, just the numbers for x, y, and z were appearing.
Unfortunately I cannot reproduce this one either. Can you tell me exact steps to reproduce this?
-
I just now released 3.2.0-RC4. Closing this thread now.