# Serial USB VCP does not work on Windows

**URL:** <https://forums.openmv.io/t/serial-usb-vcp-does-not-work-on-windows/5640>\
**Category:** OpenMV Boards\
**Created:** [March 30, 2021, 6:57pm UTC](https://forums.openmv.io/t/serial-usb-vcp-does-not-work-on-windows/5640 "2021-03-30T18:57:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jhc999](https://avatars.discourse-cdn.com/v4/letter/j/839c29/32.png) [@Jhc999](https://forums.openmv.io/u/Jhc999)\
**Post date:** [March 30, 2021, 6:57pm UTC](https://forums.openmv.io/t/serial-usb-vcp-does-not-work-on-windows/5640/1 "2021-03-30T18:57:11Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [March 30, 2021, 7:12pm UTC](https://forums.openmv.io/t/serial-usb-vcp-does-not-work-on-windows/5640/2 "2021-03-30T19:12:27Z")

</div>

Can you check if you can read print statments?

> **[GitHub - openmv/openmv: OpenMV Camera Module](https://github.com/openmv/openmv#note)**
>
> OpenMV Camera Module. Contribute to openmv/openmv development by creating an account on GitHub.

Just run hello\_world on the camera.

---

<div class="post-metadata">

**Author:** ![Jhc999](https://avatars.discourse-cdn.com/v4/letter/j/839c29/32.png) [@Jhc999](https://forums.openmv.io/u/Jhc999)\
**Post date:** [March 30, 2021, 8:01pm UTC](https://forums.openmv.io/t/serial-usb-vcp-does-not-work-on-windows/5640/3 "2021-03-30T20:01:17Z")

</div>

Yes, I can read print statements.

---

<div class="post-metadata">

**Author:** ![Jhc999](https://avatars.discourse-cdn.com/v4/letter/j/839c29/32.png) [@Jhc999](https://forums.openmv.io/u/Jhc999)\
**Post date:** [March 31, 2021, 6:00pm UTC](https://forums.openmv.io/t/serial-usb-vcp-does-not-work-on-windows/5640/4 "2021-03-31T18:00:42Z")

</div>

Bump, still unable to read image data over serial on windows

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [March 31, 2021, 6:18pm UTC](https://forums.openmv.io/t/serial-usb-vcp-does-not-work-on-windows/5640/5 "2021-03-31T18:18:36Z")

</div>

Print and vcp are the same interface… if one works the other should work.

What’s your OpenMV Cam code and how are you running it?
