[USRP-users] E310 Query

Marcus Müller marcus.mueller at ettus.com
Wed Mar 2 06:18:53 EST 2016


uhd_fft is indeed a GNU Radio program. But it's not necessary to run it to be and to use GNU Radio.

The error you're seeing is because you're not using X forwarding to get the possibility to get graphical display from the e310 on your PC.

Try something different:
Run the uhd_rx_cfile example on the e310, for example:

uhd_rx_cfile -f 2.472e9 --nsamples 1000000--rate 1e6 recording.dat

to receive one second of 1 MHz of spectrum right from the middle of WiFi channel 13.

That is GNU Radio doing the work!

You can copy over that file (recording. dat) to your PC and analyze it there (it's just 32 bit floats, I alternating with Q).

Now, you usually work with embedded devices like the e310 by designing your application on your host computer, and after design and test/simulation moving it over to the e310.
GNU Radio makes this especially easy: you can design, for example, a simple flow graph that connects a "USRP source" block to a "WBFM Receive" block, and connects that to a "UDP Sink". Configure the "USRP Sink" to tune to a local radio station (Bayern3 used to be at 99.2e6 Hz when I lived close to Oberpfaffenhofen) and for high gain. The sampling rate should be 44100*8. Configure the "WBFM Receive" for a quadrature rate =sampling rate, and the Audio Decimation to 8. Point the UDP sink to some port of your PC's IP address, and launch vlc on your PC, instruct it to listen to that port (might need a "hole" in your PC's firewall). Tadaaaa! First own GNU Radio application running on the e310.

For more information on how to use GNU Radio, please refer to the GNU Radio guided tutorials [1].

Best regards,
Marcus

[1] https://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorials

Am 2. März 2016 11:42:19 MEZ, schrieb BHUSHAN PAWAR <bhushan.rv.pawar at gmail.com>:
>Hi all,
>
>I updated the SD card with Release 4 dev image. But still I am not able
>to
>run the basic uhd_fft commands.
>
>ettus-e3xx-sg1 login: root
>root at ettus-e3xx-sg1:~# uhd_fft
>linux; GNU C++ version 4.9.2; Boost_105700; UHD_003.009.002-0-unknown
>
>usage: uhd_fft [-h] [-a ARGS] [--spec SPEC] [-A ANTENNA] [-s SAMP_RATE]
>               [-g GAIN] [--gain-type {db,normalized}] -f FREQ
>               [--lo-offset LO_OFFSET] [-c CHANNELS]
>             [--otw-format {sc16,sc12,sc8}] [--stream-args STREAM_ARGS]
>          [-m AMPL] [-v] [--show-async-msg] [--sync {default,pps,auto}]
>            [--fft-size FFT_SIZE] [--fft-average {off,low,medium,high}]
>               [--avg-alpha AVG_ALPHA] [--update-rate UPDATE_RATE]
>uhd_fft: error: argument -f/--freq is required
>root at ettus-e3xx-sg1:~# uhd_fft -f 50M
>linux; GNU C++ version 4.9.2; Boost_105700; UHD_003.009.002-0-unknown
>
>uhd_fft: cannot connect to X server
>
>As per my understanding, once I run these commands successfully, I
>should
>be able to work with GNU radio and make the required changes?
>
>
>*Thanks & Regards,*
>
>*Bhushan R.V. Pawar.*
>
>
>On Tue, Mar 1, 2016 at 3:56 PM, Philip Balister <philip at opensdr.com>
>wrote:
>
>> On 03/01/2016 09:39 AM, BHUSHAN PAWAR wrote:
>> > Dear all,
>> >
>> > Thanks for the reply.
>> >
>> > For the Release-4-sg1, I find two versions, -demo and -dev on the
>link
>> > http://files.ettus.com/e3xx_images/e3xx-release-4/ettus-e3xx-sg1/
>> >
>> > Which one should I download? As I want to use basic provided
>examples and
>> > then modify it according to my requirements.
>> >
>>
>> That would be the -dev image. The demo image has some extra things
>like
>> the X-server for use with usb flat panels and a couple of apps.
>>
>> This file shows you the additional packages installed on the -demo
>image.
>>
>>
>>
>https://github.com/balister/meta-sdr/blob/master/recipes-images/images/gnuradio-demo-image.bb
>>
>> Philip
>>
>> >
>> >
>> > *Thanks & Regards,*
>> >
>> > *Bhushan R.V. Pawar.*
>> >
>> >
>> > On Tue, Mar 1, 2016 at 1:58 PM, Philip Balister
><philip at opensdr.com>
>> wrote:
>> >
>> >> On 03/01/2016 04:47 AM, BHUSHAN PAWAR via USRP-users wrote:
>> >>> I tried the commands in terminal but got this error msg,
>> >>>
>> >>
>> >> E310 only supports Qt gui apps.
>> >>
>> >> You are running an older file system for the the E310. I believe
>that
>> >> updating to release-4 may have a qt gui based version of uhd_fft.
>> >>
>> >> Philip
>> >>
>> >>
>> >>> Kindly tell me the solution for it.
>> >>>
>> >>> pawa_bh at Ubuntu14:~$ ssh -X root at 192.168.200.1
>> >>> root at 192.168.200.1's password:
>> >>> root at ettus-e300:~# cat /etc/version-image
>> >>> Timestamp: 201505131744
>> >>> Release: Release-2
>> >>> Image: gnuradio-dev-image
>> >>> root at ettus-e300:~# cat /etc/build
>> >>> *cat: /etc/build: No such file or directory*
>> >>>
>> >>>
>> >>> root at ettus-e300:~# uhd_usrp_probe
>> >>> linux; GNU C++ version 4.9.1; Boost_105600;
>UHD_003.008.004-0-unknown
>> >>>
>> >>> -- Loading FPGA image:
>/usr/share/uhd/images/usrp_e310_fpga.bit... done
>> >>> -- Detecting internal GPSDO.... found
>> >>> -- Initializing core control...
>> >>> -- Performing register loopback test... pass
>> >>> -- Performing register loopback test... pass
>> >>> -- Performing register loopback test... pass
>> >>> -- Performing CODEC loopback test... pass
>> >>> -- Performing CODEC loopback test... pass
>> >>> -- Setting time source to internal
>> >>> -- Asking for clock rate 32 MHz
>> >>> -- Actually got clock rate 32 MHz
>> >>> -- Performing timer loopback test... pass
>> >>> -- Performing timer loopback test... pass
>> >>> -- Initializing time to the internal GPSDO
>> >>>   _____________________________________________________
>> >>>  /
>> >>> |       Device: E-Series Device
>> >>> |     _____________________________________________________
>> >>> |    /
>> >>> |   |       Mboard: E310
>> >>> |   |   product: 30674
>> >>> |   |   revision: 4
>> >>> |   |   serial: 30B05EF
>> >>> |   |   mac-addr: 00:80:2f:23:12:84
>> >>> |   |   FPGA Version: 6.0
>> >>> |   |
>> >>> |   |   Time sources: none, internal, external, gpsdo
>> >>> |   |   Clock sources: internal
>> >>> |   |   Sensors: temp, gps_locked, gps_time, ref_locked
>> >>> |   |     _____________________________________________________
>> >>> |   |    /
>> >>> |   |   |       RX DSP: 0
>> >>> |   |   |   Freq range: -16.000 to 16.000 MHz
>> >>> |   |     _____________________________________________________
>> >>> |   |    /
>> >>> |   |   |       RX DSP: 1
>> >>> |   |   |   Freq range: -16.000 to 16.000 MHz
>> >>> |   |     _____________________________________________________
>> >>> |   |    /
>> >>> |   |   |       RX Dboard: A
>> >>> |   |   |   ID: E310 MIMO XCVR (0x0110)
>> >>> |   |   |   Serial: 30AA742
>> >>> |   |   |    
>_____________________________________________________
>> >>> |   |   |    /
>> >>> |   |   |   |       RX Frontend: A
>> >>> |   |   |   |   Name: FE-RX2
>> >>> |   |   |   |   Antennas: TX/RX, RX2
>> >>> |   |   |   |   Sensors: lo_locked, rssi
>> >>> |   |   |   |   Freq range: 50.000 to 6000.000 MHz
>> >>> |   |   |   |   Gain range PGA: 0.0 to 76.0 step 1.0 dB
>> >>> |   |   |   |   Bandwidth range: 200000.0 to 56000000.0 step 0.0
>Hz
>> >>> |   |   |   |   Connection Type: IQ
>> >>> |   |   |   |   Uses LO offset: No
>> >>> |   |   |    
>_____________________________________________________
>> >>> |   |   |    /
>> >>> |   |   |   |       RX Frontend: B
>> >>> |   |   |   |   Name: FE-RX1
>> >>> |   |   |   |   Antennas: TX/RX, RX2
>> >>> |   |   |   |   Sensors: lo_locked, rssi
>> >>> |   |   |   |   Freq range: 50.000 to 6000.000 MHz
>> >>> |   |   |   |   Gain range PGA: 0.0 to 76.0 step 1.0 dB
>> >>> |   |   |   |   Bandwidth range: 200000.0 to 56000000.0 step 0.0
>Hz
>> >>> |   |   |   |   Connection Type: IQ
>> >>> |   |   |   |   Uses LO offset: No
>> >>> |   |   |    
>_____________________________________________________
>> >>> |   |   |    /
>> >>> |   |   |   |       RX Codec: A
>> >>> |   |   |   |   Name: E3x0 RX dual ADC
>> >>> |   |   |   |   Gain Elements: None
>> >>> |   |     _____________________________________________________
>> >>> |   |    /
>> >>> |   |   |       TX DSP: 0
>> >>> |   |   |   Freq range: -16.000 to 16.000 MHz
>> >>> |   |     _____________________________________________________
>> >>> |   |    /
>> >>> |   |   |       TX DSP: 1
>> >>> |   |   |   Freq range: -16.000 to 16.000 MHz
>> >>> |   |     _____________________________________________________
>> >>> |   |    /
>> >>> |   |   |       TX Dboard: A
>> >>> |   |   |   ID: E310 MIMO XCVR (0x0110)
>> >>> |   |   |   Serial: 30AA742
>> >>> |   |   |    
>_____________________________________________________
>> >>> |   |   |    /
>> >>> |   |   |   |       TX Frontend: A
>> >>> |   |   |   |   Name: FE-TX2
>> >>> |   |   |   |   Antennas: TX/RX
>> >>> |   |   |   |   Sensors: lo_locked
>> >>> |   |   |   |   Freq range: 50.000 to 6000.000 MHz
>> >>> |   |   |   |   Gain range PGA: 0.0 to 89.8 step 0.2 dB
>> >>> |   |   |   |   Bandwidth range: 200000.0 to 56000000.0 step 0.0
>Hz
>> >>> |   |   |   |   Connection Type: IQ
>> >>> |   |   |   |   Uses LO offset: No
>> >>> |   |   |    
>_____________________________________________________
>> >>> |   |   |    /
>> >>> |   |   |   |       TX Frontend: B
>> >>> |   |   |   |   Name: FE-TX1
>> >>> |   |   |   |   Antennas: TX/RX
>> >>> |   |   |   |   Sensors: lo_locked
>> >>> |   |   |   |   Freq range: 50.000 to 6000.000 MHz
>> >>> |   |   |   |   Gain range PGA: 0.0 to 89.8 step 0.2 dB
>> >>> |   |   |   |   Bandwidth range: 200000.0 to 56000000.0 step 0.0
>Hz
>> >>> |   |   |   |   Connection Type: IQ
>> >>> |   |   |   |   Uses LO offset: No
>> >>> |   |   |    
>_____________________________________________________
>> >>> |   |   |    /
>> >>> |   |   |   |       TX Codec: A
>> >>> |   |   |   |   Name: E3x0 TX dual DAC
>> >>> |   |   |   |   Gain Elements: None
>> >>>
>> >>> root at ettus-e300:~# uhd_fft
>> >>> linux; GNU C++ version 4.9.1; Boost_105600;
>UHD_003.008.004-0-unknown
>> >>>
>> >>>
>> >>>
>> >>> *Error importing GNU Radio's wxgui. Please make sure gr-wxgui is
>> >> installed.*
>> >>> *Thanks & Regards,*
>> >>>
>> >>> *Bhushan R.V. Pawar.*
>> >>>
>> >>>
>> >>>
>> >>> _______________________________________________
>> >>> USRP-users mailing list
>> >>> USRP-users at lists.ettus.com
>> >>>
>http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>> >>>
>> >>
>> >>
>> >
>>
>>

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20160302/dfef9ff7/attachment-0002.html>


More information about the USRP-users mailing list