Josh, Thanks. That makes sense.
--Bob >-----Original Message----- >From: Josh Blum [mailto:j...@joshknows.com] >Sent: Thursday, August 26, 2010 09:43 PM >To: b...@sigmatix.com >Cc: discuss-gnuradio@gnu.org >Subject: Re: [Discuss-gnuradio] UHD/antennas/device names/etc. > >Bob, > >---------------------------------------------------------- >So to make a device (lets say its at ip 192.168.10.2): >---------------------------------------------------------- > >uhd::device_addr dev_addr; >dev_addr["addr"] = "192.168.10.2"; >uhd::usrp::simple_usrp::sptr my_device = >uhd::usrp::simple_usrp::make(dev_addr); > >-- OR with a markup string -- > >uhd::usrp::simple_usrp::sptr my_device = >uhd::usrp::simple_usrp::make("addr=192.168.10.2"); > >---------------------------------------------------------- >To set the RX antenna (WBX or RFX): >---------------------------------------------------------- > >my_device->set_rx_antenna("RX2"); > >-- OR -- > >my_device->set_rx_antenna("TX/RX"); > >The error you got when setting the antenna indicates that you did >my_device->set_rx_antenna(""); >However, a blank string is not a valid antenna name for those boards. >You may also query for a list of possible antenna names with: >std::vector<std::string> ants = my_device->get_rx_antenna_names(); > >-Josh > >On 08/26/2010 05:21 PM, b...@sigmatix.com wrote: >> Josh, >> >> No GRC. All C++. My C++ code is calling simple_usrp::make(dev). >> >> --Bob >> >>> -----Original Message----- >>> From: Josh Blum [mailto:j...@joshknows.com] >>> Sent: Thursday, August 26, 2010 07:53 PM >>> To: b...@sigmatix.com >>> Cc: discuss-gnuradio@gnu.org >>> Subject: Re: [Discuss-gnuradio] UHD/antennas/device names/etc. >>> >>> So im missing some context here. If you messing around in GRC, there is >>> an antenna parameter in the uhd source block. That antenna parameter is >>> a string that can be TX/RX or RX2. When set, it will generate a call in >>> the python code that looks like uhd_source_object.set_antenna("RX2") >>> >>> That addr=192.168.xxxx stuff is just for identifying a device on your >>> system. Its goes into the constructor for the block into the args >>> parameter. There is no involvement of antennas whatsoever there. >>> >>> -josh >>> >>> On 08/26/2010 04:29 PM, b...@sigmatix.com wrote: >>>> >>>>> -----Original Message----- >>>>> From: Josh Blum [mailto:j...@joshknows.com] >>>>> Sent: Thursday, August 26, 2010 07:03 PM >>>>> To: discuss-gnuradio@gnu.org >>>>> Subject: Re: [Discuss-gnuradio] UHD/antennas/device names/etc. >>>>> >>>>> >>>>> >>>>> On 08/26/2010 03:27 PM, b...@sigmatix.com wrote: >>>>>> Welcome to the next level... >>>>>> >>>>>> I've gotten further. It's now failing with: >>>>>> >>>>>> >>>>>> Oterminate called after throwing an instance of 'uhd::assert_error' >>>>>> what(): assertion failed: >>>>>> is not a valid rfx rx antenna name. >>>>>> possible values are: [TX/RX, RX2]. >>>>>> >>>>> >>>>> You need to pick from one of the antenna choices. If you leave a blank >>>>> string it shouldnt try to set any antenna, so im not sure why you see >>>>> the error at all because it looks like you used a blank/empty string. >>>>> >>>>> http://www.ettus.com/uhd_docs/manual/html/dboards.html#daughterboard-properties >>>>> >>>>>> I'm running with an RFX2400 (WBX will be my next victim). >>>>>> >>>>> >>>>> antennas should be the same as RFX series >>>>> >>>>>> I've already discovered that (apparently) you can't do something like >>>>>> make("eth2") (like you could with the old driver), you need to give the >>>>>> IP address (however I've also discovered that "" also appears to work >>>>>> OK). Do I also need to include some sort of antenna info (i.e., whether >>>>>> I'm running half or full duplex)? >>>>>> >>>>> >>>>> Its a device address, when left blank it will use whatever device it can >>>>> find. >>>>> http://www.ettus.com/uhd_docs/doxygen/html/classuhd_1_1device__addr__t.html >>>>> >>>>> The dboard properties link above should clue you into the full or half >>>>> duplex stuff. >>>>> >>>>>> I've looked through the various headers and doxygen but haven't been >>>>>> able to figure out what I need to do to keep going. >>>>>> >>>>> >>>>> What are you trying to do? >>>>> >>>>> -Josh >>>> >>>> I'm (just) trying to open a connection to a U2 + RFX2400 (full duplex). >>>> >>>> What I'm not getting (perhaps I'm just being dense) is how to express the >>>> antenna property in the string (i.e., apparently is can be "TX/RX" or >>>> "RX2", but does it take a prefix like the address does (i.e., "addr=")? If >>>> it does, what is it?). >>>> >>>> Again, sorry if I've overlooked something. I can tell I'm in the right >>>> ballpark, but I'm just not seeing it. >>>> >>>> Thanks again, >>>> >>>> --Bob >>>> >>>> >>>> >>> >> >> > _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio