Skip to main content
PDevo.1
Associate II
March 17, 2022
Solved

Enabling sensors on LRWAN-NS1 board

  • March 17, 2022
  • 1 reply
  • 1221 views

Hi everyone,

I successfully setup a lora communication using the pnucleo lrwan3 kit : https://www.st.com/en/evaluation-tools/p-nucleo-lrwan3.html

The only thing I'm missing is the way to activate the sensor reading on the lrwan-ns1 shield. I am using the I-cube-lrwan package.

I found a "#define SENSOR_ENABLED x" in sys_conf.h but when I set it to 1, I get an error telling me that the iks01a2_conf.h header file is missing... The problem is that my shield is NS1 and not iks01a2 so I'm more than confused. I also found c files with functions designed for the lrwan-ns1 sensors, but they are not used anywhere in the default code.

Has anyone faced the same issue ?

Thanks !

This topic has been closed for replies.
Best answer by PDevo.1

Had to rewrite the code a bit to use the the lrwan_ns1 c files.

Thanks to this git repo:

https://github.com/moiyse/projet-pfe/blob/c21395eab62330f88e3629b289f6cbf69676d271/LoRaWAN/App/src/bsp.c

it was not that hard.

I close the issue

1 reply

PDevo.1
PDevo.1AuthorBest answer
Associate II
March 18, 2022

Had to rewrite the code a bit to use the the lrwan_ns1 c files.

Thanks to this git repo:

https://github.com/moiyse/projet-pfe/blob/c21395eab62330f88e3629b289f6cbf69676d271/LoRaWAN/App/src/bsp.c

it was not that hard.

I close the issue