Hi all,
I’m trying to recieve downlink messages over the TTN network, but nothing comes in.
I’m using:
-
Arduino UNO
-
Dragino Lora Shield (868Mhz version - sx1276)
-
Arduino-LMIC library (latest version as of today - https://github.com/matthijskooijman/arduino-lmic)
-
The ttn-abp example sketch, modified for my application (NWKSKEY, APPSKEY and DEVADDR) and modified for the pin layout for the Dragino Shield:
// Pin mapping
const lmic_pinmap lmic_pins = {
.nss = 10,// Connected to pin D10
.rxtx = LMIC_UNUSED_PIN,// For placeholder only, Do not connected on RFM92/RFM95
.rst = 9,// Needed on RFM92/RFM95? (probably not)
.dio = {2, 6, 7},// Specify pin numbers for DIO0, 1, 2
// connected to D2, D6, D7
};
Uplink messages come in fine at RSSI -93 / -95.
When I send back a downlink message, using the TTN staging dashboard, the sketch output doesn’t show any downlink activity.
Debug log from the serial window:
Starting
RXMODE_RSSI
231: engineUpdate, opmode=0x808
759: TXMODE, freq=868100000, len=25, SF=7, BW=125, CR=4/5, IH=0
Packet queued
67136: RXMODE_SINGLE, freq=868100000, SF=7, BW=125, CR=4/5, IH=0
129925: RXMODE_SINGLE, freq=869525000, SF=9, BW=125, CR=4/5, IH=0
369426: EV_TXCOMPLETE (includes waiting for RX windows)
369480: engineUpdate, opmode=0x800
4119480: engineUpdate, opmode=0x808
4120019: TXMODE, freq=868300000, len=25, SF=7, BW=125, CR=4/5, IH=0
Packet queued
4186332: RXMODE_SINGLE, freq=868300000, SF=7, BW=125, CR=4/5, IH=0
4249119: RXMODE_SINGLE, freq=869525000, SF=9, BW=125, CR=4/5, IH=0
4500744: EV_TXCOMPLETE (includes waiting for RX windows)
4500800: engineUpdate, opmode=0x800
8250801: engineUpdate, opmode=0x808
8251339: TXMODE, freq=868500000, len=25, SF=7, BW=125, CR=4/5, IH=0
Packet queued
8317652: RXMODE_SINGLE, freq=868500000, SF=7, BW=125, CR=4/5, IH=0
8380440: RXMODE_SINGLE, freq=869525000, SF=9, BW=125, CR=4/5, IH=0
8588781: EV_TXCOMPLETE (includes waiting for RX windows)
8588837: engineUpdate, opmode=0x800
12338837: engineUpdate, opmode=0x808
12339378: TXMODE, freq=867100000, len=25, SF=7, BW=125, CR=4/5, IH=0
Packet queued
12405691: RXMODE_SINGLE, freq=867100000, SF=7, BW=125, CR=4/5, IH=0
12468480: RXMODE_SINGLE, freq=869525000, SF=9, BW=125, CR=4/5, IH=0
12750901: EV_TXCOMPLETE (includes waiting for RX windows)
12750961: engineUpdate, opmode=0x800
I’m not really sure where to look next to get downlink data working. The gateway is not under my control.
Any idea what to do to debug this further?
Thanks!
– edit: this is the payload recieved by the ‘shore’ side, screenshot taken at a later time than debug data above.
The “Hello worl!” (without the d) is deliberate.