Cannot connect to DWC Simple fix??



  • Reached step 9 in set up. Connected to wifi and have YAT runnning with blue lite on Duet Wifi Board on.
    entered M587 received IP, but not finding IP when put in address bar. neither does duettest.local / work.
    I have read, at this point, several suggestions to remove micro SD card insert it into computer and change a config. file. Running Chrome on Windows 8.1 fwi.

    I believe that this is a ver 2.02 file, so newest version or close to it?? Just bought this this week so it should
    not need to be updated? I am Leary of changing anything before I get some advice form those who have been
    through this already. It is Obvious this is not the first or last time this happened.

    Nothing has been removed or unplugged with power on, that I know of.
    Should I power down, remove card and view it to see version? Change files? If so where do I find the
    compatible files to reinstall.

    Thanks,



  • If M587 can potentially be misleading; under many circumstances, it shows the network memorized when the board was tested at the factory.

    Enter M552 with no parameters. What does that say? Can you Web to that address? Can you ping that address?



  • I entered M552 and received the same IP address. Did not find it when entered
    in the the browser.

    M552
    WiFi module is connected to access point ORBI, IP address 192.xxx.x.xx<LF>ok<LF>



  • Can you ping it?



  • No, it will not ping.



  • Let me rephrase that.
    It came back with "Packets sent 4, Received =0, Lost =4 (100% loss)



  • @AMPMAKER said in Cannot connect to DWC Simple fix??:

    M552
    WiFi module is connected to access point ORBI, IP address 192.xxx.x.xx<LF>ok<LF>

    And is that the name of your access point?

    Frederick



  • @AMPMAKER said in Cannot connect to DWC Simple fix??:

    Let me rephrase that.
    It came back with "Packets sent 4, Received =0, Lost =4 (100% loss)

    Yep, that equals "will not". 🙂

    You are not giving up security information to put the actual IP addresses on this forum. For example, one of my Duets is at 192.168.1.15. And I can ping it (see below)

    What is the actual IP of your printer? And of your PC?

    Pinging my printer:

    Pinging 192.168.1.15 with 32 bytes of data:
    Reply from 192.168.1.15: bytes=32 time=2ms TTL=255
    Reply from 192.168.1.15: bytes=32 time=184ms TTL=255
    Reply from 192.168.1.15: bytes=32 time=9ms TTL=255
    Reply from 192.168.1.15: bytes=32 time=2ms TTL=255
    
    Ping statistics for 192.168.1.15:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 2ms, Maximum = 184ms, Average = 49ms
    

    My windows machine's ip configuration:

    C:\Users\Danal>ipconfig
    
    Windows IP Configuration
    
    
    Ethernet adapter Ethernet:
    
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
    
    Ethernet adapter Ethernet 2:
    
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
    
    Wireless LAN adapter Local Area Connection* 12:
    
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
    
    Wireless LAN adapter Local Area Connection* 13:
    
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
    
    Wireless LAN adapter Wi-Fi:
    
       Connection-specific DNS Suffix  . :
       Link-local IPv6 Address . . . . . : fe80::9d90:e77f:bdf1:4625%19
       IPv4 Address. . . . . . . . . . . : 192.168.1.9
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Default Gateway . . . . . . . . . : 192.168.1.1
    


  • Yes Orbi is the name of the router. Orbi is a tri band router and this may be an issue. From what I have read
    it has the ability to pick up 2.4 or 5 ghz independently. But this does not look like that is happening.
    I have looked at other forums to see a way around this, but it gets way more into changes I don't want
    to explore.
    192.168.1.31 Duet IP
    And with the Duet wifi only working with 2.4 I may be out of luck. As we need the Orbi right now to get the
    signal farther for everyone to have a good signal.
    Can the Duet be setup and used without the wifi.? For now I need to get our printer back up. This has consumed
    way to much of my time and will use it or will need to replace.



  • @AMPMAKER said in Cannot connect to DWC Simple fix??:

    Can the Duet be setup and used without the wifi.?

    Yes it can, I have done just this in the past. It got me through a crisis.

    It's a lot of fiddling; constantly removing the SD card to edit config files or add gcode files.

    • Use the terminal to test and refine the correct syntax for config file commands; generate heater tunings etc..
    • You will then need to be popping the SD card out and in to upload gcode files, and make any permanent changes to the config files,
    • Use M23 etc to select and print.
    • Conceptually; the web interface does it's magic by sending gcode commands to RRF behind-the-scenes, and allowing direct uploading files to SD. In theory there is nothing you can command in the web interface that cannot also be sent via the terminal.

    Another 'get me working' option would be to use a mobile phone or similar to make a hotspot for just the printer and run the UI from the phone, or a laptop on the same hotspot.



    • The printer can be an AP. Totally separate from your network. That does mean you have to switch to it... but probably less hassle than physically manipulating the SD card.

    • Does Orbi not route between the 2.4 and 5 segments? Yikes!! That's a real problem. And, with great respect, are you sure this is the problem? I've run both Linksys mesh routers and Google WiFi mesh routers, and also Netgear "single central" routers with two Duet WiFi. No issues with printer on 2.4 and PC on 5.



  • @AMPMAKER said in Cannot connect to DWC Simple fix??:

    Yes Orbi is the name of the router. Orbi is a tri band router and this may be an issue. From what I have read
    it has the ability to pick up 2.4 or 5 ghz independently. But this does not look like that is happening.

    Unless something is wrong with the router configuration, or perhaps the router itself, devices connected via the LAN connection(s) on the router, via 2.4 GHz or 5.0 GHz should all be able to communicate with one another.

    All of the access points in my home are dual band (2.4 & 5) and I have no issues like you are having. I can connect to my two Duet Wifi equipped machines without any problems.

    Don't give up.

    Frederick



  • No I am not sure the router is the issue, But...
    I asked someone who is more knowledgeable than me, that's said the Orbi is a mesh network
    and most likely the issue. In hind sight it would have been easier to wire an Ethernet cable.

    Easy Target. Our issue with removing the card, over time, is our screen will be put on the right side
    of the printer, and access to the card is the left. So it would need to have separate containment for
    the Panel-Duet. We are using cards to transfer the files now, which is fine, but all the conf.. that's
    a lot of back and forth.



  • Yeah, Orbi should be fine with 2.4 and 5 devices talking to each other. And "mesh" is NOT the issue, otherwise nothing in your house would work...

    You can certainly test this. Find any other device on the 2.4 network (I don't have an orbi, so you'll have to look up how to do this) and ping it.



  • @AMPMAKER I have been using an orbi router with my duet WiFi. So not a complete no no. Just fixed the address that was assigned to the duet, no other fiddling.



  • @AMPMAKER said in Cannot connect to DWC Simple fix??:

    I asked someone who is more knowledgeable than me, that's said the Orbi is a mesh network
    and most likely the issue.

    If it IS a mesh setup that still would not explain the problem.

    There is often a setting in the WiFi portion of a router configuration which allows enabling "client isolation".

    When this is enabled wireless devices (WiFi) cannot communicate with wired devices.

    That sounds like it might be the case.

    Frederick



  • @Adrian52

    Ok, Just fix the address? What exactly do you mean?
    my IP shows 192.168.1.31 on the Duet when I enter M552
    see below. But when I try to Ping I get no response.

    m552
    WiFi module is connected to access point ORBI, IP address 192.168.1.31<LF>ok<LF>

    The Blue light flashed for a bit and entered M552 again and got a different IP.

    m552
    WiFi module is changing mode<LF>ok<LF>WiFi module is connected to access point ORBI, IP address 192.168.1.4<LF>

    Now it is connected.... Wow very frustrating but all I did.. I Think.. is turned off the ORBI (cycled Power)
    while the Duet was plugged into and powered by the USB cable.
    Now I enter 192.168.1.4 and the Duet screen comes up.

    Thank you all for the suggestions and help. Would have been a long time trying to figure this out without help.
    Issue solved..



  • Will the Duet remember the IP address? Or do I need to send another M command?



  • Got it M552 S1 is already in the Network config.g file.



  • @AMPMAKER said in Cannot connect to DWC Simple fix??:

    Will the Duet remember the IP address? Or do I need to send another M command?

    You can specify a static IP Address for the Duet WiFi in the M587 command which is NOT meant to always be present in your config.g file.

    It's fine to put it there just to get the correct values stored in the WiFi module but once everything is working you need to comment out or remove the M587 command from your config.g.

    Now the only problem with using a static IP address is that the router may try to handout that same address to another device that is asking for an IP address from the router.

    You can avoid this problem by limiting the range of addressed the router can handout. This is a setting in the router configuration.

    For example you could configure the router to handout IP address from x.x.x.21 to x.x.x.254, leaving addresses 2 through 20 for assignment to hardware like your Duet.

    Frederick



  • This is not my strongest area to be working in, so it is very frustrating when I get it to
    work and now it doesn't. I unplugged the duet from the USB ate lunch came back to reconnect
    and back to square one. Now no YAT. Saying com5 is closed, and no wifi of course.
    Device manager see's it plugged into com 5??? What am I missing.

    I do understand handing out IP address above a certain range, but shouldn't the device always
    have the same IP, once it is set.



  • @AMPMAKER said in Cannot connect to DWC Simple fix??:

    I unplugged the duet from the USB ate lunch came back to reconnect
    and back to square one. Now no YAT. Saying com5 is closed, and no wifi of course.
    Device manager see's it plugged into com 5

    That is odd. When I first started with a Duet WiFi I had the odd problem with WiFi but I never had a problem using the USB connection. Perhaps you already have another instance of YAT running and connnected to COM5? Windows only allows one connection at a time to a COM port.

    I do understand handing out IP address above a certain range, but shouldn't the device always
    have the same IP, once it is set.

    If a device like a Duet is setup to use DHCP every time it powers up/resets and asks for an IP address it may get a different one.

    The only way to insure that it ALWAYS gets the same one is with a IP reservation. If you can find a link to the manual for your router I will be glad to take a look and see if and how IP reservations can be done.

    Frederick



  • Frederick thank you for the offer, I will keep that offer a bit, but if I don't work this through I may never learn
    how it's done. I have been able to get back to a YAT connection with the Duet. Still no internet Although.

    M552
    WiFi module is connected to access point ORBI, IP address 192.168.1.4<LF>ok<LF>
    M587
    Remembered networks:<LF>TNCAP2FCC19 IP=192.168.1.14 GW=0.0.0.0 NM=0.0.0.0<LF>ORBI65 IP=0.0.0.0 GW=0.0.0.0 NM=0.0.0.0<LF>ORBI IP=0.0.0.0 GW=0.0.0.0 NM=0.0.0.0<LF>ok<LF>

    I did find this on instructables.com Whats your thought on trying it.

    https://www.instructables.com/id/Duet-WiFi-Activate-and-Connect-the-WiFi-When-It-Do/

    I did contact the company that sold the Duet to us and he suggested a different router 2.4 of course just
    for the duet. But I think that isolating the IP is the most Logical.



  • I found this post from

    dc42 ADMINISTRATORS 8 Mar 2018, 12:54
    Either:

    1. Send M552 S0, then send M552 P192.168.1.xx, then send M552 S1. You should then be able to connect DWC. In DWC go to the System editor and edit the M552 command in config.g to have that IP address.

    Or:

    1. Move the SD card to a PC and use a text editor to make the same change to the M552 command in config.g.

    So I was able to get connected to the DWC again, I just don't know if I turn this off if it will reconnect.
    We shall see. The IP recorded in the config.g was different than the IP that came up when entering the
    M552 command.

    Do I always have to go thru YAT to get to DWC or should it come up when the Duet is powered on??



  • Hi,

    Read about M552 a little more closely.

    Notice:

    "On the Duet 2 WiFi running firmware 1.19 and later, the IP address is set in the M587 command when you configure the access point details."

    Once you get the WiFi configured correctly it is saved in the WiFi hardware "flash" memory and you can connect any time you power/reset the Duet.

    Frederick


Log in to reply