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

Getting Started

To use the Firmware out of the Box perform the 3 Steps below. If you've done that then can compile your code and load it on to your mDot.

1. Choosing the Application Mode

Using the mDot as a specific LoRa Sensornode is very easy. Just take a look at the predefined Application_Modes and choose the one that suits your use case.

Add the Application_Mode as a parameter to init() thats all

building of a specific Sensorapplication using APPLICATION_MODE_1

int main() {

	Application application;
	application.init(APPLICATION_MODE_1);


    while (true) {
    	sleep();
    }

    return 0;
}

You are also able to define your own Application_Mode and start your self defined Sensornode

building of a specific Sensorapplication using a selfdefined YOUR_OWN_APPLICATION_MODE

int main() {

	Application application;
	application.init(YOUR_OWN_APPLICATION_MODE);


    while (true) {
    	sleep();
    }

    return 0;
}

2. Cofiguring LoRa Connection

ABP

At the moment only ABP is supported. Go to LoRaConfig.h and change the LORA_NETWORK_NAME and LORA_NETWORK_PASSPHRASE according to your Gateway. the Listing shows you the defines for a Gateway where the Networkname is conduitgwy and the Passphrase is also conduitgwy

snippet of LoRaConfig.h

...
#define LORA_NETWORK_NAME			"conduitgwy"
#define LORA_NETWORK_PASSPHRASE		"conduitgwy"
...

3. Connection the Sensor

Connect all the sensors you wanna use according to the Installation of the Sensors Wiki. Important If Si1143 is not connected take a look at the Bugs Section of the Overview Wiki. Be also sure that you connected all the Sensors that are use be the Tasks that run according to your chosen Application Mode


All wikipages