Skip to main content
SWenn.1
Senior III
July 2, 2022
Solved

LoRa --- stm32wle5

  • July 2, 2022
  • 7 replies
  • 3810 views

I would like to do peer - peer stuff and experiment with LoRa.....

Question: Do I use the LoRaWan stack when I am doing peer - peer, or is that strictly used when I want to communicate to a gateway?

Is there literature that explains all the settings in CubeMX when I turn on the Lora module?

Thank you

This topic has been closed for replies.
Best answer by Tesla DeLorean

The Ping-Pong P2P examples use LoRa, directly, you can change them to FSK, GFSK, MSK, GMSK if you want.

Yes, you can use LoRa (radio/modulation) from the outset, in all those modes of operation, you're just pushing bytes into the Radio chip, they get sent with whatever modulation options have been selected. All nodes will see the data you throw into the air.

Beyond the modulation you'd have to get involved in the byte level content, Station ID, integrity, time, etc, and the filtering and selection of that a the receiving end.

The Ping-Pong is a good starting point for RC or telemetry radios, though I might suggest a better decomposition of the code into a Sender and Listener type operational modes too.

LoRaWAN is a whole other load of clag layered on top of the radio, and gets to be a "protocol" in the end-to-end sense.

7 replies

Danish1
Lead III
July 3, 2022

“Ping-pong�? examples are a better start for peer-to-peer code.

Lorawan needs a much more powerful radio as the other end. (My understanding is that a Lorawan gateway needs to be listening on all channels all the time).

As to documentation, I haven’t found anything of value beyond the source-code itself. I’d love to learn otherwise.

Hope this helps,

Danish

Andrew Neil
Super User
July 4, 2022

Yes, LoRaWAN® is strictly the "star of stars" structure with Nodes, Gateways, Servers, etc - defined by the LoRa Alliance:

0693W00000QKOmhQAH.png 

https://lora-alliance.org/about-lorawan/

As @Danish​ said, look at the "Ping-Pong" example for simple peer-to-peer LoRa comms.

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.
SWenn.1
SWenn.1Author
Senior III
July 4, 2022

@Andrew Neil​ Thank you I am looking at the peer - peer stuff now. More detailed questions:

  1. In peer to peer can you use LoRa modulation or do you end up just using the SubGHz (FSK)?
  2. can I do a peer - multipeer communciation (like a remote control and a bunch of sensors) using the LoRa modulation? If so where would I start (with the ping - pong and add LoRa somehow OR with LoRa End Node Application and removing certain features that use the stack)?

Thanks

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
July 4, 2022

The Ping-Pong P2P examples use LoRa, directly, you can change them to FSK, GFSK, MSK, GMSK if you want.

Yes, you can use LoRa (radio/modulation) from the outset, in all those modes of operation, you're just pushing bytes into the Radio chip, they get sent with whatever modulation options have been selected. All nodes will see the data you throw into the air.

Beyond the modulation you'd have to get involved in the byte level content, Station ID, integrity, time, etc, and the filtering and selection of that a the receiving end.

The Ping-Pong is a good starting point for RC or telemetry radios, though I might suggest a better decomposition of the code into a Sender and Listener type operational modes too.

LoRaWAN is a whole other load of clag layered on top of the radio, and gets to be a "protocol" in the end-to-end sense.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
SWenn.1
SWenn.1Author
Senior III
July 4, 2022

Perfect thank you!!....What is the best approach to taking the ping pong example(Nucleo WL55) and using an STM32WLE5 part (single core)? I created a project using STM32WLE5 (I am using a Seeed FCC module) and would like to somehow import the file structure ping pong but this uses the Nucleo WL55.....

Visitor II
December 14, 2023

Hey! I am struggling with the same problem.. 

i have 2 STM32WLE single core and want to achieve LoRa Ping pong between them 868MHz. Did you achieve this? I have my .ioc file configured correctly, main problem is with code.

STTwo-32
ST Technical Moderator
December 14, 2023

Hello @Kubaa123 and welcome to the ST Community :smiling_face_with_smiling_eyes:.

This post is not active for about 18 months. To give your request more visibility, i suggest you to create a new post to to give more visibility to your request.

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.