Skip to content

LMIC ASSERT on line 1875: "ASSERT((LMIC.opmode & OP_TXRXPEND)!=0)" #91

@Bertramp

Description

@Bertramp

Hi
We have a setup using an RFM95 module with a builtin level shifter and an Arduino Uno with the pin mapping below.

const lmic_pinmap lmic_pins = {
        .nss = 6,
        .rxtx = LMIC_UNUSED_PIN,
        .rst = 5,
        .dio = {2, 3, 4},
    };

Data is being transmitted and we have verified it's arrival on the receiving end just fine using the "hello world" example, but this only works once. After transmitting the data it fails the ASSERT((LMIC.opmode & OP_TXRXPEND)!=0) in LMIC.c line 1875 getting the following output in the terminal:

Starting
Packet queued
274741: EV_TXCOMPLETE (includes waiting for RX windows)
FAILURE
C:\Users\az19667\Documents\libraries\arduino-lmic-master\src\lmic.c:1875

LMIC.c lines 1874 and 1875:

static bit_t processDnData (void) {
ASSERT((LMIC.opmode & OP_TXRXPEND)!=0);

We tried to figure out where the LMIC.opmode changed or possibly failed to change correctly, but couldn't. We have also checked the pin connections, changed the wires and switched to different pins on the arduino without any luck.

Has anybody had this problem or got a hunch about what we're doing wrong?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions