I am using an Ubuntu Virtual Machine with py-adi to act as an interface for my FMCOMMs5 connected via an ethernet. I am able to ping both ways, and also able to set the parameters. However, the wiki guide at https://analogdevicesinc.github.io/pyadi-iio/buffers/index.html just talks about a single buffer for a 9361 transceiver. I cant seem to find any information as to how to assign the cyclic buffer ON and then assign the data for each channel ( i.e voltage 0-7).
Any help is greatly appreciated.
FMComms5 is rather unique and the driver arrangement doesn't really allow you to use the AD9361 class directly. However, there is a branch here which does have some initial support for FMComms5: https://github.com/analogdevicesinc/pyadi-iio/tree/fmcomms5
It hasn't been fully tested but feel to give it a try.
Thanks a lot for your help, I can see some codes exclusively for FMComms5 in the branch you provided.
This may sound very trivial (apologies, have no prior experience)- but how do I make pyadi include the module FMComms5?
I saved the FMComms5.py in the adi folder, and install pyadi again, and I thought that would be sufficient - but it shows me the error that module adi has no attribute FMComms5 !
Is there something that I am doing wrong, or is something missing?
Appreciate your help.
You have to pull down the whole repository since there are other changes you need to enabled FMComms5.
You need to do something like this:
tcollins@winston$ git clone --branch fmcomms5 https://github.com/analogdevicesinc/pyadi-iio.git
tcollins@winston$ cd pyadi-iio
tcollins@winston$ sudo python3 setup.py install
Thanks a lot Travis,
I'm able to communicate with the device.
I went through your code and I just wanted to know on how to access the channels of the second chip(i.e ad9361-phy-b).
After going through the code I initially thought something like
would work, but that does not seem to be the case.
After creating the interface as -
only gives me 4 channels, and I would think these refer to the first four channels of the first chip.(voltage 0-3 in the IIO). How do you access voltage 4-7?
Appreciate your time and help.