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:
0:f2815503561f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/UARTTunnel.h	Wed Jul 06 20:40:36 2016 +0000
@@ -0,0 +1,40 @@
+/**
+ * @file UARTTUNNEL.h
+ *
+ * @author Adrian
+ * @date 10.06.2016
+ *
+ */
+#include "RawSerial.h"
+
+#ifndef APP_UARTTUNNEL_H_
+#define APP_UARTTUNNEL_H_
+
+/**
+ * @class UART_Tunnel
+ * @brief Makes it possible to use the mDotDKs USB Connection as a COM-Port
+ * to communicate directly with a device thats connected to the
+ * STM32 Uart. Its main purpose is to control the uBlox via uCenter.
+ */
+class UART_Tunnel {
+public:
+	UART_Tunnel();
+	UART_Tunnel(mbed::RawSerial*,mbed::RawSerial*);
+	virtual ~UART_Tunnel();
+
+private:
+	mbed::RawSerial* uartSerial;
+	mbed::RawSerial* usbSerial;
+
+	/**
+	 * @brief forwards every received byte from the uart to the usb serial
+	 */
+	void onUartRx();
+
+	/**
+	 * @brief forwards every received byte from the usb serial to uart
+	 */
+	void onUsbRx();
+};
+
+#endif /* APP_UARTTUNNEL_H_ */