Sensor Demo for CTIA

Dependencies:   LoRaWAN-lib SX1272Lib lib_gps lib_mma8451q lib_mpl3115a2 mbed

Fork of LoRaWAN-NAMote72-Application-Demo by Semtech

Revision:
5:6ffeac53b7cb
Parent:
0:69f2e28d12c1
Child:
6:f8194e691dd4
--- a/app/Config.h	Thu May 19 18:40:59 2016 +0000
+++ b/app/Config.h	Wed Jun 08 01:40:42 2016 +0000
@@ -36,17 +36,6 @@
 #define OVER_THE_AIR_ACTIVATION_DUTYCYCLE           5000000  // value in us
 
 /*!
- * Defines the application data transmission periodicity. It is the time between RX1/RX2 and next TX
- */
-#define APP_TX_DUTYCYCLE                            5000000  // value in us
-
-/*!
- * Default mote datarate
- * \remark DR_0 : 980 bps; DR_1 : 1760 bps; DR_2 : 3125 bps; DR_3 : 5470 bps; DR_4 : 12500 bps
- */
-#define LORAWAN_DEFAULT_DATARATE                    DR_0
-
-/*!
  * LoRaWAN confirmed messages
  * \remark 1 : Confirmed messages enabled. Must receive ACK from network server
            0 : Confirmed messages disabled. 
@@ -63,12 +52,7 @@
 /*!
  * LoRaWAN application port
  */
-#define LORAWAN_APP_PORT                            5
-
-/*!
- * User application data buffer size
- */
-#define LORAWAN_APP_DATA_SIZE                       11
+#define LORAWAN_APP_PORT                            7
 
 /*!
  * LoRaWAN User defined Tx Power
@@ -77,4 +61,73 @@
  */
 #define LORAWAN_TX_POWER                            TX_POWER_20_DBM
 
-#endif //  __LORA_CONFIG_H__
\ No newline at end of file
+#if ( LORAWAN_APP_PORT == 5)
+/*====================================================
+            US01 GPS APPLICATION DEMO (PORT 5)
+====================================================*/
+
+/*!
+ * Defines the application data transmission periodicity. It is the time between RX1/RX2 and next TX
+ */
+#define APP_TX_DUTYCYCLE                            5000000  // value in us
+
+/*!
+ * Default mote datarate
+ * \remark DR_0 : 980 bps; DR_1 : 1760 bps; DR_2 : 3125 bps; DR_3 : 5470 bps; DR_4 : 12500 bps
+ */
+#define LORAWAN_DEFAULT_DATARATE                    DR_0
+
+/*!
+ * User application data buffer size
+ */
+#define LORAWAN_APP_DATA_SIZE                       11
+
+/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
+
+#elif ( LORAWAN_APP_PORT == 6)
+/*====================================================
+                SENET M2X DEMO (PORT 6)
+====================================================*/
+
+/*!
+ * Defines the application data transmission periodicity. It is the time between RX1/RX2 and next TX
+ */
+#define APP_TX_DUTYCYCLE                            10000000  // value in us
+
+/*!
+ * Default mote datarate
+ * \remark DR_0 : 980 bps; DR_1 : 1760 bps; DR_2 : 3125 bps; DR_3 : 5470 bps; DR_4 : 12500 bps
+ */
+#define LORAWAN_DEFAULT_DATARATE                    DR_0
+
+/*!
+ * User application data buffer size
+ */
+#define LORAWAN_APP_DATA_SIZE                       2
+
+/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
+
+#elif ( LORAWAN_APP_PORT == 7)
+/*====================================================
+                SENET GPS DEMO (PORT 7)
+====================================================*/
+
+/*!
+ * Defines the application data transmission periodicity. It is the time between RX1/RX2 and next TX
+ */
+#define APP_TX_DUTYCYCLE                            5000000  // value in us
+
+/*!
+ * Default mote datarate
+ * \remark DR_0 : 980 bps; DR_1 : 1760 bps; DR_2 : 3125 bps; DR_3 : 5470 bps; DR_4 : 12500 bps
+ */
+#define LORAWAN_DEFAULT_DATARATE                    DR_0
+
+/*!
+ * User application data buffer size
+ */
+#define LORAWAN_APP_DATA_SIZE                       11
+
+#endif
+
+#endif //  __LORA_CONFIG_H__