First-Time Setup - Problem with Connecting to Network
-
Place an apostrophe in front of the characters you want to be lowercase when you send the command through printrun.
So for "password" you would send 'p'a's's'w'o'r'd
If your SSID or password has an apostrophe, use two. Jim'sWifi would become J'i'm'''sW'i'f'i
Another way around it is to create a macro file with the command and place it on the SD card and then run the macro to add the network.
-
Place an apostrophe in front of the characters you want to be lowercase when you send the command through printrun.
So for "password" you would send 'p'a's's'w'o'r'd
If your SSID or password has an apostrophe, use two. Jim'sWifi would become J'i'm'''sW'i'f'i
Another way around it is to create a macro file with the command and place it on the SD card and then run the macro to add the network.
Thanks, Phaedrux!
I've tried the first method (adding apostrophes) and it didn't work, returning the response: "Failed to add SSID to remembered list"
It looks like Printrun just added the apostrophes to the content instead of changing the following character to lowercase.
The strange thing is that if I just send the command: "M587", I get also an error message saying: "Failed to retrieve network list"
And even stranger is that I tried to re-send the original command - M587 S"your-network-ssid" P"your-network-password" (with the placeholders replaced but without apostrophes - and now this one also returns the error message "Failed to add SSID to remembered list"…
Could it be that the SSD card is actually the source of the problem? (note the error message about this I mentioned in my original post and detailed in the first screenshot).
Lastly, I don't know how to create a macro file so I'd be grateful for a more detailed guidance on that if possible.
Thanks again,
SnowCrash -
If you put the SD card into your computer what do you see on it?
There used to be some instructions on how to add the macro to add the network. That's what I used on my mac.
Ah yes, here it is: https://duet3d.dozuki.com/Wiki/Installing_and_Updating_Firmware#Section_Upgrading_to_DuetWiFiFirmware_1_Num_19
Create a text file named SetNetwork with the following:
[c]M552 S0
G4 P1000
M587 S"SSIDNAME" P"SSIDPASSWORD"[/c]
Place it in the Macros folder on the SD card.
Put it back in the Duet and then from the console send M98 P/macros/SetNetwork
Send M587 and check that your network is listed
Send M552 S1. After a few seconds you should see a message that it has connected to your access point. -
Hi again,
(Edit: Phaedrux, it looks like we cross-posted. I'm not ignoring your reply in my update below, only sent it before I saw your recent post. If I can't make headway with the present issue - no webpage found - I will certainly try out your suggestion. Thanks!)
Made some progress since my last post, but not there yet!
These are the steps I followed since the last time:
(1) Disconnected the DuetWifi from the Mac and went to have some coffee
(2) Came back and re-connected the Duet and Mac over USB
(3) In Printrun, I clicked the 'connect' button and got confirmation of a successful connection in the console.
(4) Then, I run the same sequence of commands like the last time, but this time it worked (don't ask me why), specifically:
M552 -> got response that module is disabled.
M552 S0 -> got response that wifi module started
M552 -> got response that module is idle
M587 S"BTH'u'b5-…" P"'...." (with apostrophes as per Phaedrux suggestion) -> No response, but...
M587 -> returned a list of 'remembered networks' including the one I just added.
M552 S1 -> got response "Wifi module is connected to access point BTHub5-****, IP address *******" ( represent the IP address I got)
(5) Encouraged by this inexplicable success, I entered the provided IP address in Chrome but unfortunately got a "this page can't be found" error message.
I also tried "duettest.local/" as suggested in the guide, but with the same result.
Trying both in Mozila and Safari just gave a blank page.
Help please?
-
Which IP address were you provided? Did you specify one for the duet? Can you log into your router and see if the duet has connected?
-
Hi Phaedrux,
Thank you very much for taking the time to help me with this!
Answers to your questions below:
Which IP address were you provided?
This one: 192.168.1.108
Did you specify one for the duet?
Nope, the full message I got after sending ""M552 S1" was:
Wifi module is connected to access point BTHub5-****, IP address 192.168.1.108
The guide mentions nothing about specifying an IP address and I have no idea how to go about it if it's needed.
Could you please tell me how to go about it?
Can you log into your router and see if the duet has connected?
To be honest, I don't know. How do I do that?
-
The IP it gave should be fine.
If you reboot the board and wait for the blue light to stop flashing you should be able to connect to that IP address.
-
So if you enter http://192.168.1.108 into your browser address bar (assuming that is the IP address that M552 reports every time), it should connect.
-
The IP it gave should be fine.
If you reboot the board and wait for the blue light to stop flashing you should be able to connect to that IP address.
I assume that by reboot you mean 'reset', right? (sorry, not meaning to be pedantic, just not familiar with this controller and wanted to make sure we're talking about the same thing).
If we are, I tried it and it didn't work either :-@
I've tried rebooting the controller both by clicking the 'reset' button in Printrun, and in a separate attempt, by clicking the physical 'reset' button on the DuetWifi.
I should note that in both cases, I didn't see any blue light blinking. There was a red light next to the USB connector on the controller that turned on for a few seconds and then turned off.
Not sure how to proceed with this?
(edit: sorry, forgot to mention that in my response to dc42 in the following post, I include 2 screenshots: one of Printrun indicating that the connection has been established ok, and on of the Chrome webpage with the IP address that can't be found - perhaps this would help make sense of things?)
-
So if you enter http://192.168.1.108 into your browser address bar (assuming that is the IP address that M552 reports every time), it should connect.
Hi dc42 & thanks for joining the conversation!
I tried your suggestion, but still no go.
In a bit more detail, I repeated the whole procedure once again, that is, connecting the DuetWifi to the Mac over USB, starting up the wifi module, and making sure I got confirmation about the connection being established.
Here is a screenshot of Printrun and the information in the console: https://drive.google.com/open?id=1LzulArSIj3sFN6ReQ7uKg1I_oJbO-2Gb
Despite that, when I go to Chrome and enter the exact address you gave, I get an error message about the page not being found.
Here's a screenshot of the result I get in Chrome: https://drive.google.com/open?id=1sleWbq0t-RCWi841cxvONJ03VNB71wpM
Btw, you might notice the 'http://' missing from the address bar, but that's just Chrome removing it automatically (I typed the address exactly as you did) - if you look at the content of the message on the error page, it shows the full address with the 'http://'.
Help please?
-
The blue light on the wifi module will blink when the M552 S1 command to connect to your WiFi network is processed; except that if that command is in your config.g file, it will be deferred until config.g has finished running.
-
The blue light on the wifi module will blink when the M552 S1 command to connect to your WiFi network is processed; except that if that command is in your config.g file, it will be deferred until config.g has finished running.
Thanks for the quick response dc42!
Ok, but I'm unclear as to how does that help me solve the current problem of not being able to see the web interface.
Could you please explain more? (preferably, in a step-to-step total noobie style
-
The blue light on the wifi module will blink when the M552 S1 command to connect to your WiFi network is processed; except that if that command is in your config.g file, it will be deferred until config.g has finished running.
Just out of curiosity, I reset* the controller again and run the 'M552 S0' & 'M552 S1' commands, while looking at the wifi module on the controller the whole time, and saw no blue light anywhere (although the Printrun console confirmed that a connection was established like before).
Could it be that the wifi module on the controller isn't working as it should and that's the source of the problem?
- by 'reset' I mean a hard-reset, i.e. pressing the physical 'reset' button on the controller.
-
I meant to power cycle the board. I'm not exactly sure if the reset button has the same effect.
As far as I can tell, if you are getting an IP address from the duet connect message then you should be able to use that IP to connect to the DWC.
-
Which firmware version are you using? Older versions of the WiFi module firmware don't flash the blue LED.
-
I meant to power cycle the board. I'm not exactly sure if the reset button has the same effect.
As far as I can tell, if you are getting an IP address from the duet connect message then you should be able to use that IP to connect to the DWC.
Thanks for the clarification, Phaedrux!
I've done the power cycle too, and still no go.
dc42 said it should work as well, but unfortunately so far it doesn't…
btw, I've check the browser side to see that there's nothing blocking the content, but couldn't find anything there either.
-
Which firmware version are you using? Older versions of the WiFi module firmware don't flash the blue LED.
As noted in my original post, firmware version number: 1.19.2
Here is what I got in the Printrun console:
M115
SENDING:M115
FIRMWARE_NAME: RepRapFirmware for Duet WiFi FIRMWARE_VERSION: 1.19.2 ELECTRONICS: Duet WiFi 1.0 FIRMWARE_DATE: 2017-09-01Btw, any idea why I'm constantly getting automatically unsubscribed every time I post on this thread?
-
Ok, that explains why the blue led doesn't flash.
-
With the Duet powered on, if you open a terminal window and use the command [c]Ping 192.168.1.108[/c] What do you get?
If you remove the SD card from the Duet and put it in your computer do you see files listed? Can you post the contents of config.g if it exists?
-