Switching wifi networks
-
@newbee87 as long as its not too difficult, i would suggest updating to 3.4.2 along with the slightly newer wifi firmware.
Please read the upgrade notes though as there have been a number of changes in the handling of spindles etc -
@newbee87 The commands to set up your networking need to be in config.g, so they run when the board is powered on. Commands sent over USB are lost as soon as you disconnect USB (which is powering it) and then turn on the CNC, which powers the Duet. If they are in your config.g, you don't need to connect via USB to start networking every time.
Post your config.g file, and the commands you are sending over USB.
The 'getting connected' guide explains how to edit your config.g to add the correct commands (step 5, 6 and 7): https://docs.duet3d.com/en/How_to_guides/Getting_connected/Getting_connected_to_your_Duet#h-5-connect-duet-to-network
Also:
WiFi signal strength -68dBm, mode 802.11n, reconnections 0, sleep mode modem
A signal strength of -68dBm is starting to get a bit marginal. This may also give you connection issues.
Ian
-
@newbee87 said in Switching wifi networks:
as soon as I disconnect and power the CNC on I lose connection and lose DWC on the browser.
Please can you explain what you mean by that. What do you disconnect, and what do you power on that wasn't powered before?
-
@dc42 Sorry if that wasn't clear... I power on the power source for the CNC/board... my understanding was you shouldn't have this turned on whilst connected to board via usb?
-
@droftarts thanks, this is all I have in config.g:
; Configuration file for Duet
; executed by the firmware on start-up
; WorkBee Firmware Version 1.1global systemSettingsVersion={1.2}
; Configuration files
M98 P"config-network.g"
M98 P"config-drives.g"
M98 P"config-axes.g"
M98 P"config-axes-limits.g"
M98 P"config-axes-calibration.g"
M98 P"config-axes-endstops.g"
M98 P"config-probe.g"
M98 P"config-spindle.g"
M98 P"config-laser.g"; Other Settings
M453 ; Put the machine into CNC Modes
G90 ; Set absolute coordinates
M140 H-1 ; Disable heated bed
M564 S1 H1 ; Disable jog commands when not homed
M911 S21.0 R23 P"G91 G1 Z3 F1000" ; Configure power loss resume; User Configuration files
M98 P"config-user-settings.g"M501 ; Load Stored Parameters
As for the commands I'm sending over USB/YAT, I'm connecting to my preferred wifi network fine and DWC is working... albeit temporarily!
-
@newbee87 whats in config-network.g?
-
@jay_s_uk In config-network.g we've got:
; Network configuration executed by config.g
; Configure Connection - ENABLE ONLY ONE OF THE BELOW THREE
M552 S1 ; Enable Wifi Network
;M552 S2 ; Enable Access Point Mode
;M552 S1 P192.168.251.2 ; Enable Ethernet - Change IP Address to suit; Network settings
M586 P0 S1 ; Enable HTTP
M586 P1 S0 ; Disable FTP
M586 P2 S0 ; Disable Telnet; Network machine name
M550 P"WorkBee" ; Set machine name -
@newbee87 said in Switching wifi networks:
my understanding was you shouldn't have this turned on whilst connected to board via usb?
You can, but you must be aware of causing a USB ground loop.
https://docs.duet3d.com/en/User_manual/Overview/USB_ground_loops
If you can be sure not to create a ground loop, you can have USB connected when the mainboard is powered from the PSU as well.
This would let you see what is actually happening in normal usage.
The commands in your config-network.g file look correct and should be starting the network and connecting.
Can you also check the LEDs on the board? Particularly can you check that the 5v LED is lit when you are powered from the PSU only.
-
@phaedrux thank you, having looked at the LED's, everything seems to be OK and I have the diagnostic report above. I do however have a flashing red light immediately below the micro USB input... don't know what this is telling me though!
-
@newbee87 said in Switching wifi networks:
I do however have a flashing red light immediately below the micro USB input
Photo? Or can you point it out on the wiring diagram?
You can see a description of the LEDs here: https://docs.duet3d.com/en/User_manual/Troubleshooting/Duet_wont_respond
-
Erm, I can't see any references to the handling of spindles in the upgrade notes!
I have upgraded to 3.4.2 but not run the machine yet. But I am going to do that later today or tomorrow, so I would appreciate it if you could point to where these specific changes are, please?
Thank you
-
@nightowl he was upgrading from 3.3 to 3.4 and there were quite a few changes. 3.4 to 3.4.X there weren't any
-
Awesome, thank you @jay_s_uk
That'll teach me to read things properly!