Problems connecting to WiFi

deti__
Posts: 8
Joined: Sun Jan 08, 2017 11:35 pm

Re: Problems connecting to WiFi

Postby deti__ » Mon Jan 09, 2017 7:41 am

Checked out everything again and still there is no difference.

Deti

MartyMacGyver
Posts: 56
Joined: Sun Dec 18, 2016 9:17 pm

Re: Problems connecting to WiFi

Postby MartyMacGyver » Mon Jan 09, 2017 12:26 pm

Interesting... I'm doing tests based on a totally fresh install of everything from Github, etc. as of a few hours ago, on a machine that didn't previously have any of this on it.

Working through the esp-idf/examples/03_http_request example, I'm encountering the same exact issue:

Code: Select all

I (x) wifi: n:11 0, o:11 0, ap:255 255, sta:11 0, prof:1
I (x) wifi: state: init -> auth (b0)
I (x) wifi: state: auth -> init (2)
My SSID and password are normal ASCII and shouldn't be an issue - other devices (Particle Photon, Raspberry Pi, various appliances, phones, laptops and so on) have no problem connecting to this.

I even added a "esp_wifi_set_country(WIFI_COUNTRY_US)" call just in case that would affect things - no change.

Perhaps this is a new issue? Has this worked for others previously?

MartyMacGyver
Posts: 56
Joined: Sun Dec 18, 2016 9:17 pm

Re: Problems connecting to WiFi

Postby MartyMacGyver » Mon Jan 09, 2017 1:28 pm

I've opened an issue regarding this problem:
https://github.com/espressif/esp-idf/issues/207

MalteJ
Posts: 62
Joined: Wed Sep 21, 2016 10:26 pm

Re: Problems connecting to WiFi

Postby MalteJ » Mon Jan 09, 2017 2:06 pm

deti__ wrote:Checked out everything again and still there is no difference.

Deti
For me it worked after checking out tag "v1.0".

Code: Select all

git fetch --all --tags --prune
git checkout tag/v1.0

deti__
Posts: 8
Joined: Sun Jan 08, 2017 11:35 pm

Re: Problems connecting to WiFi

Postby deti__ » Mon Jan 09, 2017 2:28 pm

Hi Malte,

thank you very much for your help - it works now! Originally I followed the instructions in https://github.com/espressif/esp-idf/bl ... -setup.rst
Why did nobody tell that the SDK is broken currently?

Deti

MalteJ
Posts: 62
Joined: Wed Sep 21, 2016 10:26 pm

Re: Problems connecting to WiFi

Postby MalteJ » Mon Jan 09, 2017 2:29 pm

deti__ wrote: Why did nobody tell that the SDK is broken currently?
I thought so, too. But when you checkout master again it is still working, isn't it?

deti__
Posts: 8
Joined: Sun Jan 08, 2017 11:35 pm

Re: Problems connecting to WiFi

Postby deti__ » Mon Jan 09, 2017 2:48 pm

I don't think this brings you up to the master (at least in the recursively fetched remote repositories).

Deti

MalteJ
Posts: 62
Joined: Wed Sep 21, 2016 10:26 pm

Re: Problems connecting to WiFi

Postby MalteJ » Mon Jan 09, 2017 4:38 pm

no, it's just about checking out the esp-idf master and then doing a git submodule update to checkout the referenced versions.
I am not trying to checkout all master branches in the submodules!

deti__
Posts: 8
Joined: Sun Jan 08, 2017 11:35 pm

Re: Problems connecting to WiFi

Postby deti__ » Mon Jan 09, 2017 9:07 pm

After some tests I found out, that it is necessary to fully erase the flash memory by issuing the command
~/esp/esp-idf/components/esptool_py/esptool/esptool.py --port /dev/ttyUSB0 erase_flash

Now make flash works properly.

Further reading: https://nodemcu.readthedocs.io/en/maste ... -init-data

Deti

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Problems connecting to WiFi

Postby ESP_Angus » Mon Jan 09, 2017 9:30 pm

Hi Deti,
deti__ wrote:After some tests I found out, that it is necessary to fully erase the flash memory by issuing the command
~/esp/esp-idf/components/esptool_py/esptool/esptool.py --port /dev/ttyUSB0 erase_flash

Now make flash works properly.
To clarify, are you saying that you couldn't connect to WiFi before you completely erased flash? Or is this related to some other problem? Is this on current 'master', or 'v1.0'?

(BTW, you can erase flash from esp-idf itself via 'make erase_flash')

Angus

Who is online

Users browsing this forum: Google [Bot] and 75 guests