How to read data through USB?

Hello PYNQ community!

I want to connect Ultra96v2 with another micro-controller through USB and receive the data from micro-controller and print out on jupyter notebook.

To do that I have following questions in step by step

1.Import library and download bitstream

from pynq import overay
from usb import *
ol = Overlay(xxxxxx.bit)
ol.download

  • can I use just a base overlay for my purpose?

2.Initialize AXI_USB

ADDRESS=0x…
USB=USBAXI(ADDRESS)
USB=setupCrtlReg()

  • How do I initialize AXI usb?

3.Read and print out the data

print(USB.readLine())

  • I just wrote down conceptual code and I dont know exact syntax.
    (I am quite new to fpga and python and so on…)
  • Is there any example of reading data from usb or does anyone knows how to do this?

Thank you for reading!!