Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: LoRaWAN-lib mbed lib_mpl3115a2 lib_mma8451q lib_gps SX1272Lib
Dependents: LoRaWAN-NAMote72-BVS-confirmed-tester-0-7v1_copy
Config.h
00001 /* 00002 / _____) _ | | 00003 ( (____ _____ ____ _| |_ _____ ____| |__ 00004 \____ \| ___ | (_ _) ___ |/ ___) _ \ 00005 _____) ) ____| | | || |_| ____( (___| | | | 00006 (______/|_____)_|_|_| \__)_____)\____)_| |_| 00007 (C)2015 Semtech 00008 00009 Description: End device communication parameters 00010 00011 License: Revised BSD License, see LICENSE.TXT file include in the project 00012 00013 Maintainer: Uttam Bhat 00014 */ 00015 00016 #ifndef __LORA_CONFIG_H__ 00017 #define __LORA_CONFIG_H__ 00018 00019 /*! 00020 * Configure End-Device to use 8-channels corresponding to Block A 00021 * Comment/Uncomment to disable/enable Hybrid mode 00022 */ 00023 // #define USE_BAND_915_HYBRID 00024 00025 #ifndef USE_BAND_915_HYBRID 00026 /*! 00027 * Configure End-Device to use 64-channels across to Block A thru Block H 00028 */ 00029 #define USE_BAND_915 00030 00031 #endif 00032 00033 /*! 00034 * Defines the application data transmission periodicity. It is the time between RX1/RX2 and next TX 00035 */ 00036 #define APP_TX_DUTYCYCLE 5000 // value in ms 00037 00038 /*! 00039 * LoRaWAN confirmed messages 00040 * \remark 1 : Confirmed messages enabled. Must receive ACK from network server 00041 0 : Confirmed messages disabled. 00042 */ 00043 #define LORAWAN_CONFIRMED_MSG_ON 1 00044 00045 /*! 00046 * LoRaWAN Adaptive Data Rate 00047 * 00048 * \remark Please note that when ADR is enabled the end-device uses default datarate of DR_0 00049 */ 00050 #define LORAWAN_ADR_ON 1 00051 00052 /*! 00053 * Default mote datarate 00054 * \remark DR_0 : 980 bps; DR_1 : 1760 bps; DR_2 : 3125 bps; DR_3 : 5470 bps; DR_4 : 12500 bps 00055 */ 00056 #define LORAWAN_DEFAULT_DATARATE DR_0 00057 00058 /*! 00059 * LoRaWAN application port 00060 */ 00061 #define LORAWAN_APP_PORT 5 00062 00063 /*! 00064 * LoRaWAN User defined Tx Power 00065 * 00066 * \remark The Tx power level is set as TX_POWER_P_DBM, where 10 <= P <= 30 and P is even value { i.e. P = 10, 12, 14 ... 28 or 30 } 00067 */ 00068 #define LORAWAN_TX_POWER TX_POWER_20_DBM 00069 00070 #if ( LORAWAN_APP_PORT == 5 ) 00071 /*==================================================== 00072 US01 GPS APPLICATION DEMO (PORT 5) 00073 ====================================================*/ 00074 00075 /*! 00076 * User application data buffer size 00077 */ 00078 #define LORAWAN_APP_DATA_SIZE 11 00079 00080 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ 00081 00082 #elif ( LORAWAN_APP_PORT == 6 ) 00083 /*==================================================== 00084 SENET M2X DEMO (PORT 6) 00085 ====================================================*/ 00086 00087 /*! 00088 * User application data buffer size 00089 */ 00090 #define LORAWAN_APP_DATA_SIZE 2 00091 00092 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ 00093 00094 #elif ( LORAWAN_APP_PORT == 7 ) 00095 /*==================================================== 00096 SENET GPS DEMO (PORT 7) 00097 ====================================================*/ 00098 00099 /*! 00100 * User application data buffer size 00101 */ 00102 #define LORAWAN_APP_DATA_SIZE 11 00103 00104 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ 00105 00106 #elif ( LORAWAN_APP_PORT == 11 ) 00107 /*==================================================== 00108 PUSH BUTTON DEMO (PORT 11) 00109 ====================================================*/ 00110 00111 /*! 00112 * User application data buffer size 00113 */ 00114 #define LORAWAN_APP_DATA_SIZE 2 00115 00116 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ 00117 00118 #elif ( LORAWAN_APP_PORT == 12 ) 00119 /*==================================================== 00120 TRANSMIT ON VERTICAL ORIENTATION DEMO (PORT 12) 00121 ====================================================*/ 00122 00123 /*! 00124 * User application data buffer size 00125 */ 00126 #define LORAWAN_APP_DATA_SIZE 2 00127 00128 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ 00129 00130 00131 #endif 00132 00133 #endif // __LORA_CONFIG_H__
Generated on Fri Jul 15 2022 22:53:35 by
