First-Time Setup - Problem with Connecting to Network
-
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?
-
-
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?
Looks like there's something working there.
Here's a screenshot of what I get when I ping the address from terminal: https://drive.google.com/open?id=1oe_3Y65EfZliX55R7QwzH_N8s8GVv1sL
Does this tell you anything?
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?
I don't have an SD card reader on hand atm, but will get one tomorrow so I can find out and post the results.
Thanks again, Phaedrux!
-
Another update & it's not a particularly happy one:
Got my hands on a Windows 7 PC and I can now confirm that the exact same problem I've been experiencing on my Mac also occurs in the Windows setup.
In more detail, I've installed the Duet drivers without a hitch, downloaded and run YAT, and repeated the by now familiar procedure of starting the wifi module, getting confirmation of a connection and finally, the error message that the page can't be found in Chrome.
For comparison, here's a screenshot of YAT showing the above procedure:
https://drive.google.com/open?id=10JMymyqviY-IiLkknzm9QSrbHp-5lTUg
And here's a screenshot of the terminal window (or whatever it's called in Windows) running the ping command:
https://drive.google.com/open?id=1JmmGHdT2f3HJK68FZTcR8MrYII7DPhDk
Like I said, the result is unchanged, i.e. page not found in Chrome.
Another small detail I noticed is that in my 'remembered list' of wifi routers there are 2 slightly different entries - one is the correct router name and the other is incorrect as it's all uppercase.
However, in the connection confirmation message in YAT, the correct router name appears so I'm guessing that's not the problem (but do correct me if I'm wrong on this).
Lastly, in the Windows setup, I also changed the baud-rate value from 9600 to 115200 as I seem to remember seeing that speed setting on the Mac, but it made no difference.
From all this it's starting to look to me like this boils down to a hardware problem either in the wifi module or somewhere else in the controller.
With that said, I still need to check the content of the SD card and report the results in the hope that the problem is actually there and can be manually fixed. I'll hopefully get this done tomorrow when I get the SD card reader.
In the meantime, if anyone has any insight about the information above or the problem in general, please do let me know.
-
Well I don't think there is a hardware issue just yet. You are able to ping the board and it is replying, so that's good. You're on the network.
The duplicate wifi network with all caps is just a dud entry. It will do no harm. You can tell it to forget that network later.
There might be something wrong with the files on the SD card preventing a webpage from showing, so until we can verify what's on the card I'm not sure how best to proceed.
We could try setting up the Duet to run in access point mode where it creates it's own network and you connect to it that way, but if there is something wrong with the files on the card it would lead to the same result.
Just a shot in the dark, but have you tried power cycling your wifi router?
Also, how far away is the Duet from the router?
Have you ever logged into your router web interface?
It would be nice to verify at the router end that the Duet is actually getting a proper IP address.
-
Ok, that explains why the blue led doesn't flash.
Cool, and…?
And now we know which firmware is installed. In 1.21 the wifi LED blinks 3 times and then goes solid when it's ready to go and is turned off when the wifi module is off.
-
Well I don't think there is a hardware issue just yet. You are able to ping the board and it is replying, so that's good. You're on the network.
The duplicate wifi network with all caps is just a dud entry. It will do no harm. You can tell it to forget that network later.
There might be something wrong with the files on the SD card preventing a webpage from showing, so until we can verify what's on the card I'm not sure how best to proceed.
We could try setting up the Duet to run in access point mode where it creates it's own network and you connect to it that way, but if there is something wrong with the files on the card it would lead to the same result.
Just a shot in the dark, but have you tried power cycling your wifi router?
Also, how far away is the Duet from the router?
Have you ever logged into your router web interface?
It would be nice to verify at the router end that the Duet is actually getting a proper IP address.
Hi Phaedrux,
Turns out the problem is almost certainly with the SD card (or related hardware)!
It just occurred to me to connect the PanelDue (which I got with the DuetWifi) and see what it shows (sorry, I didn't think about this before because I haven't had any experience with the display before and didn't know it can show the content of the SD card).
I discovered that the display itself works fine, but when I click on the SD Card icon (or anything else that requires the card like the 'macros' button), I get the following error message:
Files on SD Card 0
Error 1 Accessing SD Card
So either the SD card is empty or faulty or the hardware used for reading it is defective.
I'll only be able to confirm if it's the card tomorrow when I get the reader, though.
However, in the likely even that it is the card that's been causing the problem, do you know if there's a source somewhere from which I could download all the relevant content and paste it into a new replacement card?
-
The PanelDue SD card slot is a little different than the main slot. I'm not sure these results are conclusive.
But yes, you will be able to recreate the correct directories on the card if they are missing.
-
The PanelDue SD card slot is a little different than the main slot. I'm not sure these results are conclusive.
But yes, you will be able to recreate the correct directories on the card if they are missing.
Ah, I didn't realize the PanelDue is attempting to read the card from its own slot - I thought it was trying to read the SD card in the controller.
Another step forward, though. I dug up my old camera and discovered an SD card adapter which meant I could read the content of the DuetWifi Mirco-SD card on my Mac.
And the card seems to be reading fine…
I've uploaded all the content of the SD Card here: https://drive.google.com/open?id=19-slsC29NlJQrPa0UW8JmAyMfc3sW_aC
Could you please have a look and see if it's right?
-
First thing I would do is a make a backup of the contents of the card. Just in case.
The config files on the card are pretty generic and will need to be modified to suit your printer.
But there might be one change we can try to see if it will get you connected. I really don't know if this will help, but it's the only thing I can see that might be interfering.
In the config.g file find the lines that have
[c];*** Ethernet networking: Adjust the IP address and gateway in the following 2 lines to suit your network
M552 P192.168.1.14 ; (0 = DHCP)
M554 P192.168.1.255 ; Gateway
M553 P255.255.255.0 ; Netmask[/c]
and either add a ; before each line, or just delete them.Put the card back in and power it up and see if you can connect.
Even if that doesn't let you connect, I think you should try getting a configuration file package ready to go anyway with the online config tool.
https://configurator.reprapfirmware.org/
It will ask you to enter your network information as well and will generate a full set of config files that should more closely match your printer since you'll be providing the details. When you have that ready, copy it over to the SD card and replace the existing files, and give those a try.
-
Hi Phaedrux,
Firstly, thank you very much again for helping me tackle this frustrating problem! it's very much appreciated!
Allow to me respond to your earlier questions first, before moving on to your later suggestion:
Just a shot in the dark, but have you tried power cycling your wifi router?
Yes, did it just now and it made no difference.
Also, how far away is the Duet from the router?
Quite close, about 3-4 meters and it's in the same room I am working in so no walls in between.
Have you ever logged into your router web interface?
Nope, but figured out how to do it and logged in.
Here are a couple of screenshots of what looked to me to be the most relevant pages:
https://drive.google.com/open?id=1Xr_vEs3sW3NTY_XFiyCOikZOmxULhjn0
https://drive.google.com/open?id=1xGxddpLkgyoh_JrSB5ZlxqnfjQVmFCYY
It would be nice to verify at the router end that the Duet is actually getting a proper IP address.
Seem to me that it does, no?
-
First thing I would do is a make a backup of the contents of the card. Just in case.
Good idea! done
The config files on the card are pretty generic and will need to be modified to suit your printer.
But there might be one change we can try to see if it will get you connected. I really don't know if this will help, but it's the only thing I can see that might be interfering.
In the config.g file find the lines that have
[c];*** Ethernet networking: Adjust the IP address and gateway in the following 2 lines to suit your network
M552 P192.168.1.14 ; (0 = DHCP)
M554 P192.168.1.255 ; Gateway
M553 P255.255.255.0 ; Netmask[/c]
and either add a ; before each line, or just delete them.Put the card back in and power it up and see if you can connect.
Tried it just now and still no webpage found (despite having all messages in Printrun about the connection saying it's good just like before).
Even if that doesn't let you connect, I think you should try getting a configuration file package ready to go anyway with the online config tool.
https://configurator.reprapfirmware.org/
It will ask you to enter your network information as well and will generate a full set of config files that should more closely match your printer since you'll be providing the details. When you have that ready, copy it over to the SD card and replace the existing files, and give those a try.
Thanks for the suggestion! I will try it tomorrow and report back!
-
Looks good on the router front. On the second screen shot you posted there is an option for Always use this IP Address. You should probably set that to yes so that the router doesn't issue a new IP address at some point in the future.
I'm stumped as to why you can't connect at this point. Steps forward now are to try a fresh config file set, and if that doesn't work, reinstalling the firmware and trying again. Possibly trying the 1.21 firmware as well. If none of that works, I would start to suspect hardware?
Perhaps David has more insight on a better way forward at this point?
-
I'm sorry, I can't see your screenshots hosted on Google Drive because Chrome on my tablet keeps saying that the Drive site returned an invalid response when I touch the link. I'll try from a PC later.
Please check that the SD card is being read by the Duet. Two ways:
1. Send M503 from YAT. It should respond with a listing of config.g.
2. Send M906. If will respond with the motor currents. If config.g was read at startup, they will be the values at in the M06 command in config.g, otherwise they will be zero.
PS
3 PanelDue can read both SD card slots. It defaults to the one on the Duet.4. Another SD card test: send M122 from YAT. In the Platform diagnostics it should say "SD card detected" and give the interface speed if there is an SD card in the slot.
-
Could the contest of the WWW directory be corrupt?
-
Hi dc42 (David?),
I'm sorry, I can't see your screenshots hosted on Google Drive because Chrome on my tablet keeps saying that the Drive site returned an invalid response when I touch the link. I'll try from a PC later.
If you'd like, I could send you all the screenshots via email? It's just 9 pics and the folder of the SD card is a tiny zip file.
On the other hand, it might not be needed, since your suggested tests might indicate the location of the problem as I'll explain below.
Please check that the SD card is being read by the Duet. Two ways:
1. Send M503 from YAT. It should respond with a listing of config.g.
Checked and got the response:
Configuration file not found!
2. Send M906. If will respond with the motor currents. If config.g was read at startup, they will be the values at in the M06 command in config.g, otherwise they will be zero.
Yep, they're reported as zero.
The full response to that command was:
Motor current (mA) - X:0, Y:0, Z:0, E:0:0:0:0:0:0:0:0:0, idle factor 30%
An important thing to note is that I've run these tests with the original SD card first, and then with a different SD card onto which I copied the entire content of the original SD card.
The results were the same.
Moreover, given that the SD card itself reads fine on my computer indicates, I think, that the problem is actually with the card reader on the DuetWifi (or some other related hardware on the controller)?
3. PS PanelDue can read both SD card slots. It defaults to the one on the Duet.
Tried using the SD card slot on the PanelDue, but didn't work either - although I seem to remember that in order to utilize that slot a different wiring is needed?
Plus, this workaround won't really solve anything as I plan on using the main SD card slot and not the one on the PanelDue.
4. Another SD card test: send M122 from YAT. In the Platform diagnostics it should say "SD card detected" and give the interface speed if there is an SD card in the slot.
Run that one too and got the response:
SD card 0 detected, interface speed: 12.0MBytes/sec
SD card longest block write time: 0.0msIn light of these results, what do we do now?
Do you think a firmware update might solve this issue? and, if so, are there step-by-step instructions on how to do that?
Thanks for your help!
SnowCrash -
I'm at my PC now and I can see the screen shots.
I think the SD card reader on your Duet is faulty.
1. Please confirm that you pushed the SD card in until it clicks. [Then you have to push it in again to remove it.]
2. One more test please: from YAT send M21 to try to mount the SD card, and report the response.