I want to use stream video from my OpenMV H7 Plus to my computer over USB. I’m able to successfully run the usb_vcp.py sample code with my Macbook Air to stream video. However, the same code does not work on my Windows computer, which is the computer I need for my application.
I’ve looked at past posts on the forum and I am aware of the dsrdrt being ignored on windows. However, even setting it manually does not do anything. For the script that runs on the computer, it gets stuck here:
while True:
start = time.time()
# Read data from the serial buffer
serial_port.write(“snap”.encode())
serial_port.flush()
size = struct.unpack(‘<L’, serial_port.read(4))[0] <----- STUCK HERE
buf = serial_port.read(size)
The Windows computer is unable to read anything from the serial port. Upon checking, it is always reading 0 bytes. However, opening the serial port from the IDE indicates that data is in fact being written. Please advise.