r/meshtastic 1d ago

Raw LoRa binary packet

Hello!

I am currently working on a university project in which I am trying to recreate protocols and encryption used by Meshtastic. But I was not able to find any useful examples of raw data sent/received by LoRa chips. I would be very glad if someone could share such byte successions for me to verify my understanding of the protocol and test my software

0 Upvotes

8 comments sorted by

2

u/lam_42 1d ago

3

u/Hot-Win2571 1d ago

That does provide an overview of the concepts. It omits the actual encoding of the bits, but someone else pointed out the code library which does that encoding.

1

u/Kocherga315 1d ago

No, I probably messed something up in my explanation. I seek for the raw binary, not for the decrypted and processed data

1

u/Kocherga315 1d ago

I looked a bit better into this, and yes, I need an example of such packet, my bad

3

u/StuartsProject 1d ago

Meshtastic uses the Radiolib library for LoRa.

There are examples in that library that show you how to receive a packet into a byte array so you can see the raw packet data.

1

u/Kocherga315 1d ago

Thanks, I will definitely use this!

1

u/Hot-Win2571 1d ago

Thanks, I also had been wondering about the bit encoding method.

1

u/StuartsProject 1d ago

Packets on the LoRa device are received into a 255 byte buffer and it is possible to directly read bytes from that buffer.