Skip to main content
Remco Groenendaal
Associate II
May 3, 2017
Solved

Current consumption in stop mode using B-L072Z-LRWAN1

  • May 3, 2017
  • 7 replies
  • 7906 views
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
This topic has been closed for replies.
Best answer by maxence forget
Posted on May 22, 2017 at 10:10

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

7 replies

maxence forget
Associate II
May 17, 2017
Posted on May 17, 2017 at 15:51

Hi,

I'm very interesting by the LoRa consumption using B-L072Z, I have the same problem.

I mesured the RF consumption of my LoRa module after adding the jumpers (

http://www.st.com/content/ccc/resource/technical/document/user_manual/group0/ac/62/15/c7/60/ac/4e/9c/DM00329995/files/DM00329995.pdf/jcr:content/translations/en.DM00329995.pdf

)

My measure of Tx (38mA) and Rx (11mA) are ok, but in sleep mode my consumption is too big.

For the RF consumption in sleepmode, I find 1,1mA. My mesure of Tx and Rx are good, but in sleepmode my consumption is too big.

Thanks in advance for any help.

Max
Krzysztof Pranga
Visitor II
May 18, 2017
Posted on May 18, 2017 at 10:06

Have the same problem.

I'm using my custom board and the LoRa module same as in B-L072Z.. My current consumption during stop mode is 1.16mA.

So this is not a B-L072Z hardware problem. I suspect there is some bug in the code (I-CUBE-LRWAN) or hardware problem with LoRa murata module.

Tesla DeLorean
Guru
May 18, 2017
Posted on May 18, 2017 at 17:40

LEDs Off? Other things off the GPIO, USART, etc.

>>

I suspect there is some bug in the code (I-CUBE-LRWAN)

Definately several of those...

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Krzysztof Pranga
Visitor II
May 19, 2017
Posted on May 19, 2017 at 09:39

I have only LoRa module, SWD connector, 1 LED (controlled through GPIO) and vdd capacitor on test PCB.

Of course I made a test with disabling: sensors, debug, trace. I have tested the code in configuration with no HW activation, no LoRa initialization and going to

HAL_PWR_EnterSLEEPMode(PWR_MAINREGULATOR_ON, PWR_SLEEPENTRY_WFI);

just after start of the program and still have got 1.16mA

Amel NASRI
ST Technical Moderator
May 18, 2017
Posted on May 18, 2017 at 18:20

Hello All,

Referring to

http://www.st.com/content/ccc/resource/technical/document/user_manual/group0/31/96/2f/3b/df/c1/40/2e/DM00300436/files/DM00300436.pdf/jcr:content/translations/en.DM00300436.pdf

, required setup for power consumption measurement is to have:
  • No DEBUG
  • No TRACE
  • No SENSOR_ENABLED

Updates have to be made in hw_conf.h.

Is it the case for you?

-Amel

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
maxence forget
Associate II
May 19, 2017
Posted on May 19, 2017 at 09:11

Hi,

I updated my code to deactivate DEBUG, TRACE and SENSOR ENABLED but I have always 1,16mA in sleep mode.

Amel NASRI
ST Technical Moderator
May 19, 2017
Posted on May 19, 2017 at 13:05

Hello,

It seems that TCXO is always enabled in you configuration. Please check JP9 setting: it should be in position 1-2 to have TCXO controlled by PA12.

JP3 is the one that allows you to measure IDD_MCU.

I suggest you to refer to

http://www.st.com/content/ccc/resource/technical/document/user_manual/group0/ac/62/15/c7/60/ac/4e/9c/DM00329995/files/DM00329995.pdf/jcr:content/translations/en.DM00329995.pdf

for more details.

Please confirm if this helps you to reach the expected consumption.

-Amel

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
maxence forget
Associate II
May 19, 2017
Posted on May 19, 2017 at 14:13

With this configuration, the consumption in sleepmode seems to be ok but I can't join my gateway whereas with the JP9 in positon 2-3 I can, there is some modification that I should made?

Thanks in advance

maxence forget
Associate II
May 19, 2017
Posted on May 19, 2017 at 15:32

I made some screen about my terminal windows in debug and trace with the same code but the JP9 in a different postion:

  • JP9 in position 2-3:
0690X0000060741QAA.png
  • JP9 in position 1-2: (impossible to join the gateway)
0690X000006073aQAA.png
Remco Groenendaal
Associate II
May 22, 2017
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 !!!

Jin ho An
Associate II
June 22, 2017
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

Remco Groenendaal
Associate II
June 22, 2017
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
July 13, 2017
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
Kevin Genskowsky
Associate
July 13, 2017
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.

Krzysztof Pranga
Visitor II
September 6, 2017
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%.