cancel
Showing results for 
Search instead for 
Did you mean: 

Use FP-ATR-LORA1 on B-L072Z-LRWAN1 without Accelerometer

martian_first
Associate II

I am trying to read GNSS data using B-L072Z-LRWAN1 and GPS module. I installed FP-ATR-LORA1 and 
wrote the project to my B-L072Z-LRWAN1 and viewed it with Teraterm, the following error message appeared.
"Accelerometer NOT initialized"
I don't use an accelerometer. I just want to use GPS module. How can I rewrite the code to prevent the above error message from appearing?

3 REPLIES 3
Andrew Neil
Super User

Search the source code for the text "Accelerometer NOT initialized" - most likely, that will appear at the point where it tries to initialise the accelerometer.

Disable that.

You will also have to disable where it attempts to read the accelerometer.

 

PS:

Or perhaps it might be simpler to just use X-CUBE-GNSS1 and I-CUBE-LRWAN ?

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.
martian_first
Associate II

I deleted some of sensor related codes. Teraterm showed following message. What does it mean? I think there are still errors remaining.

LoRa2.jpg

It would be easier to read posting as text rather than a screenshot.

(To post formatted text, see this)

 


@martian_first wrote:

Teraterm showed following message. What does it mean?


Again, search the source code for those messages to see what causes them to be emitted.

"Not joined" sounds like issues with joining the LoRaWAN network ?

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.