Skip to content

FW 1.3.0 (1.3.1?) only sends empty messages #7

@javafrog

Description

@javafrog

After updating the library and the FW accordingly, the receiving side (TTN) only gets empty messages. This is true for confirmed and for unconfirmed messages. OTAA join works, though.

grafik

I was using the old FW and MKRWAN1 before and the same code did work. I even have a serial debug output which clearly shows that the message is not actually empty:

Sending: d=8190,v=1.31,w=B - 64 3D 38 31 39 30 2C 76 3D 31 2E 33 31 2C 77 3D 42

This is the relevant code:

{
    Serial.println();
    Serial.print("Sending: " + messageStr + " - ");

    for (unsigned int i = 0; i < messageStr.length(); i++)
    {
        Serial.print(messageStr[i] >> 4, HEX);
        Serial.print(messageStr[i] & 0xF, HEX);
        Serial.print(" ");
    }
    Serial.println();

    int err;
    modem.beginPacket();
    modem.print(messageStr);
    err = modem.endPacket(false); // do not request packet confirmation

    if (err > 0)
    {
        Serial.println("Message sent!");
    }
    else
    {
        Serial.println("Error sending message :(");
        Serial.println("(you may send a limited amount of messages per minute, depending on the signal strength");
        Serial.println("it may vary from 1 message every couple of seconds to 1 message every minute)");
    }
}```

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: documentationRelated to documentation for the projecttype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions