From vbehzadan at yahoo.com Fri Jun 1 17:04:27 2012 From: vbehzadan at yahoo.com (Vahid Behzadan) Date: Fri, 1 Jun 2012 10:04:27 -0700 (PDT) Subject: Urgent - CQPSK Modulation - Issue with DQPSK Modulation Message-ID: <1338570267.97294.YahooMailNeo@web162803.mail.bf1.yahoo.com> Hi, I am currently trying to implement a modulator/demodulator for TETRA using pi/4 DQPSK. I tried to use cqpsk.py which was provided with this package, but apparently some functions such as psk.constellation[] are not available in the new version of gnuradio. I created a list of constellation points to be used by chunks_to_symbols_bc() function, and I think this has solved this issue. I have another issue: when I modulate a string of bits in a file, and then demodulate it, the output contains 10 zeros and then a few numbers between 0 to 255 which does not seem to be related to the input bit stream at all. Could anyone please advise me on the matter? I am using GNURadio3.6.0, and main bits of code are attached: Regards, ? Vahid CQPSK.py cqpsk_mod() modification: ... self.pi4map = [1, 3, 7, 5] ??? self.constel = [1+0j,0.7+0.7j,0+1j,-0.7+07j,-1+0j,-0.7-0.7j,0-1j,0.7-0.7j] ??????? self.symbol_mapper = gr.map_bb(self.pi4map) ??????? self.diffenc = gr.diff_encoder_bb(arity) ??????? self.chunks2symbols = gr.chunks_to_symbols_bc(self.constel) ... ------------------------------------------------------------------- Modulator: ??????? sample_rate = options.sample_rate ??????? symbol_rate = 18000 ??????? sps = 2 ?????? ??? IN = gr.file_source(gr.sizeof_char, options.input_file, repeat = False) ??? #IN = (1,0,0,0,1,1,0,0) ??? #src = gr.vector_source_b (IN) ??????? MOD = cqpsk.cqpsk_mod( samples_per_symbol = sps, ???????????????????????????????? excess_bw=0.35, ??? ??? ??? ??? log=options.log, ??????????????????????????? ???????????????????????????????? verbose=options.verbose) ??????? OUT = gr.file_sink(gr.sizeof_gr_complex, options.output_file) #??????? r = float(sample_rate) / float(new_sample_rate) #??????? INTERPOLATOR = gr.fractional_interpolator_cc(0, r) ??????? self.connect(IN, MOD, OUT) --------------------------------------------------------------- Demodulator: ??????? sample_rate = options.sample_rate ??????? symbol_rate = 18000 ??????? sps = 2 ??????? # output rate will be 36,000 ??????? ntaps = 11 * sps ??????? new_sample_rate = symbol_rate * sps ??????? channel_taps = gr.firdes.low_pass(1.0, sample_rate, options.low_pass, options.low_pass * 0.1, gr.firdes.WIN_HANN) ??????? FILTER = gr.freq_xlating_fir_filter_ccf(1, channel_taps, options.calibration, sample_rate) ??????? sys.stderr.write("sample rate: %d\n" %(sample_rate)) ??????? IN = gr.file_source(gr.sizeof_gr_complex, options.input_file, repeat = False) ??????? DEMOD = cqpsk.cqpsk_demod( samples_per_symbol = sps, ???????????????????????????????? excess_bw=0.35, ???????????????????????????????? costas_alpha=0.03, ???????????????????????????????? gain_mu=0.05, ???????????????????????????????? mu=0.05, ???????????????????????????????? omega_relative_limit=0.05, ???????????????????????????????? log=options.log, ???????????????????????????????? verbose=options.verbose) ??? self.convert = gr.float_to_char() ??? self.convert2 = gr.float_to_char()??????????????? ??? OUT = gr.file_sink(gr.sizeof_char, options.output_file) ??? self.sink1 = gr.vector_sink_b() ??????? r = float(sample_rate) / float(new_sample_rate) ??????? INTERPOLATOR = gr.fractional_interpolator_cc(0, r) ??????? self.connect(IN, FILTER, INTERPOLATOR, DEMOD, self.convert, OUT) ??? self.connect (DEMOD,self.convert2,self.sink1) ??? def print_data(self): ??? print "data in sink1 is: ",self.sink1.data() --------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From f.abdolian at yahoo.com Tue Jun 5 12:42:31 2012 From: f.abdolian at yahoo.com (Farhad Abdolian) Date: Tue, 5 Jun 2012 05:42:31 -0700 (PDT) Subject: TETRA sample to test TDMA reception In-Reply-To: References: <926F9B6B6CAE40D684A6FEFB3BAA20AC@pc1> Message-ID: <1338900151.86967.YahooMailNeo@web160901.mail.bf1.yahoo.com> Hi, Does anyone have a sampled TETRA file you can share with us? It would be really useful if someone with a USRP save the sampled file and share with us. If you need space, I can offer free space on my personal or company site (up to 2G). Thanks in advance, Farhad -------------- next part -------------- An HTML attachment was scrubbed... URL: From 246tnt at gmail.com Tue Jun 5 12:47:22 2012 From: 246tnt at gmail.com (Sylvain Munaut) Date: Tue, 5 Jun 2012 14:47:22 +0200 Subject: TETRA sample to test TDMA reception In-Reply-To: <1338900151.86967.YahooMailNeo@web160901.mail.bf1.yahoo.com> References: <926F9B6B6CAE40D684A6FEFB3BAA20AC@pc1> <1338900151.86967.YahooMailNeo@web160901.mail.bf1.yahoo.com> Message-ID: > Does anyone have a sampled TETRA file you can share with us? It would be > really useful if someone with a USRP save the sampled file and share with > us. > > If you need space, I can offer free space on my personal or company site (up > to 2G). ... http://tetra.osmocom.org/trac/wiki/Test_Samples From f.abdolian at yahoo.com Tue Jun 5 12:51:00 2012 From: f.abdolian at yahoo.com (Farhad Abdolian) Date: Tue, 5 Jun 2012 05:51:00 -0700 (PDT) Subject: TETRA sample to test TDMA reception In-Reply-To: References: <926F9B6B6CAE40D684A6FEFB3BAA20AC@pc1> <1338900151.86967.YahooMailNeo@web160901.mail.bf1.yahoo.com> Message-ID: <1338900660.99512.YahooMailNeo@web160905.mail.bf1.yahoo.com> Hi Sylvain, Thanks, I know that one, but I need a larger file if possible. Here in France where I live we have no TETRA networks available and I want to test my receiver with? a real sample to make sure it works properly. Best regards, Farhad >________________________________ > From: Sylvain Munaut <246tnt at gmail.com> >To: Farhad Abdolian >Cc: Edoardo Rispoli ; "tetra at lists.osmocom.org" >Sent: Tuesday, June 5, 2012 2:47 PM >Subject: Re: TETRA sample to test TDMA reception > >> Does anyone have a sampled TETRA file you can share with us? It would be >> really useful if someone with a USRP save the sampled file and share with >> us. >> >> If you need space, I can offer free space on my personal or company site (up >> to 2G). > >... > >http://tetra.osmocom.org/trac/wiki/Test_Samples > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From edoardo.rispoli at gmail.com Tue Jun 5 12:56:44 2012 From: edoardo.rispoli at gmail.com (Edoardo Rispoli) Date: Tue, 5 Jun 2012 14:56:44 +0200 Subject: TETRA sample to test TDMA reception In-Reply-To: <1338900660.99512.YahooMailNeo@web160905.mail.bf1.yahoo.com> References: <926F9B6B6CAE40D684A6FEFB3BAA20AC@pc1> <1338900151.86967.YahooMailNeo@web160901.mail.bf1.yahoo.com> <1338900660.99512.YahooMailNeo@web160905.mail.bf1.yahoo.com> Message-ID: the sample is generate with the receiver, whit a sample you can test the decoding software but not the receiver. 2012/6/5 Farhad Abdolian > Hi Sylvain, > Thanks, I know that one, but I need a larger file if possible. > Here in France where I live we have no TETRA networks available and I want > to test my receiver with a real sample to make sure it works properly. > > Best regards, > Farhad > > ------------------------------ > *From:* Sylvain Munaut <246tnt at gmail.com> > *To:* Farhad Abdolian > *Cc:* Edoardo Rispoli ; " > tetra at lists.osmocom.org" > *Sent:* Tuesday, June 5, 2012 2:47 PM > *Subject:* Re: TETRA sample to test TDMA reception > > > Does anyone have a sampled TETRA file you can share with us? It would be > > really useful if someone with a USRP save the sampled file and share with > > us. > > > > If you need space, I can offer free space on my personal or company site > (up > > to 2G). > > ... > > http://tetra.osmocom.org/trac/wiki/Test_Samples > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From graham.palmer69 at yahoo.co.uk Sun Jun 24 19:33:26 2012 From: graham.palmer69 at yahoo.co.uk (Graham Palmer) Date: Sun, 24 Jun 2012 20:33:26 +0100 (BST) Subject: enquiry Message-ID: <1340566406.9343.YahooMailNeo@web171506.mail.ir2.yahoo.com> Hi all Just a quick enquiry. Anybody know how to pipe traffic.out data to channel decoder ? I can only get it to copy 1 frame with mkfifo and then it stops. All other pipes work right up to aplay audio. Any help is appreciated. Many thanks. Graham. -------------- next part -------------- An HTML attachment was scrubbed... URL: From graham.palmer69 at yahoo.co.uk Sun Jun 24 19:33:26 2012 From: graham.palmer69 at yahoo.co.uk (Graham Palmer) Date: Sun, 24 Jun 2012 20:33:26 +0100 (BST) Subject: enquiry Message-ID: <1340566406.9343.YahooMailNeo@web171506.mail.ir2.yahoo.com> Hi all Just a quick enquiry. Anybody know how to pipe traffic.out data to channel decoder ? I can only get it to copy 1 frame with mkfifo and then it stops. All other pipes work right up to aplay audio. Any help is appreciated. Many thanks. Graham. -------------- next part -------------- An HTML attachment was scrubbed... URL: From 246tnt at gmail.com Sun Jun 24 19:54:33 2012 From: 246tnt at gmail.com (Sylvain Munaut) Date: Sun, 24 Jun 2012 21:54:33 +0200 Subject: enquiry In-Reply-To: <1340566406.9343.YahooMailNeo@web171506.mail.ir2.yahoo.com> References: <1340566406.9343.YahooMailNeo@web171506.mail.ir2.yahoo.com> Message-ID: > Anybody know how to pipe traffic.out data to channel decoder ? I can only > get it to copy 1 frame with mkfifo and then it stops. All other pipes work > right > up to aplay audio. fifo/pipe wont work with the current hack. Just look at the code and it'll be obvious why : we open/close at each frame.