need help with duet3 6hc and new wifi chip
-
Please help, I got the new wifi chip v1.02 installed on the board and can connect if if i use M552 commands from the web interface. I place the m552 commands in the config, but unless I use the Ethernet connection to send the M552 commands the WIFI wont start. I am familiar with the "I1", and have tried various combinations in the Config- what am I missing???
-
@buz the M552 command in your config.g to enable WiFi should be
M552 I1 S1
Is that what you have?
Please post config.g and response to M115, if you need more support.
Ian
-
@buz I have already logged a similar issue at https://github.com/Duet3D/RepRapFirmware/issues/840.
-
So is this a bug? If so that makes me feel a little better knowing its not something I am doing. I did try to use just the WIFI and deleted the ethernet M552 but even that didnt help. here is the network portion of my config if that helps. Thank you for helping
; General preferences
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"My Printer" ; set printer name; Network
M552 P192.168.1.44 S1 ;
M552 I1 S1
M586 P0 S1 ; enable HTTP
M586 P1 S0 ; disable FTP
M586 P2 S0 ; disable Telnet -
@buz said in need help with duet3 6hc and new wifi chip:
Comment out (with a semicolon at the beginning) or delete this line, which enables the Ethernet:
;M552 P192.168.1.44 S1
Ian
-
Ethernet is fine, I need the wifi connection to start from the config file at boot.
If I comment out that line I wont be able to connect at all. -
-
Ok that makes sense, I will try it this evening. thank you for your help. This ethernet cable running across the room is driving me nuts!!
-
Help again. I finally got around to trying this. I uncomment the m552 to enable the ethernet, left the M552 I1 S1 to enable wifi and try to connect. No luck. Had to uncomment and reconnect with ethernet. When I do a M552 I1 from web control it responds WIFI disabled. This makes sense with what DC said but I can enable it within web control and have it start & connect. Any ideas?? has to be something Im doing in the config that is not starting the WIFI. thanks
-
@buz please post your config.g. Also post response to
M98 p"config.g"
andM122
.Ian
-
@buz I confirm that the issue with enabling the wifi module does not depend on whether or not Ethernet is enabled too. I implemented a fix last Friday.
Which firmware version are you using?
-
Hi guys thanks for helping. M98 p"config.g" returns" http enable port 80, ftp and telenet is disabled. m122 returns:
122
=== Diagnostics ===
RepRapFirmware for Duet 3 MB6HC version 3.5.0-beta.3 (2023-04-14 11:28:15) running on Duet 3 MB6HC v1.02 or later (standalone mode)
Board ID: 08DJM-956BA-NA3TN-6JKD2-3SD6R-9BBAT
Used output buffers: 3 of 40 (29 max)
=== RTOS ===
Static ram: 154728
Dynamic ram: 118684 of which 0 recycled
Never used RAM 72580, free system stack 208 words
Tasks: NETWORK(nWait,24.2%,223) ETHERNET(nWait,0.0%,459) HEAT(nWait,0.0%,324) Move(nWait,0.0%,340) CanReceiv(nWait,0.0%,942) CanSender(nWait,0.0%,334) CanClock(delaying,0.0%,335) TMC(nWait,7.6%,59) MAIN(running,68.2%,446) IDLE(ready,0.0%,30), total 100.0%
Owned mutexes:
=== Platform ===
Last reset 00:04:44 ago, cause: power up
Last software reset at 2023-05-20 14:40, reason: User, Gcodes spinning, available RAM 72508, slot 1
Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x00400000 BFAR 0x00000000 SP 0x00000000 Task MAIN Freestk 0 n/a
Error status: 0x00
MCU temperature: min 34.5, current 34.8, max 34.8
Supply voltage: min 24.3, current 24.3, max 24.4, under voltage events: 0, over voltage events: 0, power good: yes
12V rail voltage: min 12.0, current 12.2, max 12.4, under voltage events: 0
Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0
Events: 0 queued, 0 completed
Driver 0: standstill, SG min n/a, mspos 2, reads 13543, writes 0 timeouts 0
Driver 1: standstill, SG min n/a, mspos 2, reads 13544, writes 0 timeouts 0
Driver 2: standstill, SG min n/a, mspos 4, reads 13544, writes 0 timeouts 0
Driver 3: standstill, SG min n/a, mspos 8, reads 13543, writes 0 timeouts 0
Driver 4: standstill, SG min n/a, mspos 2, reads 13543, writes 0 timeouts 0
Driver 5: standstill, SG min n/a, mspos 8, reads 13543, writes 0 timeouts 0
Date/time: 2023-05-21 15:52:02
Slowest loop: 2.95ms; fastest: 0.06ms
=== Storage ===
Free file entries: 20
SD card 0 detected, interface speed: 25.0MBytes/sec
SD card longest read time 2.2ms, write time 0.0ms, max retries 0
=== Move ===
DMs created 125, segments created 0, maxWait 0ms, bed compensation in use: none, comp offset 0.000
no step interrupt scheduled
=== DDARing 0 ===
Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== DDARing 1 ===
Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== Heat ===
Bed heaters 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamber heaters -1 -1 -1 -1, ordering errs 0
Heater 1 is on, I-accum = 0.0
=== GCodes ===
Movement locks held by null, null
HTTP is idle in state(s) 0
Telnet is idle in state(s) 0
File is idle in state(s) 0
USB is idle 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
File2 is idle in state(s) 0
Queue2 is idle in state(s) 0
Q0 segments left 0, axes/extruders owned 0x80000003
Code queue 0 is empty
Q1 segments left 0, axes/extruders owned 0x0000000
Code queue 1 is empty
=== CAN ===
Messages queued 128, received 0, lost 0, boc 0
Longest wait 0ms for reply type 0, peak Tx sync delay 0, free buffers 50 (min 50), ts 71/0/0
Tx timeouts 0,0,71,0,0,57 last cancelled message type 30 dest 127
=== Network ===
Slowest loop: 20.52ms; fastest: 0.09ms
Responder states: MQTT(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0)
HTTP sessions: 1 of 8
= Ethernet =
State: active
Error counts: 0 0 0 0 0 0
Socket states: 2 2 2 2 2 0 0 0
= WiFi =
Network state is active
Module is connected to access point
Failed messages: pending 0, notready 0, noresp 0
Firmware version 2.1beta2
MAC address 70:04:1d:be:ad:d0
Module reset reason: Power up, Vcc 0.00, flash size 4194304, free heap 224692
WiFi IP address 192.168.2.135
Signal strength 0dBm, channel 10, mode 802.11n, reconnections 0
Clock register 00002002
Socket states: 0 0 0 0 0 0 0 0
=== Multicast handler ===
Responder is inactive, messages received 0, responses 0 -
@buz Can you post your full config.g as well? In the M122 report, it says Ethernet is active, and also the WiFi signal strength is 0dBm. If this is straight after startup, then the Ethernet is not being disabled in your config.g.
Ian
-
@droftarts here is the complete config. thanks
; Configuration file for Duet WiFi (firmware version 3.3)
; executed by the firmware on start-up
; MAY 20th 2023
; generated by RepRapFirmware Configuration Tool v3.3.16 on Sun Apr 09 2023 09:17:40 GMT-0400 (Eastern Daylight Time); General preferences
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"My Printer" ; set printer name; Network
M552 P192.168.1.44 S1 ; enable ethernet
M552 I1 S1 ;enable wifi
M586 P0 S1 ; enable HTTP
M586 P1 S0 ; disable FTP
M586 P2 S0 ; disable Telnet; Drives
M569 P0.0 S0 ; physical drive 0 goes forwards
M569 P0.1 S1 ; physical drive 1 goes forwards
M569 P0.2 S1 ; physical drive 2 goes fowards
M569 P0.4 S1 ; physical drive 3 goes fowards
M584 X0.0 Y0.1 Z0.4 E0.2 ; set drive mapping
M350 X64 Y64 Z64 E32 I0 ; configure microstepping with interpolation
M92 X2517.70259628 Y2517.70259628 Z6400 E810.20408163 ; set steps per mm
M566 X500.00 Y500.00 Z900.00 E800.00 ; set maximum instantaneous speed changes (mm/min)
M203 X1800.00 Y1800.00 Z1000.00 E2500 ; set maximum speeds (mm/min)
M201 X450.00 Y450.00 Z500.00 E1000.00 ; set accelerations (mm/s^2)
M906 X2300 Y2300 Z1230 E1190 I30 ; set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout; Axis Limits
M208 X0 Y0 Z-0 S1 ; set axis minima
M208 X225 Y225 Z95 S0 ; set axis maxima; Endstops
M574 X1 S1 P"!io0.in" ; configure switch-type (e.g. microswitch) endstop for low end on X via pin xstop
M574 Y1 S1 P"!io1.in" ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin ystop
M574 Z1 S1 P"!io2.in" ; configure switch-type (e.g. microswitch) endstop for low end on Z via pin zstop; Z-Probe
M558 P0 H5 F120 T1200 ; disable Z probe but set dive height, probe speed and travel speed
M557 X15:195 Y15:195 S20 ; define mesh grid; Heaters
M308 S0 P"temp0" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin bedtemp
M950 H0 C"out0" T0 ; create bed heater output on bedheat and map it to sensor 0
M307 H0 R0.544 K0.253:0.000 D9.21 E1.35 S1.00 B0 ; disable bang-bang mode for the bed heater and set PWM limit
M140 H0 ; map heated bed to heater 0
M143 H0 S75 ; set temperature limit for heater 0 to 75C
M308 S1 P"temp1" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermistor on pin e0temp
M950 H1 C"out2" T1 ; create nozzle heater output on e0heat and map it to sensor 1
M307 H1 R3.310 K0.538:0.000 D7.28 E1.35 S1.00 B0 V24.3 ; disable bang-bang mode for hot end heater and set PWM limit
M143 H1 S240 ; set temperature limit for heater 1 to 220C; Fans
M950 F0 C"out7" Q500 ; create fan 0 on pin fan0 and set its frequency
M106 P0 S1 H-1 ; set fan 0 value. Thermostatic control is turned off
M950 F1 C"out8" Q500 ; create fan 1 on pin fan1 and set its frequency
M106 P1 S1 H-1 ; set fan 1 value. Thermostatic control is turned off; Tools
M563 P0 S"EXTRUDER" D0 H1 F0 ; 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
M572 D0 S0.03 ; Pressure advance April 17 2020; Input Shaping
;M955 P0 I42 C"spi.cs4+spi.cs3" ; CONFIG ACCELLEROMETER
;M593 P"MZV" F40 ; SET PROFILE OF SHAPER 3/7/2023T0 ; Select the first head