Post Go back to editing

How can I control RF switches of FMCOMMS5 in Python?

Greetings,

I want to Synchronize multiple AD9361 devices of FMCOMMS5 (chip, chip_b).
Python supports digital loopback and RF loopack. In addition, the FMCOMMS5 board includes two ADG918 wide band switches
that are used to connect either Tx1B from either AD9361 device to Rx1C on either AD9361 device.

wiki.analog.com/.../multi-chip-sync

How can I control RF switches (the GPIO pins from the FPGA (CAL_SW_1 and CAL_SW_2)) in Python?
How can I synchronize chip & chip_b in Python?

Please help. Thank you very much.

Parents Reply
  • I know ad9361_fmcomms5_phase_sync.c

    But, I prefer Python.

    I understood that:
    Device A (Tx1B) will route to Device A (Rx1C) and Device B (Rx1C)
    or
    Device B (Tx1B) will route to Device A (Rx1C) Device B (Rx1C)

    sdr._ctrl.debug_attrs['calibration_switch_control'].value = str(<switch value>)
    What is the <switch value> in both cases?

    FMComms5 has two AD9361, and I have to change SPI Register(0x004—Input Select)
    during multi-chip-sync to select TxB and enable RxC for both chips as follows:
    sdr._ctrl.reg_write(0x004, 0x70)
    Is this correct. Does this command work for both chip & chip_b at the same time?

    Thank you.

Children