discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: Using GPIO Pins on x300


From: Marcus Müller
Subject: Re: Using GPIO Pins on x300
Date: Mon, 26 Jul 2021 15:32:44 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

Hi Conner,

You'd use the `usrp_source` or `usrp_sink`'s `set_gpio_attr` method; you could 
do that by
adding a "Python Snippet" block to your GRC flow graph (if you're using GRC).

Best regards,

Marcus

DISCLAIMER: Any attached Code is provided As Is. It has not been tested or 
validated as a product, for use in a deployed application or system, or for use 
in hazardous environments. You assume all risks for use of the Code. Use of the 
Code is subject to terms of the licenses to the UHD or RFNoC code with which 
the Code is used. Standard licenses to UHD and RFNoC can be found at 
https://www.ettus.com/sdr-software/licenses/.

NI will only perform services based on its understanding and condition that the 
goods or services (i) are not for the use in the production or development of 
any item produced, purchased, or ordered by any entity with a footnote 1 
designation in the license requirement column of Supplement No. 4 to Part 744, 
U.S. Export Administration Regulations and (ii) such a company is not a party 
to the transaction.  If our understanding is incorrect, please notify us 
immediately because a specific authorization may be required from the U.S. 
Commerce Department before the transaction may proceed further.

On 26.07.21 15:27, Conner Awald wrote:
> Hey everyone,
>
> I'm using an Ettus Research x300 with GNURadio and I'm going to need to use 
> the front
> panel GPIO pins to automatically switch an external amplifier into the RF 
> chain when
> transmitting. I found the following code on Ettus Research's github that 
> demonstrates
> how to use the GPIO pins in various ATR
> modes: https://github.com/EttusResearch/uhd/blob/master/host/examples/gpio.cpp
> <https://github.com/EttusResearch/uhd/blob/master/host/examples/gpio.cpp>
>
> I was just a little confused on how I would implement this code in a gnuradio 
> flowgraph
> to configure the gpio pins. I looked through the mailing list and found a 
> couple of
> relevant threads but it seems that the issue was resolved off-thread so the 
> solution
> isn't posted. I don't have much experience with OOT modules and from the 
> tutorial on the
> wiki, I wasn't sure how I would use the USRP UHD object that's created in the 
> USRP
> source/sink block's code in a separate block's code. If someone could just 
> point me in
> the right direction or provide some other advice that would be greatly 
> appreciated.
>
> Thanks,
> Conner



reply via email to

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