Electronics and Wireless communication solutions. This blog mainly talks about LoRa physical layer solutions.
Dear Sir,In your LoRa modulation function code, the frequency varies linearly with time. Shouldn't the phase increase be a quadratic function of time, since the total phase is the integral of frequency? I'm very confused since your expression is not even a function of time. It would help me understand LoRa much better if you could clarify this point, Sir.Thank you in advance!
See, I divided the time in small time bins. You know, you can calculate the the symbol time by SF and BW. You can't see the 'time' variable in the code. See, you divided the complete symbol in some number of samples. Number of samples is related to SF and BW, therefore as the sample number increases you move along with both time and frequency axis.
I have multiple questions on this plot1. Why is the plot at 500KHz when you only use BW, SF, Sampling rate in the code2. what does frequency offset away from DC means?3. How did you derive equation of number of samples from SF, BW, Fs?4. Why is Fs = 1MSPS? is it lora standard?
Why is the plot at 500kHz? I see in the LoRa function: Frequency_Offset = (Fs/2) - (BW/2);This calculation gives about 500kHz. But I think it should be the actual carrier frequency like 868MHz?
If you want the central frequency to be 868MHz then you don't need to choose Frequency_Offset = (Fs/2) - (BW/2); In the above code it is 500KHz so that you can visualise the symbols clearly in the graph.
Can we directly put 868MHz instead of Frequency_Offset = (Fs/2) - (BW/2); in a code?
This comment has been removed by the author.
I would like to ask why you set the number of samples like the following num_samples = Fs*(2^SF)/BW? I know that the symbol time is Ts=(2^SF)/BW
i developed a matlab code to simulate lorawan throughput by using one gateway, any body can help to provide code of more than gateway in one network to make comparison
Dear Sir,In your LoRa modulation function code, I think the " phase = phase + 2*pi*f/Fs;" should be changed to "phase = phase + 2*pi*f/Fs+pi*(BW*BW/Fs/Fs/2^SF);".Thank you in advance!
unless f0=0.5*BW^2/2^SF/Fs. Right?
Hi the variable symbol is any integer number our is it a bit been 1 or 0?
I am working on LoRa -modulation based communication . Kindly send me the matlab codes
What price og this? 10 Dollars or 15 dollars? On page "How to buy LoRa Matlab Codes?" - 15 dollars. On this page 10 dollars.
Hi. Sorry for the bug. I have fixed it now
hi what means by outp((i-1)*num_samples+1 : i*num_samples) = out_preamble; outp what is?