Re: [Discuss-gnuradio] PMT Oddities

2016-12-09 Thread Dave NotTelling
Here is a full example: [code] #!/usr/bin/python import pmt d = pmt.make_dict() d = pmt.dict_add(d, pmt.intern('a'), pmt.intern('a')) d = pmt.dict_add(d, pmt.intern('b'), pmt.intern('b')) d = pmt.dict_add(d, pmt.intern('c'), pmt.intern('c')) a = pmt.cons(d, pmt.make_u8vector(10, 10)) print

Re: [Discuss-gnuradio] PMT Oddities

2016-12-09 Thread Dave NotTelling
I understand that it should bomb, but it doesn't if there are elements in the dictionary of the pair generated by cons. that's the problem. calling dict_keys should die on both tests, but returns just fine on the first test. On Dec 9, 2016 1:35 PM, "Martin Braun" wrote:

[Discuss-gnuradio] Difference between examples/ofdm/benchmark_tx.py and examples/ofdm/tx_ofdm.py

2016-12-09 Thread Qurat-Ul-Ann Akbar
Hi, I am new to GNU Radio and I want to use OFDM to send signals at frequency of around 2.4 GHz using USRP N210 with daughter board RFX2400. I do not really understand the difference between benchmark_tx.py and tx_ofdm.py. I know that benchmark runs with the USRP as well because it has an option

Re: [Discuss-gnuradio] Packet data transmission using header/payload demux

2016-12-09 Thread Martin Braun
You're not providing a trigger; the header/payload demux needs to know where the header starts. A small change will make this work: https://imgur.com/a/y6Kdt Cheers, M On 12/08/2016 01:32 PM, Damindra Bandara wrote: > Hi, > > I am trying to generate a flow graph that transmits a file as

Re: [Discuss-gnuradio] Interleaving

2016-12-09 Thread Martin Braun
I would recommend taking a look at gr-radar, which might be doing what you're looking for. -- M On 12/08/2016 10:53 AM, Daniel Estévez wrote: > Hi all, > > I have a stream of complex samples > > x_{11}, x_{12}, ..., x_{1N}, x_{21}, x_{22}, , x_{2N}, , x_{M1}, > x_{M2}, ..., x_{MN}. >

Re: [Discuss-gnuradio] PMT Oddities

2016-12-09 Thread Martin Braun
On 12/05/2016 01:56 PM, Dave NotTelling wrote: > Marcus & Martin: > > I tried the dict_keys() method of checking, but even that can > fail. Here is an example: > > [code] > > import pmt > > d = pmt.make_dict() > d = pmt.dict_add(d, pmt.intern('a'), pmt.intern('a')) > d = pmt.dict_add(d,

Re: [Discuss-gnuradio] How do I use arguments outside of functions

2016-12-09 Thread Martin Braun
You can have an intermediate function that translates your arguments into an IO signature, see e.g. here: https://github.com/gnuradio/gnuradio/blob/1e8562c8d5430667b48fced2d2e50ab5771dfb5e/gr-uhd/lib/usrp_source_impl.cc#L71 Also, you have until the end of your ctor to figure out the IO signature.