Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form Submission Fails ~~On Success~~ #2

Open
ishotjr opened this issue Jul 18, 2015 · 11 comments
Open

Form Submission Fails ~~On Success~~ #2

ishotjr opened this issue Jul 18, 2015 · 11 comments
Assignees
Labels

Comments

@ishotjr
Copy link
Member

ishotjr commented Jul 18, 2015

Summary

Connecting to ssid appears to result in inability to return response to browser on 192.168.4.1.

Steps to Repro

  1. enter correct ssid and password
  2. submit
  3. connection status page not displayed because 192.168.4.1 no longer accessible

2015-07-18 12 37 35

Technical Details

@ishotjr
Copy link
Member Author

ishotjr commented Jul 20, 2015

@juliendarrah Looks like I may have been mistaken - the connection was not successful - perhaps related to #1 i.e. non-alpha characters in my password:

Toggle
Start Configuration AP Mode
AP Mode Connected
AP Mode Connected
Data Received
AP Mode Disconnected
Data Received
AP Mode Disconnected
AP Mode Connected
Data Received
AP Mode Disconnected
INVALID PASSWORD
 ets Jan  8 2013,rst cause:1, boot mode:(3,7)

load 0x40100000, len 30768, room 16
tail 0
chksum 0x5a
load 0x3ffe8000, len 1332, room 8
tail 12
chksum 0x66
ho 0 tail 12 room 4
load 0x3ffe8540, len 7804, room 12
tail 0
chksum 0xd7
csum 0xd7
rl▒

@ishotjr ishotjr changed the title Form Submission Fails On Success Form Submission Fails ~~On Success~~ Jul 20, 2015
@juliendarrah
Copy link
Contributor

This issue is somewhat related to issue-1.
I tested with an invalid SSID (containing non alphanumeric characters) and got a response page with invalid SSID name.
I then used a valid SSID with an invalid password and never got the response page back.
Need to check if we need a longer timeout. Right now it is set to 10sec.

@ishotjr
Copy link
Member Author

ishotjr commented Jul 21, 2015

@juliendarrah Agreed; my case was the latter: pure alpha SSID but special chars in the password (to be clear, password was correct (I tried twice, pasting the second time) - only "invalid" in terms of the (erroneous) limitations of the system! 😏 ). In the case of SSID with non-alphanumeric characters, I got #1. :bowtie: 📋

@juliendarrah
Copy link
Contributor

Did some more investigating last night, want to post it before I forget...

I did a few pass with the wrong SSID and it always show the response page back.
But when the password is wrong the connection seems to get lost because I get a reconnect on it.
see below:

AP Mode Connected
Data Received
Data Received
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Checking Connection Status...
INVALID PASSWORD
AP Mode Reconnected

@juliendarrah
Copy link
Contributor

Some time it works....

AP Mode Connected
Data Received
Data Received
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Checking Connection Status...
INVALID PASSWORD
Data Sent
AP Mode Disconnected

@juliendarrah
Copy link
Contributor

Even with a valid password, sometime there is a reconnect...

AP Mode Connected
Data Received
Data Received
Connecting...
Connecting...
Connecting...
Connecting...
Connecting...
Checking Connection Status...
CONNECTED!
AP Mode Reconnected

@juliendarrah
Copy link
Contributor

The error occurs right after a sent. According to the documentation of the ESP api, when there is an error the recon callback function is called.
I'm not sure to why it happens and how to resend the data.
Need to think about that one more...

@juliendarrah
Copy link
Contributor

Did some more test.
I printed out the error returned by the reconnection callback: ESPCONN_TIMEOUT - Timeout.
So I tried a few things without success.
I decided to look for the latest release of the software sdk on Expressif website.
I installed the new release (ESP8266 SDK(esp_iot_sdk_v1.2.0_15_07_03))
There was something in the release notes that I thought might be related:
Item 5.Revise the scan issue that may cause Wi-Fi connection break.

So I tried it and it does respond faster and also I was not able to get a timeout.
I'm gonna run some more tests before confirming the solution to this issue.
Stay posted...

@juliendarrah
Copy link
Contributor

The Release v1.2.0 of the SDK doesn't solve the timeout issue...
But there is a difference in the speed the response is loaded back the the client.
Here remember that the esp module is the server.
Still need to investigate...

@ishotjr
Copy link
Member Author

ishotjr commented Jul 23, 2015

@juliendarrah I set up a guest network on my Airport to allow testing with all-alpha SSID/password; here are the results from the TinyMCU/breadboard ESP:

Toggle
Start Configuration AP Mode
AP Mode Connected
AP Mode Connected
Data Received
AP Mode Disconnected
Data Received
AP Mode Disconnected
AP Mode Connected
Data Received
AP Mode Disconnected
CONNECTION TIMED OUT
 ets Jan  8 2013,rst cause:1, boot mode:(3,7)

load 0x40100000, len 30768, room 16
tail 0
chksum 0x5a
load 0x3ffe8000, len 1332, room 8
tail 12
chksum 0x66
ho 0 tail 12 room 4
load 0x3ffe8540, len 7804, room 12
tail 0
chksum 0xd7
csum 0xd7
rl¶

@ishotjr
Copy link
Member Author

ishotjr commented Jul 23, 2015

@juliendarrah Here are the results from the ba0sh1/perfboard ESP:

Toggle
Start Configuration AP Mode
AP Mode Connected
AP Mode Connected
AP Mode Connected
AP Mode Connected
Data Received
AP Mode Disconnected
Data Received
AP Mode Disconnected
AP Mode Disconnected
AP Mode Disconnected
AP Mode Connected
Data Received
AP Mode Disconnected
CONNECTION TIMED OUT
 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 30768, room 16
tail 0
chksum 0x5a
load 0x3ffe8000, len 1332, room 8
tail 12
chksum 0x66
ho 0 tail 12 room 4
load 0x3ffe8540, len 7804, room 12
tail 0
chksum 0xd7
csum 0xd7
¶¶5¶MEM CHECK FAIL!!!
drl¶

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants