[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] howto select subdev with USRP1
From: |
Wolfgang Buesser |
Subject: |
Re: [Discuss-gnuradio] howto select subdev with USRP1 |
Date: |
Sat, 25 May 2013 17:55:21 +0200 |
On Sa, 2013-05-25 at 10:56 -0400, Marcus D. Leech wrote:
> On 05/25/2013 10:45 AM, Wolfgang Buesser wrote:
> > On Sa, 2013-05-25 at 10:15 -0400, Marcus D. Leech wrote:
> >> On 05/25/2013 03:28 AM, Wolfgang Buesser wrote:
> >>> Hi
> >>>
> >>> I am having problems selecting the subdev with USRP1:
> >>>
> >>> My USRP1 is populated with 2 LFRX and 2 LFTX.
> >>>
> >>> I am trying the following code:
> >>>
> >>> ------------------------------------------
> >>>
> >>> #!/usr/bin/python
> >>>
> >>> from gnuradio import gr
> >>> from gnuradio import uhd
> >>> from gnuradio.eng_option import eng_option
> >>>
> >>>
> >>> class build_block(gr.top_block):
> >>> def __init__(self):
> >>> gr.top_block.__init__(self)
> >>>
> >>> self.u_tx =
> >>> uhd.usrp_sink("serial=47432785",uhd.stream_args('fc32'))
> >>>
> >>> self.u_tx.set_samp_rate(8.0e6)
> >>> self.tx_src0 =
> >>> gr.sig_source_c(self.u_tx.get_samp_rate(),gr.GR_CONST_WAVE,0, 1.0, 0)
> >>> self.u_tx.set_center_freq(10e6)
> >>> # self.u_tx.set_subdev_spec("A:AB",0)
> >>>
> >>>
> >>> self.connect (self.tx_src0, self.u_tx)
> >>>
> >>>
> >>> def main ():
> >>> tb = build_block ()
> >>> tb.start ()
> >>> raw_input ('Press Enter to quit: ')
> >>>
> >>> if __name__ == '__main__':
> >>> main ()
> >>>
> >>> ----------------------------------------
> >>> This way I get I- and Q- Signals out of TXB.
> >>> With the subdev_spec uncommented I get nothing - neither TXA, not TXB.
> >>> With self.u_tx.set_subdev_spec("B:AB",0) I again only get TXB.
> >>>
> >>> What do I Have to configure to get signals only from TXA?
> >>>
> >>> Thanks
> >>>
> >>> Wolfgang
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Discuss-gnuradio mailing list
> >>> address@hidden
> >>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >>>
> >> What does uhd_usrp_probe --args "type=usrp1" return?
> >>
> >>
> >>
> > This is what I get from uhd_usrp_probe --args "type=usrp1"
> >
> > linux; GNU C++ version 4.7.2 20130108 [gcc-4_7-branch revision 195012];
> > Boost_104900; UHD_003.005.002-61-g08624153
> >
> > -- Opening a USRP1 device...
> > -- Using FPGA clock rate of 64.000000MHz...
> > _____________________________________________________
> > /
> > | Device: USRP1 Device
> > | _____________________________________________________
> > | /
> > | | Mboard: USRP1
> > | | serial: 47432785
> > | |
> > | | Time sources: none
> > | | Clock sources: internal
> > | | Sensors:
> > | | _____________________________________________________
> > | | /
> > | | | RX DSP: 0
> > | | | Freq range: -32.000 to 32.000 Mhz
> > | | _____________________________________________________
> > | | /
> > | | | RX DSP: 1
> > | | | Freq range: -32.000 to 32.000 Mhz
> > | | _____________________________________________________
> > | | /
> > | | | RX Dboard: A
> > | | | ID: LF RX (0x000f)
> > | | | _____________________________________________________
> > | | | /
> > | | | | RX Frontend: AB
> > | | | | Name: LFRX (AB)
> > | | | | Antennas:
> > | | | | Sensors:
> > | | | | Freq range: -32.000 to 32.000 Mhz
> > | | | | Gain Elements: None
> > | | | | Connection Type: IQ
> > | | | | Uses LO offset: No
> > | | | _____________________________________________________
> > | | | /
> > | | | | RX Frontend: BA
> > | | | | Name: LFRX (BA)
> > | | | | Antennas:
> > | | | | Sensors:
> > | | | | Freq range: -32.000 to 32.000 Mhz
> > | | | | Gain Elements: None
> > | | | | Connection Type: QI
> > | | | | Uses LO offset: No
> > | | | _____________________________________________________
> > | | | /
> > | | | | RX Frontend: A
> > | | | | Name: LFRX (A)
> > | | | | Antennas:
> > | | | | Sensors:
> > | | | | Freq range: -32.000 to 32.000 Mhz
> > | | | | Gain Elements: None
> > | | | | Connection Type: I
> > | | | | Uses LO offset: No
> > | | | _____________________________________________________
> > | | | /
> > | | | | RX Frontend: B
> > | | | | Name: LFRX (B)
> > | | | | Antennas:
> > | | | | Sensors:
> > | | | | Freq range: -32.000 to 32.000 Mhz
> > | | | | Gain Elements: None
> > | | | | Connection Type: Q
> > | | | | Uses LO offset: No
> > | | | _____________________________________________________
> > | | | /
> > | | | | RX Codec: A
> > | | | | Name: ad9522
> > | | | | Gain range pga: 0.0 to 20.0 step 1.0 dB
> > | | _____________________________________________________
> > | | /
> > | | | RX Dboard: B
> > | | | ID: LF RX (0x000f)
> > | | | _____________________________________________________
> > | | | /
> > | | | | RX Frontend: AB
> > | | | | Name: LFRX (AB)
> > | | | | Antennas:
> > | | | | Sensors:
> > | | | | Freq range: -32.000 to 32.000 Mhz
> > | | | | Gain Elements: None
> > | | | | Connection Type: IQ
> > | | | | Uses LO offset: No
> > | | | _____________________________________________________
> > | | | /
> > | | | | RX Frontend: BA
> > | | | | Name: LFRX (BA)
> > | | | | Antennas:
> > | | | | Sensors:
> > | | | | Freq range: -32.000 to 32.000 Mhz
> > | | | | Gain Elements: None
> > | | | | Connection Type: QI
> > | | | | Uses LO offset: No
> > | | | _____________________________________________________
> > | | | /
> > | | | | RX Frontend: A
> > | | | | Name: LFRX (A)
> > | | | | Antennas:
> > | | | | Sensors:
> > | | | | Freq range: -32.000 to 32.000 Mhz
> > | | | | Gain Elements: None
> > | | | | Connection Type: I
> > | | | | Uses LO offset: No
> > | | | _____________________________________________________
> > | | | /
> > | | | | RX Frontend: B
> > | | | | Name: LFRX (B)
> > | | | | Antennas:
> > | | | | Sensors:
> > | | | | Freq range: -32.000 to 32.000 Mhz
> > | | | | Gain Elements: None
> > | | | | Connection Type: Q
> > | | | | Uses LO offset: No
> > | | | _____________________________________________________
> > | | | /
> > | | | | RX Codec: B
> > | | | | Name: ad9522
> > | | | | Gain range pga: 0.0 to 20.0 step 1.0 dB
> > | | _____________________________________________________
> > | | /
> > | | | TX DSP: 0
> > | | | Freq range: -44.000 to 44.000 Mhz
> > | | _____________________________________________________
> > | | /
> > | | | TX DSP: 1
> > | | | Freq range: -44.000 to 44.000 Mhz
> > | | _____________________________________________________
> > | | /
> > | | | TX Dboard: A
> > | | | ID: LF TX (0x000e)
> > | | | _____________________________________________________
> > | | | /
> > | | | | TX Frontend: AB
> > | | | | Name: LFTX (AB)
> > | | | | Antennas:
> > | | | | Sensors:
> > | | | | Freq range: -32.000 to 32.000 Mhz
> > | | | | Gain Elements: None
> > | | | | Connection Type: IQ
> > | | | | Uses LO offset: No
> > | | | _____________________________________________________
> > | | | /
> > | | | | TX Frontend: BA
> > | | | | Name: LFTX (BA)
> > | | | | Antennas:
> > | | | | Sensors:
> > | | | | Freq range: -32.000 to 32.000 Mhz
> > | | | | Gain Elements: None
> > | | | | Connection Type: QI
> > | | | | Uses LO offset: No
> > | | | _____________________________________________________
> > | | | /
> > | | | | TX Frontend: A
> > | | | | Name: LFTX (A)
> > | | | | Antennas:
> > | | | | Sensors:
> > | | | | Freq range: -32.000 to 32.000 Mhz
> > | | | | Gain Elements: None
> > | | | | Connection Type: I
> > | | | | Uses LO offset: No
> > | | | _____________________________________________________
> > | | | /
> > | | | | TX Frontend: B
> > | | | | Name: LFTX (B)
> > | | | | Antennas:
> > | | | | Sensors:
> > | | | | Freq range: -32.000 to 32.000 Mhz
> > | | | | Gain Elements: None
> > | | | | Connection Type: Q
> > | | | | Uses LO offset: No
> > | | | _____________________________________________________
> > | | | /
> > | | | | TX Codec: A
> > | | | | Name: ad9522
> > | | | | Gain range pga: -20.0 to 0.0 step 0.1 dB
> > | | _____________________________________________________
> > | | /
> > | | | TX Dboard: B
> > | | | ID: LF TX (0x000e)
> > | | | _____________________________________________________
> > | | | /
> > | | | | TX Frontend: AB
> > | | | | Name: LFTX (AB)
> > | | | | Antennas:
> > | | | | Sensors:
> > | | | | Freq range: -32.000 to 32.000 Mhz
> > | | | | Gain Elements: None
> > | | | | Connection Type: IQ
> > | | | | Uses LO offset: No
> > | | | _____________________________________________________
> > | | | /
> > | | | | TX Frontend: BA
> > | | | | Name: LFTX (BA)
> > | | | | Antennas:
> > | | | | Sensors:
> > | | | | Freq range: -32.000 to 32.000 Mhz
> > | | | | Gain Elements: None
> > | | | | Connection Type: QI
> > | | | | Uses LO offset: No
> > | | | _____________________________________________________
> > | | | /
> > | | | | TX Frontend: A
> > | | | | Name: LFTX (A)
> > | | | | Antennas:
> > | | | | Sensors:
> > | | | | Freq range: -32.000 to 32.000 Mhz
> > | | | | Gain Elements: None
> > | | | | Connection Type: I
> > | | | | Uses LO offset: No
> > | | | _____________________________________________________
> > | | | /
> > | | | | TX Frontend: B
> > | | | | Name: LFTX (B)
> > | | | | Antennas:
> > | | | | Sensors:
> > | | | | Freq range: -32.000 to 32.000 Mhz
> > | | | | Gain Elements: None
> > | | | | Connection Type: Q
> > | | | | Uses LO offset: No
> > | | | _____________________________________________________
> > | | | /
> > | | | | TX Codec: B
> > | | | | Name: ad9522
> > | | | | Gain range pga: -20.0 to 0.0 step 0.1 dB
> >
> >
> >
> If you swap the TXA/TXB cards, what happens?
>
>
>
It looks I have just found the 'solution':
If I put the set_subdev_spec above the set_center-freq I can select
between TXA(I&Q) and TXB(I&Q).
I guess I really don't understand how it all works.
Thanks
Wolfgang