Transmit only code for SX1262 LoRa experiments

Dependencies:   mbed SX126xLib

Files at this revision

API Documentation at this revision

Comitter:
adwaitnd
Date:
Thu Jul 16 02:18:22 2020 +0000
Parent:
2:46047d562278
Commit message:
continuous transmit only sample for SX1262

Changed in this revision

main_txonly.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 46047d562278 -r 1d624648c88e main_txonly.cpp
--- a/main_txonly.cpp	Fri Feb 28 20:14:46 2020 +0000
+++ b/main_txonly.cpp	Thu Jul 16 02:18:22 2020 +0000
@@ -34,8 +34,8 @@
 #define USE_MODEM_LORA  1
 #define USE_MODEM_FSK   !USE_MODEM_LORA
  
-#define RF_FREQUENCY                                    905000000 // Hz
-#define TX_OUTPUT_POWER                                 14        // max 14 dBm
+#define RF_FREQUENCY                                    434000000 // Hz
+#define TX_OUTPUT_POWER                                 10         // max 14 dBm
  
 #if USE_MODEM_LORA == 1
  
@@ -43,7 +43,7 @@
                                                                   //  1: 250 kHz,
                                                                   //  2: 500 kHz,
                                                                   //  3: Reserved]
-    #define LORA_SPREADING_FACTOR                       LORA_SF9         // [SF7..SF12]
+    #define LORA_SPREADING_FACTOR                       LORA_SF10         // [SF7..SF12]
     #define LORA_LOWDATARATEOPTIMIZE                    0
     #define LORA_CODINGRATE                             LORA_CR_4_5         // [1: 4/5,
                                                                   //  2: 4/6,