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/SI1143Config.cpp	Wed Jul 06 20:40:36 2016 +0000
@@ -0,0 +1,65 @@
+/*
+ * SI1143Config.cpp
+ *
+ *  Created on: 02.06.2016
+ *      Author: Adrian
+ */
+
+#include "SI1143Config.h"
+
+SI1143Config::SI1143Config() {
+	// TODO Auto-generated constructor stub
+
+}
+
+SI1143Config::~SI1143Config() {
+	// TODO Auto-generated destructor stub
+}
+
+void SI1143Config::build(SI1143_MODE desiredMode){
+	switch(desiredMode){
+	case SI1143_MODE_1:
+		setLed1Voltage(SI1143_LED_VOLTAGE_50_MV);
+		break;
+	case SI1143_MODE_2:
+		setLed1Voltage(SI1143_LED_VOLTAGE_185_MV);
+		break;
+	case SI1143_MODE_3:
+		setLed1Voltage(SI1143_LED_VOLTAGE_410_MV);
+		break;
+	case SI1143_MODE_4:
+		setLed1Voltage(SI1143_LED_VOLTAGE_410_MV);
+		setInterruptEnable(SI1143_PS1_IRQ_EN_MASK);
+		setProximitySensing1Threshold(SI1143_THRESHOLD_1000);
+		break;
+
+	}
+}
+
+uint8_t SI1143Config::getLed1Voltage(){
+	return led1Voltage;
+}
+
+uint8_t SI1143Config::getProximitySensing1Threshold(){
+	return proximitySensing1Threshold;
+}
+
+uint8_t SI1143Config::getInterruptEnable(){
+	return interruptEnable;
+}
+
+void SI1143Config::setLed1Voltage(uint8_t ledVoltage){
+	this->led1Voltage = ledVoltage;
+}
+
+void SI1143Config::setInterruptEnable(uint8_t interruptEnable){
+	this->interruptEnable = interruptEnable;
+}
+
+void SI1143Config::setProximitySensing1Threshold(uint16_t threshold){
+	this->proximitySensing1Threshold = threshold;
+}
+
+
+
+