-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in receiving and decoding msgs with SF 5 and SF 6 #67
Comments
Can this block be modified for Sx1261/2/8 for SF 5 and SF 6? |
I'm planning to start working to add support for those spreading factors as the next improvement to this repo. If the reverse engineering goes well, I should be able to add it to the repo before the end of the year. |
Ok....pls let me know if any assistance is required... Also I am trying to use rtlsdr as source in the rx flowgraph, but the flowgraph keeps throwing error No device detected, however all the libs pertaining to RTL have been installed. Y is it so? |
I'm sorry, but I don't have too much experience with rtl-sdr. I never had issues when using them so I never had to debug it. You can try using your rtl-sdr with something else than gnuradio to narrow down where the problem comes from (for exemple cubicSDR or GQRX). In gnuradio, iirc, gr-osmocom was supporting rtl-sdr you might give it a try as well. |
Hi @jds0987, |
Hi @tapparelj I tried the SF 5 and 6 Branch of ur code.... Still same issue. This block is not decoding for SF 5 and 6. It is working fine for SF 7 to SF 12. |
Hi,
|
I am using WifiLoRA32(V3) which is using SX1262chip. I am also sharing Arduino code of LoRA transmitter which is being used to transmit LoRA messages. `#include "LoRaWan_APP.h" #define RF_FREQUENCY 915000000 // Hz #define TX_OUTPUT_POWER 5 // dBm #define LORA_BANDWIDTH 0 // [0: 125 kHz, #define RX_TIMEOUT_VALUE 1000 char txpacket[BUFFER_SIZE]; double txNumber; bool lora_idle=true; static RadioEvents_t RadioEvents; void setup() {
} void loop()
Radio.IrqProcess( ); void OnTxDone( void ) void OnTxTimeout( void ) |
Hi, what are the values in the very first frame detected (there should be 20 consecutive values before the header error)? For me this is: 0x0, 0x0, 0x7, 0xc, 0x1f, 0xc, 0x6, 0x7, 0x1, 0x6, 0xa, 0x1d, 0xf, 0x11, 0xb, 0x16, 0x7, 0x1c, 0x1a |
This myt be the header, that is getting printed. I ran the test for SF7 it is giving the following output. Probably, the flowgraph initiates by comparing the header values, Post comparison it starts decoding. For SF7 the header comparison passes and the transmitted msg is then decoded. But for SF 5 the comparison process is not getting through and the header checksum fails. Probably The header checksum block for SF5 and SF6 need to be modified. |
I am uploading a recording for SF5 transmitted using the heltec transmitter i have for ur testing purpose. It might help u to understand the transmission. |
I'm not expecting the header check to pass with sf5 with the version I pushed on the branch. I just wanted to compare what the first 20 values are. Can you send me what the very first values are (here you send screenshots after multiple frames. With the changes I made to understand what is different for you, this is just random, except for the first)? |
This is intriguing, if you have those values as well then the header decoding should be handled exactly the same as for me. git clone https://github.com/tapparelj/gr-lora_sdr.git
git checkout feature/sf5_6_sx126x
cd gr-lora_sdr
mkdir build
cd build
cmake ..
make -j4 (the 4 specify that you can use 4 cores to build instead of the default 1, you can change to whatever fits your system)
sudo make install This new version should work for sf5 and print the values if you set the soft-decoding to false. For me with sf5, the terminal prints
|
Hi, Snippet of output
|
The syncword I am using is 0x1424 and 0x16 only sf5 with syncword 0x1424 is decoding by the decoder, when I change that to 0x16 it's not |
Hello @jithivk, |
Yes I can transmit and receive with 0x16 but when I am using 0x34 it's not
working with nicerf sx1268 chip
…On Fri, 8 Dec 2023, 8:48 pm Joachim Tapparel, ***@***.***> wrote:
Hello @jithivk <https://github.com/jithivk>,
it makes sense to me that 0x16 doesn't work as it would correspond to
modulated symbols 8 and 48, but sf5 can only send symbol index up to 31. I
don't know how semtech deals with that, do they allow those values (i.e.
you can transmitt with official semtech chips with these parameters?). I'm
might look into that if I have time
—
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APSG5WZWBAIUFTDUGEAQMDTYIMVU5AVCNFSM6AAAAABAI64CEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBXGM2TSOJQHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hello @tapparelj |
There is no reason I can think of that would prevent it. Initially, it was developped on GNURadio 3.7. The core c++ files (the ones in /lib ) should work fine, probably the asynchronous message passing callback should be changed back to the form they had before (just the way you declare the callback changed).
|
Hi @tapparelj Was playing around with this flowgraph and tried to test the demodulation and decoding of few of the lab recordings I had with me using File Source in thelora_RX flowgraph for SF5. I have been getting this "CRC not supported for payload smaller than 2 bytes."(Screenshot attached). Why is this happening and how can we troubleshoot this? |
Are you sending a payload of less than 2 bytes? |
Hello @tapparelj Yes, The payload is less than 2 bytes. Are you planning to add support for payload less than 2 bytes? |
Hi @jds0987, |
@tapparelj Why the received data not showing in its hex format, rpp version
is doing that well.
…On Wed, 13 Dec 2023, 6:17 pm Joachim Tapparel, ***@***.***> wrote:
Hi @jds0987 <https://github.com/jds0987>,
yes, it's planned, but probably only around February or March.
—
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APSG5WZHNUPVU75TSFNDXLLYJGPVZAVCNFSM6AAAAABAI64CEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJTHA2TMMBVHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Ok......Looking fwd towards this...... Wish u all the best. |
You would like to print in the terminal the hex content? For example "0x68 0x65 0x6C 0x6C 0x6F" instead of "hello" ? |
Hi @tapparelj Can the code be modified to get the header also printed for each spreading factor? |
I'm not sure to get what you mean by that. The explicit header content should already be printed for any spreading factor if you set the parameter print_header to true in the header decoder block |
Hello @jithivk, |
@tapparelj ,some LoRa IQ file make the application force shutdown or hang why it is happening like that. |
what if i can record the active LoRa signal saved in its IQ format, that will help me further analysis in the future, auto detection and recording if possible |
Hi Can u please modify the sf5 and sf6 branch to give hex output as u have modified it for the master branch |
Hi @jds0987, |
Hi @tapparelj |
@tapparelj Are you planing on merging it to master? Thanks again! |
Can u make the code to display single byte data support |
Hi @tapparelj, |
I am using heltec automation LoRa chip for transmitting LoRa packets. Using the LoRa Rx flowgraph in examples, I am not able to rx msgs for SF 5 and 6 . SF 7 to 12 works absolutely fine. Screenshots att
![SF 7-12](https://private-user-images.githubusercontent.com/140135323/288338016-2e28fc5d-4305-47df-b77c-cd7af08e5fc4.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwOTc5NzMsIm5iZiI6MTczOTA5NzY3MywicGF0aCI6Ii8xNDAxMzUzMjMvMjg4MzM4MDE2LTJlMjhmYzVkLTQzMDUtNDdkZi1iNzdjLWNkN2FmMDhlNWZjNC5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQxMDQxMTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hMThmNmExNTUxMTNkYjg5MjY2NWFlM2YyZDU0YzRkMmZmN2MwMTY4OGIyMTQwODY5NWYzY2YxNGRkZTgxZTE3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.0a5tEULK37gxFGXvRH5Nt-ikN6ZkMw5R6RWxfzoSU2I)
Kindly help.
The text was updated successfully, but these errors were encountered: