Tutorial - running Duet Wifi 2 in Access Point Mode ?
-
@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
-
@sputnikoc3d said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:
@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
-
No Joy - it doesnt load as a visible Wifi Access point that any of my devices can see ... WiFi LED is dead .... just a milliecond flash then dark on boot/reboots.
It only want that damn eprom embedded wifi router .... friggen annoying
-
set it back to the router with no current net access .... and it reboots and connects to it just fine - it doesnt work ... but it connects to it ....
So the netowrking connectivity to the non functioning network - is embedded on the board and I cant flush it out via the M588 "ANYTHING" command ... other options besides M588 ?
-
I dunno... even with other networks remembered it should still be possible to add a new network and connect to it. Do you have another phone to test with?
-
well thanks for trying ....
hoping some one else stumbles into this thread with a solution I guess
-
trying to post but stupid akismet is spam blocking me from posting in my own thread ....
Ridiculous ...
-
Ive now tried this as well - M552 S0 and then restarting it ... Nothing seems to flush this things infernal memory.
M552 S0 ; Disable network
G4 1000 ; Pause Machine for 1000 milliseconds
M552 S1 ; Enable network
M588 S"EC24EA" ; Flush all known networks
M588 S"EC24F0" ; Flush all known networks
M588 S"*" ; Flush all known networks
M587 S"SM-N920PC3B" P"Ninya1" ; Configure access point. Connect to Android Phone Hotspot
;M587 S"EC24EA" P"Ninya" ; Configure access point. Connect to Cox Wifi at 2.4Ghz
;M589 S"DuetWiFi" P"9662" I192.168.1.101 ; Access Point Mode
;M587 S"SMA iPad" P"Ninya2" ; Configure access point. Connect to Apple iPad Phone Hotspotit still keeps connecting to SSID EC24EA if it is broadcasting/powered on and when it isnt - it just fails and does nothing
-
Hi,
I'm confused.
To connect the Duet to a "hotspot" you need to use "client" mode (M552 S1).
In this mode you use M587 and M588 to maintain the list of access point SSIDs you wish to connect to.
To allow a client device to connect directly to your Duet you need to use "access point" mode (M552 S2).
In this mode you use M589 to configure the Duet as an access point".
Which are you trying to do?
Frederick