Mini 5+ wifi: unable to open DWC
-
Hi community,
my problem is that the Duet Web Control (DWC) won’t open (neither in Safari nor in Firefox) despite the LED on the Duet 3 Mini 5+ Wifi indicates that it is connected to my local wifi network. Serial Tool also shows that the board has a connection to my AVM Fritz!Box 7490. I want to use the Duet 3 Mini in stand alone mode.
The Duet 3 Mini 5+ Wifi is intended to work in combination with my RatRig V-core 3. The manufacturer of this printer made a configuration package with all the necessary files (config.g, homeall.g, etc) available, which i copied on the SD card.
the following things i have already tried to solve the problem
- delete all files on the sd card and copy the new files on it
- multiple times ejected the sd card, rebooted the system
- restarted router
- made sure the antenna is mounted correctly
- used different USB cables during the setup procedure
I thought it would be useful to connect my printer to a separate account so I created a guest account on my router.
The odd thing is that when i try to connect to this guest account with the associated SSID and password it won’t connect.
On the other hand if i type in the SSID and password of my main account, serial tool tells me that it is connected to the wifi network,
but the IP Address matches the one of my guest account.
If i try to open that IP Address in my browser at first nothing happens, and after a few minutes the message „no connection available“ shows up.Operating System: macOS Monterey (12.0.1)
Router: AVM Fritz!Box 7490
Duet 3 Mini 5+ Wifi -
@sebastian-0 can you send the full output from M122 from serial tools (with the SD card inserted).
-
@sebastian-0 Hey this really isn't helping your situation much. However, just a warning that the Duet wiring guides and config published on the RatRig site for the Vcore3 printer is not very good. You are better off following the wiring and setup guides here https://duet3d.dozuki.com/Wiki/Getting_Started_with_Duet_3_Mini_5plus. And here https://duet3d.dozuki.com/Guide/Ender+3+Pro+and+Duet+3+Mini+5++Guide+Part+1:+Wiring/87 even though its for a ender 3 most of the basic stuff (fans what port are best for endstop/probe locations etc) is good.
Then make your own config using the RRF config tool. https://configtool.reprapfirmware.org/Start and modify it.
If you need more detail on the the setup I have a vcore3 500mm working with a mini5 and a toolboard. PM me I'll be happy to share.
-
@T3P3Tony, this is what serial tool prints out when I type in M122 (there are no sensor, motors etc connected to the board)
RepRapFirmware for Duet 3 Mini 5+ version 3.2.2
Executing config.g… Error: Height map file 0:/sys/heightmap.csv not found
Error: in file macro line 9 column 7: M552: expected string expression
HTTP is enabled on port 80
FTP is disabled
TELNET is disabled
Warning: Sensor number 1 has not been defined
Done!
WiFi is disabled.
RepRapFirmware for Duet 3 Mini 5+ is up and running.
Error: Temperature reading fault on heater 1: sensor open circuitM122
=== Diagnostics ===
RepRapFirmware for Duet 3 Mini 5+ version 3.2.2 running on Duet 3 Mini5plus WiFi (standalone mode)
Board ID: M4YHL-X096U-D65J0-40KMU-4P03Z-Z6ZHF
Used output buffers: 1 of 40 (1 max)
=== RTOS ===
Static ram: 98732
Dynamic ram: 107972 of which 56 recycled
Never used RAM 38456, free system stack 124 words
Tasks: NETWORK(ready,518) HEAT(blocked,219) CanReceiv(blocked,947) CanSender(blocked,372) CanClock(blocked,363) TMC(blocked,123) MAIN(running,434) IDLE(ready,20) AIN(blocked,269)
Owned mutexes: USB(MAIN)
=== Platform ===
Last reset 00:01:05 ago, cause: power up
Last software reset time unknown, reason: HardFault bfarValid precise, GCodes spinning, available RAM 52252, slot 0
Software reset code 0x0063 HFSR 0x40000000 CFSR 0x00008200 ICSR 0x00000803 BFAR 0x00000040 SP 0x2000a758 Task MAIN Freestk 745 ok
Stack: 00000000 00000571 0000056d 00000000 ffffffff 000664e9 000781ca 61070000 00000000 0007dbd1 00000000 00000000 20000008 ffffffff 2001c8dc 20009b54 2001c6d8 2000a7d8 20000008 200095b4 2000a864 0007dca3 00000001 2000a7d8 20000008 2001fcb8 20000008
Error status: 0x00
Aux0 errors 0,0,0
Aux1 errors 0,0,0
Supply voltage: min 0.0, current 0.8, max 0.8, under voltage events: 0, over voltage events: 0, power good: no
Driver 0: position 0, ok, SG min/max not available, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0
Driver 1: position 0, ok, SG min/max not available, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0
Driver 2: position 0, ok, SG min/max not available, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0
Driver 3: position 0, ok, SG min/max not available, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0
Driver 4: position 0, ok, SG min/max not available, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0
Driver 5: position 0, ok, SG min/max not available, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0
Driver 6: position 0, ok, SG min/max not available, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0
Date/time: 1970-01-01 00:00:00
Cache data hit count 148957775
Slowest loop: 6.41ms; fastest: 0.12ms
=== Storage ===
Free file entries: 10
SD card 0 detected, interface speed: 22.5MBytes/sec
SD card longest read time 3.2ms, write time 0.0ms, max retries 0
=== Move ===
DMs created 83, maxWait 0ms, bed compensation in use: none, comp offset 0.000
=== MainDDARing ===
Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== AuxDDARing ===
Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== Heat ===
Bed heaters = 0 -1, chamberHeaters = -1 -1
=== GCodes ===
Segments left: 0
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
USB is ready with „M122“ in state(s) 0
Aux is idle in state(s) 0
Trigger is idle in state(s) 0
Queue is idle in state(s) 0
LCD is idle in state(s) 0
SBC is idle in state(s) 0
Daemon is idle in state(s) 0
Aux2 is idle in state(s) 0
Autopause is idle in state(s) 0
Code queue is empty.
=== Network ===
Slowest loop: 0.19ms; fastest: 0.00ms
Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
HTTP sessions: 0 of 8- WiFi -
Network state is disabled
WiFi module is disabled
Failed messages: pending 2779096485, notready 2779096485, noresp 2779096485
Socket states: 0 0 0 0 0 0 0 0
=== CAN ===
Messages queued 589, send timeouts 587, received 0, lost 0, longest wait 0ms for reply type 0, free buffers 16
ok
- WiFi -
-
@sebastian-0 said in Mini 5+ wifi: unable to open DWC:
Error: in file macro line 9 column 7: M552: expected string expression
Combined with the wifi report that the network is disabled indicates an issue with your config and starting the network
Did you successfully add your wifi network with M587 ? if so then send M552 S1 to start it from serial tools. (you also need to edit your config to fix the line with the issue - I am just suggesting to do it from serial tools the first time as you will get some feedback on how that goes and you can send another M122 to get the wifi status.
-
Post your config.g as well so we can see what your M552 command is formatted like.
-
@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.