WiFI softapp stops receiving connections on system_adc_read(), performance bug?

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

WiFI softapp stops receiving connections on system_adc_read(), performance bug?

Postby FrenkR » Tue Dec 15, 2015 7:32 am

SDK 1.5, NOOS version. I was playing a bit with ADC.

From internet, it is said that it takes 45-50us to convert ADC to value:
http://www.esp8266.com/viewtopic.php?f=13&t=800&start=16

Also checked, system_adc_read() (+ system_get_time()) takes about between 110 and 180us to read (using system_get_time()).

If I set "repeating" timer 1ms to read ADC value, WiFi softAP stops retreiving connections (I believe processor becomes too busy doing ADC stuff?). After some testing, minimum 10ms timer is needed for ADC to allow WiFi "breathing".

If I use non repeating timer, then app is working, properly, only ADC performance is not near 45-50us .


Is there any routine that would enable better performance of ADC or is there a bug that prevents faster reading of ADC?

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

Re: WiFI softapp stops receiving connections on system_adc_read(), performance bug?

Postby ESP_Faye » Fri Dec 18, 2015 2:57 pm

Hi,

Could your provide your test code and logs for debugging ?

Thanks for your interest in ESP8266 !

Who is online

Users browsing this forum: No registered users and 19 guests