Author Topic: BLE Power  (Read 2678 times)

Remsey

  • RFduino Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
BLE Power
« on: March 25, 2014, 02:26:55 AM »
Hey
 i use this sketch and in adverstising it dont use much power but if its starts to send they use lot of power why it use in the ulpdelay mode so much power?

#include <RFduinoBLE.h>

void setup() {
 
  RFduinoBLE.advertisementData = "aaa";
  RFduinoBLE.advertisementInterval = 3000;
  RFduinoBLE.txPowerLevel = -20;

  // start the BLE stack
  RFduinoBLE.begin();
}

void loop() {
 
  RFduino_ULPDelay(SECONDS(5));
 
  float temp = RFduino_temperature(CELSIUS);
  RFduinoBLE.sendFloat(temp);

  delay(10);
 
}

mkay

  • RFduino Team
  • *****
  • Posts: 405
  • Karma: +15/-0
    • View Profile
Re: BLE Power
« Reply #1 on: March 25, 2014, 01:37:22 PM »
When is is transmitting it can consume upwards of 18mA, but when in ULPDelay it should be down in the uA range. What kind of power consumption are you seeing?

Remsey

  • RFduino Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: BLE Power
« Reply #2 on: March 26, 2014, 07:05:57 AM »
i use a capasitor and the problem is not at the trasmitting

if it goes in the ulpdelay mode for 10s it should be use more less power that i can charge the capasitor but it still needs to much power

is there some library to  turn  off (Serial, SPI, I2C, etc.) and these things

mkay

  • RFduino Team
  • *****
  • Posts: 405
  • Karma: +15/-0
    • View Profile
Re: BLE Power
« Reply #3 on: April 04, 2014, 02:57:55 PM »
Hi Remsey, once you make a connection with lets say an iPhone, the connection interval is 30ms, so the RFduino will be actively communicating with the iPhone or other central device every 30ms. The BLE takes priority over the ULP Delay so the part will wake up every 30ms to service the BLE connection otherwise it would drop the connection.

mikeboich

  • RFduino Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: BLE Power
« Reply #4 on: April 09, 2014, 07:16:25 PM »
mkay,

Does it follow from your reply above that there is no point in calling ULPDelay with an argument > 30 msec while connected?

thx

Mike

mkay

  • RFduino Team
  • *****
  • Posts: 405
  • Karma: +15/-0
    • View Profile
Re: BLE Power
« Reply #5 on: April 10, 2014, 07:45:59 PM »
Hi mike, I haven't measured the current consumption with and without ULPDelay during a connection, but I believe it will still go to sleep and save you some power even if its for <30ms. Most multimeters will average this, so you won't be able to actually measure the sleep current since it is happening so fast.