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

Wifi 2 SPI Timeout

Scheduled Pinned Locked Moved
Duet Hardware and wiring
4
11
2.4k
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.
  • undefined
    elmoret
    last edited by 5 Aug 2019, 20:28

    Tagging @dc42 @T3P3Tony - does this board need exchanging?

    1 Reply Last reply Reply Quote 1
    • undefined
      krohelm
      last edited by 6 Aug 2019, 00:43

      This morning I downgraded the main firmware to 2.03 just to rule out any weirdness with a mismatched function from the 2.03 wifi firmware. Same sad state unfortunately. What information can I provide to help?

      1 Reply Last reply Reply Quote 0
      • undefined
        krohelm
        last edited by 6 Aug 2019, 05:03

        https://duet3d.dozuki.com/Wiki/Gcode#Section_M588_Forget_WiFi_host_network

        I just went through all the network library again and saw this little footnote. So I read the gcode that came out of the configurator and noticed that it does not use a M552 S0. So I added

        ; Network
        M552 S0 ; Put wifi in idle mode. If you don't do this apparently it does not start up.

        and it does connect now. I don't know why the module does not seem to turn on with the configurator-provided M552 S1 but hey it turns on now and I can reach the web interface.

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User
          last edited by 6 Aug 2019, 09:37

          Curious was this all done through config.g and not the serial port?

          Important! Do not use M587 within config.g. As well as being a security hazard, writing the access point parameters to WiFi chip every time you start the Duet may eventually wear out the flash memory. Also, the wifi module does not get enabled until the end of running config.g. It is better to use a macro to send M587 (source: https://forum.duet3d.com/post/42798)

          1 Reply Last reply Reply Quote 0
          • undefined
            krohelm
            last edited by 6 Aug 2019, 14:39

            The firmware configuration tool spat out m587 into config.g yes. Through trial and much error I took it out and ran that via serial. The m587 seems to have been somehow poisoning the startup of the wifi chip.

            undefined 1 Reply Last reply 6 Aug 2019, 15:55 Reply Quote 0
            • ?
              A Former User
              last edited by 6 Aug 2019, 14:45

              Thats unfortunate. Wonder how that could be adressed to avoid others experiencing the same thing.

              At least you got it working in the end though! 👍

              1 Reply Last reply Reply Quote 0
              • undefined
                dc42 administrators @krohelm
                last edited by 6 Aug 2019, 15:55

                @krohelm said in Wifi 2 SPI Timeout:

                The firmware configuration tool spat out m587 into config.g yes. Through trial and much error I took it out and ran that via serial. The m587 seems to have been somehow poisoning the startup of the wifi chip.

                The firmware config tool should not put M587 commands in config,g. We're looking into it.

                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

                1 Reply Last reply Reply Quote 1
                • ?
                  A Former User
                  last edited by 6 Aug 2019, 16:05

                  Could introduce wifi.g to be executed after config.g if no networks are stored in the wifi module maybe? Would simplify the setup being able to put it all on the sd card, and it could even reconnect if you for some reason replace the wifi module.

                  undefined 1 Reply Last reply 6 Aug 2019, 17:43 Reply Quote 0
                  • undefined
                    dc42 administrators @A Former User
                    last edited by 6 Aug 2019, 17:43

                    @bearer said in Wifi 2 SPI Timeout:

                    Could introduce wifi.g to be executed after config.g if no networks are stored in the wifi module maybe? Would simplify the setup being able to put it all on the sd card, and it could even reconnect if you for some reason replace the wifi module.

                    Leaving your network password on the SD card is a security risk. Don't do it.

                    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

                    undefined 1 Reply Last reply 6 Aug 2019, 21:33 Reply Quote 1
                    • undefined
                      krohelm @dc42
                      last edited by krohelm 8 Jun 2019, 21:34 6 Aug 2019, 21:33

                      @dc42 said in Wifi 2 SPI Timeout:

                      Leaving your network password on the SD card is a security risk. Don't do it.

                      In fact this is the only reason it occurred to me to remove from config.g. If that data were not somewhat sensitive I would have left it and never found the solution.

                      A oneshot.g or something could work though - read once and deleted by the firmware. Or just decline to provide the m587 at all and let users find the command. 🤷 I'm sure you're more than capable of doing the right thing for rrf on this minor issue. Thanks for looking into it!

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