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

Unable to connect to DWC after startup

Scheduled Pinned Locked Moved
Duet Web Control
3
40
3.0k
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
    NitroFreak
    last edited by NitroFreak 4 Feb 2019, 13:53 2 Apr 2019, 13:37

    Okay so it happened again, this time much earlier than the usual 2-day cycle. Still can´t connect back up, it has been like this for the last 5 hours. So the 1.22 version did not change this. I´ll try updating to 1.23 once it comes back up.
    It´s just weird that, the Duet says it´s connected, so the problem must lie with the PC or router. But when i restart both of them, the problem does not go away?

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 2 Apr 2019, 16:11

      Does the router say that the Duet is still connected, or not?

      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 2 Apr 2019, 20:06 Reply Quote 0
      • undefined
        NitroFreak @dc42
        last edited by 2 Apr 2019, 20:06

        @dc42
        Where do i check that?

        undefined 1 Reply Last reply 2 Apr 2019, 20:13 Reply Quote 0
        • undefined
          Phaedrux Moderator @NitroFreak
          last edited by 2 Apr 2019, 20:13

          @nitrofreak You'd have to log into the routers configuration page.

          Z-Bot CoreXY Build | Thingiverse Profile

          1 Reply Last reply Reply Quote 0
          • undefined
            NitroFreak
            last edited by 4 Apr 2019, 00:18

            Ok so it works again and i have updated to Wifiserver 1.23
            I just checked with the router and this is what i got.

            0_1554337039456_router.png

            It says it is connected, but it is no witchcraft since the DWC works also at the moment.
            If i get another disconnect, i will check back if it says the same address, correct?

            1 Reply Last reply Reply Quote 0
            • undefined
              Phaedrux Moderator
              last edited by 4 Apr 2019, 00:22

              It looks like it says dynamic rather than static. You may be able to tell the router to assign the same IP address every time.

              Z-Bot CoreXY Build | Thingiverse Profile

              1 Reply Last reply Reply Quote 0
              • undefined
                NitroFreak
                last edited by 4 Apr 2019, 01:02

                Ok so i´ve just had a disconnect, just around the time i was looking around in the router system.

                0_1554339576845_IMG_2983.JPG

                I checked in the router, and the 192.168.0.199 , so my printer, was still marked as connected.
                That disconnect settled itself after a restart though.
                So i tried switching off the duet, and check if it said it was still connected, which it did. It did not disapper for about 5-10 minutes after i had shut the duet down. When i restarted the duet, it was right back there.

                1 Reply Last reply Reply Quote 0
                • undefined
                  dc42 administrators
                  last edited by 4 Apr 2019, 10:48

                  Next time it disconnects, check the IP address again in the router or on PanelDue (by sending M552), then see if you can ping that IP address from your PC.

                  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 0
                  • undefined
                    NitroFreak
                    last edited by 27 Apr 2019, 18:55

                    Ok so i wasn´t printing for some time, but i started it back up again now. DWC does not work.
                    So i checked the M552 and it says it is connected to the usual (197.168.0.199) address.
                    I check the router and it does say that it is connected.
                    I tried to ping it and this is what came out
                    0_1556391323122_ping.png

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      NitroFreak
                      last edited by 1 May 2019, 21:38

                      Now it works again

                      0_1556746709974_ping2.png

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        dc42 administrators
                        last edited by 4 May 2019, 14:52

                        Have you tried setting your router to use a different WiFi channel? I recently encountered a situation in which a laptop used to connect reliably to a Duet WiFi running in AP mode; but when the pair were moved to the hall at 3D Meetup Sweden, it kept disconnecting. A wifi scan showed that the entire wifi spectrum was congested. Changing the WiFi channel resolved the problem (AFAIR we changed it from channel 6 to channel 2, but channel 1 might have been better).

                        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 1 Aug 2019, 16:05 Reply Quote 0
                        • undefined
                          NitroFreak
                          last edited by NitroFreak 31 Jul 2019, 16:51

                          Ok so this hasn´t happened for quite a while now, but now here it is again.
                          Resetting and restarting the router has no effect.
                          This time the Duet also says that it is not connected to the wifi (it doesnt really say that, it just does not say anything about wifi being connected)
                          I can´t set the router to use a specific channel, and it doesnt show me which channel it is using.
                          All i can do is set what frequency i want.
                          What should i set?
                          1_1564591854204_duet2.png 0_1564591854204_duet1.png

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            NitroFreak @dc42
                            last edited by 1 Aug 2019, 16:05

                            @dc42 said in Unable to connect to DWC after startup:

                            Have you tried setting your router to use a different WiFi channel?

                            I tried filling the three "favorite" boxes with any of the corresponding Wifi channels frequencies but no luck. This is now going on for two days, longer than it ever has.
                            What else could i do?

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              NitroFreak
                              last edited by 21 Aug 2019, 18:01

                              Ok so this seems permanent now. 20 days later and i still can´t connect anymore.
                              Any idea?

                              1 Reply Last reply Reply Quote 0
                              • undefined
                                Phaedrux Moderator
                                last edited by 21 Aug 2019, 18:10

                                As an exercise to test the functioning of the wifi module, can you try setting it up in access point mode where the duet creates its own wifi network that you connect to.

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

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

                                M552 S2 and M587 to set the IP of the access point

                                Z-Bot CoreXY Build | Thingiverse Profile

                                1 Reply Last reply Reply Quote 0
                                • undefined
                                  NitroFreak
                                  last edited by 21 Aug 2019, 18:31

                                  Ok so i tried this. I first set
                                  M552 S-1 to disable
                                  M552 S2 to configure access point

                                  Then i tried the M587 command but it didn´t let me ("Failed to add SSID to remembered list") so i checked with M552 and it says that the wifi module is being started, and that doesn´t change.
                                  What does that mean?

                                  undefined 1 Reply Last reply 21 Aug 2019, 19:42 Reply Quote 0
                                  • undefined
                                    Phaedrux Moderator @NitroFreak
                                    last edited by Phaedrux 21 Aug 2019, 19:42

                                    @nitrofreak said in Unable to connect to DWC after startup:

                                    M552 S-1 to disable

                                    Instead of S-1, try S0 instead.

                                    Then I think you need to configure M587 with SSID for the duet, and IP address first, then enable access point mode with M552 S2

                                    It's been a while since I've put it into access point mode.

                                    Z-Bot CoreXY Build | Thingiverse Profile

                                    undefined undefined 2 Replies Last reply 21 Aug 2019, 20:14 Reply Quote 0
                                    • undefined
                                      NitroFreak @Phaedrux
                                      last edited by NitroFreak 21 Aug 2019, 20:14

                                      @phaedrux said in Unable to connect to DWC after startup:

                                      Instead of S-1, try S0 instead.

                                      Then I think you need to configure M587 with SSID for the duet, and IP address first, then enable access point mode with M552 S2

                                      It's been a while since I've put it into access point mode.

                                      Doesnt work, I´ve tried every combination, if i do
                                      M552 S0
                                      M552 S2
                                      it says i have to stop the running wifi mode before selecting the new mode.
                                      If i do the M587 while either S-1 S0 or S2 is active, it gives me
                                      "Failed to add SSID to remembered list"

                                      1 Reply Last reply Reply Quote 0
                                      • undefined
                                        NitroFreak
                                        last edited by 24 Aug 2019, 00:10

                                        Ok so this is annoying the heck out of me, especially since after the 2.03 update i had / have to redo my toolchange tpre/tpost/tfree gcodes for dual extrusion. (yes i read the release notes) I have a new problem that it is now doing an additional Y offset each time it is doing the coordinate offsets, as well as a Z offset where it moves the bed up when changing from t1 to t0, but then does not move it back down when switching from t0 to t1. This moves the bed up by the specified offset each time it is doing two toolchanges, until it crashes into the nozzle. But i should put that into a different thread.
                                        The point is i can not change the config files when troubleshooting.

                                        i have also done another firmware (re) update. I can connect over YAT, but when i want to M997 S1 it gets me this:

                                        M122<CR>
                                        Trying to connect at 230400 baud: failed
                                        Trying to connect at 115200 baud: failed
                                        Trying to connect at 74880 baud: failed
                                        Trying to connect at 9600 baud: failed
                                        Error: Installation failed due to comm write error
                                        ok
                                        WiFi module is disabled
                                        ok
                                        WiFi module is disabled
                                        ok
                                        WiFi module is disabled
                                        ok
                                        === Diagnostics ===
                                        RepRapFirmware for Duet 2 WiFi/Ethernet version 2.03 running on Duet WiFi 1.02 or later
                                        Board ID: 08DGM-917NK-F23T0-6J9DJ-3S86S-TWBWD
                                        Used output buffers: 1 of 24 (6 max)
                                        === RTOS ===
                                        Static ram: 25680
                                        Dynamic ram: 93952 of which 0 recycled
                                        Exception stack ram used: 320
                                        Never used ram: 11120
                                        Tasks: NETWORK(ready,1360) HEAT(blocked,1172) MAIN(running,3756) IDLE(ready,160)
                                        Owned mutexes:
                                        === Platform ===
                                        Last reset 00:06:57 ago, cause: software
                                        Last software reset at 2019-07-31 01:38, reason: User, spinning module GCodes, available RAM 11084 bytes (slot 2)
                                        Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0441f000 BFAR 0xe000ed38 SP 0xffffffff Task 0x4e49414d
                                        Error status: 0
                                        Free file entries: 10
                                        SD card 0 detected, interface speed: 20.0MBytes/sec
                                        SD card longest block write time: 0.0ms, max retries 0
                                        MCU temperature: min 36.9, current 37.3, max 37.7
                                        Supply voltage: min 24.5, current 24.5, max 24.6, under voltage events: 0, over voltage events: 0, power good: yes
                                        Driver 0: standstill, SG min/max not available
                                        Driver 1: standstill, SG min/max not available
                                        Driver 2: standstill, SG min/max not available
                                        Driver 3: standstill, SG min/max not available
                                        Driver 4: standstill, SG min/max not available
                                        Date/time: 1970-01-01 00:00:00
                                        Cache data hit count 1069836646
                                        Slowest loop: 3.08ms; fastest: 0.07ms
                                        I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
                                        === Move ===
                                        Hiccups: 0, FreeDm: 169, MinFreeDm: 169, MaxWait: 0ms
                                        Bed compensation in use: none, comp offset 0.000
                                        === DDARing ===
                                        Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0
                                        === Heat ===
                                        Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -1
                                        Heater 1 is on, I-accum = 0.0
                                        === GCodes ===
                                        Segments left: 0
                                        Stack records: 1 allocated, 0 in use
                                        Movement lock held by null
                                        http is idle in state(s) 0
                                        telnet is idle in state(s) 0
                                        file is idle in state(s) 0
                                        serial is ready with "M997 S1M552 M552 M552 M552 M122M122M122M122M122M122" in state(s) 0
                                        aux is idle in state(s) 0
                                        daemon is idle in state(s) 0
                                        queue is idle in state(s) 0
                                        autopause is idle in state(s) 0
                                        Code queue is empty.
                                        === Network ===
                                        Slowest loop: 1001.22ms; fastest: 0.00ms
                                        Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0)
                                        HTTP sessions: 0 of 8

                                        • WiFi -
                                          Network state is disabled
                                          WiFi module is disabled
                                          Failed messages: pending 0, notready 0, noresp 0
                                          Socket states: 0 0 0 0 0 0 0 0
                                          ok

                                        I have done some research and usually this problem resolves when updating the DuetWifiServer.bin file to the matching one with the firmware. I have also paid attention to install the firmwares while VIN is applied.

                                        @dc42 recommended to replace the board in this thread.
                                        https://forum.duet3d.com/topic/8541/duet-wifi-always-starting-and-will-not-connect-to-wifi/19

                                        It is weird because it worked in the beginning, also after the 2.03 update it worked for some time flawlessly.

                                        If i replace the board, can i only do it with the resellers that i bought it from? I bought it from e3d, but i live in germany so it is sort of stupid.

                                        I also dont know if the sporadic inability to connect to DWC has anything to do with this, or not. But still.

                                        Is there anything else i can try?
                                        The firmware is 100% updated, all the files are, the second to last update before my attempt now was even through DWC.

                                        It´s really frustrating but i don´t want to chuck that board because i spent already 350€ between the board, 7i panel, breakout and pt100 board.

                                        Any help greatly appreciated.
                                        Thanks
                                        Max

                                        1 Reply Last reply Reply Quote 0
                                        • undefined
                                          NitroFreak
                                          last edited by 24 Aug 2019, 16:29

                                          @dc42 are you ignoring me?

                                          It would be great to know what to do, if the board is broken so that i can send it back to be up and running again in a timely manner.

                                          Also with the scan, you said to switch from channel 6 to channel 2/1. However those are not Mhz specific and my Channel ID and Channel # are different. Check my Post from 31 July please

                                          undefined 1 Reply Last reply 24 Aug 2019, 22:19 Reply Quote 0
                                          • First post
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA