Skip to content

Latest commit

 

History

History
155 lines (106 loc) · 3.58 KB

README.md

File metadata and controls

155 lines (106 loc) · 3.58 KB

STM32WL55 LORA Ping pong example


STM32WL55 카드간 LORA 통신 예제이며, 868 ~ 928Mhz 의 주파수 대역을 사용합니다.
최대 30Km 장거리 무선 통신이 가능하며, 일반적으로 SX1276 + 별도의 MCU를 사용하는 구조대비 공간, 저전력, 가격에 장점이 있습니다.

관련 하드웨어 키트는 네이버 스마트 스토어에서 구매 가능합니다.

구매링크 : 네이버 스마트 스토어

This is an example of LORA communication between STM32WL55 cards, and the frequency band of 868 ~ 928Mhz is used.
Long-distance wireless communication of up to 30Km is possible, and it has advantages in space, low power, and price compared to the structure that generally uses SX1276 + separate MCU.

Related hardware kits can be purchased from the Naver Smart Store.
Purchase Link : naver smart store


STM32WL55 LORA Ping pong terminal


baudrate : 9600

TX
RX


STM32WL55 Radio setup


SubGHZ-Phy / App / subghz_phy_app.c

#define REGION_AS923

#if defined( REGION_AS923 )

#define RF_FREQUENCY                                923000000 // Hz

#elif defined( REGION_AU915 )

#define RF_FREQUENCY                                915000000 // Hz

#elif defined( REGION_CN470 )

#define RF_FREQUENCY                                470000000 // Hz

#elif defined( REGION_CN779 )

#define RF_FREQUENCY                                779000000 // Hz

#elif defined( REGION_EU433 )

#define RF_FREQUENCY                                433000000 // Hz

#elif defined( REGION_EU868 )

#define RF_FREQUENCY                                868000000 // Hz

#elif defined( REGION_KR920 )

#define RF_FREQUENCY                                920000000 // Hz

#elif defined( REGION_IN865 )

#define RF_FREQUENCY                                865000000 // Hz

#elif defined( REGION_US915 )

#define RF_FREQUENCY                                915000000 // Hz

#elif defined( REGION_RU864 )

#define RF_FREQUENCY                                864000000 // Hz

#else
#error "Please define a frequency band in the compiler options."
#endif

#define TX_OUTPUT_POWER 14

#define LORA_BANDWIDTH                              0         // [0: 125 kHz,
//  1: 250 kHz,
//  2: 500 kHz,
//  3: Reserved]
#define LORA_SPREADING_FACTOR                       10         // [SF7..SF12]
#define LORA_CODINGRATE                             1         // [1: 4/5,
//  2: 4/6,
//  3: 4/7,
//  4: 4/8]
#define LORA_PREAMBLE_LENGTH                        8         // Same for Tx and Rx
#define LORA_SYMBOL_TIMEOUT                         5         // Symbols
#define LORA_FIX_LENGTH_PAYLOAD_ON                  false
#define LORA_IQ_INVERSION_ON                        false

#define TX_BUFFER_SIZE 128
#define RX_BUFFER_SIZE 128




Note


Works with STM32CubeIDE Version: 1.8.0, freeRTOS CMSIS_V2, Single-core

STM32WL55 module only support RFO_H

RF Switch IC MPN : BGS12SN6E6327XTSA1


STM32WL55 Pin map