rpp0 / gr-lora

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

LimeSDR and LoPy4 - Can't decode LoRa signal #132

Open msalinascamus opened 3 years ago

msalinascamus commented 3 years ago

Hi I'm capturing and decoding a LoRa signal (I'm sending the same packet with a LoPy4 every 6 seconds) using a LimeSDR. But I'm not able to decode the LoRa packets. This is the flowgraph that I'm executing: Screenshot from 2021-03-03 00-40-58 And this is what I get in the console: Screenshot from 2021-03-03 00-42-18 I just get random or weird symbols when decoding, I been also using this repository https://github.com/PentHertz/LoRa_Craft but it hasn't help me. I thought that it could be the decimation or maybe the channel that I'm using but still haven't got good results. Thanks for reading, have a good day!

rpp0 commented 3 years ago

Hello

Can you send me a compressed raw capture file? I'd be interested to look at the signal.

msalinascamus commented 3 years ago

This is what I get in the file sink Screenshot from 2021-03-05 17-12-11

And this is what I get in the frequency waterfall plot Screenshot from 2021-03-05 15-07-16

rpp0 commented 3 years ago

I can't help you with that information alone; I need a capture file. That said, I can already see two potential misconfigurations:

It's important that the parameters you set in gr-lora are the same values your transmitter uses.

msalinascamus commented 3 years ago
rpp0 commented 3 years ago

Your SDR appears to be configured at the wrong center frequency. The LoRa signal is cut off at the edges of the bandwidth.

image

Edit: I forgot to update the axis labels, but that does not change anything about the result. I think in your second screenshot your sample rate was configured incorrectly as well.

image

This is probably why the signal doesn't decode properly.

msalinascamus commented 3 years ago

Thanks for the answer, but it seems weird to me that the SDR is configured at another center frequency. This picture shows the parameters of the LoRa Receiver block Screenshot from 2021-03-08 19-32-32 And the last two screenshot show the parameters of the LimeSDR Screenshot from 2021-03-08 19-32-12 Screenshot from 2021-03-08 19-32-00

freq_slider is set on default at 915MHz, gain at 50dB and samp_rate at 1MHz

rpp0 commented 3 years ago

What I mean with wrong center frequency is: in your capture file you appear to be transmitting a LoRa message at 915.5 MHz, while your SDR is tuned to 915 MHz with a bandwidth of 1 MHz. This means that 62,500 Hz from your LoRa signal will be cut off (as shown in my screenshot).

So, to fix your problem, you can either configure your SDR's center frequency so that the full signal is within the bandwidth of 1 MHz, or increase the bandwidth, or transmit at a channel that is closer to your center frequency using the LoPy. Please refer to the tutorial if anything is still unclear: https://github.com/rpp0/gr-lora/wiki/Capturing-LoRa-signals-using-an-RTL-SDR-device