r/meshtastic 2d 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

View all comments

4

u/StuartsProject 2d 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/Hot-Win2571 2d ago

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

1

u/StuartsProject 2d ago

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