Comments (11)
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.
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.
I would greatly appreciate any additional information or guidance you can provide on this issue.
from gr-lora_sdr.
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 theframe sync
, set the bandwidth to 125kHz(this is the LoRa signal bandwidth) and the os_factor to 8 (2MHz/125kHz). you can also remove thesamp_rate
variable if you don't use it.
Let me know if the issue changes
from gr-lora_sdr.
Ok, thanks again for taking the time.
I changed as you said.
Updated results with frame sync block sync word 0x34:
I do not get any output on this...
In the cmwx1zzabz_0xx.list STM32 file:
from gr-lora_sdr.
sorry, can you set the os_factor to 16 not 8 (of course 2MHz/125kHz is not 8, my bad)
from gr-lora_sdr.
No problem,
Still not any output...
from gr-lora_sdr.
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.
as an example this is the signal received for sf7 and sf12
from gr-lora_sdr.
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?
from gr-lora_sdr.
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.
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)
- LoRa spreading factor detector HOT 3
- Real Time Recording of Live LoRa Signals HOT 13
- Header Generation Process HOT 2
- When the tx_gain of the USRP B210 is relatively low, the communication distance between the USRP (as the transmitter) and the SX1280 is particularly short. HOT 5
- Implementing encoder and decoder with smaller SF 2-6 HOT 9
- getting nothing terminal window after running setup HOT 18
- PREAMBLE, SYNC WORD and LDRO HOT 6
- HackRF CRC issues HOT 3
- Erroneous Decoding for LDRO Enabled Transmissions HOT 1
- Error `include could not find requested file:` HOT 1
- ModuleNotFoundError even after loading PYTHONPATH HOT 2
- Chirps not appearing in Waterfall HOT 8
- RE:getting nothing terminal window after running setup HOT 6
- GNU Radio3.8.3.1 HOT 3
- Error when increasing spreading factor. HOT 4
- Cannot use a file source to replace USRP source HOT 12
- USRP not working HOT 6
- canβt recv LLCC68 message HOT 2
- Difficulties decoding meshtastic HOT 5
- Performance of cyl_bessel_i() on a low-powered arm64 device HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gr-lora_sdr.