Skip to main content
Explorer II
January 29, 2025
Question

Commands LORA: P-NUCLEO-LRWAN2

  • January 29, 2025
  • 3 replies
  • 1262 views

Hi, 

 

I recently bought a P-NUCLEO-LRWAN-2, and I would like to communicate through LORA from the gateway to the end-node and vice-versa, but some information is lacking.

 

In the Getting started with the P-NUCLEO-LRWAN2 and P-NUCLEO-LRWAN3​ starter packs DOC there is no inofrmation on how to send and receive data, for example, with the command LORA_send() I saw on a website, and the file USI WM-SG-SM-42 AT Command cannot be found, and the link given at [1] doesn't lead me anywhere.

 

Could you pls give me this information on how to receive and send data, or where can I see that Info. I don't need to use for now a dashboard, it would be enough to just put something on a terminal on one of the modules, and just see if the info was received on the other terminal, for example. 

 

I also know that the end-node has some sensores, how can I access them?

 

Thanks for your attention.

    This topic has been closed for replies.

    3 replies

    Technical Moderator
    January 29, 2025

    Hello @pmendes03 and welcome to the ST Community.

    I suggest you to:

    For the Gateway: I suggest you have a look at those videos.

    For the End-Node: I suggest you debug the LoRaWAN_AT_Master and LoRaWAN_End_Node on the I-CUBE-LRWAN - LoRaWAN software expansion for STM32Cube - STMicroelectronics (the examples for the NUCLEO-L073RZ board).

    Best Regards.

    STTwo-32

    Super User
    January 29, 2025

    @pmendes03 wrote:

    I recently bought a P-NUCLEO-LRWAN-2.


    Note that this is Not Recommended for New Designs (NRND):

    AndrewNeil_0-1738172109808.png

    Not least because, as @Tesla DeLorean said, the USI module is obsolete. See this thread (yesterday):

    https://community.st.com/t5/others-hardware-and-software/wm-sg-sm-42-too-much-slow-reading-downlink-messages-on-serial/m-p/766848 

     

     


    @pmendes03 wrote:

    I would like to communicate through LORA from the gateway to the end-node and vice-versa, .


    That's really not what the Gateway is intended for - a Gateway forms part of a LoRaWAN Network, and expects to connect to & be controlled by a LoRaWAN Network Server:

    AndrewNeil_2-1738172575855.png

    https://wiki.st.com/stm32mcu/wiki/Connectivity:Introduction_to_LoRaWAN#LoRaWAN-C2-AE_network_architecture

    https://www.thethingsnetwork.org/docs/lorawan/architecture/ 

     

    If you just want to send stuff between devices, look at the peer-to-peer LoRa examples.

     


    @pmendes03 wrote:

    I also know that the end-node has some sensores, how can I access them?


    In the thread linked earlier, I gave a link back to an old thread on this.

    As I recall, they are all ST sensors on I2C and/or SPI.

    The schematic is in the GitHub repository linked from the other thread:

    https://github.com/USIWPModule/USI_I-NUCLEO-LRWAN1/tree/main/Schematics

    pmendes03Author
    Explorer II
    January 29, 2025

    @Andrew Neil wrote:

    @pmendes03 wrote:

    I recently bought a P-NUCLEO-LRWAN-2.


    Note that this is Not Recommended for New Designs (NRND):

    Thanks, I saw previous threads on this, but it was too late, I had alredy ordered it, so now I have to discover how to work with it :( 

     


    @pmendes03 wrote:

    I would like to communicate through LORA from the gateway to the end-node and vice-versa, .


    That's really not what the Gateway is intended for - a Gateway forms part of a LoRaWAN Network, and expects to connect to & be controlled by a LoRaWAN Network Server:

    AndrewNeil_2-1738172575855.png

    https://wiki.st.com/stm32mcu/wiki/Connectivity:Introduction_to_LoRaWAN#LoRaWAN-C2-AE_network_architecture

    https://www.thethingsnetwork.org/docs/lorawan/architecture/ 

     

    Thanks for this, I only used LORA so far, so this is a whole new concept for me

    If you just want to send stuff between devices, look at the peer-to-peer LoRa examples.

    About this peer-to-peer LORA examples, where can I find them?

     

    Super User
    January 29, 2025

    @pmendes03 wrote:

    About this peer-to-peer LORA examples, where can I find them?

     


    I-CUBE-LRWAN

    https://www.st.com/en/embedded-software/i-cube-lrwan.html