Skip to content

RadioLib LoRa Packet Structure #526

Answered by jgromes
Jaimi5 asked this question in Q&A
Discussion options

You must be logged in to vote

To answer the question, here's a picture of the LoRa packet description from SX1262 datasheet (you didn't mention which device are you using, but the packet format is generally the same so it doesn't matter anyway):

The header is only sent in explicit header mode (enabled by default), will always be sent with CR=4/8 and will always include its own CRC. This is all handled by the SX12xx device.

The CRC enabling/disabling done by RadioLib only affects the payload CRC at the end of the packet. The coding rate you select will in turn only affect the payload, and the payload CRC. There's no coding done on the preamble (since it's just a bunch of upchirps), and the header always uses CR=4/8.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Jaimi5
Comment options

Answer selected by Jaimi5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants