Skip to content

LoRaWAN maximum payload length over-enforced at low data rates #7432

Closed
@EnsilicaEdd

Description

@EnsilicaEdd

Description

I've been doing some testing at low data rates with the LoRaWAN stack, and have been receiving failure code -1010 from LoRaWANInterface::send().

This is LORAWAN_STATUS_LENGTH_ERROR, and it seems that the stack thinks my message is too long. However, it's 50 bytes, which should be fine, since the maximum payload length at low data rates (for EU868 at least) is 51 bytes.

It seems that LoRaMac::prepare_frame is adding the LoRaWAN header to the message (an extra 13 bytes) before checking the length, and hence failing. Unless I've misunderstood something, the check should be before the header is added.

I'm almost up-to-date ( SHA: 9f27672 ), and it doesn't look like this has been touched by any recent changes.

Issue request type

[ ] Question
[ ] Enhancement 
[X] Bug 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions