discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] How to use USRP device MAC address in python code


From: Nick Foster
Subject: Re: [Discuss-gnuradio] How to use USRP device MAC address in python code
Date: Thu, 9 Feb 2012 16:50:25 -0800

On Thu, Feb 9, 2012 at 4:43 PM, Dhrubojyoti Roy <address@hidden> wrote:
I am working with GNURadio 3.5, UHD_003.004.000-287958b and USRP N210 running WBX daughterboards. I need to access and use the device's MAC address from my python code. On browsing through the documentation, I found the following class usrp2_base in Gnuradio 3.4.2 has a method mac_addr() to get the USRP2 hardware MAC address. Is there an equivalent method in UHD? If so, how can it be invoked from python code?

Use the "arp" utility, and parse the output.

address@hidden:~$ arp 192.168.10.2
Address                  HWtype  HWaddress           Flags Mask            Iface
192.168.10.1         ether   20:cf:30:ae:00:c1   C                     wlan0

--n
 


--
Dhrubojyoti Roy
1655, North 4th Street, Apt-D
Columbus, OH-43201
Contact no.: +1-740-417-5890


_______________________________________________
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]