rpp0 / gr-lora

GNU Radio blocks for receiving LoRa modulated radio messages using SDR
GNU General Public License v3.0
537 stars 115 forks source link

Encoder generated dada cannot be decoded by decoder! #86

Open wwwzrb opened 5 years ago

wwwzrb commented 5 years ago

hi rpp0, I am trying to decode the generated samples by encoder. My grc is shown in the following figure. The data is 0x04 0x08 0xf0 0x00 0x00 0x00 0x00. en_de_sim

However I find listed problems:

  1. The header part is decoded correctly. The payload part cannot be decoded. I print the encoder and decoder process into files. Result shows that the bins of the decoder are exactly 1 less the encoder bins. As shown in the following two figure, in the second block, the bins in encoder are 50, 101, 74, 85, 109, 42, 90, 77. While the bins in the decoder is 49, 100, 73, 84, 108, 41, 89, 76.

  2. The third block in the decoder is all zeros and it seems that the third block is not add in the encoder. There are only two blocks according to the printed result in the encoder.

Encoder Result: encoder_sim Decoder Result: decoder_sim

Hope you can give some possible reasons. Thanks a lot!

jason955 commented 5 years ago

Hey man, I'm having trouble with this provided test packet. Can you tell me what values you are using before the data to set the TAP and PHY fields?