Skip to main content
JulesG
Associate
February 21, 2022
Solved

Is it possible to establish a communication between two nucleo-WL55JC1 cards ?

Hello ST community,

I am leading a project at university and I would like to make a communication between two STM32WL55JC1 cards using the LoRa protocol without a gateway. I'm not very familiar with STM32CubeIDE and any help would be much appreciated.

The aim is to recover data from an accelerometer that will be transmitted by a serial communication to the first STM32 card and then make a wireless communication to recover the data on the other card.

First of all, I would like to know if I can make a communication between two LoRa device without using a gateway.

Thanks for your answers.

Jules.

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
February 21, 2022

P2P LoRa (Point-to-Point)

You should be able to use the PingPong example as a starting point, perhaps creating a Sender and a Listener version

STM32Cube_FW_WL_V1.1.0\Projects\NUCLEO-WL55JC\Applications\SubGHz_Phy\SubGHz_Phy_PingPong\readme.txt

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

8 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
February 21, 2022

P2P LoRa (Point-to-Point)

You should be able to use the PingPong example as a starting point, perhaps creating a Sender and a Listener version

STM32Cube_FW_WL_V1.1.0\Projects\NUCLEO-WL55JC\Applications\SubGHz_Phy\SubGHz_Phy_PingPong\readme.txt

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
JulesG
JulesGAuthor
Associate
March 28, 2022

Thank you for your answer ! I tried the PingPong example and it's working well, I understand the code. Is there a way to display the different messages that the two cards are exchanging ?

Tesla DeLorean
Guru
May 6, 2022

The LRWAN code typically provided a PRINTF() function which outputs to a console or debug channel.

My approach is to add as much instrumentation and telemetry as possible so I can observe and understand what's happening in the system real-time, and from both ends. You'll likely want to add some basic packet dumping functionality, and/or structure what's sent to be printable, or with sequence numbers, etc, so you can see it working, or if there is data loss, etc.

If you plan on pushing some known format data across the data-link, you could perhaps decode or track that, reporting on message numbers, integrity checking, etc.

As the Ping-Pong can be some what erratic or meta-stable, I would tend to fork that into receiver and transmitter modes, for range testing perhaps a periodic position report from a GPS/GNSS receiver, logging that, and mapping as one node is moved around.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Associate III
March 4, 2024

Hello,
I was able to establish communication between two wl55 easily starting from the ping pong examples. It would be interesting if one of them could also become end-node and communicate with the gateway. Were you able to do such a thing?

Andrew Neil
Super User
March 4, 2024

@IngSerio wrote:

I was able to establish communication between two wl55 easily starting from the ping pong examples. It would be interesting if one of them could also become end-node and communicate with the gateway. ?


The Ping-Pong example is simply using LoRa modulation.

To become an End-Node to a Gateway would require implementing the LoRaWAN protocol.

https://www.korewireless.com/news/lora-vs-lorawan-what-is-the-difference#:~:text=To%20put%20it%20simply%2C%20LoRa,is%20communicated%20across%20the%20network. 

ST do also provide LoRaWAN End-Node examples alongside the Ping-Pong example ...

 

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.
Associate III
March 4, 2024

@Andrew Neil wrote:

@IngSerio wrote:

I was able to establish communication between two wl55 easily starting from the ping pong examples. It would be interesting if one of them could also become end-node and communicate with the gateway. ?


The Ping-Pong example is simply using LoRa modulation.

To become an End-Node to a Gateway would require implementing the LoRaWAN protocol.

https://www.korewireless.com/news/lora-vs-lorawan-what-is-the-difference#:~:text=To%20put%20it%20simply%2C%20LoRa,is%20communicated%20across%20the%20network. 

ST do also provide LoRaWAN End-Node examples alongside the Ping-Pong example ...

Good morning,
yes of course, I know there is an EndNode example and I was able to use it, I would like to understand how to integrate both an EndNode and LoRa modulation in the same microcontroller, if there is an example for that.