Skip to main content
Visitor II
August 21, 2025
Solved

Using acceleration sensor at LoRa communication.

  • August 21, 2025
  • 2 replies
  • 546 views

I am using NUCLEO-WL55JC1 to use LoRa communication.

And I add acceleration sensor of LSM6DSOX to this board and I want to get  acceleration data while communicating LoRa.

But I could not get correct acceleration value.

And I could get correct acceleration value when I comment out  MX_LoRaWAN_Process() in main.c.

So It seems that acceleration sensor doesn't work when LoRa is enable.

Do you know why and could you give me advices of this issue.

 

 

This topic has been closed for replies.
Best answer by STTwo-32

Hello @machi 

The sensor may work fine with the LoRaWAN implementation. But you should create a task on the sequencer that work on the data acquisition. You may refer to this Playlist tutorial that do the same process you are trying to implement using the NUCLEO-WL55JC1 and the X-NUCLEO-IKS01A2.

Best Regards.

STTwo-32

 

2 replies

Andrew Neil
Super User
August 22, 2025

Welcome to the forum.

You will need to give a lot more detail for anyone to be able to help  - please see: How to write your question to maximize your chances to find a solution.

 


@machi wrote:

I could get correct acceleration value when I comment out  MX_LoRaWAN_Process() in main.c.


So look into what changes when you have the LoRaWAN enabled.

 


@machi wrote:

It seems that acceleration sensor doesn't work when LoRa is enable.


What, exactly, does "doesn't work" mean here?

  • Do you lose all comms with the sensor?
  • Do you get corrupted data?
  • Is it just your calculations that go wrong?
  • other...?

Some general debugging tips here:

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/tac-p/706966/highlight/true#M49

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
STTwo-32
STTwo-32Best answer
ST Technical Moderator
September 22, 2025

Hello @machi 

The sensor may work fine with the LoRaWAN implementation. But you should create a task on the sequencer that work on the data acquisition. You may refer to this Playlist tutorial that do the same process you are trying to implement using the NUCLEO-WL55JC1 and the X-NUCLEO-IKS01A2.

Best Regards.

STTwo-32

 

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.