A multifunctional and modular Firmware for Multitech's mDot based on ARM mBed provides a widerange of functionality for several Sensors such as MAX44009, BME280, MPU9250, SI1143 and uBlox. It allows you to quickly build a Sensornode that measures specific data with its sensors and sends it via LoRaWAN.

Dependencies:   mDot_LoRa_Sensornode_Flowmeter_impl mbed-rtos mbed

LoRa-Sensornode Firmware for Multitech mDot

A multifunctional and modular Firmware for Multitech's mDot which provides a widerange of functionality for several Sensors. It allows you to quickly build a Sensornode that measures specific data with its sensors and sends it via LoRaWAN.

/media/uploads/mitea1/logo-lora-600x370.png /media/uploads/mitea1/mt_mdot_family_642px.png

Supported Sensors

Idea

The Firmware has some predefined Application Modes running different Tasks(Measurements). Each mode can be used in a different Scenario. Application_Modes define which sensors are used, how often they aquire data and how often the data has to be sent via LoRa. Lets say you just want to measure the Light then you choose an Application_Mode (or define one) that only runs TaskLight for light measurement. As a standard all measurements are taken every second and sent via LoRa but you can change that interval depending on your usage Scenario

Revision:
1:fe242f3e341b
Parent:
0:f2815503561f
--- a/app/LoRa.h	Wed Jul 06 20:40:36 2016 +0000
+++ b/app/LoRa.h	Fri Aug 12 11:19:14 2016 +0000
@@ -50,7 +50,7 @@
 	int16_t getLastRssi();
 
 	/**
-	 * @brief DON'T USE IT RESULUTS IN HARDFAULT!
+	 * @brief DON'T USE IT RESULTS IN HARDFAULT!
 	 * Gets the SNR of the last sent Message.
 	 * @return
 	 */
@@ -74,6 +74,13 @@
 	void ping();
 
 
+	/**
+	 * @brief  Get ms until next free channel
+     * only applicable for European models, US models return 0
+	 */
+	uint32_t getNextTxMs();
+
+
 
 private:
 	mDot* dot;
@@ -115,6 +122,33 @@
 	int32_t setNetworkPassphrase();
 
 	/**
+	 * @brief Depending on the LoRaConfig it defines that AppEUI thats used for OTAA
+	 * @return
+	 */
+	int32_t setAppEUI();
+
+	/**
+	 * @brief Depending on the LoRaConfig it defines that AppKey thats used for OTAA
+	 * @return
+	 */
+	int32_t setAppKey();
+
+	/**
+	 * @brief Depending on the LoRaConfig it defines that DeviceEUI thats used for OTAA
+	 * @return
+	 */
+	int32_t setDeviceEUI();
+
+
+	/**
+	 * @brief Depending on the LoRaConfig it sets the join mode of the Node.
+	 * Either OTTA (Over the Air Activation or ABP (Activation by Personalization)
+	 * @param
+	 * @return
+	 */
+	int32_t setJoinMode();
+
+	/**
 	 * @brief Depending on the LoRaConfig it defines the spreading Factor
 	 * for transmissions via LoRa
 	 * @return