PanelDue 5" 1.22.1 beep startup tune playback problem



  • Not sure if this is a Paneldue or FW related problem..please move the post if this should be placed somewhere else.

    I have copied a startup tune from some post some time ago (can't remember the person/post) and put it at at the end of my config.g file. Not sure when this issue started, if this started with updating the paneldue FW or with the printer FW.
    The problem is that I can only hear it being played when I press the "Emergency Stop" button via the web interface.
    This is the only case the sound is played back via the beeper in the paneldue.

    When I do switch the printer on or hit the emergency button on the paneldue the sound is not played.
    Any idea what I have to do to get a beep sound via the paneldue beeper when switching the printer on and emergency stop it localy ?

    Printer running:
    Firmware Version: 2.03beta2 (2019-02-16b1)
    WiFi Server Version: 1.22
    Web Interface Version: 1.22.6

    PanelDue 5" 1.22.1

    End of my config.g file::

    ; STARTUP TUNE
    ;
    M300 P200 S1975.53
    G4 P201
    M300 P200 S2217.46
    G4 P201
    M300 P200 S1975.53
    G4 P201
    M300 P200 S2793.83
    G4 P201
    M300 P200 S2489.02
    G4 P201
    M300 P200 S2217.46
    G4 P201
    M300 P200 S2489.02
    G4 P201
    M300 P200 S2959.96
    G4 P201
    M300 P300 S3520.00
    


  • All my tunes work and the only difference in the code is M400 ; wait for current moves to finish. Placed at the beginning and end. Try this one:

    ; Charge.g
    ;
    ; Duh nuh nun nah nah naah Charge!
    ;

    M400
    G4 P200
    M300 P200 S523.25
    G4 P200
    M300 P200 S659.25
    G4 P200
    M300 P200 S739.99
    G4 P250
    M300 P285 S880.00
    G4 P450
    M300 P285 S880.00
    G4 P285
    M300 P625 S1108.73
    G4 P200
    M400



  • Thank you. It doesn't make a difference. Turning the printer on or using the emergency localy on the paneldue I don't get beeps.
    starting manually on the paneldue a macro file containg the beeps plays them back fine on the panel due.



  • I keep my tunes in a macro then use this command to play them :
    M98 P/macros/Music/name-of-file , where Music is a folder under macros and name-of-file is tune to be played.
    M98 can be placed anywhere e.g. start.g, end.g, config.g etc.
    Do this but place your M98 command further up in your config.g before any movement commands you may have

    That should work!



  • I have tried that now with the M98 as you have suggested, it still happens the same thing.

    It does no sound at all on startup or on local paneldue emergency button

    It still plays beep sounds on the paneldue:
    on local paneldue macro start
    on web frontend macro start
    on web frontend emergency button

    Doesn't matter where I place the M98 in the config.g .. it always happens the same thing.



  • Sorry about that.
    Maybe it is something to do with your paneldue firmware?



  • Thank you very much for your ideas.

    The sound issue is not that important, I am just wondering what is wrong here.

    In the next few days I 'll try a downgrade of the paneldue firmware to check if this solves the issue.



  • I think on sturtup the code is executed quicker than the initialization of the PanelDue. You have to add some seconds of waiting before the first M300 sound



  • That would be my startup tune.

    Try adding a delay before the beeps start to give some time to the system to finish starting up. I think the reason it's working on the emergency stop is that it's a warm reboot instead of a cold boot.

    M400 ; clear buffer
    G4 S5 ; pause 5 seconds
    

    You may have to play around with the delays between beeps as well. There are a few occasions where some beeps don't play, or it ends too soon. But generally works ok.


  • administrators

    I think @Phaedrux is correct. When the Duet and PanelDue are started, it takes a few seconds for PanelDue to connect. Until it does, any sounds generated won't be sent to PanelDue.



  • @phaedrux said in PanelDue 5" 1.22.1 beep startup tune playback problem:

    That would be my startup tune.

    Try adding a delay before the beeps start to give some time to the system to finish starting up. I think the reason it's working on the emergency stop is that it's a warm reboot instead of a cold boot.

    M400 ; clear buffer
    G4 S5 ; pause 5 seconds
    

    You may have to play around with the delays between beeps as well. There are a few occasions where some beeps don't play, or it ends too soon. But generally works ok.

    Thank you very much for the nice tune and the fix. It is working very well now in all cases with the pause set to 6 seconds.
    Thanks to all for the quick help.


  • administrators

    I'm glad it's working. The M400 command isn't needed, because G4 waits for everything to stop anyway.



  • @dc42 said in PanelDue 5" 1.22.1 beep startup tune playback problem:

    The M400 command isn't needed

    Good to know. It's a hold over from when I was originally trying to get it to work.


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.