Differences Basic Station and TTN JSON messages

I can install Basic Station on the RAK831 and connect it to TTN (LNS). Sensor data can be sent to the LNS and the end node can receive downlink message from the LNS.

However I noticed a few differences:

  1. When a class A downlink message is sent from TTN to Basic Station, the JSON message has a DevEui field which contains β€œ00-00-00-00-00-00-00-00”. Here an actual example, formatted for readability:

    {
      "msgtype": "dnmsg",
      "DevEui": "00-00-00-00-00-00-00-00",
      "dC": 0,
      "diid": 33008,
      "pdu": "60cc2f012600000001799eee1b5c",
      "RxDelay": 1,
      "RX1DR": 5,
      "RX1Freq": 867900000,
      "priority": 25,
      "xtime": 57702370502666750,
      "rctx": 0,
      "MuxTime": 1583847673.6406784
    }
    

    My question: Is this correct?

    In the Basic Station code, the dntxed message can not be send if DevEUI is 0. See: https://github.com/lorabasics/basicstation/blob/c29b8502f8c715daecec6666835da6e981dc820a/src/s2e.c#L263

  2. The LNS sends the following message:

    {
      "msgtype": "router_config",
      ....,
      "sx1301_conf": [{
        "lorawan_public": true,
        "clksrc": 1,
        "antenna_gain": 0,
        "radio_0": .....
    

    As you can see, the antenna_gain is part of β€œsx1301_conf” but in the Basic Station code the antenna_gain is not expected there. It is expected in radio_0 or radio_1, see: https://github.com/lorabasics/basicstation/blob/c29b8502f8c715daecec6666835da6e981dc820a/examples/live-s2.sm.tc/station.conf#L13

    My question is: Who is correct? I think basic station code is wrong, but I am not 100% sure.

1 Like

Meanwhile 3 months have passed. Did you ever solve this?