Station mode connect to WiFI constantly broken(bug?)?

FrenkR
Posts: 44
Joined: Thu Dec 04, 2014 9:25 am

Station mode connect to WiFI constantly broken(bug?)?

Postby FrenkR » Sun Dec 21, 2014 1:02 am

Hi,
I have buffalo 802.11g AP. PC is normally connected and WiFI is working all the time. Using ESP-03 version(0.9.3/0.9.4 SDK), I am playing wtih STA mode and client TCP connection to TCP server in a PC.
in user_init() I did following steps:
- configure station mode
- disable DHCP, set static IP
- disable autoconnect
- connect to AP
- run timer to trigger tcp connection and send data
---
after timeout(outside user_init()), steps are as follows:
- register connected callback and connect to TCP server (espconn_connect())
- on connected callback, register send, receive and disconnect callback

when running this application, connection is very unstable. after checking "osprintf" output, I see that connection to wifi is broken very often. In this case system scans wifi again and again, locates correct channel, and then connection does not succeed. Status of connection is STATION_CONNECT_FAIL, STATION_WRONG_PASSWORD
or STATION_NO_AP_FOUND. After some time it connects again.

Is there some special procedure that could be used to more precisely check(debug) what is going when connecting to AP?
Rgds,
Frenk

Her Mary
Posts: 537
Joined: Mon Oct 27, 2014 11:09 am

Re: Station mode connect to WiFI constantly broken(bug?)?

Postby Her Mary » Mon Dec 22, 2014 2:45 pm

I have same problem on ESP-03..
But I tried ESP-01, it‘s fine... Maybe you can try it on some other module.

ESP_Stanza
Posts: 10
Joined: Fri Oct 31, 2014 9:10 pm

Re: Station mode connect to WiFI constantly broken(bug?)?

Postby ESP_Stanza » Mon Dec 22, 2014 6:06 pm

ESP01-ESP-12 modules are not designed by Espressif.
Until now only ESP-WROOM-01 & ESP-WROOM-02 are designed by Espressif which are showed in our user guide.
Now we are planning to produce some samples for customer testing.
And we will also begin ESP8266 module certification program in Jan 2015 as we announced. http://bbs.espressif.com/viewtopic.php?f=20&t=89

As I understand, ESP01-ESP12 are designed for different use and they have different features. You'd better confirm with the seller.

FrenkR
Posts: 44
Joined: Thu Dec 04, 2014 9:25 am

Re: Station mode connect to WiFI constantly broken(bug?)?

Postby FrenkR » Thu Dec 25, 2014 12:21 am

HI,
I just bought them from ebay. How can I know if it is genuine (or if schematic is ok) or not? On ebay, they all looks the same?

ESP_Stanza
Posts: 10
Joined: Fri Oct 31, 2014 9:10 pm

Re: Station mode connect to WiFI constantly broken(bug?)?

Postby ESP_Stanza » Thu Dec 25, 2014 6:13 pm

We have just obtained ESP-01~ESP12 from the designer.

We will first test ESP-03 to check the problem and give you answer.

costaud
Posts: 138
Joined: Fri Oct 24, 2014 7:40 pm

Re: Station mode connect to WiFI constantly broken(bug?)?

Postby costaud » Wed Dec 31, 2014 2:51 am

We will arrange a test for this!!!

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Station mode connect to WiFI constantly broken(bug?)?

Postby ESP_Faye » Wed Dec 31, 2014 11:08 am

@FrenkR , how about this issue now, does it still bother you ?
Could you please try it with another module or ask your friend to try it with another module ?

FrenkR
Posts: 44
Joined: Thu Dec 04, 2014 9:25 am

Re: Station mode connect to WiFI constantly broken(bug?)?

Postby FrenkR » Wed Dec 31, 2014 5:06 pm

I also changed a module and restructured my code. Also updated SDK to a latest 0.9.5 b1. It is much better now. After I finish my code, I will do some more long-term tests and if this will be an issue, I will reopen this case again. Thank you.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Station mode connect to WiFI constantly broken(bug?)?

Postby ESP_Faye » Wed Dec 31, 2014 6:05 pm

OK . Thanks for your interest in ESP8266 ! Please feel free to let us know if you have any question~ ;)

Who is online

Users browsing this forum: No registered users and 207 guests