Git Product home page Git Product logo

Comments (11)

tapparelj avatar tapparelj commented on August 9, 2024

Hello @Stianje,
This repository only implements the LoRa physical layer, not the LoRaWAN MAC layer.
If you send messages from a device following the LoRaWAN specifications, you should be able to detect the frame, decode the explicit header correctly and recover the payload, however the payload will contain a MAC header (prepend by LoRaWAN) and still be encrypted.
I'm surprised the header checksum test fails as it let me think the configuration you did is mostly correct as the preamble gets detected.
If I remember correctly, LoRaWAN devices use the sync word 0x34. Did you set it up in the frame sync block?
Can you double check the spreading factor and the bandwidth you use at both the transmitter and receiver?

from gr-lora_sdr.

Stianje avatar Stianje commented on August 9, 2024

Thanks for the quick response,
I have been testing for a bit and have not been able to resolve the issue with the header checksum. I am trying to use the SDR as a gateway and have it publish the data. I have the sync word setting in the Frame sync block is set to "0x3444". I am using the STM32 ICube end_node code for the node. As a beginner in this topic, I am having trouble locating the spreading factor and bandwidth settings in the STM code, but I believe they should be set to default values of SF7 and BW125k.

GNU Radio Companion:
Screenshot from 2023-01-26 13-32-32

Running w/ waterfall:
Screenshot from 2023-01-26 13-34-43

I would greatly appreciate any additional information or guidance you can provide on this issue.

from gr-lora_sdr.

tapparelj avatar tapparelj commented on August 9, 2024

I see a few things here:

  • I've never had the chance to use a LoRa node using the 4Bytes sync word format (that your node seems to use given the value 0x3444 you want to use), can you set the sync word to 0x34 in the frame sync block as it should match the 0x3444 set in the STM node? This repo uses the 2 bytes format.
  • The sample rate, bw and os factor configuration has some issue. If you use a sample rate of 2MHz in the oscmocom source, set the bandwidth to the same value. Next, in the frame sync, set the bandwidth to 125kHz(this is the LoRa signal bandwidth) and the os_factor to 8 (2MHz/125kHz). you can also remove the samp_rate variable if you don't use it.

Let me know if the issue changes

from gr-lora_sdr.

Stianje avatar Stianje commented on August 9, 2024

Ok, thanks again for taking the time.
I changed as you said.

This is the updated GNU:
Screenshot from 2023-01-26 14-10-19

Updated results with frame sync block sync word 0x34:
Screenshot from 2023-01-26 14-19-59
I do not get any output on this...

In the cmwx1zzabz_0xx.list STM32 file:
image

from gr-lora_sdr.

tapparelj avatar tapparelj commented on August 9, 2024

sorry, can you set the os_factor to 16 not 8 (of course 2MHz/125kHz is not 8, my bad)

from gr-lora_sdr.

Stianje avatar Stianje commented on August 9, 2024

No problem,
Still not any output...

Updated result:
Screenshot from 2023-01-26 14-39-26

from gr-lora_sdr.

tapparelj avatar tapparelj commented on August 9, 2024

I am a bit surprised by the look of the waterfall, as nothing in it looks like a LoRa frame, but more like some FHSS modulation.
If you don't mind, could you use something like cubicSDR to have a good waterfall view of the spectrum?. (In order to check if what you transmit )

from gr-lora_sdr.

tapparelj avatar tapparelj commented on August 9, 2024

as an example this is the signal received for sf7 and sf12
Screenshot from 2023-01-26 14-52-55
Screenshot from 2023-01-26 14-57-32

from gr-lora_sdr.

Stianje avatar Stianje commented on August 9, 2024

I encountered some difficulties during the installation of CubicSDR.
However, after some troubleshooting, I discovered that the problem seemed to stem from the spreading factor (sf) value in the STM code. It turns out that the default value for sf in the code is not SF7 as I initially assumed, but rather SF12. Once I made this correction, I noticed improvement. I will continue to work on this issue, but I wanted to share this information in case it helps others who may be facing the same problem. Based on my current understanding, does this solution seem correct to you?

Progress:
Screenshot from 2023-01-26 16-53-27

A packet decoded:
Screenshot from 2023-01-26 17-02-00

from gr-lora_sdr.

tapparelj avatar tapparelj commented on August 9, 2024

Yes, the header is found and the checksum is correct. In addition if the CRC is valid, it means that you received the entire payload correctly.
Then you have to decode the payload yourself as it's encoded by the MAC layer, which is not implemented in this repository for now.

from gr-lora_sdr.

Stianje avatar Stianje commented on August 9, 2024

Thank you for your hard work and guidance. We were able to successfully resolve this.
I'm closing this issue now.

from gr-lora_sdr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.