Hi guys, I managed to fix the error about the PYTHONPATH, thanks to Matt and Steve. It was still not working after setting the PYTHONPATH but I understood that I had to copy some files like OP25.py in a new directorie /usr/local/lib/python2.7/dist-packages/gnuradio and create here the directorie OP25. It stoped showing the import error.
However I have now this error and any hint and help are welcome: ------------------------------------- File "/usr/local/lib/python2.7/dist-packages/baz/op25.py", line 88, in create raise Exception("Could not find a decoder to use") Exception: Could not find a decoder to use ------------------------------------- I made some searches in the previous discussion but I could not find anything.
Any Idea?
ps: I still have not applied the patch yet (maybe it's the reason?).. On the spench website they said to apply it to "the svn source" is it this one: ~/gnuradio/gr-baz ?
Thanks in advance for you awnsers
SouF
On 04/03/2013 03:06 AM, souf308 wrote:
Hi guys, I managed to fix the error about the PYTHONPATH, thanks to Matt and Steve. It was still not working after setting the PYTHONPATH but I understood that I had to copy some files like OP25.py in a new directorie /usr/local/lib/python2.7/dist-packages/gnuradio and create here the directorie OP25. It stoped showing the import error.
However I have now this error and any hint and help are welcome:
File "/usr/local/lib/python2.7/dist-packages/baz/op25.py", line 88, in create raise Exception("Could not find a decoder to use") Exception: Could not find a decoder to use
I made some searches in the previous discussion but I could not find anything.
Any Idea?
ps: I still have not applied the patch yet (maybe it's the reason?).. On the spench website they said to apply it to "the svn source" is it this one: ~/gnuradio/gr-baz ?
Thanks in advance for you awnsers
SouF
Hi Souf, open the op25.grc flowgraph. on the right under where it says "Blocks" expand the "Modulators" tree by clicking on the arrow. at the bottom is "OP25 Decoder" there?
Hi Matt,
Yea when I open gnuradio I see on the right "op25 demodulator"". I also have op25.grc and when I open it I see the op25 decoder block.
Souf
________________________________ From: Matt D md123@nycap.rr.com To: op25-dev@yahoogroups.com Cc: souf308 souf308@yahoo.com Sent: Wednesday, April 3, 2013 6:30 AM Subject: Re: [op25-dev] "Could not find a decoder to use"
On 04/03/2013 03:06 AM, souf308 wrote:
Hi guys, I managed to fix the error about the PYTHONPATH, thanks to Matt and Steve. It was still not working after setting the PYTHONPATH but I understood that I had to copy some files like OP25.py in a new directorie /usr/local/lib/python2.7/dist-packages/gnuradio and create here the directorie OP25. It stoped showing the import error.
However I have now this error and any hint and help are welcome:
File "/usr/local/lib/python2.7/dist-packages/baz/op25.py", line 88, in create raise Exception("Could not find a decoder to use") Exception: Could not find a decoder to use
I made some searches in the previous discussion but I could not find anything.
Any Idea?
ps: I still have not applied the patch yet (maybe it's the reason?).. On the spench website they said to apply it to "the svn source" is it this one: ~/gnuradio/gr-baz ?
Thanks in advance for you awnsers
SouF
Hi Souf, open the op25.grc flowgraph. on the right under where it says "Blocks" expand the "Modulators" tree by clicking on the arrow. at the bottom is "OP25 Decoder" there?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 04/03/2013 10:28 AM, Souf Hadoken wrote:
Hi Matt,
Yea when I open gnuradio I see on the right "op25 demodulator"". I also have op25.grc and when I open it I see the op25 decoder block.
And you get that error in terminal when you run the flow graph?
Hi,
So I reinstaled OP25 and had everything get configured with almost any error. I also applied the patch I still have the same error message: ---------------------------------------------------- File "/home/souf/gr-baz-master/samples/op25_grc.py", line 243, in __init__ self.op25_decoder_0.create() File "/usr/local/lib/python2.7/dist-packages/baz/op25.py", line 88, in create raise Exception("Could not find a decoder to use") ----------------------------------------------------
So I tried to understand the op25.py file and copied more files in the OP25 PYTHON directorie in case something was missing in the 'import' but it did not work.
Here is a part of the op25.py where the problem occurs:
------------------------------------------------------ def create(self): self.op25_msgq = gr.msg_queue(2) self.slicer = None try: levels = [ -2.0, 0.0, 2.0, 4.0 ] self.slicer = _op25.fsk4_slicer_fb(levels) self.p25_decoder = _op25.decoder_bf() # FIXME: Message queue? if _verbose: print "Using new decoder_bf" except: try: self.p25_decoder = _op25.decoder_ff(self.op25_msgq) # LEGACY if _verbose: print "Using legacy decoder_ff" except: raise Exception("Could not find a decoder to use")
----------------------------------------------------
I've spent many hours on it. Any hint or idea please...?
Thanks
Souf
--- In op25-dev@yahoogroups.com, Matt D <md123@...> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 04/03/2013 10:28 AM, Souf Hadoken wrote:
Hi Matt,
Yea when I open gnuradio I see on the right "op25 demodulator"". I also have op25.grc and when I open it I see the op25 decoder block.
And you get that error in terminal when you run the flow graph?
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/
iQEcBAEBAgAGBQJRXHQaAAoJEIC13XTKWhPPW28H/3/nEZn/KKrW0LVEf1LgOIah HUUlxXJ5Ch6rbdX6qIZpwyDyyaoUctxSZqMSmX80uyVw7w6/ZeeN2ol0sZ4V5zwW 8oTqaf/Q0N2Orgwau6TqrzodwCVFaqYwkiRZyKWNLorA/NNDibd5PcO1VDgEH1L1 66n/lSyQ8ML/EmMWJC7RcUmm7a/vFsgBzoCZFPnTALMguZwmOBtMOU8Cv0B5Vz9Q 2VjYgy067DVr0QnK/RSepuHt9ocHlWzUxNx5V+lawWoRRAmnT++jFE9AeGvh4BgU HRpP68zC4OejbdzhQUIpfk8xVzd3APNuwJThz1TVExE+JJCxakWkktZWE62/Ubk= =Nmb5 -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 04/04/2013 04:24 AM, souf308 wrote:
Hi,
So I reinstaled OP25 and had everything get configured with almost any error. I also applied the patch I still have the same error message: ---------------------------------------------------- File "/home/souf/gr-baz-master/samples/op25_grc.py", line 243, in __init__ self.op25_decoder_0.create() File "/usr/local/lib/python2.7/dist-packages/baz/op25.py", line 88, in create raise Exception("Could not find a decoder to use")
So I tried to understand the op25.py file and copied more files in the OP25 PYTHON directorie in case something was missing in the 'import' but it did not work.
Here is a part of the op25.py where the problem occurs:
------------------------------------------------------ def create(self): self.op25_msgq = gr.msg_queue(2) self.slicer = None try: levels = [ -2.0, 0.0, 2.0, 4.0 ] self.slicer = _op25.fsk4_slicer_fb(levels) self.p25_decoder = _op25.decoder_bf() # FIXME: Message queue? if _verbose: print "Using new decoder_bf" except: try: self.p25_decoder = _op25.decoder_ff(self.op25_msgq) # LEGACY if _verbose: print "Using legacy decoder_ff" except: raise Exception("Could not find a decoder to use")
It is unlikely that the code is broken. How do you start the program? always start in terminal "sudo gnuradio-comapanion"
Hi Matt, I would like first to thank you for your help the last weeks (I spend my spring break locked in my room trying to make the OP25 block and gnu radio work). You gave me really good indications and instruction. After another atemp staring from a clean disk I manage to make the file work and could listen to the sound.
No I'm in the phase where I'm using an USRP. I manage to make it work and detected but Im stuck at a point where you have been (according to the archive of the groupe discussion):
-I can see the 4 ligne of the 4FSK BUT I HAVE NO AUDIO.
I think it's a probleme of sample rate, channel rate and things like that. Could you help me by giving me some explanations like do the channel rate from the OP25 block should be perfectly maching the audio sink? what is the difference between channel rate and sample rate? What is the bandwith in the USRP and how should it be?
thanks for your help
________________________________ From: Matt D md123@nycap.rr.com To: op25-dev@yahoogroups.com Cc: souf308 souf308@yahoo.com Sent: Thursday, April 4, 2013 6:34 AM Subject: Re: [op25-dev] Re: "Could not find a decoder to use"
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 04/04/2013 04:24 AM, souf308 wrote:
Hi,
So I reinstaled OP25 and had everything get configured with almost any error. I also applied the patch I still have the same error message: ---------------------------------------------------- File "/home/souf/gr-baz-master/samples/op25_grc.py", line 243, in __init__ self.op25_decoder_0.create() File "/usr/local/lib/python2.7/dist-packages/baz/op25.py", line 88, in create raise Exception("Could not find a decoder to use")
So I tried to understand the op25.py file and copied more files in the OP25 PYTHON directorie in case something was missing in the 'import' but it did not work.
Here is a part of the op25.py where the problem occurs:
------------------------------------------------------ def create(self): self.op25_msgq = gr.msg_queue(2) self.slicer = None try: levels = [ -2.0, 0.0, 2.0, 4.0 ] self.slicer = _op25.fsk4_slicer_fb(levels) self.p25_decoder = _op25.decoder_bf() # FIXME: Message queue? if _verbose: print "Using new decoder_bf" except: try: self.p25_decoder = _op25.decoder_ff(self.op25_msgq) # LEGACY if _verbose: print "Using legacy decoder_ff" except: raise Exception("Could not find a decoder to use")
It is unlikely that the code is broken. How do you start the program? always start in terminal "sudo gnuradio-comapanion"
On 04/17/2013 09:15 PM, Souf Hadoken wrote:
Hi Matt, I would like first to thank you for your help the last weeks (I spend my spring break locked in my room trying to make the OP25 block and gnu radio work). You gave me really good indications and instruction. After another atemp staring from a clean disk I manage to make the file work and could listen to the sound.
No I'm in the phase where I'm using an USRP. I manage to make it work and detected but Im stuck at a point where you have been (according to the archive of the groupe discussion):
-I can see the 4 ligne of the 4FSK BUT I HAVE NO AUDIO.
I think it's a probleme of sample rate, channel rate and things like that. Could you help me by giving me some explanations like do the channel rate from the OP25 block should be perfectly maching the audio sink? what is the difference between channel rate and sample rate? What is the bandwith in the USRP and how should it be?
thanks for your help
I don't know much about the USRP (I use a USB tuner) because I am kind of low on cash.
For the audio: you've got the 4 lines in the Dibits tab so its decoding. First I would say to apply the r307 patch. I leave the gain set at 1, maybe you can set it lower using USRP, but don't leave at 0.
For the sample rate: To get a handle on sampling rates read chapter3 at "http://www.dspguide.com/copyrite.htm". For me an important, perhaps the most important, aspect of sampling rates was determining what rate to capture the signal at. I found that oversampling (I settled on 1.024Msps) and then increasing the decimation and sample_per_symbol to get the channel rate right (between 19.2k and 38.4k) was the way to go with my little USB tuner. You probably wont have to deal with this weirdness on your USRP but your still going to oversample somewhat.
The channel rate: the channel rate is rate the bits are transmitted (usually at 9.6k) on the carrier frequency AND in our case the rate we are telling the decoder to decode the information at. I have found that receiving works best set between 19.2k and 38.4k (2 to 4 times the transmitted rate). This rate does not need to match the audio sink although it may work if it did.
Audio sink: The audio sink sample rate is set at the rate that your sound-card uses. the channel rate is resampled to the sample rate of your sound-card. set interpolation in the resampler block to the sound-card's sample rate.
Bandwidth: I leave mine at around 25khz although this is more than wide enough. 12.5khz I think is standard and I think FCC is trying to shrink it down to 6.25khz (maybe already have?). What is very important is to get the active carrier frequency exactly at zero on the FFT Plot (you'll see how much bandwidth is being used) using the fine offset.
Hope this helps.