LMIC Node, dropped packets?

I worked through most of my problems; the gateway dmesg errors were from the Multitech built in network server and poly_pkt_fwd fighting over control of the MTAC card.

LMIC library had to have channels pretty explicitly forced, these are the settings I ended up with that have it receiving every packet.

LMIC_selectSubBand(1);
//Disable FSB1, channels 0-7
for (int i = 0; i < 7; i++) {
    if (i != 10)
    LMIC_disableChannel(i);
  
}
//Disable FSB2-8, channels 16-72
for (int i = 16; i < 73; i++) {
    if (i != 10)
    LMIC_disableChannel(i);
  
}

LMIC_setAdrMode(0);
LMIC.dn2Dr = DR_SF10;

// Set data rate and transmit power for uplink (note: txpow seems to be ignored by the library)
LMIC_setDrTxpow(DR_SF10,23);

// Start job
do_send(&sendjob);

selectSubBand(1) wasn’t enough to make it stay on ttn’s default of FSB 2; it would transmit on channel 8,9,10,11,12,13,14 then jump to channel 64,65,66,67,68,69,70,71 and repeat 64,65,66,67,68,69,70,71. I had to manually disable every channel but 8 through 15, as well as disable ADR(ADR was causing it to jump to 64,65,66,67,68,69,70,71 as well and get stuck there).

1 Like