Anh Duc Nguyen | 22 Jul 18:32 2014
Picon

gnuradio dataflow, buffering and scheduling

Dear all,

I wish to study how gnuradio handles the dataflow,e.g., buffering, scheduling, synchronization, optimization as well as resultant latency in detail. However, I can not find any material that explain such things clearly. Could you please point me to direct or indirect resources e.g., in literature which present I need. I would appreciate it much,

With best regards,

Nguyen Anh Duc
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio <at> gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Daniele Nicolodi | 22 Jul 17:14 2014
Picon

Synchronizing N210 TX and RX channels

Hello,

I would like to synchronize the RX and TX channels on an N210 so that
the acquisition and transmission of data are triggered simultaneously.
I haven't found documentation on how to do that. Can someone, please,
point me in the right direction?

Thanks! Cheers,
Daniele
Ward, Marcus D. | 22 Jul 16:02 2014

Cross-correlating Two FFT signals

Hello,

I'm trying to find a way that I could cross-correlate two FFT signals that I have coming in from two UDP
networks, anyone know of a block I can do that with?

Thanks in advance,
Marcus
Perper | 22 Jul 14:44 2014
Picon

Message passing - issue with messages left in queues after running top block

Hi all,

I've noticed that "Run to completion" works now in situation when
message passing is used, which is great!
I have a related question. I'm creating a block which uses message
passing, and run it once:

        tb = some_block(fname="file1")
        tb.start()
        tb.wait()

#at this moment tb has still some unprocessed messages in message queues
#so if I run the block again on another file ...

        tb.set_fname("file2")
        tb.start()
        tb.wait()

I can see messages that were result of processing of file1. Do you know
how to avoid this?
One of acceptable solutions can be flushing msg queues after processing
of file1, but I don't know how to achieve this.

Best Regards,
Piotr Krysik
Martin Braun | 22 Jul 10:47 2014

Re: libboost error

The CMake process may have its faults, but it won't randomly decide to
use a boost version not installed. Make sure there really is no boost
4.6 anywhere on your machine, and clear out the build dir.

M

On 07/21/2014 06:04 PM, Ngô Khắc Hoàng wrote:
> 1. I do not use Pybombs.
> 
> 2. To install libboost, I just ran:
> sudo apt-get install libboost-all-dev.
> By default, it get and install the latest of libboost (1.54).
> 
> To check the version of libboost, I ran: dpkg -s libboost-dev | grep 'Version', and get:
> Version: 1.54.0.1ubuntu
> 
> I do not understand why the GNU Radio installer call the libboost1.46.
> 
> Hoang
> 
>> Are you using Pybombs? Also, do you have several boost versions
>> installed? Where are they?
>>
>> M
>>
>>
>> On 07/21/2014 08:45 AM, Hoang Ngo Khac wrote:
>>> Dear all,
>>>
>>> I'm installing GNU Radio 3.7.3 on Ubuntu 14.04. When I run "make", I got
>>> this error:
>>>
>>>     [ 86%] Built target gnuradio-uhd
>>>     Linking CXX executable tags_demo
>>>     /usr/bin/ld: warning: libboost_date_time.so.1.46.1, needed by
>>>     /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link)
>>>     /usr/bin/ld: warning: libboost_filesystem.so.1.46.1, needed by
>>>     /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link)
>>>     /usr/bin/ld: warning: libboost_regex.so.1.46.1, needed by
>>>     /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link)
>>>     /usr/bin/ld: warning: libboost_system.so.1.46.1, needed by
>>>     /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link)
>>>     /usr/bin/ld: warning: libboost_thread.so.1.46.1, needed by
>>>     /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link)
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::thread::start_thread()'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::match_results<char const*,
>>>     std::allocator<boost::sub_match<char const*> >
>>>     >::maybe_assign(boost::match_results<char const*,
>>>     std::allocator<boost::sub_match<char const*> > > const&)'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::re_detail::verify_options(unsigned int,
>>>     boost::regex_constants::_match_flags)'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::re_detail::get_mem_block()'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::filesystem3::detail::directory_iterator_increment(boost::filesystem3::directory_iterator&,
>>>     boost::system::error_code*)'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::filesystem3::path::filename() const'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::filesystem3::detail::directory_iterator_construct(boost::filesystem3::directory_iterator&,
>>>     boost::filesystem3::path const&, boost::system::error_code*)'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::filesystem3::path::operator/=(boost::filesystem3::path const&)'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::re_detail::perl_matcher<char const*,
>>>     std::allocator<boost::sub_match<char const*> >,
>>>     boost::regex_traits<char, boost::cpp_regex_traits<char> >
>>>     >::construct_init(boost::basic_regex<char, boost::regex_traits<char,
>>>     boost::cpp_regex_traits<char> > > const&,
>>>     boost::regex_constants::_match_flags)'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::filesystem3::detail::status(boost::filesystem3::path const&,
>>>     boost::system::error_code*)'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::this_thread::sleep(boost::posix_time::ptime const&)'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::re_detail::cpp_regex_traits_implementation<char>::transform_primary(char
>>>     const*, char const*) const'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::filesystem3::detail::system_complete(boost::filesystem3::path const&,
>>>     boost::system::error_code*)'
>>>     /usr/local/lib/libuhd.so: undefined reference to `boost::thread::join()'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::filesystem3::path::wchar_t_codecvt_facet()'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::re_detail::get_default_error_string(boost::regex_constants::error_type)'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::filesystem3::detail::dir_itr_close(void*&, void*&)'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::re_detail::cpp_regex_traits_implementation<char>::transform(char
>>>     const*, char const*) const'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::re_detail::put_mem_block(void*)'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::basic_regex<char, boost::regex_traits<char,
>>>     boost::cpp_regex_traits<char> > >::do_assign(char const*, char
>>>     const*, unsigned int)'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::re_detail::raise_runtime_error(std::runtime_error const&)'
>>>     /usr/local/lib/libuhd.so: undefined reference to
>>>     `boost::filesystem3::path::parent_path() const'
>>>     collect2: error: ld returned 1 exit status
>>>     make[2]: *** [gr-uhd/examples/c++/tags_demo] Error 1
>>>     make[1]: *** [gr-uhd/examples/c++/CMakeFiles/tags_demo.dir/all] Error 2
>>>     make: *** [all] Error 2
>>>
>>>
>>> The version of libboost I installed is 1.54. However, it seems like the
>>> GNU Radio installer tried to use libboost1.46. I did run:
>>>
>>>     cmake -DCMAKE_INSTALL_PREFIX=/opt/gnuradio-3.7.3
>>>     -DENABLE_BAD_BOOST=True ../
>>>
>>> but that error still happened.
>>>
>>> Could someone show me how to fix this?
>>>
>>> Thanks,
>>> Hoang
>>> --
>>> *Hoang Ngo-Khac*
>>> Vietnam National University, Hanoi (VNU-H)
>>> Univ. of Engineering and Technology (UET)
>>> Faculty of Electronics and Telecommunications (FET)
>>> Alternative email:  hoangnk_55 <at> vnu.edu.vn <mailto:hoangnk_55 <at> vnu.edu.vn>
>>> Mobilephone:  +84.163.682.7874
>>>
>>>
>>> _______________________________________________
>>> Discuss-gnuradio mailing list
>>> Discuss-gnuradio <at> gnu.org
>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>>
>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio <at> gnu.org
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
> 
> 

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio <at> gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Simone Ciccia S210664 | 22 Jul 10:13 2014
Picon

TX-POWER USRP N210 AND WBX DOUGHTERBOARD

Hi at all,

I have problem to understand how an USRP used as a trasmitter works in term
of transmitted power when we fix a tx_gain.

Let me explain better: 
- The WBX Daughterboard is a wide bandwidth transceiver that provides up to
100 mW of output power and a noise figure of 5 dB. (extracted from manual)
- UHD USRP SINK block (in gnuradio) allows to set the tx_gain(dB)

Which is the relation between these parameters???
If I want to set a specific transmitted power???

Thanks in advance,

_______________________________________
Ing. Simone Ciccia, PhD Student
Antenna and EMC Lab (LACE),
Politecnico di Torino,
C.so Duca degli Abruzzi 24, 10129 Torino, Italy

simone.ciccia <at> polito.it
xianda | 21 Jul 12:50 2014

Reconfiguring Flowgraphs

Hi all:
         Thank you in advance.I want to ask some questions about the "Reconfiguring Flowgraphs".
         My flowgraphs:
                                  source--->block A(just one block)--->sink
And I want to run the flowgraphs for 30 seconds,and then run the other flowgraphs:
                                   source--->block B(just one block)--->sink
And I have read the API,and then I write something like this:
def main():
tb=my_top_block()
tb.start()
time.sleep(30)

#stop flowgraph
tb.lock()
tb.disconnect((tb.uhd_usrp_source_0,0),(tb.rx_0,0))

#start flowgraph
tb.connect((tb.uhd_usrp_source_0,0),(tb.rx_1,0))
tb.connect((tb.rx_1,0),tb.snk)
                # blockA:(tb.rx_0,0) blockB:(tb.rx_1,0)
                tb.unlock()

tb.wait()
But it go error:    RuntimeError: delay(4): insufficient connected input ports (1 needed, 0 connected)
Can someone help me?Thank you.
Best regards,
xd

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio <at> gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Hoang Ngo Khac | 21 Jul 08:45 2014
Picon

libboost error

Dear all,

I'm installing GNU Radio 3.7.3 on Ubuntu 14.04. When I run "make", I got this error:

[ 86%] Built target gnuradio-uhd
Linking CXX executable tags_demo
/usr/bin/ld: warning: libboost_date_time.so.1.46.1, needed by /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_filesystem.so.1.46.1, needed by /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_regex.so.1.46.1, needed by /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_system.so.1.46.1, needed by /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_thread.so.1.46.1, needed by /usr/local/lib/libuhd.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libuhd.so: undefined reference to `boost::thread::start_thread()'
/usr/local/lib/libuhd.so: undefined reference to `boost::match_results<char const*, std::allocator<boost::sub_match<char const*> > >::maybe_assign(boost::match_results<char const*, std::allocator<boost::sub_match<char const*> > > const&)'
/usr/local/lib/libuhd.so: undefined reference to `boost::re_detail::verify_options(unsigned int, boost::regex_constants::_match_flags)'
/usr/local/lib/libuhd.so: undefined reference to `boost::re_detail::get_mem_block()'
/usr/local/lib/libuhd.so: undefined reference to `boost::filesystem3::detail::directory_iterator_increment(boost::filesystem3::directory_iterator&, boost::system::error_code*)'
/usr/local/lib/libuhd.so: undefined reference to `boost::filesystem3::path::filename() const'
/usr/local/lib/libuhd.so: undefined reference to `boost::filesystem3::detail::directory_iterator_construct(boost::filesystem3::directory_iterator&, boost::filesystem3::path const&, boost::system::error_code*)'
/usr/local/lib/libuhd.so: undefined reference to `boost::filesystem3::path::operator/=(boost::filesystem3::path const&)'
/usr/local/lib/libuhd.so: undefined reference to `boost::re_detail::perl_matcher<char const*, std::allocator<boost::sub_match<char const*> >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)'
/usr/local/lib/libuhd.so: undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
/usr/local/lib/libuhd.so: undefined reference to `boost::this_thread::sleep(boost::posix_time::ptime const&)'
/usr/local/lib/libuhd.so: undefined reference to `boost::re_detail::cpp_regex_traits_implementation<char>::transform_primary(char const*, char const*) const'
/usr/local/lib/libuhd.so: undefined reference to `boost::filesystem3::detail::system_complete(boost::filesystem3::path const&, boost::system::error_code*)'
/usr/local/lib/libuhd.so: undefined reference to `boost::thread::join()'
/usr/local/lib/libuhd.so: undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
/usr/local/lib/libuhd.so: undefined reference to `boost::re_detail::get_default_error_string(boost::regex_constants::error_type)'
/usr/local/lib/libuhd.so: undefined reference to `boost::filesystem3::detail::dir_itr_close(void*&, void*&)'
/usr/local/lib/libuhd.so: undefined reference to `boost::re_detail::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const'
/usr/local/lib/libuhd.so: undefined reference to `boost::re_detail::put_mem_block(void*)'
/usr/local/lib/libuhd.so: undefined reference to `boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*, unsigned int)'
/usr/local/lib/libuhd.so: undefined reference to `boost::re_detail::raise_runtime_error(std::runtime_error const&)'
/usr/local/lib/libuhd.so: undefined reference to `boost::filesystem3::path::parent_path() const'
collect2: error: ld returned 1 exit status
make[2]: *** [gr-uhd/examples/c++/tags_demo] Error 1
make[1]: *** [gr-uhd/examples/c++/CMakeFiles/tags_demo.dir/all] Error 2
make: *** [all] Error 2


The version of libboost I installed is 1.54. However, it seems like the GNU Radio installer tried to use libboost1.46. I did run:
cmake -DCMAKE_INSTALL_PREFIX=/opt/gnuradio-3.7.3  -DENABLE_BAD_BOOST=True ../
but that error still happened.

Could someone show me how to fix this?

Thanks,
Hoang
--
Hoang Ngo-Khac
Vietnam National University, Hanoi (VNU-H)
Univ. of Engineering and Technology (UET)
Faculty of Electronics and Telecommunications (FET)
Alternative email:  hoangnk_55 <at> vnu.edu.vn
Mobilephone:  +84.163.682.7874
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio <at> gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Tiankun Hu | 20 Jul 14:54 2014

how does Packet Header Generator module handle tags

Hi Experts,
I was reading tx_ofdm.py. I found this module use  'set_tag_propagation_policy(TPP_DONT)' to handle tags by itself, but I cann't find the code that used to handle tag in this module.
I knew this module will call 'packet_header_ofdm.header_formatter()' and 'packet_header_default.header_formatter()', but I also cann't find the handle tag code in these functions.
Anyone can help me figure out where does this module process tags?

Thanks
Tiankun
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio <at> gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
jsam45 | 20 Jul 07:58 2014
Picon

Implementing callbacks in custom blocks

Using gr_modtool, I am trying to make a simple Gain block (called var_gain)
which multiplies the input with a constant. I have a private variable called
d_gain in the var_gain_impl class and a public function set_gain(float gain)
which sets the value of d_gain to the argument. I modified the xml file by
adding the line 
  <callback>set_gain($gain)</callback>
after the <make> line.

During execution, gain value does not change even after changing it through
a WX Slider. If I run it from terminal, I am getting the following error -
Traceback (most recent call last):
  File
"/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/forms/forms.py", line
180, in _handle
    def _handle(self, event): self[INT_KEY] = self._slider.GetValue()
  File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/pubsub.py", line
52, in __setitem__
    sub(val)
  File
"/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/forms/forms.py", line
138, in _translate_internal_to_external
    if self._callback: self._callback(self[EXT_KEY])
  File "top_block.py", line 102, in set_gg
    self.fsk_var_gain_0.set_gain(self.gg)
AttributeError: 'var_gain_sptr' object has no attribute 'set_gain'

I tried looking at some in-built blocks to see how callback is implemented.
Then I saw that the in-built blocks have pure virtual functions in the
include/module_name/var_gain.h header file. I tried implementing that but
the result is still the same. What am I missing here?

--
View this message in context: http://gnuradio.4.n7.nabble.com/Implementing-callbacks-in-custom-blocks-tp49462.html
Sent from the GnuRadio mailing list archive at Nabble.com.
Doug Hutton | 18 Jul 15:37 2014
Picon

Error in OP25 Decoder block

I have built Ubuntu 14.04 and installed Pybombs, GNURadio 3.7.2, op25 and gr-baz.  Tom R. helped me through an error with unresolved baz imports.  Now, I brought in the blocks to decode op25 and the OP25 Decoder block fails at run-time with -

Generating: "/home/doug/Documents/Op25 project files/top_block.py"

Executing: "/home/doug/Documents/Op25 project files/top_block.py"

linux; GNU C++ version 4.8.2; Boost_105400; UHD_003.007.001-84-gd99ce4ef

Traceback (most recent call last):
  File "/home/doug/Documents/Op25 project files/top_block.py", line 8, in <module>
    from baz import op25
  File "/home/doug/usr/local/lib/python2.7/dist-packages/baz/op25.py", line 25, in <module>
    from gnuradio import gr, gru, op25 as _op25
ImportError: cannot import name op25

>>> Done

This is as vanilla a setup as I can make it.  What am I missing?

Doug H.
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio <at> gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Gmane