NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
0711
Posts: 38
0 Kudos

Questions about tuning the USRP packet -based link examples

Hi everyone,

 

   Today I do some tests and tunning on the USRP packet-based link examples, and I find these questions:

 

   First I set the following parameters to the Packet Transmitter.vi: Tx frequency=2441M, samples per symblol=8, sample rate=800k, then the symbol rate should be 100k

   Then I set the Rx frequency to 2441=M and do three tests to the USRP packet receiver.vi:

   1. set the samples per symbol to 8,  the sample rate to 800k, all the packets can be received correctly very fast.

   2. set the samples per symbol to 40, the sample rate to 4M, all the packtes can be received correctly, but slower than the former test.

   3. set the samples per symbol to 50, the sample rate to 5M, all the packets can be received correctly, but much slower than the former two tests.

 

   4.  set the samples per symbol to 40, the sample rate to 5M, but change the sample rate to  4M  when input the argument to the resample&demod_shell.vi, then I find that no packets can be received correctly.(According to my understanding, resampling the data with 4M sample rate should make the input data time-aligned)

 

 

   Can anyone help me interprete above  test? Thanks in advance!

Active Participant
Sarah_Y
Posts: 203
0 Kudos

Re: Questions about tuning the USRP packet -based link examples

Hi 0711,

 

You are correct.  If you sample at 5MS/s and have a samples/sym of 40, resampling with a sample rate of 4MS/s will allow you to receive the signal.  Digging into the sub_resample_and_demodulate.vi, I found the issue.  The modulation toolkit resample VI that is being used pulls the sample rate of the incoming signal from the incoming waveform (or the dt of the incoming waveform).  In the resample and demodulate subvi, the dt of the incoming signal was hard wired to be 1/x of the desired sampling rate.  For all other uses cases, having these 2 parameters hard wired together does not cause a problem, but for the 4th case you described it does.  I edited the subvi like shown in the image below and was able to get it working:

sub_resample_and_demodulate.png

 

Hope that helps and let me know if you have any further questions.  I'll do my best to get you an answer.

Sarah Y

Test Engineer
Ettus Research
Member
0711
Posts: 38
0 Kudos

Re: Questions about tuning the USRP packet -based link examples

Thank you very much Sarah.

 

Here is a further question. What is the function of sub_NoiseEst_And_Chop.vi? I read the code of the vi, find that it chops packets according to the power of the signal. I try that if I remove this subvi, and demodulate the packet without chopping, the demodulated bits may be incorrect. According to my understanding, chopping only changes the length of the packets to be demodulated, so just affect the length of the bitstream outputed by the demodulator. So why is this happen?

 

Member
sshearman
Posts: 74
0 Kudos

Re: Questions about tuning the USRP packet -based link examples

Noise est and chop first estimates the noise marvel of the signal. This noise level is used to estimate a good threshold for the energy detector alg, which decides where to do the chopping. Chopping is done so that the demodulator does not have to be applied to the entire frame. We do this for efficiency's sake. I hope that this helps. --Sam
Sam Shearman
Senior Product Manager | Communications & Signal Processing Software | National Instruments
Member
0711
Posts: 38
0 Kudos

Re: Questions about tuning the USRP packet -based link examples

Yeah, Thank you !

Originally I thought that the noise est vi may be used to promote  the effeciency. However, when I modify the code to demodulate GFSK signals, I find that when I use the noise_esti and chopping function, the signal can be demodulated correctly. When I remove the function, the singnal cannot be demodulated correctly, I don't know why.

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page