Mini 5+ wifi: unable to open DWC
-
@Phaedrux Here is my config.g file
; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"V-Core 3" ; set printer name M669 K1 ; CoreXY G29 S1 ; Set Units to Millimeters ; Network M552 P0.0.0.0 S1 ; enable network and acquire dynamic address via DHCP M586 P0 S1 ; enable HTTP M586 P1 S0 ; disable FTP M586 P2 S0 ; disable Telnet ; Drives M569 P0.0 S1 D3 ; physical drive 0.0 goes forwards M569 P0.1 S1 D3 ; physical drive 0.1 goes forwards M569 P0.2 S1 D3 ; physical drive 0.2 goes forwards M569 P0.3 S1 D3 ; physical drive 0.3 goes forwards M569 P0.4 S1 D3 ; physical drive 0.4 goes forwards M569 P0.5 S1 D3 ; physical drive 0.5 goes forwards M584 X0.4 Y0.3 Z0.0:0.1:0.2 E0.5 ; set drive mapping M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation M92 X80.00 Y80.00 Z800.00 ; set steps per mm M906 X1000 Y1000 Z800 I30 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout M566 X400.00 Y400.00 Z6.00 E120.00 P1 ; set maximum instantaneous speed changes (mm/min) M203 X10800.00 Y10800.00 Z1000.00 E3600.00 ; set maximum speeds (mm/min) M201 X3000.00 Y3000.00 Z100.00 E3600.00 ; set accelerations (mm/s^2) ; Axis Limits M208 X0 Y0 Z0 S1 ; set axis minima M208 X310 Y300 Z300 S0 ; set axis maxima ; Endstops M574 X1 S1 P"io1.in" ; configure active high endstops M574 Y2 S1 P"io0.in" ; configure active high endstops M574 Z1 S2 ; configure Z-probe endstop for low end on Z M671 X-4.5:150:304.5 Y-4.52:305:-4.52 S5 ; define positions of Z leadscrews or bed levelling screws M557 X20:280 Y20:280 P5 ; define 5x5 mesh grid ; Heaters M308 S0 P"temp0" Y"thermistor" T100000 B3950 A"Bed" ; configure sensor 0 as thermistor on pin temp0 M950 H0 C"out0" T0 ; create bed heater output on out5 and map it to sensor 0 M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit M140 H0 ; map heated bed to heater 0 M143 H0 S110 ; set temperature limit for heater 0 to 110C ;; Run Bed PID Tune!! Bellow is an example for a 300x300 bed ;; M307 H0 A303.1 C356.7 D1.4 S1.00 V24.0 B0 ; Fans M950 F0 C"out3" Q500 ; create fan 0 on pin out3 and set its frequency M106 P0 C"Hotend Fan" S0 H1 T45 L255 ; set fan 0 name and value. Thermostatic control turned on for Hotend M950 F1 C"out4" Q500 ; create fan 1 on pin out4 and set its frequency M106 P1 C"Layer Fan" S0 H-1 L255 ; set fan 1 name and value. Thermostatic control is turned off ; Tools M563 P0 D0 H1 F1 ; define tool 0 G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C M950 H1 C"out1" T1 ; create nozzle heater output on out2 and map it to sensor 1 M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit M143 H1 S250 ; set the maximum temperature in C for heater ; EVA 2 / BMG / E3D V6 M92 E830 ; set extruder steps per mm, 0.9 angle/step (LDO Pancake) M906 E800 ; set extruder motor current (mA) and idle factor in per cent M308 S1 P"temp1" Y"thermistor" T100000 B4725 C7.060000e-8 A"Hotend" ;; Run Heater PID Tune!! ;; M307 H1 A751.5 C196.6 D4.7 S1.00 V23.9 B0 ; Z-Probe ;; Inductive Probe ; M558 P5 C"!io3.in" H5 F400 T5000 ; set Z probe type to unmodulated and the dive height + speeds ; G31 P500 X-30 Y-15 Z0.20 ; set Z probe trigger value, offset and trigger height, more Z means closer to the bed ;; BLTouch ; M950 S0 C"io2.out" ; Create a servo pin on io2 ; M558 P9 C"io2.in" H5 F240 T10800 A5 ; set Z probe type to unmodulated and the dive height + speeds ; G31 P25 X-28.00 Y-13.00 Z0.90 ; set Z probe trigger value, offset and trigger height, more Z means closer to the bed M404 N1.75 D0.4 ; Filament width and nozzle diameter T0 ; Pressure Advance ; M572 D0 S0.10
-
@t3p3tony As far as I can tell the wifi network was added successfully. But the generated IP address is not accessible via my browser.
M552 S-1 WiFi module stopped ok M552 WiFi module is disabled ok M552 S0 ok WiFi module started M587 S"FRITZ!Box 7490" P"myPassword" Remembered networks: TNCAPF318D9 IP=192.168.1.14 GW=0.0.0.0 NM=0.0.0.0 FRITZ!Box_V-Core3 IP=0.0.0.0 GW=0.0.0.0 NM=0.0.0.0 ok M552 S1 ok WiFi module is connected to access point FRITZ!Box_V-Core3, IP address 192.168.179.2
-
@sebastian-0 said in Mini 5+ wifi: unable to open DWC:
G29 S1 ; Set Units to Millimeters
The command doesn't match the comment here. Setting to MM is G21. G29 S1 is loading the mesh heightmap which you do now want to do in config.g. You want to do that after you've homed the printer and most importantly after the Z axis has been homed with the probe.
M552 P0.0.0.0 S1
I can't tell what it's complaining about here. I would suggest trying just M552 S1 and remove the P0.0.0.0 entirely. DHCP is the default anyway. Delete the line entirely and type it from scratch.
See if that will connect to wifi at startup and allow the DWC to load.
RepRapFirmware for Duet 3 Mini 5+ version 3.2.2
I would also suggest that you update your firmware to 3.3
As you don't currently have access to the DWC to upload the firmware you can use the USB method shown here if that doesn't fix the network connectivity.
https://duet3d.dozuki.com/Wiki/Installing_and_Updating_Firmware#Section_Duet_3_Mini_5_WiFi_Ethernet
Then you can manually update the DWC files by extracting the zip file to the /www folder on the SD card.
https://github.com/Duet3D/RepRapFirmware/releases/download/3.3/DuetWebControl-SD.zip
-
@phaedrux When trying to connect to my FritzBox (with the guest account (FRITZ!Box_V-Core3) deactivated) with the SSID and password of my main account (FritzBox! 7490) the following happens: (I made sure the password is typed in correct)
M552 S-1 WiFi module stopped ok M552 WiFi module is disabled ok M552 S0 ok WiFi module started M587 S"FRITZ!Box 7490" P“myPassword“ Remembered networks: TNCAPF318D9 IP=192.168.1.14 GW=0.0.0.0 NM=0.0.0.0 FRITZ!Box_V-Core3 IP=0.0.0.0 GW=0.0.0.0 NM=0.0.0.0 ok M552 S1 ok WiFi reported error: no known networks found WiFi module is idle WiFi reported error: no known networks found WiFi module is idle WiFi reported error: no known networks found WiFi module is idle
with the guest account activated this happens (again using the SSID and password of my main account)
M552 S-1 WiFi module stopped ok M552 WiFi module is disabled ok M552 S0 ok WiFi module started M587 S"FRITZ!Box 7490" P“myPassword“ Remembered networks: TNCAPF318D9 IP=192.168.1.14 GW=0.0.0.0 NM=0.0.0.0 FRITZ!Box_V-Core3 IP=0.0.0.0 GW=0.0.0.0 NM=0.0.0.0 ok M552 S1 ok WiFi module is connected to access point FRITZ!Box_V-Core3, IP address 192.168.179.2
So maybe the reason for this issue is my router or some router settings.
In any case I’ll try to update the Mini5+ firmware. -
@sebastian-0 said in Mini 5+ wifi: unable to open DWC:
WiFi module is connected to access point FRITZ!Box_V-Core3, IP address 192.168.179.2
ok so that looks good - you are getting an IP address and its connecting. I would use that network for now. The PC you are connecting from needs to be on the same network - it probably won't work with your PC on the main network and the Duet on a guest network.
if you can ping 192.168.179.2 from your PC (which should also be on 192.168.179.X) then what happens when you try and connect to that IP in a browser?
-
@sebastian-0 said in Mini 5+ wifi: unable to open DWC:
P“myPassword“
The quotes around that password look strange. I would suggest creating a macro with the M587 command in it to join the network with your password in that. Then use M98 P to call that macro from the usb terminal. That avoids using the USB terminal to send the password itself which can sometimes send different characters than intended.
-
@t3p3tony This is what happens when I type in the IP address.
-
@phaedrux Unfortunately, I have no idea of how to write macros. In the original code, however, the quotation marks look exactly like those in the SSID. The formatting was probably changed when the password was substituted.
-
A macro is just a text file that contains the gcode commands you want to send.
Here's an example of one to add the SSID.
; Add default wifi network ; M552 S0 ; Disable network module G4 S5 ; wait 5 seconds M587 S"NETWORKNAME" P"PASSWORD" ; Add duet wifi SSID to remembered networks list G4 S5 ; wait 5 seconds M552 S1 ; reenable wifi module
If you save that as a text file called
addwifi.g
and place it in the sys folder on the SD card you can then execute it from the usb terminal withM98 P"addwifi.g"
This ensures that your password isn't getting modified by the USB terminal sender which can sometimes happen.
It may also help to use
M588 S"*"
to clear out all saved networks first before readding it. -
This may be relevant to the networking problem:
I've just today received another new Duet 3 6HC board. I don't have the machine assembled yet, but I was curious what the board alone would do, and what firmware was pre-loaded - V3.3, as it happens.
I connected it via USB & connected to the port that appeared (COM10) using Realterm.
Then I plugged in the Ethernet cable; it gave a message stating its IP address was 192.168.1.14
My network runs on 192.168.0.x and the DHCP server only issues addresses in the range 0.100 - 0.199, as I use static IP addresses for all fixed devices.
Seeing the 1.14 address in the thread above makes me think there is a bug in the firmware.
(My previous Duet 6HC build has only ever run is SBC mode, I never had cause to directly connect Ethernet to it).
-
@rjenkinsgb IIRC that address is coded into the default Config for the purposes of QC testing but that will need someone from Duet to confirm that or you could just check it yourself
-
@rjenkinsgb yes that's the testing IP in the default config.g, it not hardcoded in anywhere. The default config should also give a warning to replace it with one from the config tool.
-
@phaedrux The firmware is now updated (Version 3.3). Like you advised I created a macro, but the DWC is still not opening.
; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"V-Core 3" ; set printer name M669 K1 ; CoreXY G21 S1 ; Set Units to Millimeters ; Network M588 S"*" ; clear out all saved networks first before readding it M98 P"addwifi.g" M552 S1 ; enable network and acquire dynamic address via DHCP M586 P0 S1 ; enable HTTP M586 P1 S0 ; disable FTP M586 P2 S0 ; disable Telnet
RepRapFirmware for Duet 3 Mini 5+ version 3.3 Executing config.g… Error: Failed to reset the WiFi module to factory settings: WiFi module is disabled Error: Failed to add SSID to remembered list: WiFi module is disabled HTTP is enabled on port 80 FTP is disabled TELNET is disabled Warning: Sensor number 1 has not been defined Done! RepRapFirmware for Duet 3 Mini 5+ is up and running. WiFi module started Error: Temperature reading fault on heater 1: sensor open circuit WiFi module is connected to access point FRITZ!Box_V-Core3, IP address 192.168.179.2
-
@sebastian-0 said in Mini 5+ wifi: unable to open DWC:
; Network M588 S"*" ; clear out all saved networks first before readding it M98 P"addwifi.g"
These lines should be removed from config.g. You'll have to use the USB terminal to send each of those commands separately. They only need to be sent once.