Wednesday 3 July 2013

Transmit and Recieve Tone Using Sound Card

You need to connect a stereo wire to connect mic and speaker.
$ gnuradio-companion or grc

grc window will appear. On Right side you will find list of block available which you can use to create flow graphs. Left side is the working area.

  1. Double Click on options block to set general parameters for the flow graph. Type in Project title (my_transmit_receive) and author (in my case Osama). Leave other parameters unchanged and click ok.
  2. Open the Sources category and double click on Signal Source. It will appear in the main window. To change the properties double click on it. Adjust settings to match with the picture at the end. The signal source is cosine wave at 1000 Hz and amplitude of 0.01.
  3. Expand the Audio list and double click on Audio Sink. It will appear in the main window. To change the properties double click on it. Adjust settings to match with the picture at the end.
  4. In Audio list double click on Audio Source. It will appear in the main window. To change the properties double click on it. Adjust settings to match with the picture at the end.
  5. In order to connect these two blocks. click on the "out" port of Signal Source and then once on the "in" port of the Audio Sink.
  6. Search for Gui Scope and Place two WX Gui Scope Sink and connect one to Audio Source and other to Signal Source.
  7. An active minus sign will appear if there is any error in your flow graph. If there is no error minus sign will be inactive.
  8. Click on the Generate the flow graph. A box will come up in which you can name the file. Name of this file is my_both.grc and save
  9. Click the "Execute the flow graph" icon. You will hear a sound from your speaker. You can stop at any time by clicking "Kill the flow graph".



No comments:

Post a Comment