Wifi radio not working

systemsconnect
Posts: 11
Joined: Tue Jan 20, 2015 3:47 pm

Wifi radio not working

Postby systemsconnect » Wed Feb 18, 2015 6:58 pm

Hi,

It seems our divider circuit connected to the ADC of the ESP8266ex has damaged the wifi radio. Our configuration is running at 10 seconds deep sleep interval and after waking up, the voltage of the battery is read from the ADC, wifi connects and sends the data over wifi and sleeps again.

The supply voltage has a maximum of 3.6V. To the ADC a divider circuit brings down the voltage lower than 1V. The divider circuit resistors R1 is 10MOhm a R2 is 2.7MOhm. The divider circuit is directly connected to the battery positive and ground.

Somehow, after running a couple of hours fine, the wifi fails to connect and it will never connect again (even after a power off and on).

I've tested multiple chips and all of them seems to be broken after a while. Everything else still works, so it does wakeup and goes to sleep again but it does not connect to wifi anymore. After flashing the firmware again it still does not connect. If I take an other ESP8266 chip with the same firmware it works.

Has somebody any idea what the problem could be?
Last edited by systemsconnect on Tue Feb 24, 2015 5:12 pm, edited 1 time in total.

reaper7
Posts: 25
Joined: Fri Oct 24, 2014 7:26 pm

Re: ADC damages Wifi radio?

Postby reaper7 » Wed Feb 18, 2015 8:07 pm

maybe try to set for a tests:

Code: Select all

deep_sleep_set_option(1)

RF_CAL after deep-sleep wake up, there will be large current.

before execute system_deep_sleep

systemsconnect
Posts: 11
Joined: Tue Jan 20, 2015 3:47 pm

Re: ADC damages Wifi radio?

Postby systemsconnect » Wed Feb 18, 2015 8:49 pm

Thanks for your answer, but I'm already calling deep_sleep_set_option(1) before deep sleep. This does not solve the problem.

reaper7
Posts: 25
Joined: Fri Oct 24, 2014 7:26 pm

Re: ADC damages Wifi radio?

Postby reaper7 » Wed Feb 18, 2015 9:03 pm

what about others options? maybe (0) ?
maybe some bug, and RF is not calibrated ?

systemsconnect
Posts: 11
Joined: Tue Jan 20, 2015 3:47 pm

Re: ADC damages Wifi radio?

Postby systemsconnect » Wed Feb 18, 2015 11:11 pm

OK, I've tried option 0 but still it does not connect. I don't understand why it should working in the first hours and just stops after a while. I've tried multiple ESP chips.
If the ADC is not connected it's perfectly working all the time so the firmware seems OK.

systemsconnect
Posts: 11
Joined: Tue Jan 20, 2015 3:47 pm

Re: ADC damages Wifi radio?

Postby systemsconnect » Thu Feb 19, 2015 9:30 pm

OK, it does seems not related to the ADC. A new test run did face the same problem and does not use the ADC.
I don't know what te problem is.

joostn
Posts: 19
Joined: Thu Jan 22, 2015 5:00 pm

Re: ADC damages Wifi radio?

Postby joostn » Fri Feb 20, 2015 5:24 pm

Perhaps your firmware is somehow corrupting the flash configuration area used by the ESP libs (flash blocks 7C - 7F)?
You might try erasing those blocks and filling with zeros.

systemsconnect
Posts: 11
Joined: Tue Jan 20, 2015 3:47 pm

Re: ADC damages Wifi radio?

Postby systemsconnect » Fri Feb 20, 2015 11:41 pm

OK, that works! Many thanks. It does somehow get corrupted, what's wrong with my firmware?

Please, can you explain why these address get corrupted and why did you think this address causes the problem?

joostn
Posts: 19
Joined: Thu Jan 22, 2015 5:00 pm

Re: ADC damages Wifi radio?

Postby joostn » Sat Feb 21, 2015 1:51 am

Well I guess your firmware is writing to flash? You should make sure it does not touch flash blocks 7c to 7f.

systemsconnect
Posts: 11
Joined: Tue Jan 20, 2015 3:47 pm

Re: Wifi radio not working

Postby systemsconnect » Tue Feb 24, 2015 5:17 pm

Strangely, the firmware is not writing to flash. I don't know why these addresses get corrupted. It's strange why are they affected after running a while and not from the first run? Apparently, somehow the firmware makes something corrupt during runtime.

Who is online

Users browsing this forum: No registered users and 3 guests