LoRa example for STM32WL | un able to read from UART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-25 9:25 PM - edited ‎2023-09-28 12:59 PM
I am currently working on the LoRaWAN_END_NODE example project for a stm32WL . And I want to receive external data via uart and use the LoRaWan process continually, however I am getting problems. The UART is giving invalid data after the sequencer is being initialized.
Edit: I have tried the suggestions below, I have put the gps into a task for the sequencer to run. I have also disabled low power mode. I still get invalid data from the UART that I don't receive when the sequencer is not on.
Is this a clock issue? Any ideas?
- Labels:
-
STM32CubeMX
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-25 9:47 PM
Hello @STMGuitartune68
I suggest you to integrate the UART communication in the LoRaWAN application. That's because when you are in the while loop, the sequencer in the LoRaWAN app is activated. So, it may cause a problem integrating other APIs in the process.
Best regards.
II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-26 1:11 AM
The LoRa examples are optimised for extremely low power operation.
By default, stm32_seq.c puts the stm32 into deep sleep (with all oscillators apart from LSE stopped) except when there is LoRa activity. And under those circumstances, UARTs can't work.
Have a look for #defines like LOW_POWER_DISABLE . You would need that to be 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-28 11:40 AM
I had tried this, however no luck. The problem arrises when the RTC timers are initialized for lora. the example changes some things for hal get tick and hal inittick. Im having problems with adding to those so that the uart is on a proper clock. Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-28 11:46 PM
Hi, I have met the same problem. Have you solved the issue so far? I want to transfer the gps data via usart to lorawan network, but I don't know how to do that. Do you have any advices?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-06 8:09 AM
Hello, I have the same problem me too, do you solved the issue?
