Hello
I'm a bit stuck here. I currently have boatbod OP25 setup and running using an RTLSDR and outputting to wireshark no problems. However I'd like to have rx.py import .WAV files or worse case an input from the sound card rather than RTLSDR.
I tried with the following command, I also tried adding the options '-a', '-A' and '-I and specifying my soundcard'
./rx.py --input=myfile.wav -D fsk4 -v 50 --wireshark -W 127.0.0.1 -u 6666 2>stderr.log
Traceback (most recent call last):
File "./rx.py", line 921, in <module>
rx = rx_main()
File "./rx.py", line 835, in __init__
self.tb = p25_rx_block(self.options)
File "./rx.py", line 194, in __init__
self.open_file(options.input)
File "/usr/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py", line 92, in __getattr__
return getattr(self._impl, name)
AttributeError: 'top_block_sptr' object has no attribute 'open_file'
Also when I try and specify a soundcard source I get the following error:
./rx.py -I=hw:0,0, -D fsk4 -v 50 --wireshark -W 127.0.0.1 -u 6666 2>stderr.log
gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.11
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp
trying it with the '-a' I get a different error:
./rx.py -a -I=hw:0,0, -D fsk4 -v 50 --wireshark -W 127.0.0.1 -u 6666 2>stderr.log
gr::log :INFO: audio source - Audio source arch: alsa
ALSA lib pcm.c:2495snd_pcm_open_noupdate) Unknown PCM =hw:0,0,
gr::log :ERROR: audio_alsa_source0 - [=hw:0,0,]: No such file or directory
Traceback (most recent call last):
File "./rx.py", line 921, in <module>
rx = rx_main()
File "./rx.py", line 835, in __init__
self.tb = p25_rx_block(self.options)
File "./rx.py", line 200, in __init__
self.open_audio(self.channel_rate, options.gain, options.audio_input)
File "./rx.py", line 748, in open_audio
self.audio_source = audio.source(capture_rate, audio_input_filename)
File "/usr/lib/python2.7/dist-packages/gnuradio/audio/audio_swig.py", line 154, in make
return _audio_swig.source_make(*args, **kwargs)
RuntimeError: audio_alsa_source
This one might just be a config issue on my part, importing .wav files directly would be my preference.
I'm a bit stuck here. I currently have boatbod OP25 setup and running using an RTLSDR and outputting to wireshark no problems. However I'd like to have rx.py import .WAV files or worse case an input from the sound card rather than RTLSDR.
I tried with the following command, I also tried adding the options '-a', '-A' and '-I and specifying my soundcard'
./rx.py --input=myfile.wav -D fsk4 -v 50 --wireshark -W 127.0.0.1 -u 6666 2>stderr.log
Traceback (most recent call last):
File "./rx.py", line 921, in <module>
rx = rx_main()
File "./rx.py", line 835, in __init__
self.tb = p25_rx_block(self.options)
File "./rx.py", line 194, in __init__
self.open_file(options.input)
File "/usr/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py", line 92, in __getattr__
return getattr(self._impl, name)
AttributeError: 'top_block_sptr' object has no attribute 'open_file'
Also when I try and specify a soundcard source I get the following error:
./rx.py -I=hw:0,0, -D fsk4 -v 50 --wireshark -W 127.0.0.1 -u 6666 2>stderr.log
gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.11
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp
trying it with the '-a' I get a different error:
./rx.py -a -I=hw:0,0, -D fsk4 -v 50 --wireshark -W 127.0.0.1 -u 6666 2>stderr.log
gr::log :INFO: audio source - Audio source arch: alsa
ALSA lib pcm.c:2495snd_pcm_open_noupdate) Unknown PCM =hw:0,0,
gr::log :ERROR: audio_alsa_source0 - [=hw:0,0,]: No such file or directory
Traceback (most recent call last):
File "./rx.py", line 921, in <module>
rx = rx_main()
File "./rx.py", line 835, in __init__
self.tb = p25_rx_block(self.options)
File "./rx.py", line 200, in __init__
self.open_audio(self.channel_rate, options.gain, options.audio_input)
File "./rx.py", line 748, in open_audio
self.audio_source = audio.source(capture_rate, audio_input_filename)
File "/usr/lib/python2.7/dist-packages/gnuradio/audio/audio_swig.py", line 154, in make
return _audio_swig.source_make(*args, **kwargs)
RuntimeError: audio_alsa_source
This one might just be a config issue on my part, importing .wav files directly would be my preference.