Tutorial - running Duet Wifi 2 in Access Point Mode ?
-
@phaedrux said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:
You may want to try upgrading your firmware and wifi server to the 2.02 release. I think there was a fix for something for the access point mode. Check the release notes.
You should be able to put the bin files on the SD card and add the update command to the config.g. but it really would be easier if you could get a console up.
That sounds promising. There is no "Panel" option for the foreseeable future. How could I get it to update the firmware if I had the files on the SD Card ?
-
https://duet3d.dozuki.com/Wiki/Installing_and_Updating_Firmware#Section_Fallback_procedure_Num_1
The procedure described assumes you have console access, but you might be able to include the M997 S0 in config.g to be run at startup. Then there is another command to install the wifi server. You'll also have to update the DWC files in /www.
-
Can you actually call macros from the config.g via the standard M98 syntax ?
-
well i gave the macro thing a shot sorta - a little different aspect than we were discussing exactly but ....
I created a -- macro -- file in the sys dir/ as follows - ANDROID_HOTSPOT.g
; Android Hotspot - macro to set up access to Android Phone Hotspot test Wifi network
M552 S0
G4 P1000
M587 S"SM-N920PC3B" P"buzzzanga" ; Configure access point. Connect to Android Phone Hotspot
M587
M552 S1
M552then in config.g I have ....
;---------------------------
; Network
;---------------------------
M550 PZaribo220 ; Set machine name
M551 P9662 ; Set password
M552 S0 ; Disable network
G4 1000 ; Pause Machine for 1000 milliseconds
M588 S"EC24EA" ; Flush all known networks
M588 S"EC24F0" ; Flush all known networks
M587 S"SM-N920PC3B" P"buzzinga" ; Configure access point. Connect to Android Phone Hotspot
M552 S1 ; Enable network
M586 P0 S1 ; Enable HTTP
M586 P1 S0 ; Disable FTP
M586 P2 S0 ; Disable TelnetM98 PANDROID_HOTSPOT.g
knowing that it will just execute the standard config.g and ignore my M588 and M587 gcode - i thought maybe calling some gcode from a macro file might change its stubborn mind ...
This is at the point of being infuriating and dumb - this should NOT be this hard to make these types of changes to a configuration ...
Additionally I KNOW it will end up being somethign rather stupid and easy to fix
-
Should work, yup.
May need to specify the full path for it. Are you putting the macros in the macros folder or into the sys folder?
0:/sys/macro.g or what have you
-
Is the light on the wifi module coming on?
-
Now that I think about it I've believe I have always executed the gcode I posted using the USB connection just to get the WiFi connection going so I could then create the various configuration files.
I've don't think I have ever actually tried it from within config.g OR as a macro executed via the DWC.
Frederick
-
@phaedrux said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:
Should work, yup.
May need to specify the full path for it. Are you putting the macros in the macros folder or into the sys folder?
0:/sys/macro.g or what have you
i put this one in the SYS folder ...
when i go to open and edit the macros in Notepad++ in the /macros folder - they dont appear to have a file extension on them, and I am not savvy about using notepad++ and creating a file with NO .extension on it. and since the default path seems to be /sys for the M98 command - i created a .g macro file on /sys ... i didnt specify the full path in the config.g M98 command either
it didnt work - nothing does
-
@fcwilt said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:
Now that I think about it I've believe I have always executed the gcode I posted using the USB connection just to get the WiFi connection going so I could then create the various configuration files.
I've don't think I have ever actually tried it from within config.g OR as a macro executed via the DWC.
Frederick
got a friend who executes a stored macro almost verbatim of the one i Just posted [ because I essentially stole his ] - that he runs off the panelDue when needing to connect at a different locale than HOME.
-
I feel as if the 1st order of business to tackle this issue is - stopping the Duet from connecting to the OLD network. aka - flushing out the stored settings on this indestructible eprom memory ....
M588 from config.g doesnt work - what other options for this are avail ?
remove sd card and do a full reset - reinsert sd card and reboot ? how does that perhaps work - and ... I will say again - this is in-f'ing-sane to have to do THIS ...
If I wanted to hook the printer up to a USB cable... muhhh NVM ....
-
https://duet3d.dozuki.com/Wiki/Gcode#Section_M98_Call_Macro_Subprogram
No path should be fine of located in sys folder.
Extension is optional. Notepad++ defaults should be fine.
I think your best bet at this point is getting it connected to a PC via USB and seeing what's going on in the terminal. Update the firmwares. Take it back to basics and try again.
-
If the wifi module is disabled at start up with M552 S0 it can't connect to anything..
Dc42 will be along eventually in sure and hopefully have a quick fix.
-
@sputnikoc3d This is long shot. You don't by any chance have a config-override.g file do you? If so, does it have any network commands in it? If you did, whatever you change in config.g would be overridden by whatever is in the override file. I've never heard of anyone having network commands in config-override.g hence why it's a long shot, but it would explain why your changes don't "stick".
-
M587, M588 and M589 commands do not work in config.g because the WiFi module isn't enabled until config.g has completed, and only then if there was an M552 command in config.g. So to execute these commands, go to the console using YAT, PanelDue or DWC (if you are connected) and then:
- if you are not connected via DWC, send M552 S0 to start the WiFi module in idle mode
- send the M587, M588 and/or M589 command(s) you need
-
@dc42 said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:
M587, M588 and M589 commands do not work in config.g because the WiFi module isn't enabled until config.g has completed, and only then if there was an M552 command in config.g. So to execute these commands, go to the console using YAT, PanelDue or DWC (if you are connected) and then:
- if you are not connected via DWC, send M552 S0 to start the WiFi module in idle mode
- send the M587, M588 and/or M589 command(s) you need
TY DC42 - that about sums it up. USB or PanelDue of no M5882.
even if I had a paneldue [ and this is based on never having USED one ever before ... how would one MAKE a new macro on hte paneldue - to issue the commands to make a macro and send M587/M588/M589 .... guess there is a interface for typing characters on it ?
Off to the elecreinics store to find a long enough USB cable now that will reach from Intel NUC to Printer. Pronterface ok here for this YAT is just not my cup of tea - at all.
-
@sputnikoc3d any usb terminal emulator program should work. Bear in mind the capitalization thing I posted above.
The paneldue has a on screen keyboard that you can enter commands on and an interface to execute macro files that are already on the SD card.
-
@sputnikoc3d said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:
Off to the elecreinics store to find a long enough USB cable now that will reach from Intel NUC to Printer. Pronterface ok here for this YAT is just not my cup of tea - at all.
Just FYI I use a program called Docklight Scripting when I need to send commands and respond to replies from things like the Duet USB port.
I have gotten so much use out of it over the years using it in all sorts of situations.
Frederick
-
@sputnikoc3d said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:
Pronterface ok here for this YAT is just not my cup of tea - at all.
Bear in mind that Pronterface forces all the characters you send to upper case, which is awkward for entering passwords in particular. That's why we suggest YAT for this purpose.