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

    runonce.g file purpose ?

    Scheduled Pinned Locked Moved
    General Discussion
    3
    7
    564
    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.
    • ocornetundefined
      ocornet
      last edited by

      Hello,

      After generating a RRF3 config file with RepRapFirmware Configuration Tool, the Wifi settings of the board are located in a file called 'runonce.g' that is supposed to be deleted after being executed
      As the M587 command could not be located in config.g file, I understand the purpose of the runonce.g file.
      But it seems to not work. The file stays in the sys folder and is not deleted, and the wifi settings in it are not applied

      I've searched infos about that, but found nothing.

      Olivier

      1 Reply Last reply Reply Quote 0
      • Danalundefined
        Danal
        last edited by

        I see nothing in the firmware that would run it, or delete it. That string literally does not occur in the reprap source, any version.

        Therefore, I'd believe the intent is for YOU to do both of those things.

        1 Reply Last reply Reply Quote 0
        • ocornetundefined
          ocornet
          last edited by

          The file is named 'runonce.g', but the comment in this file mention 'run-once.g'
          About the purpose, I don't have invented it, it's described in the comment in the file.

          ; run-once.g
          ; called after config.g. When it has been executed, it is automatically deleted!
          ;
          ; generated by RepRapFirmware Configuration Tool v2.1.8 on Thu Jan 30 2020 01:40:41 GMT+0100 (heure normale d’Europe centrale)
          M552 S0                               ; disable network
          G4 P500                               ; wait half a second
          M552 S1                               ; enable network
          G4 P1000                              ; wait a second
          M587 S"WiFi_SSID" P"WiFi_Password" ; configure WiFi
          M552 S1                               ; enable network
          
          
          1 Reply Last reply Reply Quote 0
          • Danalundefined
            Danal
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • Danalundefined
              Danal
              last edited by Danal

              Do you happen to have the JSON file from the online configurator?

              It should be called /sys/config.json

              1 Reply Last reply Reply Quote 0
              • dc42undefined
                dc42 administrators
                last edited by

                The configurator has got ahead of the firmware, because runonce.g isn't implemented in any public release yet.

                Duet WiFi hardware designer and firmware engineer
                Please do not ask me for Duet support via PM or email, use the forum
                http://www.escher3d.com, https://miscsolutions.wordpress.com

                ocornetundefined 1 Reply Last reply Reply Quote 0
                • ocornetundefined
                  ocornet @dc42
                  last edited by

                  @dc42, Thanks for the answer David.

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