ADR seemingly not working

Home Forums Conduit: mLinux Model ADR seemingly not working

Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21233
    Will San Filippo
    Participant

    Hello:

    I have a Conduit mLinux model running lora-network-server version 1.0.41. I am using my own end device and lora stack and I am confused by something the server is doing. I have ADR on and I see that the server is sending a MAC command to set the DR to DR_0 (the lowest for the 902-928 band). The signal being received by the GW is very strong (I saw a log message saying SNR 102 cB). This seems to be well above what is necessary to use a higher data rate. Is there something I am not configuring correctly?

    Here is the log of the server conf:
    “lora” : {
    “ADRStep” : 30,
    “beaconDelay” : 0,
    “beaconInterval” : 0,
    “beaconPower” : 27,
    “channelPlan” : “US915”,
    “dutyCyclePeriod” : 60,
    “eui_1” : “00:80:00:00:A0:00:0F:10”,
    “frequencyBand” : “US915”,
    “frequencyEU” : 867500000,
    “frequencySubBand” : 1,
    “joinByteOrder” : “LSB”,
    “joinDelay” : 5,
    “lbtEnabled” : false,
    “lbtScanTime” : 5000,
    “lbtSxOffset” : -4,
    “lbtThreshold” : -65,
    “maxDatarate” : null,
    “maxDatarateEU” : 5,
    “maxDatarateUS” : 4,
    “maxTxPower” : 14,
    “minDatarate” : null,
    “minDatarateEU” : 0,
    “minDatarateUS” : 0,
    “netID” : “010203”,
    “rx1DatarateOffset” : 0,
    “rx1Delay” : 1,
    “rx2Datarate” : 8,
    “rx2Frequency” : 923300000,
    “sxOffset” : -162

    #21237
    Jason Reiss
    Keymaster

    min/maxDatarate: null settings is the issue.

    Set min to 0.
    Set max to 3 or 4 for DR3 or DR4.

    Ignore the US and EU min/max settings.

    #21259
    Will San Filippo
    Participant

    Thanks for the quick reply but no luck. Note that what I posted before was not the actual contents of /var/config/lora/lora-network-server.conf. Rather it was from the log. Should not be a big deal I hope.

    I noticed that I received two MAC commands from the server. Here are the contents of each MAC command:

    Mac Command 1:
    datarate = 4
    TxPower = 0
    ChMask = 1
    Redundancy = 0x71

    This seems reasonable. It is telling me to use DR_4 and that the channel mask applies to channels 64-71 and to turn off all 125 kHz channels.

    Mac Command 2:
    datarate = 0
    TxPower = 0
    Redundancy = 1
    ChMask = 0xff

    This is the one that does not make sense. Well, the channel mask makes sense as it applies to the lower 8 channels and those are the ones I have enabled. However, why is it saying use DR_0? I would have thought it would say DR_3. Are there some other settings I need to change/set? Does Dwell Time have any effect on this? MaxTxPower?

    Just as an FYI my .conf file has this in it:

    “lora”: {
    “netID”: “010203”, /* netID for beacon packets */
    “frequencyBand”: “915”, /* US=”915″, EU=”868″ */
    “channelPlan”: “US915″, /* US=”915″, EU=”868” */
    “frequencySubBand”: 1, /* Sub-band for US operation, 1-8 */
    “rx1DatarateOffset”: 0, /* Datarate offset for mote rx window 1 sent in join response (0-3) */
    “rx2Datarate”: 8, /* Datarate for mote rx window 2 sent in join response EU:(0-7) AU/US:(8-13) */
    “minDatarate”: 0, /* Minimum US tx data rate for ADR */
    “maxDatarate”: 4, /* Maximum US tx data rate for ADR */
    “maxTxPower”: 14, /* Max Tx power (dBm), -6 to 26 */
    “ADRStep”: 30, /* 3 dB per ADR step */
    “frequencyEU”: 867500000 /* center freq for extra EU channels (Hz) */

    My log has this:
    “lora” : {
    “ADRStep” : 30,
    “beaconDelay” : 0,
    “beaconInterval” : 0,
    “beaconPower” : 27,
    “channelPlan” : “US915”,
    “dutyCyclePeriod” : 60,
    “eui_1” : “00:80:00:00:A0:00:0F:10”,
    “frequencyBand” : “US915”,
    “frequencyEU” : 867500000,
    “frequencySubBand” : 1,
    “joinByteOrder” : “LSB”,
    “joinDelay” : 5,
    “lbtEnabled” : false,
    “lbtScanTime” : 5000,
    “lbtSxOffset” : -4,
    “lbtThreshold” : -65,
    “maxDatarate” : 4,
    “maxDatarateEU” : 5,
    “maxDatarateUS” : 4,
    “maxTxPower” : 14,
    “minDatarate” : 0,
    “minDatarateEU” : 0,
    “minDatarateUS” : 0,
    “netID” : “010203”,
    “rx1DatarateOffset” : 0,
    “rx1Delay” : 1,
    “rx2Datarate” : 8,
    “rx2Frequency” : 923300000,
    “sxOffset” : -162
    },

    Thanks!

    #22001
    Jason Reiss
    Keymaster

    The first Adr downlink is used to setup the channel mask to the channels supported by th e gateway in case a device joined with 64 channels enabled.

    The datarate is not adjusted until 6 uplinks have been received to determine best datarate.

    Max tx power is gw transmit.
    Dwell time is only used in AS923.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.