cancel
Showing results for 
Search instead for 
Did you mean: 

Current consumption in stop mode using B-L072Z-LRWAN1

Remco Groenendaal
Associate II
Posted on May 03, 2017 at 11:42

Does anyone have any experience with the current consumption when using B-L072Z-LRWAN1 (STM32L072 and LoRa board) with i-cube-lrwan 110?

I can't get the current consumption below below 1.1mA no matter what i try. In lowpower (stop) mode all pins are set as analog, clocks are disabled, debug is off.

- I checked the device going into STOP mode

- Configured all non-connected pins to GPIO_MODE_ANALOG, GPIO_NOPULL

- Configured connected pins (UART, etc.) to GPIO_MODE_OUTPUT_PP, GPIO_NOPULL, and set to zero

I also stopped the debug clock in the ARM:

  __HAL_RCC_DBGMCU_CLK_ENABLE( );

  HAL_DBGMCU_DisableDBGSleepMode( );

  HAL_DBGMCU_DisableDBGStopMode( );

  HAL_DBGMCU_DisableDBGStandbyMode( );

Also TCXO is Off.

Still the current consumption is above 1 mA.

Anyone out there that managed to get the current down?

Thanks!

#lora #b-l072z-lrwan1
24 REPLIES 24
Remco Groenendaal
Associate II
Posted on May 22, 2017 at 10:34

Thanks for all replies guys. I finally figured out TCXO was connected to vdd permanently instead of being connected to PA12. Correcting this brings the current consumption down to about 4 uA !!!

Posted on May 22, 2017 at 10:10

I solved my problem in changing the delay: &sharpdefine TCXO_OFF_DELAY 2. Thanks!

Posted on May 22, 2017 at 10:38

Hi

forget.maxence

‌,

Good to know that your problem is fixed. Thanks for sharing the solution!

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Posted on June 22, 2017 at 03:27

 ,

 ,

Hi

 ,

I am also testing with the B-L072Z-LRWAN1 board.

 ,

Testing with I-CUBE-LRWAN (1.1.1), End Node sample

 ,

As shown in the code below, I entered the low power mode in the main loop.

.

 ,

When measuring the power consumption, it becomes 3mA.

 ,

If JP9 is connected to 1 or 2, it becomes 5mA.

 ,

 ,

while( 1 )

 , {

 ,  ,

 ,

//  , lora_fsm( ),

 ,  ,

 ,  ,

 ,

DISABLE_IRQ( ),

 ,  ,

 ,

//  , if ( lora_getDeviceState( ) == DEVICE_STATE_SLEEP )

 ,  ,

 ,

{

 ,

♯ ifndef LOW_POWER_DISABLE

 ,

 , ,

LowPower_Handler( ),

 ,

♯ endif

 ,  ,

 ,

}

 ,  ,

 ,

ENABLE_IRQ(),

 ,  , ,

 ,  ,

 ,

 ,}

 ,

 ,

I'm sorry you said you were 4 uA in stop mode. ,

Could you pass the sample code?

 ,

Please give sample code to

mailto:openclosed@samwooeleco.com

Posted on June 22, 2017 at 10:01

Hi

An.Jin_ho

,

My code for entering the low power handler is exactly the same. This is the main.c that comes with the stack...

To get to the lowest power consumption mode using the B072, one should:

- be absolutely sure TCXO is not connected to vdd but connected to PA12 (vdd_tcxo)

- set all your defined (and unused) pins to analog before entering lowpower mode, and restore them after resuming from low power

- deinit all the perhiperals before entering lowpower, and init them again them upon resuming

- float the board e.g.: disconnect any st-link or other debuggers, also the onboard usb segger j-link

- run it from batteries and disconnect serial debug when doing the current measurements

Let me know how that works for you...

Regards, RG

Kevin Genskowsky
Associate II
Posted on July 13, 2017 at 19:40

I conected TX0 to PA12 and for some reazon it does not Join any more if i conect it to VDD it will conect imidiatly.

OTAA

DevEui= 32-37-38-31-4B-37-7F-03

AppEui= 12-34-56-78-9A-BC-DE-FF

AppKey= 12 34 56 78 9A BC DE FF 12 34 56 78 9A BC DE FF

VERSION: 44021110

*** seqTx= 0 *****

TX on freq 903000000 Hz at DR 4

it's 0:0:0:108 WU@ 0:0:1:108

dz

Cal=0, 0

it's 0:0:1:108 WU@ 0:0:2:108

dz

it's 0:0:2:108 WU@ 0:0:3:108

dz

it's 0:0:3:108 WU@ 0:0:3:117

dz

it's 0:0:3:125 WU@ 0:0:4:108

dz

*** seqTx= 0 *****

TX on freq 902300000 Hz at DR 4

it's 0:0:4:152 WU@ 0:0:5:152

dz

it's 0:0:5:152 WU@ 0:0:6:152

dz

it's 0:0:6:152 WU@ 0:0:7:152

dz

it's 0:0:7:152 WU@ 0:0:7:162

dz

it's 0:0:7:170 WU@ 0:0:8:152
Posted on July 13, 2017 at 19:51

 ,

 ,

Finaly solve it ,

Conected VDD_TCX0 to PA10

and changed ,mlm32l0xx_hw_conf.h

♯ define RADIO_TCXO_VCC_PORT GPIOA

 ,

♯ define RADIO_TCXO_VCC_PIN GPIO_PIN_10

And worked imidiatly PA12 might have some extra configuration that is missing.

Posted on July 14, 2017 at 18:02

The DISCO board has JP9 that should connect TCXO ON pin to VDD. There is the ability to use PA12 though it has commonality with USB, and there might be other solder-bridges or other things going on there. Within the code there is code to ON/OFF the TCXO, there is some dwell time after it starts, check that define/setting, and some timer code to turn it off.

The HAL_Delay/DelayMs code really needs a __WFI, not a __NOP

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Krzysztof Pranga
Associate II
Posted on September 06, 2017 at 08:55

I have question regarding to this topic, maybe someone have any clue.

I'm using murata module and ICube-LRWAN software as a base.

To get more power from coin battery i'm using a circuit with big capacitors to save the battery from current peaks (from SX1276).

So I'm turning on/off VDD_RF and VDD_TCXO which corresponds to communication, but after first sended frame and turning VDD_RF off the SX1276 lost its configuration.

Do anyone have solution to it? Temporarly I use rejoining but its not power efficient and stable in 100%.

Posted on November 22, 2017 at 17:18

Clive One wrote:

The DISCO board has JP9 that should connect TCXO ON pin to VDD. There is the ability to use PA12 though it has commonality with USB

The problem seems to be that PA12 is powered from VDD_USB_LRA - so, if you have removed SB19, then PA12 does nothing.

So, to use PA12 to drive TXCO ON, you must:

  • either have 

    SB19 intact;

  • or fit JP2.