Testing Current Consumption using datalogger....

cortinas
Posts: 12
Joined: Fri Feb 13, 2015 9:36 pm

Testing Current Consumption using datalogger....

Postby cortinas » Tue Mar 31, 2015 1:45 am

Hi folks

attached is the output of a datalogger which is capturing the current used by the ESP module (ESP001).

It logs the current at 100millisec intervals for about 3000 samples which is approx 5 mins

Config is using a ESP001, running 095 SDK and latest nodemcu/lua firmware. The data above was collected when the ESP is running as Station and connected to nearby access point....


The data shows quite clear repeated patterns --- but what are they ?
Attachments
ESPIDLE.pdf
current usage graph
(178.29 KiB) Downloaded 734 times

jayc75
Posts: 23
Joined: Sun Feb 15, 2015 6:44 pm

Re: Testing Current Consumption using datalogger....

Postby jayc75 » Tue Mar 31, 2015 5:28 pm

Hi,
Thank you for sharing your insight, but I would suggest you build your test around the latest firmware V1.0 to get better support from Espressif...

thank you,

cortinas
Posts: 12
Joined: Fri Feb 13, 2015 9:36 pm

Re: Testing Current Consumption using datalogger....

Postby cortinas » Tue Mar 31, 2015 8:46 pm

Ok, no problem. I rebuilt with 0.9.6_b1 SDK and the grph looks basically the same
Attachments
Screen Shot 2015-03-31 at 13.43.25.png
current usage
Screen Shot 2015-03-31 at 13.43.25.png (731.51 KiB) Viewed 14785 times

baoshi
Posts: 23
Joined: Tue Dec 02, 2014 8:35 pm

Re: Testing Current Consumption using datalogger....

Postby baoshi » Wed Apr 01, 2015 1:01 pm

I use a "uCurrent" (8kHz bandwidth) to measure the current consumption, checking output from an oscilloscope. ESP8266 seems to be sucking power on 100ms interval. I guess this is due to some network activity. If you did your log every 100ms, you could have missed something or the result is just alias.

jayc75
Posts: 23
Joined: Sun Feb 15, 2015 6:44 pm

Re: Testing Current Consumption using datalogger....

Postby jayc75 » Wed Apr 01, 2015 4:58 pm

thanks again, but I was referring to SDK V1.0 found here: viewtopic.php?f=5&t=286
the 9xxx are old...

cheers,

cortinas
Posts: 12
Joined: Fri Feb 13, 2015 9:36 pm

Re: Testing Current Consumption using datalogger....

Postby cortinas » Wed Apr 01, 2015 6:17 pm

@jayc75
Ok, didn't realise there was a 1.0 !

@baoshi
... 'sucking power.... due network activity.....' thats exactly the point - but what is it ? Probes / Beacons etc ?

tve
Posts: 123
Joined: Sun Feb 15, 2015 4:33 pm

Re: Testing Current Consumption using datalogger....

Postby tve » Thu Apr 02, 2015 12:25 am

Most access points send out a beacon every 100ms, receiving those is bound to take some cpu cycles...

cortinas
Posts: 12
Joined: Fri Feb 13, 2015 9:36 pm

Re: Testing Current Consumption using datalogger....

Postby cortinas » Thu Apr 02, 2015 2:15 am

Hi all

Just to note that 100ms is the sample rate of the datalogger....so each of the very thin lines is a sample....

The steady state is about .0175 - roughly from the graph. The things I am trying to understand are:
- what are the peaks to 0.07 and 0.03 ---

IMHO - I believe that they are either probe requests or some other cpu/mcu timer kicking in...

Maybe someone from espressif can pipe in with some overview of when probes etc are generated

(The test is run in an anechoic chamber so no incoming beacons....also confirmed with a wifi sniffer trace....)

tve
Posts: 123
Joined: Sun Feb 15, 2015 4:33 pm

Re: Testing Current Consumption using datalogger....

Postby tve » Thu Apr 02, 2015 7:04 am

Another interesting question is how much the power consumption depends on wifi activity. What I mean specifically is how much power is consumed by the reception of packets that are *not* destined to the esp8266. Clearly the radio has to receive and decode the packets in order to determine that they're destined to a different receiver.

cortinas
Posts: 12
Joined: Fri Feb 13, 2015 9:36 pm

Re: Testing Current Consumption using datalogger....

Postby cortinas » Fri Apr 03, 2015 7:13 am

Ok, its becoming a but clearer now.....

Same test again ---- with a packet sniffer running (on separate machine) to see what is flying around....

As you can see from the wireshark trace, there are lots of wifi mgt packets (subtype 36) --- about 400 of these in the 2-3mins the test is running -- the destination is the wireless router that the ESP is connected to...

There are small numbers of some other QOS and data packets which I also need to investigate
Attachments
Screen Shot 2015-04-02 at 23.57.38.png
Screen Shot 2015-04-02 at 23.57.38.png (652.31 KiB) Viewed 14669 times

Who is online

Users browsing this forum: No registered users and 162 guests