Newer
Older
mbed-os / connectivity / lorawan / mbed_lib.json
@Danny Goossen Danny Goossen on 11 Aug 2022 4 KB LoRaWAN AS923 Add SUB_REGION AS1..AS4
{
    "name": "lora",
    "requires": ["mbedtls", "events"],
    "config": {
        "phy": {
            "help": "LoRa PHY region: EU868, AS923, AU915, CN470, CN779, EU433, IN865, KR920, US915",
            "value": "EU868"
        },
        "phy-as923-sub-region" : {
            "help": "AS923 sub region: AS1, AS2, AS3, AS4",
            "value": "AS1"
        },
        "over-the-air-activation": {
            "help": "When set to 1 the application uses the Over-the-Air activation procedure, default: true",
            "value": true
        },
        "nb-trials": {
            "help": "Indicates how many times join can be tried, default: 12",
            "value": 12
        },
        "device-eui": {
            "help": "Mote device IEEE EUI",
            "value": "{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}"
        },
        "application-eui": {
            "help": "Application IEEE EUI",
            "value": "{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}"
        },
        "application-key": {
            "help": "AES encryption/decryption cipher application key",
            "value": "{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}"
        },
        "device-address": {
            "help": "Device address on the network",
            "value": "0x00000000"
        },
        "nwkskey": {
            "help": "AES encryption/decryption cipher network session key",
            "value": "{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}"
        },
        "appskey": {
            "help": "AES encryption/decryption cipher application session key",
            "value": "{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}"
        },
        "app-port": {
            "help": "LoRaWAN application port, default: 15",
            "value": 15
        },
        "tx-max-size": {
            "help": "User application data buffer maximum size, default: 64, MAX: 255",
            "value": 64
        },
        "adr-on": {
            "help": "LoRaWAN Adaptive Data Rate, default: 1",
            "value": 1
        },
        "public-network": {
            "help": "LoRaWAN will connect to a public network or private network, true = public network",
            "value": true
        },
        "duty-cycle-on": {
            "help": "Enables/disables duty cycling. NOTE: Disable only for testing. Mandatory in many regions.",
            "value": true
        },
        "duty-cycle-on-join": {
            "help": "Enables/disables duty cycling for JOIN requests (disabling requires duty-cycle-on to be disabled). NOTE: Disable only for testing!",
            "value": true
        },
        "lbt-on": {
            "help": "Enables/disables LBT. NOTE: [This feature is not yet integrated].",
            "value": false
        },
        "automatic-uplink-message": {
            "help": "Stack will automatically send an uplink message when lora server requires immediate response",
            "value": true
        },
        "max-sys-rx-error": {
            "help": "Max. timing error fudge. The receiver will turn on in [-RxError : + RxError]",
            "value": 5
        },
        "wakeup-time": {
            "help": "Time in (ms) the platform takes to wakeup from sleep/deep sleep state. This number is platform dependent",
            "value": 5
        },
        "downlink-preamble-length": {
            "help": "Number of whole preamble symbols needed to have a firm lock on the signal.",
            "value": 5
        },
        "uplink-preamble-length": {
            "help": "Number of preamble symbols to transmit. Default: 8",
            "value": 8
        },
        "fsb-mask": {
            "help": "FSB mask for upstream [Only for US915 & AU915] Check lorawan/FSB_Usage.txt for more details",
            "value": "{0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x00FF}"
        },
        "fsb-mask-china": {
            "help": "FSB mask for upstream [CN470 PHY] Check lorawan/FSB_Usage.txt for more details",
            "value": "{0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF}"
        }
    },
    "target_overrides": {
        "STM32WL": {
            "wakeup-time": 3,
            "max-sys-rx-error": 10
        }
    }
}