element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Sub -1 GHz Band
  • Challenges & Projects
  • Project14
  • Sub -1 GHz Band
  • More
  • Cancel
Sub -1 GHz Band
Blog Sub-1GHz Band Challenge - A study on Lora transmit and Receive
  • Blog
  • Forum
  • Documents
  • Files
  • Leaderboard
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Sub -1 GHz Band to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: balajivan1995
  • Date Created: 21 Aug 2023 7:52 PM Date Created
  • Views 1816 views
  • Likes 10 likes
  • Comments 2 comments
  • STM32WL55
  • NUCLEO-WL55JC1
  • Sub-1 GHz Band
  • sub1ghzbandch
  • lora
  • stmicroelectronics
Related
Recommended

Sub-1GHz Band Challenge - A study on Lora transmit and Receive

balajivan1995
balajivan1995
21 Aug 2023

Introduction

In the previous article we have seen how to program Nucleo board using MBED OS and ran a LED blinking application. In this article, we will see how to transmit and receive wireless messages using Lora communication and observe the result

Software used

  1. STM32Cube IDE with STM32WL package
  2. Teraterm 

Source code

For this example, I used the demo example available in the STM32WL package. STM32CubeWL/Projects/NUCLEO-WL55JC/Applications/SubGHz_Phy/SubGHz_Phy_PingPong at main · STMicroelectronics/STM32CubeWL (github.com)

Test

Running the example code is pretty much straight forward.  Right now, we are not going to change any parameters. Except the RF frequency according to your country of course.

Note:

  • Modify the RF_FREQUENCY parameter in subghz_phy_app.h.
  • Currently the Output Tx power is set to 14, which we need to increase to improve the signal quality.
  • Example provides a simple way to switch between using LoRa and generic FSK modulation by setting USE_MODEM_LORA and USE_MODEM_FSK to (1,0) or (0,1).

Working process

The example requires two nodes to act as master and slave. Nodes to act as either master or slave will be selected at runtime automatically. The master node will send “PING” and slave node will send “PONG” in response.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Scenario 1:

I placed the two nodes on top of each other and the signal strength is really good as expected. (Got 1dbm on one node and 0 on another).

image

Scenario 2:

When I kept one node nearly 25m away from another, the signal strength dropped to 60.

image

Observation

When I brought the node near another one, the signal response was inversely proportional to the distance and nearly produced the relationship according to the formula mentioned in LoRa specification.

image

image

To get a RSSI of ~60, the distance between two nodes must be around 30m.

This is an interesting finding as we can use the RSSI and AoA (angle of arrival) to calculate the distance and position of any moving object with LoRa with near accuracy without the need for triangulation as required in other wireless based beacon systems.

Conclusion

So far, we were able to transmit and receive data packets using LoRa protocol and compared the signal strength. In upcoming blogs, we will see real world applications and how external factors influence the performance of LoRa on outdoor setup.

  • Sign in to reply
  • navadeepganeshu
    navadeepganeshu over 1 year ago

    Cool testing. RF stuff is certainly interesting

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 2 years ago

    Nice start.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube