Skip to content

Sigfox_AT_Slave: Incorrect Downlink Payload Length Printed (Extra 8 Bytes Appended) #105

Description

@Mona-Roza

When using the ready-to-use project located at:

STM32CubeWL/Projects/B-WL5M-SUBG1/Applications/Sigfox/Sigfox_AT_Slave/

and sending any type of uplink message with the downlink flag enabled (using any serial terminal/x-serial connection tool), the following issue occurs:

  • The AT slave correctly receives and collects the downlink message from the receiver.
  • However, when forwarding the downlink payload to the user via the AT interface, the payload is printed incorrectly.

Although the downlink payload size is 8 bytes, the application prints the array as if its size were 8 * 2 bytes. As a result, an additional 8 random bytes are appended to the end of the printed message.

This behavior suggests that the array length is misused during formatting/output (likely confusing byte length with hexadecimal character length), causing unintended memory content to be printed.

Expected Behavior

Only the actual 8-byte downlink payload should be printed.

Actual Behavior

The output includes the correct 8-byte payload followed by 8 additional random bytes.

Please review the payload printing logic in the AT slave project and correct the array length handling to prevent extra memory from being printed.

  • Image
  • Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginternal bug trackerIssue confirmed and logged into the internal bug tracking systemprojectsProjects-related (demos, applications, examples) issue or pull-request.sigfoxSigfox-related issue or pull-request.wirelessWireless

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions