M300 Behavior is Inconsistent in 3.5
-
We've been working on buzzer alerts for our machine. It's been a little frustrating because they don't play consistently. We've been testing on a Duet 2 wifi in standalone mode with a PanelDue attached, as well as the machine it's destined for. The machine is a Duet 3 6XD in SBC mode with a PanelDue. Neither of these setups play consistently. Firmware on the Duet 2 setup is is 3.5.3, and the Duet 3 setup is 3.5.2.
Examples:
M300 S5000 P100 G4 P150 M300 S5500 P100 G4 P150 M300 S6000 P100 G4 P150
M300 S6500 P69 G4 P250 M300 S6500 P69 G4 P100
Sometimes the first tone is cut off, sometimes the delay between tones varies by a significant amount, and sometimes it skips tones. Running them from the PanelDue is slightly more consistent on the Duet 2 setup.
-
@curieos
I've found that if you have much going on in daemon.g the any "songs" will be very erratic in behaviour.
I have a variable at the start of daemon.g which allows me to temporarily skip it, which helps, but doesn't make it perfect.
I suspect there's so much going on in the firmware now that's taking up cycles that M300 will not be useful for much more than single tones. -
@OwenD The SBC setup has a daemon file, but the Duet 2 setup does not. I've tried them on an SBC setup without a daemon file and it's also inconsistent.
-
@curieos I've never been able to get M300 to work right, no matter what I do. It's just broken.
-
@DonStauffer It works fine on a printer that I have a Duet 3 Mini with a 12864 Display running in standalone mode.
I think it's a problem with the PanelDue. I believe the RRF team is already aware of other problems caused by it in standalone mode. The inconsistent M300 behavior is probably related.
-
@curieos It may take a brief moment before the beep request from RRF is sent to PanelDue, especially if the object model is rather large. You may find that increasing the PanelDue connection speed (BAUD rate) remediates this issue. Since v3.6-beta.1 it's also possible to connect a buzzer directly to the Duet, that's what I've been using on my machine and with that your macro works repeatably (see M300 C).
-
@chrishamm I bumped it up to what I believe is the max, 115200, and it's still inconsistent.