AnsweredAssumed Answered

Trouble writing some AD9361 PHY registers using libiio

Question asked by brandonj on Aug 11, 2014
Latest reply on Aug 19, 2014 by larsc

I wrote a wrapper around the libiio library to simplify getting/setting some key ad9361 registers. I have an example application that gets/sets some values and for some reason I'm having trouble setting the RF bandwidth and LO frequencies. I'm using the same mechanisms to write the channel attributes. The errno code/reason doesn't seem to help. Any ideas?

 

-----------------------------------------

Get/set some registers

-----------------------------------------

Got RX sample rate = 30720000.000000

Set RX sample rate = 15360000.000000

Got RX sample rate = 15360000.000000

Set RX sample rate = 30720000.000000

Get RX gain control mode = slow_attack

Get RX gain control modes = manual fast_attack slow_attack hybrid

Get RX Quadrature tracking enable = 1

Set RX Quadrature tracking enable = 0

Get RX Quadrature tracking enable = 0

Set RX Quadrature tracking enable = 1

Get RX RF bandwidth = 18000000.000000

Unable to read channel attribute: rf_bandwidth, returned errno code: -22, string: Unknown error -22

Unable to set the RF bandwidth

Get RX RF bandwidth = 18000000.000000

Unable to read channel attribute: rf_bandwidth, returned errno code: -22, string: Unknown error -22

Unable to set the RF bandwidth

Get RX LO frequency = 2400000000.000000

Unable to read channel attribute: RX_LO_frequency, returned errno code: -22, string: Unknown error -22

Unable to set RX LO frequency

Get RX LO frequency = 2400000000.000000

Unable to read channel attribute: RX_LO_frequency, returned errno code: -22, string: Unknown error -22

Unable to set RX LO frequency

Get TX LO frequency = 2450000000.000000

Unable to read channel attribute: TX_LO_frequency, returned errno code: -22, string: Unknown error -22

Unable to set TX LO frequency

Get TX LO frequency = 2450000000.000000

Unable to read channel attribute: TX_LO_frequency, returned errno code: -22, string: Unknown error -22

Unable to set TX LO frequency

Outcomes