Post Go back to editing

Matlab to phaser kit communication error

Thread Summary

The user encountered issues running MATLAB code to communicate with a phaser board, which were resolved by addressing an Ethernet address conflict and ensuring the correct 5V/USB-C power adapter was used. The phaser board now responds to pings and MATLAB can communicate with the beamforming chips directly. The user bypassed an error by assigning specific addresses and successfully generated a plot, though it was not accurate.
AI Generated Content
Category: Hardware
I am trying to run the following codes in matlab
After bf(), I get 
Trying my best to resolve it but cannot seem to figure out. 
Parents
  •  Hi  ,

    Can you provide a quick sketch or description of your networking setup - do you have a direct Ethernet connection from your host machine to the phaser, or switch / router between, or USB-Ethernet adapter?

    Can you try:
    ping phaser.local

    and see if it responds? After that, let's see if any of the IIO devices are up and running with:

    iio_info -u ip:phaser.local

    (and paste the results here.)

    We have seen issues in the past where one of the ADAR1000s is running but not the other. I believe this was ultimately traced to a power issue - what 5V / USB-C power adapter are you using, and is it plugged into the USB-C connector on the phaser board (vs. the connector on the Raspberry Pi)?

    Hopefully these steps will provide some clues.

    -Mark

  • It is an ethernet to ethernet connection.

    The 5v/USB-C adapter in use is from cana kit  plugged into phaser board

  • update: I changed the 5v supply from phaser kit to pi and iio_info command received a response. 

  • Okay great!

    Any change in the MATLAB behavior?

    If not - can you paste the output here? Or at least, can you confirm that you see an ADAR1000_1 and _0? The names may be different in the iio_info output, IIRC it may be BEAM0, 1

    -Mark

  • I have done a lot of trouble shooting, I could see adar1000 when I debugged it few days ago from my windows command prompt. But with recent debugging I get this 

    Need to mention that I re-installed communications and transceiver toolbox packages on matlab, suspecting that they might have been corrupted.

  • to add on , bf() returns a 0 and adi.phaser is being recognized by matlab. I was able to establish matlab to pi 100% communication (verified through pings). I tried downloading the libiio files again from github but that did not work.Not sure, if this is of any help, the green light next to the sd card on pi does not blink. There is a red solid red that is ON.

  • So I'm not a regular MATLAB user - I did a good chunk of the Python code for the phaser though. In this screengrab - this looks like a MATLAB prompt, correct? I don't know if iio_info can be invoked that way. I do see on your 12/26, 12:13 reply that you have run from the command line (Windows), and later you indicate that iio_info does give a response. Can you paste the output here? The critical thing to sort out - is that both ADAR1000s show up properly. We have seen cases where only one is there, and the theory is that just at the end of initializing the first ADAR1000, it draws a large transient current causing a supply voltage dip that causes the second ADAR1000 to fail, hence the question about the power supply, which I believe you said had a positive effect.

Reply
  • So I'm not a regular MATLAB user - I did a good chunk of the Python code for the phaser though. In this screengrab - this looks like a MATLAB prompt, correct? I don't know if iio_info can be invoked that way. I do see on your 12/26, 12:13 reply that you have run from the command line (Windows), and later you indicate that iio_info does give a response. Can you paste the output here? The critical thing to sort out - is that both ADAR1000s show up properly. We have seen cases where only one is there, and the theory is that just at the end of initializing the first ADAR1000, it draws a large transient current causing a supply voltage dip that causes the second ADAR1000 to fail, hence the question about the power supply, which I believe you said had a positive effect.

Children
No Data