-
Hi! When enabling the CRC, and having a 4/7 CR configured, is it right the bellow image? It is always enabled the PHDR_CRC (header CRC)? I don't fully understand which CRC I am enabling. Hope this is not a dumb question and thanks for your time! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
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.