discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Re: Problem with OTA capture examples


From: Peter O'Doherty
Subject: Re: [Discuss-gnuradio] Re: Problem with OTA capture examples
Date: Wed, 17 Dec 2008 16:26:57 +0100
User-agent: Thunderbird 2.0.0.18 (X11/20081125)

Thanks a lot. That does the job.

But now I get this message:

len(channel_coeffs) =  795
>>> gr_fir_ccc: using SSE
len(audio_coeffs) =  51
>>> gr_fir_fff: using SSE
audio_alsa_sink[hw:0,0]: unable to support sampling rate 32000
 card requested 44100 instead.
audio_alsa_sink[hw:0,0]: set_period_time_near failed: Invalid argument
Traceback (most recent call last):
 File "./am_rcv.py", line 105, in <module>
   main (sys.argv[1:])
 File "./am_rcv.py", line 98, in main
   fg = build_graph (filename, freq_offset_khz)
 File "./am_rcv.py", line 78, in build_graph
   audio_sink = audio.sink (int (audio_rate))
File "/usr/local/lib/python2.5/site-packages/gnuradio/audio_alsa.py", line 236, in sink
   return _audio_alsa.sink(*args)
RuntimeError: audio_alsa_sink

So I guess correcting the adc_rate to 88.2e6 solves the sampling rate error:

len(channel_coeffs) =  1095
>>> gr_fir_ccc: using SSE
len(audio_coeffs) =  69
>>> gr_fir_fff: using SSE
audio_alsa_sink[hw:0,0]: set_period_time_near failed: Invalid argument
Traceback (most recent call last):
 File "./am_rcv.py", line 105, in <module>
   main (sys.argv[1:])
 File "./am_rcv.py", line 98, in main
   fg = build_graph (filename, freq_offset_khz)
 File "./am_rcv.py", line 78, in build_graph
   audio_sink = audio.sink (int (audio_rate))
File "/usr/local/lib/python2.5/site-packages/gnuradio/audio_alsa.py", line 236, in sink
   return _audio_alsa.sink(*args)
RuntimeError: audio_alsa_sink

But what about the audio_alsa_sink error?

Thanks again,
Peter

On Wed, Dec 17, 2008 at 03:47:57PM +0100, Peter O'Doherty wrote:
The same thing happens when I simply copy a file in the ~/gnuradio-examples/python/audio directory, give it a new name and try to run it.

Hi,
I'm working through the examples on this site:

http://www.kd7lmo.net/ground_gnuradio_ota.html

and am trying to run this code:

http://www.kd7lmo.net/gnuradio/am_rcv.py

If I run this in the terminal:
./am_rcv.py hf_10000khz_256_complex.dat 0
I get this:
bash: ./am_rcv.py: Permission denied

Anyone have any idea what I'm doing wrong?

Thanks,
Peter

You need to ensure that the script is executable.

 $ chmod +x am_rcv.py

Eric






reply via email to

[Prev in Thread] Current Thread [Next in Thread]