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

Committer:
mitea1
Date:
Fri Nov 02 17:01:02 2018 +0000
Revision:
10:4051c38bf73f
Parent:
0:f2815503561f
wtf

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mitea1 0:f2815503561f 1 /**
mitea1 0:f2815503561f 2 * @file MPU9250AccelerationMessage.h
mitea1 0:f2815503561f 3 *
mitea1 0:f2815503561f 4 * @author Adrian
mitea1 0:f2815503561f 5 * @date 01.06.2016
mitea1 0:f2815503561f 6 *
mitea1 0:f2815503561f 7 */
mitea1 0:f2815503561f 8
mitea1 0:f2815503561f 9 #ifndef MPU9250ACCELERATIONMESSAGE_H_
mitea1 0:f2815503561f 10 #define MPU9250ACCELERATIONMESSAGE_H_
mitea1 0:f2815503561f 11 #include <stdio.h>
mitea1 0:f2815503561f 12 #include <string>
mitea1 0:f2815503561f 13 #include <vector>
mitea1 0:f2815503561f 14 #include "SensorMessage.h"
mitea1 0:f2815503561f 15
mitea1 0:f2815503561f 16 /**
mitea1 0:f2815503561f 17 * @class MPU9250AccelerationMessage
mitea1 0:f2815503561f 18 * @brief A Container that can hold acquired acceleration values from the MPU9250. The container will be
mitea1 0:f2815503561f 19 * transported via a MessageQueue between different Tasks.
mitea1 0:f2815503561f 20 */
mitea1 0:f2815503561f 21 class MPU9250AccelerationMessage: public SensorMessage {
mitea1 0:f2815503561f 22 public:
mitea1 0:f2815503561f 23 MPU9250AccelerationMessage();
mitea1 0:f2815503561f 24 virtual ~MPU9250AccelerationMessage();
mitea1 0:f2815503561f 25
mitea1 0:f2815503561f 26 /**
mitea1 0:f2815503561f 27 * Sets the x-axis acceleration value of the MPU9250AccelerationMessage
mitea1 0:f2815503561f 28 * @param xAcceleration x-axis acceleration to be stored
mitea1 0:f2815503561f 29 */
mitea1 0:f2815503561f 30 void setXAcceleration(float xAcceleration);
mitea1 0:f2815503561f 31
mitea1 0:f2815503561f 32 /**
mitea1 0:f2815503561f 33 * Sets the y-axis acceleration value of the MPU9250AccelerationMessage
mitea1 0:f2815503561f 34 * @param yAcceleration y-axis acceleration to be stored
mitea1 0:f2815503561f 35 */
mitea1 0:f2815503561f 36 void setYAcceleration(float yAcceleration);
mitea1 0:f2815503561f 37
mitea1 0:f2815503561f 38 /**
mitea1 0:f2815503561f 39 * Sets the z-axis acceleration value of the MPU9250AccelerationMessage
mitea1 0:f2815503561f 40 * @param zAcceleration
mitea1 0:f2815503561f 41 */
mitea1 0:f2815503561f 42 void setZAcceleration(float zAcceleration);
mitea1 0:f2815503561f 43
mitea1 0:f2815503561f 44
mitea1 0:f2815503561f 45 /**
mitea1 0:f2815503561f 46 * Gets the x-axis acceleration value from the MPU9250AccelerationMessage
mitea1 0:f2815503561f 47 * @return
mitea1 0:f2815503561f 48 */
mitea1 0:f2815503561f 49 float getXAcceleration();
mitea1 0:f2815503561f 50
mitea1 0:f2815503561f 51 /**
mitea1 0:f2815503561f 52 * Gets the y-axis acceleration value from the MPU9250AccelerationMessage
mitea1 0:f2815503561f 53 * @return
mitea1 0:f2815503561f 54 */
mitea1 0:f2815503561f 55 float getYAcceleration();
mitea1 0:f2815503561f 56
mitea1 0:f2815503561f 57 /**
mitea1 0:f2815503561f 58 * Gets the z-axis acceleration value from the MPU9250AccelerationMessage
mitea1 0:f2815503561f 59 * @return
mitea1 0:f2815503561f 60 */
mitea1 0:f2815503561f 61 float getZAcceleration();
mitea1 0:f2815503561f 62
mitea1 0:f2815503561f 63 /**
mitea1 0:f2815503561f 64 * Gets a small LoRaMessage Type Formated String from the MPU9250AccelerationMessage.
mitea1 0:f2815503561f 65 * This String can later be used for transportation via LoRa
mitea1 0:f2815503561f 66 * @return
mitea1 0:f2815503561f 67 */
mitea1 0:f2815503561f 68 virtual char* getLoRaMessageString();
mitea1 0:f2815503561f 69
mitea1 0:f2815503561f 70 private:
mitea1 0:f2815503561f 71
mitea1 0:f2815503561f 72 std::string loraMessage;
mitea1 0:f2815503561f 73 std::vector<std::string> loraMessageId;
mitea1 0:f2815503561f 74
mitea1 0:f2815503561f 75 float xAcceleration;
mitea1 0:f2815503561f 76 float yAcceleration;
mitea1 0:f2815503561f 77 float zAcceleration;
mitea1 0:f2815503561f 78
mitea1 0:f2815503561f 79 };
mitea1 0:f2815503561f 80
mitea1 0:f2815503561f 81 #endif /* MPU9250ACCELERATIONMESSAGE_H_ */