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.
Supported Sensors
- MAX44009 (Lux Measurment) http://www.ebay.ie/itm/MAX44009-Ambient-Light-Sensor-Module-for-Arduino-with-4P-Pin-Header-/381676089124?hash=item58ddaaef24:g:-ecAAOSwzJ5XZm5E
- BME280 (Temperature, Pressure and Humdity Measurment) At the moment there are some known problem using this. https://www.adafruit.com/product/2652 https://www.amazon.com/Diymall-Pressure-Temperature-Sensor-Arduino/dp/B0118XCKTG
- MPU9250 (Acceleration, Gyroscope and Magnetometer) http://www.watterott.com/de/9-DOF-IMU-Module-With-MPU-9250
- Si1143 (Proximity up to 50cm) https://moderndevice.com/product/si1143-proximity-sensors/
- uBlox M8Q (GPS Position) http://www.dx.com/de/p/gygpsv3-m8n-u-blox-neo-m8n-001-flight-controller-gps-module-blue-394557#.V4lFW-uLRhE
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
app/UBloxGPSMessage.h@0:f2815503561f, 2016-07-06 (annotated)
- Committer:
- mitea1
- Date:
- Wed Jul 06 20:40:36 2016 +0000
- Revision:
- 0:f2815503561f
initial commit;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mitea1 | 0:f2815503561f | 1 | /** |
mitea1 | 0:f2815503561f | 2 | * @file UBloxGPSMessage.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 UBLOXGPSMESSAGE_H_ |
mitea1 | 0:f2815503561f | 10 | #define UBLOXGPSMESSAGE_H_ |
mitea1 | 0:f2815503561f | 11 | |
mitea1 | 0:f2815503561f | 12 | #include <stdio.h> |
mitea1 | 0:f2815503561f | 13 | #include <string> |
mitea1 | 0:f2815503561f | 14 | #include <vector> |
mitea1 | 0:f2815503561f | 15 | #include "SensorMessage.h" |
mitea1 | 0:f2815503561f | 16 | |
mitea1 | 0:f2815503561f | 17 | /** |
mitea1 | 0:f2815503561f | 18 | * @class UBloxGPSMessage |
mitea1 | 0:f2815503561f | 19 | * @brief A Container that can hold acquired gps values from the uBLOX. The container will be |
mitea1 | 0:f2815503561f | 20 | * transported via a MessageQueue between different Tasks. |
mitea1 | 0:f2815503561f | 21 | */ |
mitea1 | 0:f2815503561f | 22 | |
mitea1 | 0:f2815503561f | 23 | class UBloxGPSMessage: public SensorMessage { |
mitea1 | 0:f2815503561f | 24 | public: |
mitea1 | 0:f2815503561f | 25 | UBloxGPSMessage(); |
mitea1 | 0:f2815503561f | 26 | virtual ~UBloxGPSMessage(); |
mitea1 | 0:f2815503561f | 27 | |
mitea1 | 0:f2815503561f | 28 | |
mitea1 | 0:f2815503561f | 29 | /** |
mitea1 | 0:f2815503561f | 30 | * @brief Sets the longitude value of the uBloxGPSMessage |
mitea1 | 0:f2815503561f | 31 | * @param longitude longitude value to be stored |
mitea1 | 0:f2815503561f | 32 | */ |
mitea1 | 0:f2815503561f | 33 | void setLongitude(float longitude); |
mitea1 | 0:f2815503561f | 34 | |
mitea1 | 0:f2815503561f | 35 | /** |
mitea1 | 0:f2815503561f | 36 | * @brief Sets the latitude value of the uBloxGPSMessage |
mitea1 | 0:f2815503561f | 37 | * @param latitude latitude value to be stored |
mitea1 | 0:f2815503561f | 38 | */ |
mitea1 | 0:f2815503561f | 39 | void setLatitude(float latitude); |
mitea1 | 0:f2815503561f | 40 | |
mitea1 | 0:f2815503561f | 41 | |
mitea1 | 0:f2815503561f | 42 | /** |
mitea1 | 0:f2815503561f | 43 | * @brief Gets the longitude value of the uBloxGPSMessage |
mitea1 | 0:f2815503561f | 44 | * @return |
mitea1 | 0:f2815503561f | 45 | */ |
mitea1 | 0:f2815503561f | 46 | float getLongitude(); |
mitea1 | 0:f2815503561f | 47 | |
mitea1 | 0:f2815503561f | 48 | /** |
mitea1 | 0:f2815503561f | 49 | * @brief Gets the latitude value of the uBloxGPSMessage |
mitea1 | 0:f2815503561f | 50 | * @return |
mitea1 | 0:f2815503561f | 51 | */ |
mitea1 | 0:f2815503561f | 52 | float getLatitude(); |
mitea1 | 0:f2815503561f | 53 | |
mitea1 | 0:f2815503561f | 54 | /** |
mitea1 | 0:f2815503561f | 55 | * Gets a small LoRaMessage Type Formated String from the uBloxGPSMessage. |
mitea1 | 0:f2815503561f | 56 | * This String can later be used for transportation via LoRa |
mitea1 | 0:f2815503561f | 57 | * @return |
mitea1 | 0:f2815503561f | 58 | */ |
mitea1 | 0:f2815503561f | 59 | virtual char* getLoRaMessageString(); |
mitea1 | 0:f2815503561f | 60 | |
mitea1 | 0:f2815503561f | 61 | private: |
mitea1 | 0:f2815503561f | 62 | std::string loraMessage; |
mitea1 | 0:f2815503561f | 63 | std::vector<std::string> loraMessageId; |
mitea1 | 0:f2815503561f | 64 | |
mitea1 | 0:f2815503561f | 65 | float longitude; |
mitea1 | 0:f2815503561f | 66 | float latitude; |
mitea1 | 0:f2815503561f | 67 | }; |
mitea1 | 0:f2815503561f | 68 | |
mitea1 | 0:f2815503561f | 69 | |
mitea1 | 0:f2815503561f | 70 | #endif /* UBLOXGPSMESSAGE_H_ */ |