Stable version of the mDot library for mbed 5. This version of the library is suitable for deployment scenarios. See lastest commit message for version of mbed-os library that has been tested against.

Dependents:   mdot_two_way unh-hackathon-example unh-hackathon-example-raw TelitSensorToCloud ... more

Fork of libmDot-dev-mbed5-deprecated by MultiTech

The Dot library provides a LoRaWan certified stack for LoRa communication using MultiTech mDot and xDot devices. The stack is compatible with mbed 5.

The name of the repository can be used to determine which device the stack was compiled for and if it's a development or production-ready build:

A changelog for the Dot library can be found here.

The Dot library version and the version of mbed-os it was compiled against can both be found in the commit message for that revision of the Dot library. Building your application with the same version of mbed-os as what was used to build the Dot library is highly recommended!

The Dot-Examples repository demonstrates how to use the Dot library in a custom application.

The mDot and xDot platform pages have lots of platform specific information and document potential issues, gotchas, etc, and provide instructions for getting started with development. Please take a look at the platform page before starting development as they should answer many questions you will have.

FOTA

Full FOTA support is only available with mDot, xDot does not have the required external flash. xDot can use the FOTA example to dynamically join a multicast session only. After joining the multicast session the received Fragmentation packets could be handed to a host MCU for processing and at completion the firmware can be loaded into the xDot using the bootloader and y-modem. See xDot Developer Guide.

  • Add the following code to allow Fota to use the Dot instance

main.cpp

    // Initialize FOTA singleton
    Fota::getInstance(dot);
  • Add fragmentation handling the the PacketRx event

RadioEvent.h

    virtual void PacketRx(uint8_t port, uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr, lora::DownlinkControl ctrl, uint8_t slot, uint8_t retries, uint32_t address, bool dupRx) {
        mDotEvent::PacketRx(port, payload, size, rssi, snr, ctrl, slot, retries, address, dupRx);

#if ACTIVE_EXAMPLE == FOTA_EXAMPLE
        if(port == 200 || port == 201 || port == 202) {
            Fota::getInstance()->processCmd(payload, port, size);
        }
#endif
    }

A definition is needed to enable Fragmentation support on mDot and save fragments to flash. This should not be defined for xDot and will result in a compiler error.

mbed_app.json

{
    "macros": [
        "FOTA=1"
    ]
}

The FOTA implementation has a few differences from the LoRaWAN Protocol

  • Fragmentation Indexing starts at 0
  • McKEKey is 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
  • Start Time is a count-down in seconds to start of session

Changes

RevisionDateWhoCommit message
74:8b02b1a9a1b6 2020-03-25 jreiss Remove old ARMCC archive, only ARMC6 is available. default tip
73:30cdba59e67e 2020-03-13 Jenkins@KEILDM1.dc.multitech.prv mdot-library revision 3.3.5 and mbed-os revision mbed-os-5.15.1
72:b1e07ec1c30d 2020-02-17 Jenkins@KEILDM1.dc.multitech.prv mdot-library revision 3.3.5 and mbed-os revision mbed-os-5.13.4
71:ae3afc16ec3e 2019-11-08 Jenkins@KEILDM1.dc.multitech.prv mdot-library revision 3.2.5 and mbed-os revision mbed-os-5.13.4
70:0c5b5b02d17b 2019-11-08 Jenkins@KEILDM1.dc.multitech.prv mdot-library revision 3.2.5 and mbed-os revision mbed-os-5.13.4
69:e22889c7eaa9 2019-08-29 Jenkins@KEILDM1.dc.multitech.prv mdot-library revision 3.2.1 and mbed-os revision mbed-os-5.13.4
68:5f787643e7d7 2019-08-29 Jenkins@KEILDM1.dc.multitech.prv mdot-library revision 3.2.2-19-g285e497 and mbed-os revision mbed-os-5.13.4
67:a9d4d7cdeca1 2019-05-01 Jenkins@KEILDM1.dc.multitech.prv mdot-library revision 3.2.1 and mbed-os revision mbed-os-5.11.1
66:baa0f3116f1d 2019-04-23 Jenkins@KEILDM1.dc.multitech.prv mdot-library revision 3.2.0 and mbed-os revision mbed-os-5.11.1
65:acc0468b9aec 2019-04-18 Jenkins@KEILDM1.dc.multitech.prv mdot-library revision 3.2.0 and mbed-os revision mbed-os-5.11.1
64:64982192a2af 2018-08-23 Jenkins@KEILDM1.dc.multitech.prv mdot-library revision 3.1.0 and mbed-os revision mbed-os-5.7.7
63:ed37629c03cd 2018-06-19 Leon Lindenfelser Update the LICENSE.txt file
62:255e2ddc294e 2017-07-27 Jenkins@KEILDM1.dc.multitech.prv mdot-library revision 3.0.0 and mbed-os revision mbed-os-5.4.7
61:58ed1e136af5 2017-07-27 Jenkins@KEILDM1.dc.multitech.prv mdot-library revision 3.0.0 and mbed-os revision mbed-os-5.4.7
60:7985b4783af9 2017-07-27 Jenkins@KEILDM1.dc.multitech.prv mdot-library revision 3.0.0 and mbed-os revision mbed-os-5.4.7
59:0c4b59488f41 2017-05-04 Jenkins@KEILDM1.dc.multitech.prv mdot-library revision 2.0.17-1 and mbed-os revision mbed-os-5.4.2
58:b0703fda213b 2017-04-05 Jenkins@KEILDM1.dc.multitech.prv mdot-library revision 2.0.17 and mbed-os revision mbed-os-5.4.2
57:610f9e955516 2016-10-19 Jenkins@KEILDM1.dc.multitech.prv mdot-library revision 2.0.15 and mbed-os revision mbed-os-5.1.5
56:4ccb309b04b7 2016-10-19 Jenkins@KEILDM1.dc.multitech.prv mdot-library revision 2.0.15 and mbed-os revision mbed-os-5.1.5
55:b7ce38bdf24b 2016-10-18 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.15
54:7caf0cf9e6c5 2016-09-22 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.12
53:e7c44bbb64b4 2016-09-22 Mike Fiore add libmDot-GCC_ARM.a
52:6bd190195be2 2016-09-21 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.12
51:0faaa26360b4 2016-09-21 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.12
50:e0a9c9654ef9 2016-09-21 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.11-5-g01a4023
49:3095495dad54 2016-09-20 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.11-4-g888b80a
48:da8557ad9b76 2016-09-19 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.11-1-ga4188af
47:3a89adcc2c36 2016-09-16 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.10-5-g90c25e8
46:704864701b14 2016-09-16 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.10-5-g90c25e8
45:e5e992691082 2016-09-16 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.10-5-g90c25e8
44:d1279cde6d68 2016-09-16 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.10-5-g90c25e8
43:ba29a595814e 2016-09-16 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.10-5-g90c25e8
42:a4226c85b544 2016-09-16 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.10-1-gc02f6fc
41:4748544fa30f 2016-09-16 Mike Fiore rename library archive
40:04732c03bdd1 2016-09-13 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.9-2-gaefe95e
39:68b270b3eb5a 2016-09-13 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.9
38:7805077aca4c 2016-09-13 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.8-2-g83f0c1f
37:85ab51620cca 2016-09-13 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.8-1-g6f2b11f
36:b623d7713ea3 2016-09-09 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.8
35:a666b7d380e2 2016-09-09 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.6-19-ga6c9183
34:0a7e28568359 2016-09-08 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.6-18-g13caa2b
33:57082f91aab9 2016-09-08 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.6-17-ga4b3ffc
32:ccd7b1cd40cf 2016-09-08 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.6-15-g4eabd61
31:7fdee197d415 2016-09-08 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.6-13-g2591897
30:c3150500b324 2016-09-07 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.6-11-gaae06a1
29:58f367ec5905 2016-09-06 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.6-9-g7ff961b
28:af5eea5de2bc 2016-08-30 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.6-8-g38e8466
27:77283306c283 2016-08-30 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.6-7-g3dda6ef
26:17479e0039f6 2016-08-30 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.6-5-g26d9b3f
25:27e9d60ed709 2016-08-29 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.6-2-ge3d307b
24:60403f170c76 2016-08-26 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.6-1-g3959fe1
23:1fdfc0f71191 2016-08-25 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.5-1-gf4314b7
22:04e5cef7fe94 2016-08-25 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.5
21:d572753989fd 2016-08-24 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.4
20:9d665711ad56 2016-08-19 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.3-15-g0042cdf
19:f3a46d2bb9b3 2016-08-19 Jenkins@KEILDM1.dc.multitech.prv update from git revision 2.0.3-15-g0042cdf
18:3c8034e35a3e 2016-08-18 jreiss update to version 2.0.3
17:306ffaa5d79b 2016-08-17 jreiss update library to 2.0.2
16:b630e18103e5 2016-08-04 Mike Fiore update from libmDot-2.0.1-ARMCC.tar.gz
15:ea598f178cce 2016-03-29 Mike Fiore update to version 1.0.7 of mDot library