This is an example application based on Mbed-OS LoRaWAN protocol APIs. The Mbed-OS LoRaWAN stack implementation is compliant with LoRaWAN v1.0.2 specification.

Dependencies:   Lorawan_Version_0_1

Dependents:   Lorawan_Version_0_1

mbed_app.json

Committer:
mbed_official
Date:
2018-04-18
Revision:
12:5015dfead3f2
Parent:
7:2fc0e8a7b6f0
Child:
15:6ae43b4082f8

File content as of revision 12:5015dfead3f2:

{
    "config": {
        "lora-radio": {
            "help": "Which radio to use (options: SX1272,SX1276)",
            "value": "SX1276"
        },
        "main_stack_size":     { "value": 4096 },

        "lorawan-enabled":     { "value": false},

        "lora-spi-mosi":       { "value": "NC" },
        "lora-spi-miso":       { "value": "NC" },
        "lora-spi-sclk":       { "value": "NC" },
        "lora-cs":             { "value": "NC" },
        "lora-reset":          { "value": "NC" },
        "lora-dio0":           { "value": "NC" },
        "lora-dio1":           { "value": "NC" },
        "lora-dio2":           { "value": "NC" },
        "lora-dio3":           { "value": "NC" },
        "lora-dio4":           { "value": "NC" },
        "lora-dio5":           { "value": "NC" },
        "lora-rf-switch-ctl1": { "value": "NC" },
        "lora-rf-switch-ctl2": { "value": "NC" },
        "lora-txctl":          { "value": "NC" },
        "lora-rxctl":          { "value": "NC" },
        "lora-ant-switch":     { "value": "NC" },
        "lora-pwr-amp-ctl":    { "value": "NC" },
        "lora-tcxo":           { "value": "NC" }
    },
    "target_overrides": {
        "*": {
            "platform.stdio-convert-newlines": true,
            "platform.stdio-baud-rate": 115200,
            "platform.default-serial-baud-rate": 115200,
            "lora.over-the-air-activation": true,
            "lora.duty-cycle-on": true,
            "lora.phy": 0,
            "lora.device-eui": "{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }",
            "lora.application-eui": "{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }",
            "lora.application-key": "{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }"
        },

        "K64F": {
            "lorawan-enabled":     true,

            "lora-spi-mosi":       "D11",
            "lora-spi-miso":       "D12",
            "lora-spi-sclk":       "D13",
            "lora-cs":             "D10",
            "lora-reset":          "A0",
            "lora-dio0":           "D2",
            "lora-dio1":           "D3",
            "lora-dio2":           "D4",
            "lora-dio3":           "D5",
            "lora-dio4":           "D8",
            "lora-dio5":           "D9",
            "lora-rf-switch-ctl1": "NC",
            "lora-rf-switch-ctl2": "NC",
            "lora-txctl":          "NC",
            "lora-rxctl":          "NC",
            "lora-ant-switch":     "A4",
            "lora-pwr-amp-ctl":    "NC",
            "lora-tcxo":           "NC"
        },

        "DISCO_L072CZ_LRWAN1": {
            "main_stack_size":      1024,
            "lorawan-enabled":      true,

            "lora-radio":          "SX1276",
            "lora-spi-mosi":       "PA_7",
            "lora-spi-miso":       "PA_6",
            "lora-spi-sclk":       "PB_3",
            "lora-cs":             "PA_15",
            "lora-reset":          "PC_0",
            "lora-dio0":           "PB_4",
            "lora-dio1":           "PB_1",
            "lora-dio2":           "PB_0",
            "lora-dio3":           "PC_13",
            "lora-dio4":           "NC",
            "lora-dio5":           "NC",
            "lora-rf-switch-ctl1": "NC",
            "lora-rf-switch-ctl2": "NC",
            "lora-txctl":          "PC_2",
            "lora-rxctl":          "PA_1",
            "lora-ant-switch":     "NC",
            "lora-pwr-amp-ctl":    "PC_1",
            "lora-tcxo":           "PA_12"
        },

        "MTB_MURATA_ABZ": {
            "main_stack_size":      1024,
            "lorawan-enabled":      true,

            "lora-radio":          "SX1276",
            "lora-spi-mosi":       "PA_7",
            "lora-spi-miso":       "PA_6",
            "lora-spi-sclk":       "PB_3",
            "lora-cs":             "PA_15",
            "lora-reset":          "PC_0",
            "lora-dio0":           "PB_4",
            "lora-dio1":           "PB_1",
            "lora-dio2":           "PB_0",
            "lora-dio3":           "PC_13",
            "lora-dio4":           "NC",
            "lora-dio5":           "NC",
            "lora-rf-switch-ctl1": "NC",
            "lora-rf-switch-ctl2": "NC",
            "lora-txctl":          "PC_2",
            "lora-rxctl":          "PA_1",
            "lora-ant-switch":     "NC",
            "lora-pwr-amp-ctl":    "PC_1",
            "lora-tcxo":           "PA_12"
        },

        "XDOT_L151CC": {
            "lorawan-enabled":      true,

            "lora-radio":           "SX1272",
            "lora-spi-mosi":        "LORA_MOSI",
            "lora-spi-miso":        "LORA_MISO",
            "lora-spi-sclk":        "LORA_SCK",
            "lora-cs":              "LORA_NSS",
            "lora-reset":           "LORA_RESET",
            "lora-dio0":            "LORA_DIO0",
            "lora-dio1":            "LORA_DIO1",
            "lora-dio2":            "LORA_DIO2",
            "lora-dio3":            "LORA_DIO3",
            "lora-dio4":            "LORA_DIO4",
            "lora-dio5":            "NC",
            "lora-rf-switch-ctl1":  "NC",
            "lora-rf-switch-ctl2":  "NC",
            "lora-txctl":           "NC",
            "lora-rxctl":           "NC",
            "lora-ant-switch":      "NC",
            "lora-pwr-amp-ctl":     "NC",
            "lora-tcxo":            "NC"
        },

        "MTB_MTS_XDOT": {
            "lorawan-enabled":      true,

            "lora-radio":           "SX1272",
            "lora-spi-mosi":        "LORA_MOSI",
            "lora-spi-miso":        "LORA_MISO",
            "lora-spi-sclk":        "LORA_SCK",
            "lora-cs":              "LORA_NSS",
            "lora-reset":           "LORA_RESET",
            "lora-dio0":            "LORA_DIO0",
            "lora-dio1":            "LORA_DIO1",
            "lora-dio2":            "LORA_DIO2",
            "lora-dio3":            "LORA_DIO3",
            "lora-dio4":            "LORA_DIO4",
            "lora-dio5":            "NC",
            "lora-rf-switch-ctl1":  "NC",
            "lora-rf-switch-ctl2":  "NC",
            "lora-txctl":           "NC",
            "lora-rxctl":           "NC",
            "lora-ant-switch":      "NC",
            "lora-pwr-amp-ctl":     "NC",
            "lora-tcxo":            "NC"
        },

        "LTEK_FF1705": {
            "lorawan-enabled":      true,

            "lora-radio":           "SX1272",
            "lora-spi-mosi":        "LORA_MOSI",
            "lora-spi-miso":        "LORA_MISO",
            "lora-spi-sclk":        "LORA_SCK",
            "lora-cs":              "LORA_NSS",
            "lora-reset":           "LORA_RESET",
            "lora-dio0":            "LORA_DIO0",
            "lora-dio1":            "LORA_DIO1",
            "lora-dio2":            "LORA_DIO2",
            "lora-dio3":            "LORA_DIO3",
            "lora-dio4":            "LORA_DIO4",
            "lora-dio5":            "NC",
            "lora-rf-switch-ctl1":  "NC",
            "lora-rf-switch-ctl2":  "NC",
            "lora-txctl":           "NC",
            "lora-rxctl":           "NC",
            "lora-ant-switch":      "NC",
            "lora-pwr-amp-ctl":     "NC",
            "lora-tcxo":            "NC"
        },

        "MTS_MDOT_F411RE": {
            "lorawan-enabled":      true,

            "lora-radio":           "SX1272",
            "lora-spi-mosi":        "LORA_MOSI",
            "lora-spi-miso":        "LORA_MISO",
            "lora-spi-sclk":        "LORA_SCK",
            "lora-cs":              "LORA_NSS",
            "lora-reset":           "LORA_RESET",
            "lora-dio0":            "LORA_DIO0",
            "lora-dio1":            "LORA_DIO1",
            "lora-dio2":            "LORA_DIO2",
            "lora-dio3":            "LORA_DIO3",
            "lora-dio4":            "LORA_DIO4",
            "lora-dio5":            "LORA_DIO5",
            "lora-rf-switch-ctl1":  "NC",
            "lora-rf-switch-ctl2":  "NC",
            "lora-txctl":           "LORA_TXCTL",
            "lora-rxctl":           "LORA_RXCTL",
            "lora-ant-switch":      "NC",
            "lora-pwr-amp-ctl":     "NC",
            "lora-tcxo":            "NC"
        },

        "MTB_ADV_WISE_1510": {
            "lorawan-enabled":      true,

            "lora-radio":           "SX1276",
            "lora-spi-mosi":        "SPI_RF_MOSI",
            "lora-spi-miso":        "SPI_RF_MISO",
            "lora-spi-sclk":        "SPI_RF_SCK",
            "lora-cs":              "SPI_RF_CS",
            "lora-reset":           "SPI_RF_RESET",
            "lora-dio0":            "DIO0",
            "lora-dio1":            "DIO1",
            "lora-dio2":            "DIO2",
            "lora-dio3":            "DIO3",
            "lora-dio4":            "DIO4",
            "lora-dio5":            "DIO5",
            "lora-rf-switch-ctl1":  "NC",
            "lora-rf-switch-ctl2":  "NC",
            "lora-txctl":           "NC",
            "lora-rxctl":           "NC",
            "lora-ant-switch":      "ANT_SWITCH",
            "lora-pwr-amp-ctl":     "NC",
            "lora-tcxo":            "NC"
        },

        "MTB_RAK811": {
            "lorawan-enabled":     true,

            "lora-radio":          "SX1276",
            "lora-spi-mosi":       "SPI_RF_MOSI",
            "lora-spi-miso":       "SPI_RF_MISO",
            "lora-spi-sclk":       "SPI_RF_SCK",
            "lora-cs":             "SPI_RF_CS",
            "lora-reset":          "SPI_RF_RESET",
            "lora-dio0":           "DIO0",
            "lora-dio1":           "DIO1",
            "lora-dio2":           "DIO2",
            "lora-dio3":           "DIO3",
            "lora-dio4":           "DIO4",
            "lora-dio5":           "NC",
            "lora-rf-switch-ctl1": "NC",
            "lora-rf-switch-ctl2": "NC",
            "lora-txctl":          "ANT_CTX_PA",
            "lora-rxctl":          "ANT_CRX_RX",
            "lora-ant-switch":     "NC",
            "lora-pwr-amp-ctl":    "NC",
            "lora-tcxo":           "RF_TCXO_EN"
        }
    },
    "macros": ["MBEDTLS_USER_CONFIG_FILE=\"mbedtls_lora_config.h\""]
}