Issues starting AP Mode
-
Hi. I have a Duet2 wifi I would like to run in AP mode. When I connect via USB, delete its known networks, swap it to AP mode and assign it an IP to use it will not hold these settings when I try to start up printer. It always reverts back to my old wifi network and seems to always remember it even when I clear the known networks. Suggestions? Can post any configs you need. Firmware installed is currently the latest stable, 3.4.6.
-
Share your config.g, perhaps you have M552 S1 in there which is starting it up in client mode.
How exactly are you telling it to delete it's known networks?
What commands are you using to setup access point mode?
https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m589-configure-access-point-parameters
-
; Configuration file for Duet WiFi (firmware version 2.03) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v2.0.3 on Thu Sep 05 2019 15:50:44 GMT-0400 (Eastern Daylight Time) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"Tall Printer" ; set printer name M665 R180 L160 B130 H580 ; Set delta radius, diagonal rod length, printable radius and homed height M666 X0 Y0 Z0 ; put your endstop adjustments here, or let auto calibration find them M575 P1 S1 B57600 ; Network M552 S1 ; enable network M586 P0 S1 ; enable HTTP M586 P1 S0 ; disable FTP M586 P2 S0 ; disable Telnet ; Drives M569 P0 S0 ; physical drive 0 goes backwards M569 P1 S0 ; physical drive 1 goes backwards M569 P2 S0 ; physical drive 2 goes backwards M569 P3 S1 ; physical drive 3 goes forwards M584 X0 Y1 Z2 E3 ; set drive mapping M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation M92 X80.00 Y80.00 Z80.00 E410.00 ; set steps per mm M566 X1200.00 Y1200.00 Z1200.00 E1200.00 ; set maximum instantaneous speed changes (mm/min) M203 X18000.00 Y18000.00 Z18000.00 E1200.00 ; set maximum speeds (mm/min) M201 X1000.00 Y1000.00 Z1000.00 E1000.00 ; set accelerations (mm/s^2) M906 X1100 Y1100 Z1100 E900 I50 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ; Axis Limits M208 Z0 S1 ; set minimum Z ; Endstops M574 X2 S1 P"!xstop" ; X active low and disabled endstop M574 Y2 S1 P"!ystop" ; Y active low and disabled endstop M574 Z2 S1 P"!zstop" ; Z active low and disabled endstop ; Z-Probe M558 P5 C"zprobe.in+zprobe.mod" R0.4 H5 F1000 T6000 B1 ; set Z probe type to effector and the dive height + speeds G31 P100 X0 Y0 Z-.15 ; set Z probe trigger value, offset and trigger height M557 R130 S20 ; define mesh grid ; Temperature Sensors M308 S0 P"bed_temp" Y"thermistor" T100000 B3950 ; define bed temperature sensor M308 S1 P"e0_temp" Y"thermistor" T100000 B4725 C7.06e-8 ; define E0 temperature sensor ; Heaters M950 H0 C"bed_heat" T0 ; heater 0 uses the bedheat pin, sensor 0 M950 H1 C"e0_heat" T1 ; heater 1 uses the e0_heat pin and sensor 1 M307 H0 B0 S1.00 M140 H0 ; Fans M950 F2 C"fan2" Q500 ; Hot end fan M106 P2 T45 H1 M950 F0 C"fan0" Q500 ; Part Cooling fan M106 C"PartFan" P0 S0 H-1 B1 M307 H0 ; report the process parameters for heater 0 M307 H0 R2.186 K0.17:0.11 D5.67 S1.00 V24.0 ; set the process parameters for heater 0 ; Tools M563 P0 H1 F0 D0 T0 ; 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 ; Custom settings are not defined M501 ; recall last used parameters
I see there is M552 S1 in my config, silly me. Mainly, what I was doing was accessing the printer through USB to give it the command
M588 S"*" (to delete all known networks)
then using
M552 S0 (networking idle mode)
M589 S"TallBoyPrinter" P"Kaoken123" I192.168.10.1 (To set it to AP mode and assign it a static IP)
then
M552 S2 (to set it as access point)
I will then disconnect USB and power the printer
But, like you showed me, I think that was all for nothing since the other M552 command is in config. Do I just need to set M552 S2 in my config instead? -
@Phaedrux Actually that article you listed very well may be the correction I need. I will make these adjustments and see if it sticks. Thanks!
-
@sneakyferret said in Issues starting AP Mode:
Do I just need to set M552 S2 in my config instead?
yes, exactly.