usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

Sending and receiving Data over TV Band using NBFM Modulation

MM
Md Mahbubur Rahman
Thu, Feb 26, 2015 6:32 PM

Hi Everybody,

I am new to GNURadio. I have two usrp1 devices (B210, USRP Ser#1054, tested
on: 9/20/06). I am trying to transmit and receive float data using these
two devices. I did the followings so far.

  1. using matlab wrote a value(.212) to .wav file. Used the following command
    audiowrite('test.wav’,0.212,8000,'BitsPerSample', 16)
  2. Converted test.wav file to dat file using the following command
    ./wav_to_dat.py -I test.wav -r 32000 -N 1 audio-0.dat
  3. I used the B210 device to transmit the data using following command
    ./fm_tx4.py -a usrp1 -s 400000 -f 500000000 -n 1
    (I found fm_tx4.py script in Gnuradio examples directory)
  4. I used the other usrp device to receive the data  in the same frequency
    using uhd_nbfm_receive.grc flow graph which I also found in the example
    directory. I added a wav file sink block in the flow graph beside audio
    sink.

When I read the wav file using matlab audioread function I receive data
different than the original data. Can someone please suggest me if I am
missing something? Or I am doing it in the wrong way? Or other alternative
solutions with sample code/flow graph I can use. Thank you in advance for
your time and response.

Sincerely
Mahbubur

Hi Everybody, I am new to GNURadio. I have two usrp1 devices (B210, USRP Ser#1054, tested on: 9/20/06). I am trying to transmit and receive float data using these two devices. I did the followings so far. 1. using matlab wrote a value(.212) to .wav file. Used the following command audiowrite('test.wav’,0.212,8000,'BitsPerSample', 16) 2. Converted test.wav file to dat file using the following command ./wav_to_dat.py -I test.wav -r 32000 -N 1 audio-0.dat 3. I used the B210 device to transmit the data using following command ./fm_tx4.py -a usrp1 -s 400000 -f 500000000 -n 1 (I found fm_tx4.py script in Gnuradio examples directory) 4. I used the other usrp device to receive the data in the same frequency using uhd_nbfm_receive.grc flow graph which I also found in the example directory. I added a wav file sink block in the flow graph beside audio sink. When I read the wav file using matlab audioread function I receive data different than the original data. Can someone please suggest me if I am missing something? Or I am doing it in the wrong way? Or other alternative solutions with sample code/flow graph I can use. Thank you in advance for your time and response. Sincerely Mahbubur
M
mleech@ripnet.com
Thu, Feb 26, 2015 7:05 PM

NBFM modulation is intended to convey analog audio data from one point
to another, it's NOT intended to convey digital data.

At the receiver, and NBFM demodulator will faithfully reproduce the
high-level "topology" (for lack of a better term) of the modulating
signal, but not, the low-level detail. Further, in the absence of a
completely noise-free channel, the demodulated signal will be
contaminated with some amount of noise.

I'd suggest that you learn more about how to send digital data over
radio links, and the tools and techniques to do that.

On 2015-02-26 13:32, Md Mahbubur Rahman via USRP-users wrote:

Hi Everybody,

I am new to GNURadio. I have two usrp1 devices (B210, USRP Ser#1054, tested on: 9/20/06). I am trying to transmit and receive float data using these two devices. I did the followings so far.

  1. using matlab wrote a value(.212) to .wav file. Used the following command
    audiowrite('test.wav',0.212,8000,'BitsPerSample', 16)
  2. Converted test.wav file to dat file using the following command
    ./wav_to_dat.py -I test.wav -r 32000 -N 1 audio-0.dat
  3. I used the B210 device to transmit the data using following command
    ./fm_tx4.py -a usrp1 -s 400000 -f 500000000 -n 1
    (I found fm_tx4.py script in Gnuradio examples directory)
  4. I used the other usrp device to receive the data in the same frequency using uhd_nbfm_receive.grc flow graph which I also found in the example directory. I added a wav file sink block in the flow graph beside audio sink.

When I read the wav file using matlab audioread function I receive data different than the original data. Can someone please suggest me if I am missing something? Or I am doing it in the wrong way? Or other alternative solutions with sample code/flow graph I can use. Thank you in advance for your time and response.

Sincerely
Mahbubur


USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com [1]

NBFM modulation is intended to convey analog audio data from one point to another, it's *NOT* intended to convey digital data. At the receiver, and NBFM demodulator will faithfully reproduce the high-level "topology" (for lack of a better term) of the modulating signal, but not, the low-level detail. Further, in the absence of a completely noise-free channel, the demodulated signal will be contaminated with some amount of noise. I'd suggest that you learn more about how to send digital *data* over radio links, and the tools and techniques to do that. On 2015-02-26 13:32, Md Mahbubur Rahman via USRP-users wrote: > Hi Everybody, > > I am new to GNURadio. I have two usrp1 devices (B210, USRP Ser#1054, tested on: 9/20/06). I am trying to transmit and receive float data using these two devices. I did the followings so far. > > 1. using matlab wrote a value(.212) to .wav file. Used the following command > audiowrite('test.wav',0.212,8000,'BitsPerSample', 16) > 2. Converted test.wav file to dat file using the following command > ./wav_to_dat.py -I test.wav -r 32000 -N 1 audio-0.dat > 3. I used the B210 device to transmit the data using following command > ./fm_tx4.py -a usrp1 -s 400000 -f 500000000 -n 1 > (I found fm_tx4.py script in Gnuradio examples directory) > 4. I used the other usrp device to receive the data in the same frequency using uhd_nbfm_receive.grc flow graph which I also found in the example directory. I added a wav file sink block in the flow graph beside audio sink. > > When I read the wav file using matlab audioread function I receive data different than the original data. Can someone please suggest me if I am missing something? Or I am doing it in the wrong way? Or other alternative solutions with sample code/flow graph I can use. Thank you in advance for your time and response. > > Sincerely > Mahbubur > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com [1] Links: ------ [1] http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
MM
Marcus Müller
Thu, Feb 26, 2015 7:39 PM

Hi Mahbubur,
I've already tried to answer your question on StackOverflow; if
something is unclear, please don't hesitate to follow up :)

Best regards,
Marcus Müller

On 02/26/2015 07:32 PM, Md Mahbubur Rahman via USRP-users wrote:

Hi Everybody,

I am new to GNURadio. I have two usrp1 devices (B210, USRP Ser#1054,
tested on: 9/20/06). I am trying to transmit and receive float data
using these two devices. I did the followings so far.

  1. using matlab wrote a value(.212) to .wav file. Used the following
    command
    audiowrite('test.wav’,0.212,8000,'BitsPerSample', 16)
  2. Converted test.wav file to dat file using the following command
    ./wav_to_dat.py -I test.wav -r 32000 -N 1 audio-0.dat
  3. I used the B210 device to transmit the data using following command
    ./fm_tx4.py -a usrp1 -s 400000 -f 500000000 -n 1
    (I found fm_tx4.py script in Gnuradio examples directory)
  4. I used the other usrp device to receive the data  in the same
    frequency using uhd_nbfm_receive.grc flow graph which I also found in
    the example directory. I added a wav file sink block in the flow graph
    beside audio sink.

When I read the wav file using matlab audioread function I receive
data different than the original data. Can someone please suggest me
if I am missing something? Or I am doing it in the wrong way? Or other
alternative solutions with sample code/flow graph I can use. Thank you
in advance for your time and response.

Sincerely
Mahbubur


USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Hi Mahbubur, I've already tried to answer your question on StackOverflow; if something is unclear, please don't hesitate to follow up :) Best regards, Marcus Müller On 02/26/2015 07:32 PM, Md Mahbubur Rahman via USRP-users wrote: > Hi Everybody, > > I am new to GNURadio. I have two usrp1 devices (B210, USRP Ser#1054, > tested on: 9/20/06). I am trying to transmit and receive float data > using these two devices. I did the followings so far. > > > 1. using matlab wrote a value(.212) to .wav file. Used the following > command > audiowrite('test.wav’,0.212,8000,'BitsPerSample', 16) > 2. Converted test.wav file to dat file using the following command > ./wav_to_dat.py -I test.wav -r 32000 -N 1 audio-0.dat > 3. I used the B210 device to transmit the data using following command > ./fm_tx4.py -a usrp1 -s 400000 -f 500000000 -n 1 > (I found fm_tx4.py script in Gnuradio examples directory) > 4. I used the other usrp device to receive the data in the same > frequency using uhd_nbfm_receive.grc flow graph which I also found in > the example directory. I added a wav file sink block in the flow graph > beside audio sink. > > When I read the wav file using matlab audioread function I receive > data different than the original data. Can someone please suggest me > if I am missing something? Or I am doing it in the wrong way? Or other > alternative solutions with sample code/flow graph I can use. Thank you > in advance for your time and response. > > Sincerely > Mahbubur > > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
PB
Philip Balister
Thu, Feb 26, 2015 8:03 PM

On 02/26/2015 11:39 AM, Marcus Müller via USRP-users wrote:

Hi Mahbubur,
I've already tried to answer your question on StackOverflow; if
something is unclear, please don't hesitate to follow up :)

Best regards,
Marcus Müller

Marcus, is there an easy way to find gnuradio questions on stackoverflow?

Philip

On 02/26/2015 07:32 PM, Md Mahbubur Rahman via USRP-users wrote:

Hi Everybody,

I am new to GNURadio. I have two usrp1 devices (B210, USRP Ser#1054,
tested on: 9/20/06). I am trying to transmit and receive float data
using these two devices. I did the followings so far.

  1. using matlab wrote a value(.212) to .wav file. Used the following
    command
    audiowrite('test.wav’,0.212,8000,'BitsPerSample', 16)
  2. Converted test.wav file to dat file using the following command
    ./wav_to_dat.py -I test.wav -r 32000 -N 1 audio-0.dat
  3. I used the B210 device to transmit the data using following command
    ./fm_tx4.py -a usrp1 -s 400000 -f 500000000 -n 1
    (I found fm_tx4.py script in Gnuradio examples directory)
  4. I used the other usrp device to receive the data  in the same
    frequency using uhd_nbfm_receive.grc flow graph which I also found in
    the example directory. I added a wav file sink block in the flow graph
    beside audio sink.

When I read the wav file using matlab audioread function I receive
data different than the original data. Can someone please suggest me
if I am missing something? Or I am doing it in the wrong way? Or other
alternative solutions with sample code/flow graph I can use. Thank you
in advance for your time and response.

Sincerely
Mahbubur


USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

On 02/26/2015 11:39 AM, Marcus Müller via USRP-users wrote: > Hi Mahbubur, > I've already tried to answer your question on StackOverflow; if > something is unclear, please don't hesitate to follow up :) > > Best regards, > Marcus Müller Marcus, is there an easy way to find gnuradio questions on stackoverflow? Philip > > On 02/26/2015 07:32 PM, Md Mahbubur Rahman via USRP-users wrote: >> Hi Everybody, >> >> I am new to GNURadio. I have two usrp1 devices (B210, USRP Ser#1054, >> tested on: 9/20/06). I am trying to transmit and receive float data >> using these two devices. I did the followings so far. >> >> >> 1. using matlab wrote a value(.212) to .wav file. Used the following >> command >> audiowrite('test.wav’,0.212,8000,'BitsPerSample', 16) >> 2. Converted test.wav file to dat file using the following command >> ./wav_to_dat.py -I test.wav -r 32000 -N 1 audio-0.dat >> 3. I used the B210 device to transmit the data using following command >> ./fm_tx4.py -a usrp1 -s 400000 -f 500000000 -n 1 >> (I found fm_tx4.py script in Gnuradio examples directory) >> 4. I used the other usrp device to receive the data in the same >> frequency using uhd_nbfm_receive.grc flow graph which I also found in >> the example directory. I added a wav file sink block in the flow graph >> beside audio sink. >> >> When I read the wav file using matlab audioread function I receive >> data different than the original data. Can someone please suggest me >> if I am missing something? Or I am doing it in the wrong way? Or other >> alternative solutions with sample code/flow graph I can use. Thank you >> in advance for your time and response. >> >> Sincerely >> Mahbubur >> >> >> _______________________________________________ >> USRP-users mailing list >> USRP-users@lists.ettus.com >> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com > > > > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >
MM
Marcus Müller
Thu, Feb 26, 2015 8:09 PM

Hi Philip,

use the search box with

gnuradio is:question

The same works for openembedded ;)

Cheers,
Marcus

On 02/26/2015 09:03 PM, Philip Balister wrote:

On 02/26/2015 11:39 AM, Marcus Müller via USRP-users wrote:

Hi Mahbubur,
I've already tried to answer your question on StackOverflow; if
something is unclear, please don't hesitate to follow up :)

Best regards,
Marcus Müller

Marcus, is there an easy way to find gnuradio questions on stackoverflow?

Philip

On 02/26/2015 07:32 PM, Md Mahbubur Rahman via USRP-users wrote:

Hi Everybody,

I am new to GNURadio. I have two usrp1 devices (B210, USRP Ser#1054,
tested on: 9/20/06). I am trying to transmit and receive float data
using these two devices. I did the followings so far.

  1. using matlab wrote a value(.212) to .wav file. Used the following
    command
    audiowrite('test.wav’,0.212,8000,'BitsPerSample', 16)
  2. Converted test.wav file to dat file using the following command
    ./wav_to_dat.py -I test.wav -r 32000 -N 1 audio-0.dat
  3. I used the B210 device to transmit the data using following command
    ./fm_tx4.py -a usrp1 -s 400000 -f 500000000 -n 1
    (I found fm_tx4.py script in Gnuradio examples directory)
  4. I used the other usrp device to receive the data  in the same
    frequency using uhd_nbfm_receive.grc flow graph which I also found in
    the example directory. I added a wav file sink block in the flow graph
    beside audio sink.

When I read the wav file using matlab audioread function I receive
data different than the original data. Can someone please suggest me
if I am missing something? Or I am doing it in the wrong way? Or other
alternative solutions with sample code/flow graph I can use. Thank you
in advance for your time and response.

Sincerely
Mahbubur


USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Hi Philip, use the search box with gnuradio is:question The same works for openembedded ;) Cheers, Marcus On 02/26/2015 09:03 PM, Philip Balister wrote: > On 02/26/2015 11:39 AM, Marcus Müller via USRP-users wrote: >> Hi Mahbubur, >> I've already tried to answer your question on StackOverflow; if >> something is unclear, please don't hesitate to follow up :) >> >> Best regards, >> Marcus Müller > Marcus, is there an easy way to find gnuradio questions on stackoverflow? > > Philip > > >> On 02/26/2015 07:32 PM, Md Mahbubur Rahman via USRP-users wrote: >>> Hi Everybody, >>> >>> I am new to GNURadio. I have two usrp1 devices (B210, USRP Ser#1054, >>> tested on: 9/20/06). I am trying to transmit and receive float data >>> using these two devices. I did the followings so far. >>> >>> >>> 1. using matlab wrote a value(.212) to .wav file. Used the following >>> command >>> audiowrite('test.wav’,0.212,8000,'BitsPerSample', 16) >>> 2. Converted test.wav file to dat file using the following command >>> ./wav_to_dat.py -I test.wav -r 32000 -N 1 audio-0.dat >>> 3. I used the B210 device to transmit the data using following command >>> ./fm_tx4.py -a usrp1 -s 400000 -f 500000000 -n 1 >>> (I found fm_tx4.py script in Gnuradio examples directory) >>> 4. I used the other usrp device to receive the data in the same >>> frequency using uhd_nbfm_receive.grc flow graph which I also found in >>> the example directory. I added a wav file sink block in the flow graph >>> beside audio sink. >>> >>> When I read the wav file using matlab audioread function I receive >>> data different than the original data. Can someone please suggest me >>> if I am missing something? Or I am doing it in the wrong way? Or other >>> alternative solutions with sample code/flow graph I can use. Thank you >>> in advance for your time and response. >>> >>> Sincerely >>> Mahbubur >>> >>> >>> _______________________________________________ >>> USRP-users mailing list >>> USRP-users@lists.ettus.com >>> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >> >> >> >> _______________________________________________ >> USRP-users mailing list >> USRP-users@lists.ettus.com >> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >>
MB
Martin Braun
Fri, Feb 27, 2015 1:39 PM

Philip and everyone else,

http://gnuradio.org/redmine/projects/gnuradio/wiki/MoreCommunity lists
resources such as this.

Cheers,
M

On 26.02.2015 21:09, Marcus Müller via USRP-users wrote:

Hi Philip,

use the search box with

gnuradio is:question

The same works for openembedded ;)

Cheers,
Marcus

On 02/26/2015 09:03 PM, Philip Balister wrote:

On 02/26/2015 11:39 AM, Marcus Müller via USRP-users wrote:

Hi Mahbubur,
I've already tried to answer your question on StackOverflow; if
something is unclear, please don't hesitate to follow up :)

Best regards,
Marcus Müller

Marcus, is there an easy way to find gnuradio questions on stackoverflow?

Philip

On 02/26/2015 07:32 PM, Md Mahbubur Rahman via USRP-users wrote:

Hi Everybody,

I am new to GNURadio. I have two usrp1 devices (B210, USRP Ser#1054,
tested on: 9/20/06). I am trying to transmit and receive float data
using these two devices. I did the followings so far.

  1. using matlab wrote a value(.212) to .wav file. Used the following
    command
    audiowrite('test.wav’,0.212,8000,'BitsPerSample', 16)
  2. Converted test.wav file to dat file using the following command
    ./wav_to_dat.py -I test.wav -r 32000 -N 1 audio-0.dat
  3. I used the B210 device to transmit the data using following command
    ./fm_tx4.py -a usrp1 -s 400000 -f 500000000 -n 1
    (I found fm_tx4.py script in Gnuradio examples directory)
  4. I used the other usrp device to receive the data  in the same
    frequency using uhd_nbfm_receive.grc flow graph which I also found in
    the example directory. I added a wav file sink block in the flow graph
    beside audio sink.

When I read the wav file using matlab audioread function I receive
data different than the original data. Can someone please suggest me
if I am missing something? Or I am doing it in the wrong way? Or other
alternative solutions with sample code/flow graph I can use. Thank you
in advance for your time and response.

Sincerely
Mahbubur


USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Philip and everyone else, http://gnuradio.org/redmine/projects/gnuradio/wiki/MoreCommunity lists resources such as this. Cheers, M On 26.02.2015 21:09, Marcus Müller via USRP-users wrote: > Hi Philip, > > use the search box with > > gnuradio is:question > > The same works for openembedded ;) > > Cheers, > Marcus > > On 02/26/2015 09:03 PM, Philip Balister wrote: >> On 02/26/2015 11:39 AM, Marcus Müller via USRP-users wrote: >>> Hi Mahbubur, >>> I've already tried to answer your question on StackOverflow; if >>> something is unclear, please don't hesitate to follow up :) >>> >>> Best regards, >>> Marcus Müller >> Marcus, is there an easy way to find gnuradio questions on stackoverflow? >> >> Philip >> >> >>> On 02/26/2015 07:32 PM, Md Mahbubur Rahman via USRP-users wrote: >>>> Hi Everybody, >>>> >>>> I am new to GNURadio. I have two usrp1 devices (B210, USRP Ser#1054, >>>> tested on: 9/20/06). I am trying to transmit and receive float data >>>> using these two devices. I did the followings so far. >>>> >>>> >>>> 1. using matlab wrote a value(.212) to .wav file. Used the following >>>> command >>>> audiowrite('test.wav’,0.212,8000,'BitsPerSample', 16) >>>> 2. Converted test.wav file to dat file using the following command >>>> ./wav_to_dat.py -I test.wav -r 32000 -N 1 audio-0.dat >>>> 3. I used the B210 device to transmit the data using following command >>>> ./fm_tx4.py -a usrp1 -s 400000 -f 500000000 -n 1 >>>> (I found fm_tx4.py script in Gnuradio examples directory) >>>> 4. I used the other usrp device to receive the data in the same >>>> frequency using uhd_nbfm_receive.grc flow graph which I also found in >>>> the example directory. I added a wav file sink block in the flow graph >>>> beside audio sink. >>>> >>>> When I read the wav file using matlab audioread function I receive >>>> data different than the original data. Can someone please suggest me >>>> if I am missing something? Or I am doing it in the wrong way? Or other >>>> alternative solutions with sample code/flow graph I can use. Thank you >>>> in advance for your time and response. >>>> >>>> Sincerely >>>> Mahbubur >>>> >>>> >>>> _______________________________________________ >>>> USRP-users mailing list >>>> USRP-users@lists.ettus.com >>>> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >>> >>> >>> >>> _______________________________________________ >>> USRP-users mailing list >>> USRP-users@lists.ettus.com >>> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >>> > > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >