DzikuVx / QuadMeUp_Crossbow

Cheap DIY RC link based on LoRa 868MHz modules
Mozilla Public License 2.0
115 stars 29 forks source link

Drop frame channelID field in favor of CRC with salt #50

Closed DzikuVx closed 6 years ago

DzikuVx commented 6 years ago

ChannelID (1st byte) of QSP packet is not needed. Drop it and instead use 32bit salt key for authorization:

Instead of initializing CRC with 0 at the beginning of frame encoding and decoding, initialize it with 32 bit secret key used to bind both TX and RX. This way, 1 byte will be saved and packets will be protected by crc only