us915 ch 9 20dbm
Dependencies: BufferedSerial SX1276GenericLib-us915 mbed
Fork of DISCO-L072CZ-LRWAN1_LoRa_PingPong by
Revision 12:f125aac4914a, committed 2017-08-29
- Comitter:
- rgilson
- Date:
- Tue Aug 29 14:19:13 2017 +0000
- Parent:
- 11:9d7409ebfa57
- Child:
- 13:c59b169baa4f
- Commit message:
- added us_915 ch9 and 20dBm; serial changed to 115200/8/n/1
Changed in this revision
--- a/SX1276GenericLib.lib Fri Aug 18 07:45:44 2017 +0000 +++ b/SX1276GenericLib.lib Tue Aug 29 14:19:13 2017 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/Helmut64/code/SX1276GenericLib/#49d19df5bbce +http://developer.mbed.org/users/Helmut64/code/SX1276GenericLib/#046f3d90443e
--- a/SX1276GenericPingPong/GenericPingPong.cpp Fri Aug 18 07:45:44 2017 +0000 +++ b/SX1276GenericPingPong/GenericPingPong.cpp Tue Aug 29 14:19:13 2017 +0000 @@ -19,13 +19,13 @@ /* Set this flag to '1' to use the LoRa modulation or to '0' to use FSK modulation */ #define USE_MODEM_LORA 1 #define USE_MODEM_FSK !USE_MODEM_LORA -#define RF_FREQUENCY RF_FREQUENCY_868_1 // Hz -#define TX_OUTPUT_POWER 14 // 14 dBm +#define RF_FREQUENCY RF_FREQUENCY_915_10 // Hz +#define TX_OUTPUT_POWER 20 // 10 dBm #if USE_MODEM_LORA == 1 #define LORA_BANDWIDTH 125000 // LoRa default, details in SX1276::BandwidthMap -#define LORA_SPREADING_FACTOR LORA_SF7 +#define LORA_SPREADING_FACTOR LORA_SF10 #define LORA_CODINGRATE LORA_ERROR_CODING_RATE_4_5 #define LORA_PREAMBLE_LENGTH 8 // Same for Tx and Rx @@ -51,7 +51,7 @@ #endif -#define RX_TIMEOUT_VALUE 3500 // in ms +#define RX_TIMEOUT_VALUE 7000 // in ms //#define BUFFER_SIZE 32 // Define the payload size here #define BUFFER_SIZE 64 // Define the payload size here
--- a/main.cpp Fri Aug 18 07:45:44 2017 +0000
+++ b/main.cpp Tue Aug 29 14:19:13 2017 +0000
@@ -11,7 +11,7 @@
int main() {
SystemClock_Config();
ser = new BufferedSerial(USBTX, USBRX);
- ser->baud(115200*2);
+ ser->baud(115200);
ser->format(8);
ser->printf("Hello World\n\r");
myled = 1;
