[Discuss-gnuradio] Phase shift correction in Bpsk!!
Hello All, I have designed BPSK transmitter and receiver in grc. But Costas loop can able to correct frequency offset, not phase offset. Here, I attached both transmitter and receiver files. Transmitter : 1). File sink contains Bpsk symbols {-1,1} (repeat = yes) 2). Samples per symbol : 20 3). RRC pulse lasts for 2 symbol periods Receiver : 1). Matched filtering 2). Costas loop & Timing recovery 3). saving samples in File sink and final Symbols are recovered from the samples in matlab. I'm using uhd + gnuradio + USRP1 + RFX 2400 daughter boards. Can somebody suggest me how to deal with Phase offset ? (especially when the gain of Rx is low phase shifts are happening frequently) One more Question : Is Rms value sufficient in SNR Calculation ? Thanks & Regards http://old.nabble.com/file/p33763663/Transmitter.grc Transmitter.grc http://old.nabble.com/file/p33763663/Receiver.grc Receiver.grc http://old.nabble.com/file/p33763663/Rcvd_data.png Rcvd_data.png http://old.nabble.com/file/p33763663/Bpsk_data.dat Bpsk_data.dat -- View this message in context: http://old.nabble.com/Phase-shift-correction-in-Bpsk%21%21-tp33763663p33763663.html Sent from the GnuRadio mailing list archive at Nabble.com. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] How to instantiate uhd usrp sink in C++
Posted by Josh Blum (Guest) on 2011-05-14 00:40 [image: (Received via mailing list)] >On 05/13/2011 03:33 PM, r...@ee.ucla.edu wrote: I am connecting the >uhd_usrp_sink to a sig_source_c. Here is the troublesome>> code that I use to >setup the uhd_usrp_sink:>> uhd::device_addr_t addr; //I assume this defaults >to "">> uhd::io_type_t type(2); //I want this to be COMPLEX_FLOAT32, but don't >know >>how to >>gr_uhd_usrp_sink_sptr usrp_sink = uhd_make_usrp_sink(addr,type,1); >>... >>... > >Well thats the problem, there is no enum w/ value 2. Use one of the >build-in enums: > http://www.ettus.com/uhd_docs/doxygen/html/classuhd_1_1io__type__t.html > >Also, you can pass uhd::io_type_t::COMPLEX_FLOAT32 directly as the >second argument. > >-josh Hi, josh, I am also want to instantiate uhd usrp sink in C++, I google it and find your email. My problem is when I use gr_uhd_usrp_sink_sptr usrp_sink = uhd_make_usrp_sink(addr,type,1); but its error information is:'gr_uhd_usrp_sink_sptr' was not declared in this scope. And I read the source code from the URL: http://gnuradio.org/cgit/gnuradio.git/tree/gr-uhd/lib, the class uhd_usrp_sink has many pure virtual functions and it inherited in python, in the source code uhd_swig.py, how can we directly instantiate uhd_usrp_sink in C++? Due to my unfamiliarity with C++ and maybe it looks a bit ridiculous, Hey! Thanks very much for your help in advance! -- Ding, Yuzhen Best Regards! ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Install old version of gnuradio
Hi everybody, Is it possible to install an old version of GNURadio? Like version 3.3 or 3.4? If yes, how is possible? Because apt-get install and the automatic script install the version. Thank you a lot! Loic. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Install old version of gnuradio
Hey Loic, yes, you can download an old release here: http://gnuradio.org/releases/gnuradio/ I installed 3.3.0. My steps: - I saved the file in my download directory. - extracted it with file-roller in my chosen directory (e.g. /etc/) - build it, install it and run it. ;) have a nice day. Regards Ellen 2012/5/10 Loic Danceg > Hi everybody, > > Is it possible to install an old version of GNURadio? Like version 3.3 or > 3.4? > If yes, how is possible? > Because apt-get install and the automatic script install the version. > > Thank you a lot! > > Loic. > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Install old version of gnuradio
On Thu, May 10, 2012 at 10:43:53AM -0300, Loic Danceg wrote: > Is it possible to install an old version of GNURadio? Like version 3.3 or 3.4? > If yes, how is possible? > Because apt-get install and the automatic script install the version. Do you mean 'possible' or 'useful'? If the only reason you want 3.3 is because you can apt-get install, I *heavily* recommend you *don't* do that, but use the build-gnuradio script. It's really, really simple. If, like Ellen, you need a specific reason of GNU Radio for some reason, then she's already pointed out all you need. MB -- Karlsruhe Institute of Technology (KIT) Communications Engineering Lab (CEL) Dipl.-Ing. Martin Braun Research Associate Kaiserstraße 12 Building 05.01 76131 Karlsruhe Phone: +49 721 608-43790 Fax: +49 721 608-46071 www.cel.kit.edu KIT -- University of the State of Baden-Württemberg and National Laboratory of the Helmholtz Association pgpO9VtHKiZ9U.pgp Description: PGP signature ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] How to instantiate uhd usrp sink in C++
You may want to see the c++ examples here to see how to instantiate: http://gnuradio.org/cgit/gnuradio.git/tree/gr-uhd/examples/c++/ -josh On 05/10/2012 02:36 AM, baobaonanpo D wrote: > Posted by Josh Blum (Guest) > on 2011-05-14 00:40 > [image: (Received via mailing list)] > >> On 05/13/2011 03:33 PM, r...@ee.ucla.edu wrote: I am connecting the >> uhd_usrp_sink to a sig_source_c. Here is the troublesome>> code that I use >> to setup the uhd_usrp_sink:>> uhd::device_addr_t addr; //I assume this >> defaults to "">> uhd::io_type_t type(2); //I want this to be >> COMPLEX_FLOAT32, but don't know > >>> how to >>> gr_uhd_usrp_sink_sptr usrp_sink = uhd_make_usrp_sink(addr,type,1); >>> ... >>> ... > >>> Well thats the problem, there is no enum w/ value 2. Use one of the >> build-in enums: > > http://www.ettus.com/uhd_docs/doxygen/html/classuhd_1_1io__type__t.html > >> Also, you can pass uhd::io_type_t::COMPLEX_FLOAT32 directly as the >second > argument. > >-josh > > Hi, > josh, I am also want to instantiate uhd usrp sink in C++, I google it and > find your email. > My problem is when I use gr_uhd_usrp_sink_sptr usrp_sink = > uhd_make_usrp_sink(addr,type,1); > but its error information is:'gr_uhd_usrp_sink_sptr' was not declared in > this scope. > And I read the source code from the URL: > http://gnuradio.org/cgit/gnuradio.git/tree/gr-uhd/lib, the class > uhd_usrp_sink has many pure virtual functions and it inherited in python, > in the source code uhd_swig.py, how can we directly instantiate > uhd_usrp_sink in C++? > Due to my unfamiliarity with C++ and maybe it looks a bit ridiculous, Hey! > Thanks very much for your help in advance! > ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Install old version of gnuradio
Hi Ellen, Thank you for your faster answer! I just need to do that? So in my directory i need use the command: ./bootstrap ./configure make -j5 make install And all will works? Btw if i need to use UHD, can i use the last version of UHD with the version GNURadio3.3 and 3.4? Again thank you for your time! Loic 2012/5/10 Ellen Apolinar > Hey Loic, > > yes, you can download an old release here: > http://gnuradio.org/releases/gnuradio/ > > I installed 3.3.0. My steps: > - I saved the file in my download directory. > - extracted it with file-roller in my chosen directory (e.g. /etc/) > - build it, install it and run it. ;) > > have a nice day. > > Regards > Ellen > > > 2012/5/10 Loic Danceg > >> Hi everybody, >> >> Is it possible to install an old version of GNURadio? Like version 3.3 or >> 3.4? >> If yes, how is possible? >> Because apt-get install and the automatic script install the version. >> >> Thank you a lot! >> >> Loic. >> >> ___ >> Discuss-gnuradio mailing list >> Discuss-gnuradio@gnu.org >> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio >> >> > ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] GRC: New xml tags
Hi all, I am currently extending gnuradio filter design tools and is planning to integrate gr_filter_design to GRC so that users can import filter specs directly. I went through the gui code and tried some examples by patching /gnuradio/grc/gui/PropsDialog.py. Please watch a sample recording http://www.youtube.com/watch?v=aqLIPHXCM1M (kindly switch to high resolution). In my implementation I tried to update grc block parametes by handling stdout of an external program and from a file too. I would mainly like to add two features a) launching of an external application and handling the out (may be via stdout or using plugs and sockets) b) File loader so that block parameters can be directly imported from an standard xml file. Is it desirable to add some new xml tags (, , etc) to block.dtd so that this will be a generic feature that can be added to any block. Is there any other good and clean way of doing this?. It would be really helpful if any one of the GRC maintainers can share some thoughts on this. --- Regards Sreeraj Rajendran http://home.iitb.ac.in/~rsreeraj ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Install old version of gnuradio
I try but i have these erros when i use the command make : python/uhd_swig.cc:14754:3: error: ‘stream_args_t’ was not declared in this scope python/uhd_swig.cc:14754:18: error: ‘arg2’ was not declared in this scope python/uhd_swig.cc:14764:3: error: ‘rx_streamer’ has not been declared python/uhd_swig.cc:14764:21: error: expected ‘;’ before ‘result’ python/uhd_swig.cc:14779:28: error: expected type-specifier before ‘stream_args_t’ python/uhd_swig.cc:14779:28: error: expected ‘>’ before ‘stream_args_t’ python/uhd_swig.cc:14779:28: error: expected ‘(’ before ‘stream_args_t’ python/uhd_swig.cc:14779:44: error: expected primary-expression before ‘>’ token python/uhd_swig.cc:14779:52: error: expected ‘)’ before ‘;’ token python/uhd_swig.cc:14782:7: error: ‘result’ was not declared in this scope python/uhd_swig.cc:14782:53: error: expected ‘)’ before ‘const’ python/uhd_swig.cc:14782:67: error: expected ‘)’ before ‘;’ token python/uhd_swig.cc:14792:15: error: expected type-specifier before ‘rx_streamer’ python/uhd_swig.cc:14792:15: error: expected ‘)’ before ‘rx_streamer’ python/uhd_swig.cc:14792:161: error: expected ‘)’ before ‘;’ token python/uhd_swig.cc: In function ‘PyObject* _wrap_device_get_tx_stream(PyObject*, PyObject*, PyObject*)’: python/uhd_swig.cc:14802:3: error: ‘stream_args_t’ was not declared in this scope python/uhd_swig.cc:14802:18: error: ‘arg2’ was not declared in this scope python/uhd_swig.cc:14812:3: error: ‘tx_streamer’ has not been declared python/uhd_swig.cc:14812:21: error: expected ‘;’ before ‘result’ python/uhd_swig.cc:14827:28: error: expected type-specifier before ‘stream_args_t’ python/uhd_swig.cc:14827:28: error: expected ‘>’ before ‘stream_args_t’ python/uhd_swig.cc:14827:28: error: expected ‘(’ before ‘stream_args_t’ python/uhd_swig.cc:14827:44: error: expected primary-expression before ‘>’ token python/uhd_swig.cc:14827:52: error: expected ‘)’ before ‘;’ token python/uhd_swig.cc:14830:7: error: ‘result’ was not declared in this scope python/uhd_swig.cc:14830:53: error: expected ‘)’ before ‘const’ python/uhd_swig.cc:14830:67: error: expected ‘)’ before ‘;’ token python/uhd_swig.cc:14840:15: error: expected type-specifier before ‘tx_streamer’ python/uhd_swig.cc:14840:15: error: expected ‘)’ before ‘tx_streamer’ python/uhd_swig.cc:14840:161: error: expected ‘)’ before ‘;’ token make[5]: ** [_uhd_swig_la-uhd_swig.lo] Erro 1 make[5]: Saindo do diretório `/home/sdr/gnuradio-3.4.0/gr-uhd/swig' And these errors with the command ./bootstrap chmod: impossível acessar "volk_register.py": Arquivo ou diretório não encontrado aclocal: `configure.ac' or `configure.in' is required autoconf: error: no input file autoheader: `configure.ac' or `configure.in' is required automake: `configure.ac' or `configure.in' is required Someone know why? Thank you :-) 2012/5/10 Loic Danceg > Hi Ellen, > > Thank you for your faster answer! > I just need to do that? So in my directory i need use the command: > > ./bootstrap > ./configure > make -j5 > make install > > And all will works? > > Btw if i need to use UHD, can i use the last version of UHD with the > version GNURadio3.3 and 3.4? > > Again thank you for your time! > > Loic > > > 2012/5/10 Ellen Apolinar > >> Hey Loic, >> >> yes, you can download an old release here: >> http://gnuradio.org/releases/gnuradio/ >> >> I installed 3.3.0. My steps: >> - I saved the file in my download directory. >> - extracted it with file-roller in my chosen directory (e.g. /etc/) >> - build it, install it and run it. ;) >> >> have a nice day. >> >> Regards >> Ellen >> >> >> 2012/5/10 Loic Danceg >> >>> Hi everybody, >>> >>> Is it possible to install an old version of GNURadio? Like version 3.3 >>> or 3.4? >>> If yes, how is possible? >>> Because apt-get install and the automatic script install the version. >>> >>> Thank you a lot! >>> >>> Loic. >>> >>> ___ >>> Discuss-gnuradio mailing list >>> Discuss-gnuradio@gnu.org >>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio >>> >>> >> > ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Samples/Symbol Help
Hello I am working with the different digital modulators in grc, and I am having trouble understanding some of the parameters. I don't understand the effect that the samples/symbol or bits/symbol has on the sampling rate. I would greatly appreciate any help or advice. Thank you for your time. Sam -- View this message in context: http://old.nabble.com/Samples-Symbol-Help-tp33763690p33763690.html Sent from the GnuRadio mailing list archive at Nabble.com. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Simple signal echo with the USRP
hi, i am also trying to modify the verilog code in usrp fpga. mail me if you have hello world program to do that. I am not understanding how to do it exactly. thanks in advance. Balijepalli, Arvind wrote: > > I am starting to look into building a feedback controller, which takes the > position of the particle and outputs a suitable control signal. The > controller itself will most likely be a tabulated function, which we can > implement using a lookup table. However, I am having trouble getting a > basic signal echo going. I have installed GNU radio as well as the Quartus > compiler and worked through compiling and running the top level std_usrp > project. > > As a next step, I am trying to modify the USRP FPGA Verilog code to build > a simple signal echo. The Verilog code is extremely simple in this case. I > started by modifying to top level usrp_std.v and simply mapped the input > rx_a_a and rx_b_a onto tx_a and tx_b, cutting out all the other extraneous > code pertaining to the USB. The essence of the Verilog code is: Create two > registers to drive the output wires and echo the output at the positive > edge of the clock. This code compiles without errors in Quartus (although > this doesn't necessarily imply that it should work). > > reg lTXA; > reg lTXB; > > assign tx_a = lTXA; > assign tx_b = lTXB; > > always @(posedge clk64) > begin >lTXA = rx_a_a; >lTXB = rx_b_a; > end > > > However, I am not sure how to setup the python code to get this to > successfully run. The code snippet below doesn't seem to do the trick. > > > src = usrp.source_c(which=0, decim_rate=64, nchan=2, mode=0, > fpga_filename="echo.rbf") > dst = usrp.sink_c(which=0, nchan=2) > > self.connect (src, dst) > > Can someone point me in the right direction with this? Also, I haven't > found a simple "hello, world!" example to modify the FPGA code. Does such > an example exist? If it doesn't, I will be happy to get this to a point > where it is usable and submit it back to the community. I think it may be > useful for others like myself who are new to Verilog/FPGAs and may provide > an easier entry point to start modifying the FPGA code. > > > Thanks, > Arvind > -- > Arvind Balijepalli > > NIST > 100 Bureau Drive, Mail Stop 8212 > Gaithersburg, MD 20899 > > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > -- View this message in context: http://old.nabble.com/Simple-signal-echo-with-the-USRP-tp28348387p33765406.html Sent from the GnuRadio mailing list archive at Nabble.com. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] flow graph with feedback by using udp source/sink
Sorry I forgot to CC my last email to the list. Below is Josh's reply with my walkaround (quoted). On Thu, 10 May 2012 10:35:49 -0700, Josh Blum wrote: > >> >> I will look into it and have a try. I wonder if there are some examples >> to begin with the exploration. I don't have experience with next branch >> for now. >> > > If it helps, many of these blocks use message passing. You can connect > and see these message passing ports in GRC. This project is pulled in a > subproject to my next branch: > > https://github.com/guruofquality/grextras > >> As with my original problem, I think I come up with a dirty solution: >> I use additional vector source to produce some data, send it to the udp >> sink at the beginning. Then after some time I reconfigure the flow >> graph, disconnect the vector source and connect udp sink with my >> receiver block. It seems to work for me. >> > > Hey, do whatever works best for you. There are many many solutions to > passing stuff outside of gnuradio involving shared memory, named pipes, > sockets. Anything that works is a valid solution :-) > > I just have a habit of telling people this message passing exists, in > case they find it useful. > > -Josh ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Simple signal echo with the USRP
Hi, A gr-sounder application is available in gnuradio till version 3.4.x (in old archives). You can check those fpga code along with sounder.py which might be helpful. --- Regards Sreeraj Rajendran http://home.iitb.ac.in/~rsreeraj From: sravya reddy To: Discuss-gnuradio@gnu.org Sent: Friday, 11 May 2012 11:28 AM Subject: Re: [Discuss-gnuradio] Simple signal echo with the USRP hi, i am also trying to modify the verilog code in usrp fpga. mail me if you have hello world program to do that. I am not understanding how to do it exactly. thanks in advance. Balijepalli, Arvind wrote: > > I am starting to look into building a feedback controller, which takes the > position of the particle and outputs a suitable control signal. The > controller itself will most likely be a tabulated function, which we can > implement using a lookup table. However, I am having trouble getting a > basic signal echo going. I have installed GNU radio as well as the Quartus > compiler and worked through compiling and running the top level std_usrp > project. > > As a next step, I am trying to modify the USRP FPGA Verilog code to build > a simple signal echo. The Verilog code is extremely simple in this case. I > started by modifying to top level usrp_std.v and simply mapped the input > rx_a_a and rx_b_a onto tx_a and tx_b, cutting out all the other extraneous > code pertaining to the USB. The essence of the Verilog code is: Create two > registers to drive the output wires and echo the output at the positive > edge of the clock. This code compiles without errors in Quartus (although > this doesn't necessarily imply that it should work). > > reg lTXA; > reg lTXB; > > assign tx_a = lTXA; > assign tx_b = lTXB; > > always @(posedge clk64) > begin > lTXA = rx_a_a; > lTXB = rx_b_a; > end > > > However, I am not sure how to setup the python code to get this to > successfully run. The code snippet below doesn't seem to do the trick. > > > src = usrp.source_c(which=0, decim_rate=64, nchan=2, mode=0, > fpga_filename="echo.rbf") > dst = usrp.sink_c(which=0, nchan=2) > > self.connect (src, dst) > > Can someone point me in the right direction with this? Also, I haven't > found a simple "hello, world!" example to modify the FPGA code. Does such > an example exist? If it doesn't, I will be happy to get this to a point > where it is usable and submit it back to the community. I think it may be > useful for others like myself who are new to Verilog/FPGAs and may provide > an easier entry point to start modifying the FPGA code. > > > Thanks, > Arvind > -- > Arvind Balijepalli > > NIST > 100 Bureau Drive, Mail Stop 8212 > Gaithersburg, MD 20899 > > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > -- View this message in context: http://old.nabble.com/Simple-signal-echo-with-the-USRP-tp28348387p33765406.html Sent from the GnuRadio mailing list archive at Nabble.com. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] pulse signal generation
Hi, I am a starter. How to generate 100Hz (10% duty) pulsed signal using gnuradio & usrp1 Any help would be highly appreciated. Thanks & Regds, Sudhir. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio