Skip to main content
TVoge
Associate II
May 21, 2019 10:43 AM UTC
Question

I-CUBE-LRWAN: Usart causes a low power issue

Hi,

I am developing software based on the l-CUBE LRWAN software and ran into some low power issues. I have a sensor connected to the USART2 and it is receiving data properly. The problem is that because i had to overwrite the  void HAL_UART_MspInit(UART_HandleTypeDef *huart) (located in vcom.c) function the device doesnt get into the lowpower mode.

When the sensor is working the current consumption in lowpowermode is around 4.0mA

When I dont overwrite the fuction (And thus dont have a working sensor) the current in LPM is around 4uA.

This topic has been closed for replies.

6 replies

Mabra.3
Associate II
Jul 11, 2019 11:04 AM UTC

hiii bro

i know you are asking, but i think you can help me in my problem:

I use the node B-L072Z-LRWAN1 with the example “end node�? of the stack “STM32CubeExpansion_LRWAN�?, the objectif it’s to send data of sensor to TTN. and I managed to send “int�? or "floa"t without problem to my TTN as first step.

on the other hand, I made a program of UART communication of the “B-L072Z-LRWAN1�? thanks to STM32CubeMX, and it’s working well.

Unfortunately I don’t know how integrated all the code that STM32CubeMX generated in the “end node�? project to send my UART data.

thanks in advence.

Tesla DeLorean
Guru
Jul 11, 2019 12:42 PM UTC
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Mabra.3
Associate II
Jul 12, 2019 8:21 AM UTC

i see, in my case i have a sensor connected to the USART2 too, when i make a code using cubemx it's working but when i try to integrate it with the end node exemple it give nothing.

please if you can help me with that it's urgent.

TVoge
TVogeAuthor
Associate II
Jul 18, 2019 7:31 AM UTC

Hi,

Do you have the same problem when you connect the sensor to usart1?

Mabra.3
Associate II
Jul 18, 2019 9:54 AM UTC

thank you so much for your replay, i apreciate it

i tried the USART2 it gaves the same result, please if you can help me with that problem because I'm stuck .

TVoge
TVogeAuthor
Associate II
Jul 29, 2019 7:44 AM UTC

The USART2 is allready initialized in the vcom filles for the usb communication. You could try to remove all these functions and init your sensor. This solved the problems i had with USART2.