Tutorial - running Duet Wifi 2 in Access Point Mode ?
-
because I currently have wifi and router issues via my normal provider; Im trying to connect to my Duet via alternative means.
-
Preferred to use phone as hotspot - NUC is already connected - use Intel NUC to slice and send files to Duet - still use internet.
-
As fallback method - since #1 above is NOT working - setup Duet in Access Point Mode and connect the Intel NUC to it temporarily to send files and execute print.
Cant seem to get either option to function as desired atm ...
I am currently putting my SD Card into a USB stick and editing the config.g file - then restarting the Duet / printer. All my methods so far seem to be flawed not sure wth is going wrong
-
-
Sorry, I misunderstood your first post.
I just tested using M588 "*" to remove all networks and it seems to have worked. How did you send the command? I used the PanelDue console.
I also tested joining a hotspot on my iphone 6s and it connected.
This was on firmware 2.02 and wifi server 1.22.6. What versions are you running?
-
Seems as if the Duet is STILL ignoring my M588 S"SSID" command on reboots and conecting to the nonfunctioning router - it can act as a router - but has no access to Internet and the ISPs DNS - and therefore no functional routing essentially.
Im finding the Duet on the OLD network still by using the FindMyDuet android app on my phone and connect the phone to the old network
-
I do not have paneldue [ biggest mistake of my entire 3d printer career obviously ] [ that or not choosing wifi over ether net wired connectivity ] - ive tried sending via the config.g in startup boot
;---------------------------
; Network
;---------------------------
M550 PZaribo220 ; Set machine name
M551 P9662 ; Set password
M552 S1 ; Enable network
M588 S"EC24EA" ;Flush all known networks
M588 S"SM-N920PC3B" ;Flush all known networks
M588 S"SMA iPad" ;Flush all known networks
;M587 S"EC24EA" P"" ; Configure access point. Connect to Cox Wifi at 2.4Ghz
M587 S"SM-N920PC3B" P"" ; Configure access point. Connect to Android Phone Hotspot
;M587 S"SMA iPad" P"" ; Configure access point. Connect to Apple iPad Phone Hotspot
M586 P0 S1 ; Enable HTTP
M586 P1 S0 ; Disable FTP
M586 P2 S0 ; Disable TelnetFor clarifications ...
Can I even do this via the config.g [ issue M588 ] ?
Additionally - can I use M588 "*" - literally - exact text ? as the doczuki gcode references are M588 S"YourSSIDsHere"
-
Ive unplugged the old wifi router that Duet insists on connecting to. Now - the Blue LED that normally illuminates on my Duet for the wifi connection is DARK ... and I cannot find the baord anywhere - it isnt trying to connect to my phone either ... all the other devices in the house are - from 300 feet away too ..
-
;---------------------------
; Network
;---------------------------
M550 PZaribo220 ; Set machine name
M551 P9662 ; Set password
M588 S"*" ;Flush all known networks
M552 S1 ; Enable network
;M587 S"EC24EA" P"nunya" ; Configure access point. Connect to Cox Wifi at 2.4Ghz
M587 S"SM-N920PC3B" P"nunya2" ; Configure access point. Connect to Android Phone Hotspot
;M587 S"SMA iPad" P"nunya3" ; Configure access point. Connect to Apple iPad Phone Hotspot
M586 P0 S1 ; Enable HTTP
M586 P1 S0 ; Disable FTP
M586 P2 S0 ; Disable Telnetabove is the latest iteration of the network section of my config.g .... now the led for the wifi module just flashes once and then does nothing - goes dark . . . its not trying to do anything
-
Can you connect via USB so you can send commands via the console and get back responses?
What if you break up the commands between boots. So the first power on you have M588 "" in config.g. Wait for it to finish booting, then power down, remove M558 "" from config.g and boot up again.
-
@phaedrux said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:
So with access point mode the printer doesn't connect to your phones hotspot. Rather the Duet creates a wireless network that your phone then connects to.
To configure access point mode you use M589
https://duet3d.dozuki.com/Wiki/Gcode#Section_M589_Configure_access_point_parameters
M589: Configure access point parameters
Parameters:S"ccc" The SSID that the WiFi interface should use when it is commanded to run as an access point
P"ccc" The WiFi password
Inn.nn.nn.nn The IP address to use
Cnn The WiFi channel to use (optional)
Note: WPA2 security will be used by default.And use M552 S2 to enable it.
Snnn 0 = disable networking, 1 = enable networking as a client, 2 = enable networking as an access point , -1 = disable WiFi module
On the Duet 2 WiFi running firmware 1.19 and later, the IP address is set in the M587 command when you configure the access point details.
https://duet3d.dozuki.com/Wiki/Gcode#Section_M552_Set_IP_address_enable_disable_network_interface
Ok well nothing on the connecting to the phone worked [ andoid galaxy S9 ] ... so now I shall try my hand at the access point mode - not very optomistic ...
Q1 - i can select just any IP address off the private networks aka 192.168.1.xxx ?
Q2 - Does the M552 S2 gcode in config .g come before or after the M589 et al ... ?
- this speaks to my point above prior about 97% documented info - leaving out niggling little details that waste users hours of time sorting ...
-
@phaedrux said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:
Can you connect via USB so you can send commands via the console and get back responses?
What if you break up the commands between boots. So the first power on you have M588 "" in config.g. Wait for it to finish booting, then power down, remove M558 "" from config.g and boot up again.
Its possible yes ... Id have to download YAT or Pronterface again over 2G wireless - AND - relocate the printer for the lentght of the USB with the small conector on it for the duet board - to reach. Giant PITA ...
-
@sputnikoc3d The ip you choose for the Duet to use is irrelevant since it acts as the router in this case and is creating the network, so it has no way to conflict with any other network. And since you'll be joining the network by SSID you don't even need to know what the IP is to connect to it.
I had M589 before M552 S2, but I'm not sure if it matters.
-
@phaedrux said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:
@sputnikoc3d The ip you choose for the Duet to use is irrelevant since it acts as the router in this case and is creating the network, so it has no way to conflict with any other network. And since you'll be joining the network by SSID you don't even need to know what the IP is to connect to it.
I had M589 before M552 S2, but I'm not sure if it matters.
Perfect ... thank you ....
Also in regards to the GCODE Doczuki and some of the commands / syntax as posted - its weird to me that some parameter require " " quotes and other - apparently like I for IP ... Do Not
M589 S"DuetWiFi" P"BlahBlahBlah" I192.168.1.101
or ... ????
M589 S"DuetWiFi" P"BlahBlahBlah" I"192.168.1.101"
the differences leads a novice like myself second guessing - and if this didnt work would have me redoing my config.g to try either or - vs. it being common / same - throughout ... and specified and noted - and where it differs like it does in the docs to be noted and marked as such ....
-
Yes, sending natural language to machines is always a little problematic.
https://duet3d.dozuki.com/Wiki/Gcode#Section_Quoted_strings
Quoted strings
In RepRapFirmware, quoted strings are permitted anywhere a string parameter is expected. This allows file names, WiFi passwords etc. to contain spaces, semicolons and other characters that would otherwise not be permitted. Double-quote characters are used to delimit the string, and any double-quote character within the string must be repeated.Unfortunately, many gcode sender programs convert all characters to uppercase and don't provide any means to disable this feature. Therefore, within a quoted-string, the single-quote character is used as a flag to force the following character to lowercase. If you want to include a single quote character in the string, use two single quote characters to represent one single quote character.
Example: to add SSID MYROUTER with password ABCxyz;" 123 to the WiFi network list, use command:
M587 S"MYROUTER" P"ABCxyz;"" 123"
or if you can't send lowercase characters:M587 S"MYROUTER" P"ABC'X'Y'Z;"" 123"
At least in the Gcode wiki the examples do include the quotes where they are needed
S"ccc"
-
Just tried this ... nothing is clearing out the boards eProm config data - is the only thing I can currently ascertain here ...
This didnt work
;---------------------------
; Network
;---------------------------
M550 PZaribo220 ; Set machine name
M551 P9662 ; Set password
M588 S"*" ; Flush all known networks
M589 S"DuetWiFi" P"9662" I192.168.1.101 ; AccessPointMode
M552 S2 ; Enable network
;M587 S"EC24EA" P"nunya" ; Configure access point. Connect to Cox Wifi at 2.4Ghz
;M587 S"SM-N920PC3B" P"nunya2" ; Configure access point. Connect to Android Phone Hotspot
;M587 S"SMA iPad" P"nunya3" ; Configure access point. Connect to Apple iPad Phone Hotspot
M586 P0 S1 ; Enable HTTP
M586 P1 S0 ; Disable FTP
M586 P2 S0 ; Disable Telnet -
Alright, try this. I think there may be a problem trying to send M558 "*" from config.g
Create a macro called clearnetworks, then in that macro have M588 "*"
Then at the end of config.g include M98 Pclearnetworks
I'm also starting to wonder if this needs to be sent while the network module is active in normal M552 S1 mode.
-
would think calling the macro at the beginning of the fonfig.g would be required no - not AFTER Im trying to set all the other networking parameters ?
-
I'm thinking of it as separate operations which need to be completed independently.
Again pure speculation on my part. That's just what I would try next.
-
@phaedrux said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:
Alright, try this. I think there may be a problem trying to send M558 "*" from config.g
Create a macro called clearnetworks, then in that macro have M588 "*"
Then at the end of config.g include M98 Pclearnetworks
I'm also starting to wonder if this needs to be sent while the network module is active in normal M552 S1 mode.
No S parameter needed for this right - just M588 "*" ....
-
Sorry about that. I neglected to include the S in my post above. Syntax would be M558 S"*"
-
If you know the exact name of the wifi network that needs to be removed, try using the full name.
-
@phaedrux said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:
If you know the exact name of the wifi network that needs to be removed, try using the full name.
Ive already tried that 10x