luc-github / ESP3D

FW for ESP8266/ESP8285/ESP32 used with 3D printer
GNU General Public License v3.0
1.77k stars 466 forks source link

[BUG]<ESP3D-2.1 AUTHENTICATION_FEATURE> #505

Closed vashilov closed 4 years ago

vashilov commented 4 years ago

If I enable AUTHENTICATION_FEATURE, I can not connect to default ESP3D AP.

If I use default Firmware, config ESP to connect to my Wifi network, it fine. When I update Firmware from .bin (enable AUTHENTICATION_FEATURE) on web interface, ESP do not connect to my wifi.

P.S. AUTHENTICATION_FEATURE it is login and password to web interface?

Screenshots Снимок экрана от 2020-09-17 11-44-20 Снимок экрана от 2020-09-17 11-44-40

ESP3D Firmware: SDK: 2.2.2-dev(38a443e) Flash Size: 4.00 MB FW version: 2.1.0.b39 ESP8266/8586 WebUI version: 2.1b65

github-actions[bot] commented 4 years ago

Thank your for submiting, please be sure you followed template or your issue may be dismissed.

vashilov commented 4 years ago

Sorry if I did something wrong. But maybe it will be useful to someone.

vashilov commented 4 years ago

P.S. Discord https://discord.gg/h2pkaf not work.

luc-github commented 4 years ago

Yes Authentication Feature has no impact on wifi connection itself

Thank you for pointing out - new link never ending is now https://discord.gg/Z4ujTwE

vashilov commented 4 years ago

But I dont connect to ESP on wifi and ESP not connect to my router. It is only for me bug? ESP3D dont work for me with AUTHENTICATION_FEATURE

vashilov commented 4 years ago

I only uncomment AUTHENTICATION_FEATURE

luc-github commented 4 years ago

as requested in template: ESP3D Firmware:

Target Firmware:

Board used (please complete the following information):

vashilov commented 4 years ago

ESP3D Firmware:

ESP core version: 2.7.4 ???
Version:2.1.0.b39
Web UI Version:2.1b65
Wifi mode:STA and CLIENT
Flash method: Arduino Ide 1.8.9
uncommet #define AUTHENTICATION_FEATURE

Target Firmware:

Name: Marlin
Version 2.0

Board used (please complete the following information):

MCU: ESP8266EX
Name:clone NodeMCU and clone Wemod D1 mini
Flash size: 4M: 2M/2M
vashilov commented 4 years ago

Please send me bin file for ESP8266. I upload it on my ESP3D from web.

luc-github commented 4 years ago

I cannot reproduce your issue with same hardware image

Also you use old Fw - please use latest one from git

vashilov commented 4 years ago

I use FW from default branch 2.1. Try now from master.

Thanks for answer.

luc-github commented 4 years ago

yes default branch is 2.1 is correct - but your wrote Version:2.1.0.b39 so you use old version

vashilov commented 4 years ago

I download source from branch is 2.1. Снимок экрана от 2020-09-17 14-01-09 Screenshot_20200917-140712_Chrome

What I do wrong?

vashilov commented 4 years ago

You use ESP3D-2.1-devt ? Now I use it. AUTH enable and my phone dont connect to wifi Снимок экрана от 2020-09-17 14-27-51

AUTH comment Снимок экрана от 2020-09-17 14-29-53 Screenshot_20200917-143024_Chrome

vashilov commented 4 years ago

Please send me bin file for ESP8266. I upload it on my ESP3D from web.

vashilov commented 4 years ago

maybe I need to fix something else? For example, admin password and the like.

luc-github commented 4 years ago

No sorry I do not send binary on demand, if I start to do, every one will ask for it, and I have no reason and no time to server every one.

how come after flashing you do not have index.html anymore ? and man you said you flash with Flash size: 4M: 2M/2M: but your UI show you use 3M for flash...

type and show the output of : [ESP420]plain [ESP800] [ESP410]plain

vashilov commented 4 years ago

[ESP420]plain Chip ID: 12554327 CPU Frequency: 160Mhz Free memory: 36.51 KB SDK: 2.2.2-dev(38a443e) Flash Size: 4.00 MB Available Size for update: 536.50 KB(Ok) Available Size for SPIFFS: 2.81 MB Baud rate: 115200 Sleep mode: Modem Channel: 11 Phy Mode: 11g Web port: 80 Data port: 8888 Hostname: MYESP Active Mode: STA (A4:CF:12:BF:90:57) Connected to: Cisco5 Signal: 66% IP Mode: DHCP IP: 192.168.10.138 Gateway: 192.168.10.1 Mask: 255.255.255.0 DNS: 10.5.0.3 Disabled Mode: AP (A6:CF:12:BF:90:57) Captive portal: Enabled SSDP: Enabled NetBios: Disabled mDNS: Enabled Web Update: Enabled Pin Recovery: Disabled Authentication: Disabled Target Firmware: Marlin M117 output: Enabled Notifications: Disabled Serial output: Enabled Web socket output: Enabled TCP output: Enabled FW version: 2.1.1.b8 ESP8266/8586

[ESP800] FW version:2.1.1.b8 # FW target:marlin # FW HW:Serial SD # primary sd:none # secondary sd:none # authentication:no # webcommunication:Sync:81:192.168.10.138 # hostname:MYESP

[ESP410]plain Cisco5 78 Secure ASUS-X 34 Secure PulsPass 8 Secure

vashilov commented 4 years ago

how come after flashing you do not have index.html anymore ?

I try install FW many times. I have no index.html on screen, it is only cache. But in brunch 2.1 FW version is 2.1.0.b39

Maybe i mistake))

luc-github commented 4 years ago

no, your branch version is not 2.1.0.b39 - it is 2.1.1.b8 as show in [ESP800] (which is correct) where do you see the 2.1.0.b39 ?

vashilov commented 4 years ago

I wrote

You use ESP3D-2.1-devt ? Now I use it.

It ESP3D-2.1-devt branch.

vashilov commented 4 years ago

Now info from 2.1 brach [ESP420]plain Chip ID: 12554327 CPU Frequency: 160Mhz Free memory: 36.35 KB SDK: 2.2.2-dev(38a443e) Flash Size: 4.00 MB Available Size for update: 535.87 KB(Ok) Available Size for SPIFFS: 1.86 MB Baud rate: 115200 Sleep mode: Modem Channel: 11 Phy Mode: 11g Web port: 80 Data port: 8888 Hostname: MYESP Active Mode: STA (A4:CF:12:BF:90:57) Connected to: Cisco5 Signal: 72% IP Mode: DHCP IP: 192.168.10.138 Gateway: 192.168.10.1 Mask: 255.255.255.0 DNS: 10.5.0.3 Disabled Mode: AP (A6:CF:12:BF:90:57) Captive portal: Enabled SSDP: Enabled NetBios: Enabled mDNS: Enabled Web Update: Enabled Pin Recovery: Disabled Authentication: Disabled Target Firmware: Marlin M117 output: Enabled Notifications: Disabled Serial output: Enabled Web socket output: Enabled TCP output: Enabled FW version: 2.1.0.b39 ESP8266/8586 [ESP800] FW version:2.1.0.b39 # FW target:marlin # FW HW:Serial SD # primary sd:none # secondary sd:none # authentication:no # webcommunication:Sync:81:192.168.10.138 # hostname:MYESP [ESP410]plain Cisco5 76 Secure PulsPass 20 Secure ASUS-X 34 Secure

vashilov commented 4 years ago

Ok. If I edit anywhith in config.h, example comment //#define DIRECT_PIN_FEATURE I can not connect ti wifi ((

luc-github commented 4 years ago

Sorry man but what are you doing exactly ? you looks changing branch version all the time I think you mess up your source code and changed more code than what you describe - AUTHENTICATION_FEATURE and DIRECT_PIN_FEATURE have nothing related to WiFi neither WiFi Connection at boot time - so changing them have 0 impact on wifi connection

1 - I suggest you to clean / delete all code 2 - to download latest code from my repository branch 2.1 3 - change and do not copy from else where the AUTHENTICATION_FEATURE 4 - reflash using 4M with 2M SPIFFS 5 - do a [ESP444]RESET 6 - [ESP100] 7 - [ESP101] 8 - [ESP103]STA 9 - [ESP104]DHCP 10 - [ESP444]RESTART

vashilov commented 4 years ago

you looks changing branch version all the time

I use 2.1 (2.1.0.b39). You say me, it is old, I try use ESP3D-2.1-devt.

I suggest you to clean / delete all code

I already try it many times((

I do from 1 to 10: 1-4 ok 5-10 -> Incorrect Cmd (if //#define AUTHENTICATION_FEATURE 5-10 is Ok)

But [ESP420]plain is Ok

vashilov commented 4 years ago

Any idea? If it just for me close disput.

Any people enable #define AUTHENTICATION_FEATURE?

luc-github commented 4 years ago

I use 2.1 (2.1.0.b39). is not latest 2.1 branch version when enable #define AUTHENTICATION_FEATURE you need to provide admin password

5 - [ESP444]RESET pwd=admin 6 - [ESP100] pwd=admin 7 - [ESP101] pwd=admin 8 - [ESP103]STA pwd=admin 9 - [ESP104]DHCP pwd=admin 10 - [ESP444]RESTART pwd=admin

vashilov commented 4 years ago

Oh ok. I mean AUTHENTICATION_FEATURE is password from web, no from cmd(( I wrote

P.S. AUTHENTICATION_FEATURE it is login and password to web interface?

ESP3D have password for WEB or no?

Wifi dont work any way for me!

Снимок экрана от 2020-09-17 16-27-44

Снимок экрана от 2020-09-17 16-28-31

vashilov commented 4 years ago

I can edit ESP name, password, mode -> wifi work If I comment or uncomment #define -> wiifi not connect Maybe is problem of my two ESP.

P.S. 2.1.0.b39 is latest version download from default 2.1 branch)) https://github.com/luc-github/ESP3D-WEBUI/tree/2.1 P.P.S. I don know about "Tags". I need download from https://github.com/luc-github/ESP3D/tree/v2.1.1.1?

vashilov commented 4 years ago

When ESP restarted I can connect to it for few miliseconds. Снимок экрана от 2020-09-17 16-54-49

luc-github commented 4 years ago

1 - you are not using correct source : https://github.com/luc-github/ESP3D/blob/2.1/esp3d/config.h#L22 2 - I can edit ESP name, password, mode where are you doing that ? you can only edit ESP Name in config.h

vashilov commented 4 years ago

DEFAULT_AP_SSID DEFAULT_ADMIN_PWD DEFAULT_WIFI_MODE

vashilov commented 4 years ago

If I open esp3d folder In config.h I see #define FW_VERSION "2.1.1.b8"

If I click Download Снимок экрана от 2020-09-17 17-04-13

I have 2.1.0.b39. ???

Git clone fine work.

vashilov commented 4 years ago

ESP3D have password for WEB or only cmd?

luc-github commented 4 years ago

DEFAULT_AP_SSID is for ESP3D AP mode not for Station mode DEFAULT_ADMIN_PWD is for Authentication feature (web - telnet - serial) not for AP neither STA mode

So your credential are wrong for sure and also you need to do a [ESP444]RESET to apply them or they are not

so if your version is 2.1.0.b39 it means the flash did not succeed because it should be 2.1.1.b8 or you never closed arduino ide when you updated code to "2.1.1.b8 and ide still use old cache

luc-github commented 4 years ago

also these define are after the important line : //Do not Edit after this line //////////////////////////////////////////////

vashilov commented 4 years ago

On 2.1.1.b8 AUTHENTICATION_FEATURE no work. I update FW. And cmd use password.

Снимок экрана от 2020-09-17 17-12-32

DEFAULT_AP_SSID is for ESP3D AP mode not for Station mode DEFAULT_ADMIN_PWD is for Authentication feature (web - telnet - serial) not for AP neither STA mode

I understand that.

vashilov commented 4 years ago

//Do not Edit after this line

I understand that. It for experement only!!

vashilov commented 4 years ago

Please download zip file version 2.1 from web site.

What version you have in zip?

If I use git clone, I have 2.1.1.b8. If download zip 2.1.0((

vashilov commented 4 years ago

I tried using Visual Studio whith Platformio. All work fine.

Sorry man!!!

But try download zip file version 2.1 from web site.

luc-github commented 4 years ago

image

vashilov commented 4 years ago

Yes. I do this. But not correct files inside.

My friend download zip, in him zip old FW too.

vashilov commented 4 years ago

On mobile too.

Screenshot_20200918-103952_Chrome.jpg Screenshot_20200918-104051_Cx File Explorer.jpg Screenshot_20200918-104102_Cx File Explorer.jpg

luc-github commented 4 years ago

Yes I have reproduced it - looks like github website link to release instead of git - weird...

luc-github commented 4 years ago

I have workaround the git issue I think

I have no idea why github mess up like this...

github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.