Have you added dynamic wifi SSID and password entry for connecting to an existing network or setting up the AP over USB/Bluetooth?
I’m assuming the commands from USB/bluetooth/wifi are parsed in the same location?
i.e: Add a command like $W=[SSID]/[Pass]/[AP bool]/[DHCP bool]/[ip]/[subnet]/[defgateway]
Where * can be null for nonAP wifi access and relevant settings.
I’ve suggested “/” as a delimiter because it can’t be used for an SSID.
I’ve considered making the implementation myself but was wondering if you got around to it or something similar.
评论 (18)
#2 – Slixxor 于 2019-03-23
>
>
> the [ESPXXX] commands are listed here https://github.com/bdring/Grbl_Esp32/blob/WebUI/doc/Commands.txt
Are these accessible via USB connection?
Maybe my usage is incorrect, if i’m in the Arduino IDE serial monitor and I send [ESP800] I get an error code of 1.
Also, what is the default password for the commands?
#3 – bdring 于 2019-03-23
They will work through the serial port in the IDE.
The default password is “admin”
#4 – Slixxor 于 2019-03-23
>
>
> They will work through the serial port in the IDE.
>
> The default password is “admin”
I’m having dramas of either getting an error:1 or error:2 if I use ‘[‘ on commands or not, I cant get any to work. Can you please provide a single direct example of a command I can send to get it to work.
i.e:
If I send “[ESP105]testpwd=admin” I get error:1
If I send “ESP105testpwd=admin” I get error:2
Reference:
* Set/Get AP SSID
[ESP105]
Sorry mate i think the documentation is unclear.
Once I can get one command working I’ll automate the rest in the .NET application i’m working on.
#5 – bdring 于 2019-03-23
This section of config.h controls the authentication and password.
> #define ENABLE_AUTHENTICATION
>
> #define NAMESPACE “GRBL”
> #define ESPRADIOMODE “RADIO_MODE”
>
> #ifdef ENABLE_AUTHENTICATION
> #define DEFAULTADMINPWD “admin”
> #define DEFAULTUSERPWD “user”;
> #define DEFAULTADMINLOGIN “admin”
> #define DEFAULTUSERLOGIN “user”
> #define ADMINPWDENTRY “ADMIN_PWD”
> #define USERPWDENTRY “USER_PWD”
> #define AUTHENTRYNB 20
> #define MAXLOCALPASSWORD_LENGTH 16
> #define MINLOCALPASSWORD_LENGTH 1
> #endif
With settings above, here are some examples.
> TX: [ESP800]pwd=admin
> RX: FW version:1.1f # FW target:grbl-embedded # FW HW:Direct SD # primary sd:/sd # secondary sd:none # authentication:yes # webcommunication: Sync: 81# hostname:grblesp
>
> TX: [ESP111]
> Rx: 192.168.1.11
>
> Tx: [ESP121]pwd=admin
> Rx: 80
>
> Tx: [ESP121]pwd=admin
> Rx: 80
>
> Tx: [ESP121]81 pwd=admin
> Rx: ok
>
> Tx: [ESP121]pwd=admin
> Rx: 81
I am not sure where you got “testpwd”. If you have some ideas to clarify the commands.txt. please send them and we will update.
#6 – Slixxor 于 2019-03-23
The command for ESP105 is stated as :
* Set/Get AP SSID
[ESP105]{SSID}pwd={admin password}
I was trying to set the SSID as ‘test’
Also, i’m not sure whats going on. I still get error:1 the entire INO does not have any reference to the above code you supplied.
#7 – bdring 于 2019-03-23
The code is not in the .ino file. It is in the config.h file.
You should send….
[ESP105]test pwd=admin
You need a space between the parameters
#8 – bdring 于 2019-03-23
Are you using the WebUI branch of the code?
#9 – Slixxor 于 2019-03-23
? I’m not sure. Do you have a link?
[ESP111] returns error:1
#10 – Slixxor 于 2019-03-23
Sorry for hassling you, You’ve put so much hard work in, now you’re helping plebs get it working ![]()
#11 – Slixxor 于 2019-03-23
https://libraries.sharpsoft.com.au/sharpcnc/dev/libraries.jpg
#12 – Slixxor 于 2019-03-23
Found the link. Sorry I hate the way github is layed out.
#13 – Slixxor 于 2019-03-23
Ok, webui doesnt compile or install
please see error: https://libraries.sharpsoft.com.au/sharpcnc/dev/errorwebui.jpg
#14 – bdring 于 2019-03-23
#15 – Slixxor 于 2019-03-23
Just to confirm, Is it mandatory to have an SD card attached to the chip to get everything to work?
#16 – Slixxor 于 2019-03-23
I have followed the instructions. No go. I think I might can this project. I was planning on adding this to our custom controller board for speed, performance and functionality on our CNC mills we sell but this is proving to be rather challenging.
I’ll pass it onto one of my engineers to try get it working or to bridge your master with the WebUI branch to make it easier to use. We have no need for the webUI features as we have our own GRBL compatible control software i’ve written. Just being able to setup bluetooth and wifi was all that we needed,
Alternatively, happy to make a donation to you via Paypal to Teamviewer into my machine and get it working. Not sure how to private message on GitHub so please send me an email to david@slixxor.com to get in touch.
#17 – bdring 于 2019-03-23
An SD card is not required. We use a slack channel for real time chat. Here a an invite link.
I don’t know why you are having trouble. Most people have no issues if they follow the instructions. It is important to make sure you have the latest Arduino, and Espressif files.
I don’t have time now for a long help session, maybe later next week.
#18 – Slixxor 于 2019-03-23
ok great. when you get a chance.
#1 – luc-github 于 2019-03-22
the [ESPXXX] commands are listed here https://github.com/bdring/Grbl_Esp32/blob/WebUI/doc/Commands.txt