# Communication with USB Virtual Serial Port

**URL:** <https://forums.openmv.io/t/communication-with-usb-virtual-serial-port/169>\
**Category:** OpenMV Boards\
**Created:** [December 31, 2016, 4:47pm UTC](https://forums.openmv.io/t/communication-with-usb-virtual-serial-port/169 "2016-12-31T16:47:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![CJiwan](https://avatars.discourse-cdn.com/v4/letter/c/919ad9/32.png) [@CJiwan](https://forums.openmv.io/u/CJiwan)\
**Post date:** [December 31, 2016, 4:47pm UTC](https://forums.openmv.io/t/communication-with-usb-virtual-serial-port/169/1 "2016-12-31T16:47:06Z")

</div>

HI.

I have a projet with the OpenMV and an Raspberry PI who works under Windows 10 IoT.  
I try to creat a communication with my OpenMV Cam 2 through the USB Virtual Serial Port.

First I try the Main.py sample. On my rapsberry (or with my WIndows 10 PC), I can detect the USB Virtual Serial port and I can open the Serial Port with Success.  
The problem is that the OpenMV Cam do not detect the connection the usb.isconnected() stay False.

Have you a sample of C# application and the .py script for the OpenMV for me ou any Idea of my problem.

Thanks for your help.

Christian

---

<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:** [December 31, 2016, 5:04pm UTC](https://forums.openmv.io/t/communication-with-usb-virtual-serial-port/169/2 "2016-12-31T17:04:15Z")

</div>

Mmm, what baud rate are you connecting with? If you connect at 12,000,000 BPS or 921,600 BPS the camera goes into debug mode.

…

Alright, scratch that. This is bugged. This used to work. Please use the TX/RX serial port (I know this works) and not the VCP one for now. Also file a bug here: [Issues · openmv/openmv · GitHub](https://github.com/openmv/openmv/issues)

---

<div class="post-metadata">

**Author:** ![CJiwan](https://avatars.discourse-cdn.com/v4/letter/c/919ad9/32.png) [@CJiwan](https://forums.openmv.io/u/CJiwan)\
**Post date:** [December 31, 2016, 5:54pm UTC](https://forums.openmv.io/t/communication-with-usb-virtual-serial-port/169/3 "2016-12-31T17:54:52Z")

</div>

Hi,  
I have configured 9600 like baud rate.

---

<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:** [December 31, 2016, 6:30pm UTC](https://forums.openmv.io/t/communication-with-usb-virtual-serial-port/169/4 "2016-12-31T18:30:08Z")

</div>

Please use this for now: [class UART – duplex serial communication bus — MicroPython 1.15 documentation](http://docs.openmv.io/library/pyb.UART.html#pyb-uart)

---

<div class="post-metadata">

**Author:** ![CJiwan](https://avatars.discourse-cdn.com/v4/letter/c/919ad9/32.png) [@CJiwan](https://forums.openmv.io/u/CJiwan)\
**Post date:** [January 1, 2017, 4:24pm UTC](https://forums.openmv.io/t/communication-with-usb-virtual-serial-port/169/5 "2017-01-01T16:24:27Z")

</div>

Hi,

Ok I can try to use the standard UART but have you plan to solved the Virtual Serial Port fonction, this fonction is more interesting.

Best Regards,  
Christian

---

<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:** [January 1, 2017, 6:01pm UTC](https://forums.openmv.io/t/communication-with-usb-virtual-serial-port/169/6 "2017-01-01T18:01:17Z")

</div>

Yes, we will fix this. Ibrahim will respond with more information. He reports it seems to work on linux. So, there’s something going on with windows in particular.

---

<div class="post-metadata">

**Author:** ![iabdalkader](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/iabdalkader/32/1169_2.png) [@iabdalkader](https://forums.openmv.io/u/iabdalkader)\
**Post date:** [January 1, 2017, 11:05pm UTC](https://forums.openmv.io/t/communication-with-usb-virtual-serial-port/169/7 "2017-01-01T23:05:18Z")

</div>

Hi, for some reason on Windows you need to enable DTR, then it works.

---

<div class="post-metadata">

**Author:** ![CJiwan](https://avatars.discourse-cdn.com/v4/letter/c/919ad9/32.png) [@CJiwan](https://forums.openmv.io/u/CJiwan)\
**Post date:** [January 2, 2017, 1:30pm UTC](https://forums.openmv.io/t/communication-with-usb-virtual-serial-port/169/8 "2017-01-02T13:30:37Z")

</div>

Hi,

Thanks for this fast support.  
Effectively after activation DTR in my C# application it works.

Best Regards.  
Christian
