I have gnuradio version 3.6.2-13-g65ea256f Q1 : In the directory */usr/local/share/gnuradio/examples/digital/ofdm* I tried to run ofdm_mod_demod_test.py but it threw the error * 'module' object has no attribute 'ofdm_bpsk_mapper'* I tried to locate ofdm_bpsk_mapper but couldn't find it in my system I remember it was running last year Rest of all the files are running fine i.e. benchmark_tx.py, rx.py etc Q2 : I was running the *uhd_tx_ofdm.grc* example from the gr_apps https://github.com/trondeau/gr_apps When I run it , I get the error *'module' object has no attribute 'ofdm_mapper_bcv'* *File "/usr/local/lib/python2.6/dist-packages/gnuradio/blks2impl/ofdm.py", line 97, in __init__ self._pkt_input = gr.ofdm_mapper_bcv(rotated_const, msgq_limit, AttributeError: 'module' object has no attribute 'ofdm_mapper_bcv'* I tried to locate ofdm_mapper_bcv and got it in the include path */usr/local/include/gnuradio/digital_ofdm_mapper_bcv.h /usr/local/include/gnuradio/gr_ofdm_mapper_bcv.h /usr/local/include/gnuradio/swig/digital_ofdm_mapper_bcv.i /usr/local/include/gnuradio/swig/gr_ofdm_mapper_bcv.i* Q3 : There is another folder of ofdm inside *gnuradio/examples/ofdm* apart from *gnuradio/examples/digital/ofdm* There also I am facing errors like : *ofdm_mod_demod_test.py ---- 'module' object has no attribute 'ofdm_bpsk_mapper' benchmark_ofdm.py ---- 'module' object has no attribute 'ofdm_mapper_bcv' benchmark_tx.py ---- 'module' object has no attribute 'ofdm_mapper_bcv'* Is it my improper installation or some files/modules have been depreciated in the new version !! -- View this message in context: http://gnuradio.4.n7.nabble.com/Reg-ofdm-bpsk-mapp... Sent from the GnuRadio mailing list archive at Nabble.com.
on 2012-10-18 01:14
on 2012-10-20 08:33
After doing some digging I found following issues : *Reg : ofdm_bpsk_mapper* I just found out that there is no ofdm_bpsk_mapper source file in the current gnuradio source code. I was expecting gr_ofdm_bpsk_mapper.cc gr_ofdm_bpsk_mapper.h gr_ofdm_bpsk_mapper.i There are only demapper files : gnuradio/gnuradio-core/src/lib/general/gr_ofdm_bpsk_demapper.cc gnuradio/gnuradio-core/src/lib/general/gr_ofdm_bpsk_demapper.h gnuradio/gnuradio-core/src/lib/general/gr_ofdm_bpsk_demapper.i And that's why I guess ofdm_mod_demos_test.py is not running. *Reg : ofdm_mapper_bcv* In the new ofdm scripts " usr/local/share/gnuradio/examples/digital/ofdm " we are importing ofdm_mod , ofdm_demod from gnuradio/digital while in the old ofdm scripts " gnuradio/examples/digital/ofdm " , its been imported from blks2(blks2ipml). In the current source code for gnuradio we have only digital_ofdm_mapper_bcv.cc , gr_ofdm_mapper_bcv.cc is missing !! Its kind of strange that header and swig files i.e. gr_ofdm_mapper_bcv.h and .i are there but the .cc file not there So whenever a code is importing from blks2impl its throwing error. I was wondering why dint it throw error while compiling as some file was missing. Anybody else also facing the same issue ? -- View this message in context: http://gnuradio.4.n7.nabble.com/Reg-ofdm-bpsk-mapp... Sent from the GnuRadio mailing list archive at Nabble.com.
on 2012-10-23 16:34
On Wed, Oct 17, 2012 at 7:13 PM, sumitstop <firstname.lastname@example.org> wrote: > I have gnuradio version 3.6.2-13-g65ea256f > > Q1 : In the directory */usr/local/share/gnuradio/examples/digital/ofdm* I > tried to run ofdm_mod_demod_test.py > but it threw the error * 'module' object has no attribute > 'ofdm_bpsk_mapper'* > I tried to locate ofdm_bpsk_mapper but couldn't find it in my system > I remember it was running last year The bpsk mapper has been removed in 3.6. It was only used in this one file but was replaced by the more general ofdm_mapper_bcv. You can probably easily patch this Python file to use the new one pretty easily. But I also wouldn't spend a lot of time on that one, the benchmark scripts are more interesting and useful. > self._pkt_input = gr.ofdm_mapper_bcv(rotated_const, msgq_limit, > AttributeError: 'module' object has no attribute 'ofdm_mapper_bcv'* > > I tried to locate ofdm_mapper_bcv and got it in the include path > > */usr/local/include/gnuradio/digital_ofdm_mapper_bcv.h > /usr/local/include/gnuradio/gr_ofdm_mapper_bcv.h > /usr/local/include/gnuradio/swig/digital_ofdm_mapper_bcv.i > /usr/local/include/gnuradio/swig/gr_ofdm_mapper_bcv.i* Those gr_apps don't get too much work. I didn't know anyone actually used them. They were mostly a stop-gap while switching over to the UHD and are based on v3.5. What you're having issues with is probably just due to importing the module. Try changing the line to use the digital module (digital.ofdm_mapper_bcv). > in the new version !! There is some duplication of work in 3.6 as we're moving over to 3.7. The OFDM stuff right now exists in both gnuradio-core and gr-digital. It's a bit messy, but a necessity due to the major changes. It'd still be a good idea to clean out your installation and reinstall, especially if you had a 3.5 version installed before. Tom
on 2012-10-23 22:11
Yeah .. a whole lot of patching is required to make them work. i included digital, then replaced bpsk_mapper by ofdm_mapper_bcv , then copied the rotation constellation vector from ofdm.py ... and then happily tried to run it .. but some other files are also missing like gr_ofdm_correlator.h .. so finally gave off ... but It was a nice learning although anyways I can always do benchmark_tx --> to--file and benchmark_rx <-- from-file its almost equivalent One quick question ... To suppress the individual carriers as well as mounting different modulation schemes to individual carriers , I need to look in ofdm_mapper_bcv right ? -- View this message in context: http://gnuradio.4.n7.nabble.com/Reg-ofdm-bpsk-mapp... Sent from the GnuRadio mailing list archive at Nabble.com.