Two way data over LoRaWAN using Multitech mDot

Dependencies:   libmDot-mbed5

This is example firmware for the Multitech mDot. It demonstrates how to:

  • Do two-way data.
  • Sleep aggressively and only wake up when the wake-up pin is triggered.
  • Handle errors, retries and duty cycle errors.
  • Cache data in non-volatile storage.

Based on mbed OS 5.1, hard faults against mbed OS 5.3 unfortunately. Can be compiled with GCC and ARMCC (but not IAR).

To do a new transmission, short pin D6 / PA_1.

Committer:
Jan Jongboom
Date:
Wed Jan 04 13:45:49 2017 +0000
Revision:
4:0fd5e5e121ea
Parent:
0:20fbd6f66b11
Retry OTA join when fails during startup

Who changed what in which revision?

UserRevisionLine numberNew contents of line
janjongboom 0:20fbd6f66b11 1 """
janjongboom 0:20fbd6f66b11 2 mbed SDK
janjongboom 0:20fbd6f66b11 3 Copyright (c) 2016 ARM Limited
janjongboom 0:20fbd6f66b11 4
janjongboom 0:20fbd6f66b11 5 Licensed under the Apache License, Version 2.0 (the "License");
janjongboom 0:20fbd6f66b11 6 you may not use this file except in compliance with the License.
janjongboom 0:20fbd6f66b11 7 You may obtain a copy of the License at
janjongboom 0:20fbd6f66b11 8
janjongboom 0:20fbd6f66b11 9 http://www.apache.org/licenses/LICENSE-2.0
janjongboom 0:20fbd6f66b11 10
janjongboom 0:20fbd6f66b11 11 Unless required by applicable law or agreed to in writing, software
janjongboom 0:20fbd6f66b11 12 distributed under the License is distributed on an "AS IS" BASIS,
janjongboom 0:20fbd6f66b11 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
janjongboom 0:20fbd6f66b11 14 See the License for the specific language governing permissions and
janjongboom 0:20fbd6f66b11 15 limitations under the License.
janjongboom 0:20fbd6f66b11 16 """
janjongboom 0:20fbd6f66b11 17
janjongboom 0:20fbd6f66b11 18 from os.path import join, abspath, dirname
janjongboom 0:20fbd6f66b11 19
janjongboom 0:20fbd6f66b11 20 #ROOT = abspath(join(dirname(__file__), "."))
janjongboom 0:20fbd6f66b11 21
janjongboom 0:20fbd6f66b11 22 ##############################################################################
janjongboom 0:20fbd6f66b11 23 # Build System Settings
janjongboom 0:20fbd6f66b11 24 ##############################################################################
janjongboom 0:20fbd6f66b11 25 #BUILD_DIR = abspath(join(ROOT, "build"))
janjongboom 0:20fbd6f66b11 26
janjongboom 0:20fbd6f66b11 27 # ARM
janjongboom 0:20fbd6f66b11 28 #ARM_PATH = "C:/Program Files/ARM"
janjongboom 0:20fbd6f66b11 29
janjongboom 0:20fbd6f66b11 30 # GCC ARM
janjongboom 0:20fbd6f66b11 31 #GCC_ARM_PATH = ""
janjongboom 0:20fbd6f66b11 32
janjongboom 0:20fbd6f66b11 33 # GCC CodeRed
janjongboom 0:20fbd6f66b11 34 #GCC_CR_PATH = "C:/code_red/RedSuite_4.2.0_349/redsuite/Tools/bin"
janjongboom 0:20fbd6f66b11 35
janjongboom 0:20fbd6f66b11 36 # IAR
janjongboom 0:20fbd6f66b11 37 #IAR_PATH = "C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.0/arm"
janjongboom 0:20fbd6f66b11 38
janjongboom 0:20fbd6f66b11 39 # Goanna static analyser. Please overload it in private_settings.py
janjongboom 0:20fbd6f66b11 40 #GOANNA_PATH = "c:/Program Files (x86)/RedLizards/Goanna Central 3.2.3/bin"
janjongboom 0:20fbd6f66b11 41
janjongboom 0:20fbd6f66b11 42 #BUILD_OPTIONS = []
janjongboom 0:20fbd6f66b11 43
janjongboom 0:20fbd6f66b11 44 # mbed.org username
janjongboom 0:20fbd6f66b11 45 #MBED_ORG_USER = ""