Re: [Discuss-gnuradio] modify c++ source code

2016-01-06 Thread Marcus Müller
Hi Kerry, you normally don't start by modifying existing blocks. You don't seem to be familiar with C++ development: C++ source code is not directly executed; you will need to compile GNU Radio including the changed source code, and install it again. Also, gr_uhd_usrp_source.cc is definitely from

Re: [Discuss-gnuradio] Saving files

2016-01-06 Thread Marcus Müller
Hi Pedro, this means you're using the wrong storage format when loading things in matlab. Best regards, Marcus On 06.01.2016 19:42, Pedro Gabriel Adami wrote: > Hello, everybody, > > I'm using File sink in Gnuradio to save some numbers that come from > Moving Average block. I can see them using

Re: [Discuss-gnuradio] how to send a complete file

2016-01-06 Thread Marcus Müller
Hi Ekko, as Michael said, if you need arbitrary lengths of data to be complete, that would be at least one layer up the network layer model; you'll need to ensure your data fits into packets perfectly. Best regards, Marcus On 06.01.2016 19:26, Michael Berman wrote: > > Ekko, > > > > It has bee

[Discuss-gnuradio] modify c++ source code

2016-01-06 Thread kerry
Hi,all: I had ran uhd_fft.py successful. Now I want to modify the c++ source code in "gr_uhd_usrp_source.cc". I read the uhd_fft.py code found parameter setting through called set function(eg:set_center_freq()) in "gr_uhd_usrp_source.cc". But when I modify the code it not execute the "gr_uhd_usrp_

[Discuss-gnuradio] Saving files

2016-01-06 Thread Pedro Gabriel Adami
Hello, everybody, I'm using File sink in Gnuradio to save some numbers that come from Moving Average block. I can see them using Number Sink, but when I use File Sink to save them and I open (in Matlab) the binary file generated, I get millions of numbers, that is, this amount is wrong. Do you kno

Re: [Discuss-gnuradio] how to send a complete file

2016-01-06 Thread Michael Berman
Ekko, It has been a while since I have dealt with this kind of issue with the digital coms, but I have run into this. The problem I found was that there was not enough data in the file to feed the packetizer properly. There are probably several work arounds for this, but the simplest would

Re: [Discuss-gnuradio] Digital TV with USRP and GNU Radio

2016-01-06 Thread Andy Walls
On Wed, 2016-01-06 at 12:00 -0500, discuss-gnuradio-requ...@gnu.org wrote: > On Wed, Jan 6, 2016 at 11:09 AM, Richard Bell > > wrote: > > > Does anyone know of a good tutorial that shows how to receive and > display > > TV on Ubuntu using a USRP and GNU Radio? I'm interested. > > > > Rich > > >

Re: [Discuss-gnuradio] Digital TV with USRP and GNU Radio

2016-01-06 Thread Richard Bell
Got it. Thanks Tom. Rich On Wed, Jan 6, 2016 at 8:26 AM, Tom Rondeau wrote: > On Wed, Jan 6, 2016 at 11:09 AM, Richard Bell > wrote: > >> Does anyone know of a good tutorial that shows how to receive and display >> TV on Ubuntu using a USRP and GNU Radio? I'm interested. >> >> Rich >> > > > Ri

Re: [Discuss-gnuradio] About Polymorphic types in gnuradio

2016-01-06 Thread Marcus Müller
Sorry, forgot about that; also, to make matters worse: "different blocks" also means "different threads", so this is not only a data integrity, but especially a multithreading horror. On 06.01.2016 17:30, Tom Rondeau wrote: > On Wed, Jan 6, 2016 at 11:23 AM, Marcus Müller > mailto:marcus.muel...@

Re: [Discuss-gnuradio] About Polymorphic types in gnuradio

2016-01-06 Thread Tom Rondeau
On Wed, Jan 6, 2016 at 11:23 AM, Marcus Müller wrote: > Ah, so it's a uniform vector of _u_signed _8_bit integers. > Try pmt::u8vector_ref(VECT, k), where k is the index of the element you > want to get. To modify, use pmt::u8vector_set(pmt_t, index,value). > > Since your pmt is really just a wra

Re: [Discuss-gnuradio] Digital TV with USRP and GNU Radio

2016-01-06 Thread Tom Rondeau
On Wed, Jan 6, 2016 at 11:09 AM, Richard Bell wrote: > Does anyone know of a good tutorial that shows how to receive and display > TV on Ubuntu using a USRP and GNU Radio? I'm interested. > > Rich > Rich, I'm not sure anyone's written it up, but there are examples in gr-dtv/examples. I just lo

Re: [Discuss-gnuradio] About Polymorphic types in gnuradio

2016-01-06 Thread Marcus Müller
Ah, so it's a uniform vector of _u_signed _8_bit integers. Try pmt::u8vector_ref(VECT, k), where k is the index of the element you want to get. To modify, use pmt::u8vector_set(pmt_t, index,value). Since your pmt is really just a wrapper around memory-contiguous uint8_ts , you can also "cheat" and

Re: [Discuss-gnuradio] About Polymorphic types in gnuradio

2016-01-06 Thread Gabriel Pechiarovich
I'm using message strobe to send the data in the Message PMt parameter I used: pmt.cons(pmt.make_dict(), pmt.make_u8vector(8,0x42 )) then comes my block, and to read the output i'm using Message Debug block. 2016-01-06 10:55 GMT-05:00 Marcus Müller : > Hi Gabriel, > > do you know what kind of

[Discuss-gnuradio] Digital TV with USRP and GNU Radio

2016-01-06 Thread Richard Bell
Does anyone know of a good tutorial that shows how to receive and display TV on Ubuntu using a USRP and GNU Radio? I'm interested. Rich ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Re: [Discuss-gnuradio] About Polymorphic types in gnuradio

2016-01-06 Thread Marcus Müller
Hi Gabriel, do you know what kind of PMT VECT is? pmt_t is a container, and might contain a lot of different things. Is it a pmt::vector, or a pmt::uniform_vector, or a list, or something else? For an overview, I'd like to point you to the polymorphic types page in the GNU Radio manual [1]. Best

[Discuss-gnuradio] problem with custom RFNoC block output in GRC

2016-01-06 Thread Jason Matusiak
I am having some issues with a custom RFNoC block output when trying to run my python script. My block takes in a complex int 16, and outputs a complex int 16 as well as a "byte". The byte is really a 32b value that the receiving end will use to convert to a float. This is a follow on from a pre

[Discuss-gnuradio] About Polymorphic types in gnuradio

2016-01-06 Thread Gabriel Pechiarovich
Hi, I've been working in oot modules in gnuradio for a while, but recently I've been trying to program blocks who can handle messages. I've extracted the input data and replicated it at the output, like this: pmt::pmt_t META = pmt::car(PDU); pmt::pmt_t VECT = pmt::cdr(PDU); std::cout << "

Re: [Discuss-gnuradio] Installation of gr-video-sdl for GNU Radio Companion 3.7.10git-31-gb17bcb88

2016-01-06 Thread Tom Rondeau
On Tue, Jan 5, 2016 at 11:35 AM, wrote: > Hello/Happy New Year! > > I'm in need of using my USRP to receive NTSC (Analog TV). I installed > gnuradio via pybombs and I noticed that under > /target/share/gnuradio/examples/uhd there is a python script called > usrp_tv_rcv.py however when running the

Re: [Discuss-gnuradio] gmsk+fec

2016-01-06 Thread Tom Rondeau
On Tue, Jan 5, 2016 at 7:56 AM, Ekko wrote: > hello tom > i replace the with the ,just like > > > > and i am using the Dummy Encoder and Dummy Decoder > > but ,i got > Traceback (most recent call last): > File "/home/cdl/gmsk_fec/gmsk_fec.py", line 236, in > tb = gmsk_fec() > File "/

Re: [Discuss-gnuradio] gnuradio compiles no more on my computer, cannot figure out why

2016-01-06 Thread Lecoq Yann
Hi Marcus, You were right, a thorough cleaning of everything uhd related solved the issue, Thanks for your help ! -Yann Le Mercredi 6 Janvier 2016 13:37 CET, Marcus Müller a écrit: > Hi Yann, > > this looks familiar; there was someone else with pretty exactly the same > problem, and th

[Discuss-gnuradio] Questions about USRP source retune via messages

2016-01-06 Thread Meelis Nõmm
Hello everyone, I have been testing USRP (N200) source retuning via messages. The idea was to see how fast the USRP can retune reliably. Also looked at the usrp_spectrum_sense but as Marcus pointed out in [1] that example

Re: [Discuss-gnuradio] gnuradio compiles no more on my computer, cannot figure out why

2016-01-06 Thread Marcus Müller
Hi Yann, this looks familiar; there was someone else with pretty exactly the same problem, and the underlying complication was that there were two installations of UHD header files. Make sure only one UHD is installed, and try again. Best regards, Marcus On 06.01.2016 12:50, Lecoq Yann wrote: >

[Discuss-gnuradio] gnuradio compiles no more on my computer, cannot figure out why

2016-01-06 Thread Lecoq Yann
Hello and a happy new year to all, I used to compile gnuradio and uhd from git repos on a ubuntu 14.04 computer and, for whatever reason, the gnuradio compilation don't work anymore. There must be something I modified in the config that triggered that, but I can't figure out what (I started wan