discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] RX channel REALLYBIGNUMBER out of range for confi


From: Marcus D. Leech
Subject: Re: [Discuss-gnuradio] RX channel REALLYBIGNUMBER out of range for configured RX frontends
Date: Mon, 27 Jun 2016 20:08:21 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

On 06/27/2016 06:47 PM, Robert Kraml wrote:

I have a simple c++ test program on a Ettus x310 that used to work now doesn't. I'm trying to simply set two center freq of two channels of a single USRP. The above Out of range error occurs when I try to set anything on the 2nd channel.

I get a crash with a Channel out of range error:

    $ ./t2j.out
    linux; GNU C++ version 4.8.4; Boost_105400; UHD_003.009.001-0-gf7a15853

    -- X300 initialization sequence...
    -- Determining maximum frame size... 1472 bytes.
    -- Setup basic communication...
    -- Loading values from EEPROM...
    -- Setup RF frontend clocking...
    -- Radio 1x clock:200
    -- Initialize Radio0 control...
    -- Performing register loopback test... pass
    -- Initialize Radio1 control...
    -- Performing register loopback test... pass
    terminate called after throwing an instance of 'uhd::index_error'
      what():  LookupError: IndexError: multi_usrp: RX channel 140445275195320 out of range for configured RX frontends
    Aborted (core dumped)

Here is my test program:

int main( void )
{
// sources
gr::uhd::usrp_source::sptr  usrp1;

const std::string           usrp_addr = std::string( "addr=192.168.10.30" );
uhd::stream_args_t          usrp_args = uhd::stream_args_t( "fc32" );
usrp_args.channels = std::vector<size_t> ( 0, 1 );
usrp1 = gr::uhd::usrp_source::make( usrp_addr, usrp_args );
usrp1->set_subdev_spec( std::string( "A:AB B:AB" ), 0 );
usrp1->set_clock_source( "external" );
usrp1->set_samp_rate( 5.0e6 );

usrp1->set_center_freq( 70e6, 0 );    // this is OK
usrp1->set_center_freq( 70e6, 1 );   // crashes here With RX Chan out of Range Error!

printf( "test Done!\n" );

return 0;
}
Am I missing some crucial step that might have been optional at some point but is not now?

The only thing I’ve found so far in searching is make sure PYTHONPATH is set correctly (and for the heck of it I made sure it pointed to the site_packages) but again that seems to be related to GRC and not C++.

I am using Ubuntu 14.04.4 and UHD 3.9.1 with gnuradio 3.7.8.1 (Ive also tried 3.7.9.2) with the same result.

The hardware is an Ettus x310 with two BasicRx daughterboards.

The form of the "make" you're using is deprecated, but it requires that you pass in the number of channels, otherwise it defaults to '1'.

http://gnuradio.org/doc/doxygen/group__uhd__blk.html#gaed1cf28990e424599f16f2c8a84ca57b



      


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

[Prev in Thread] Current Thread [Next in Thread]