recieve data on serial port

Discussion related to "under the hood" OpenMV topics.
Posts: 1
Joined: Sat Oct 05, 2019 3:41 pm

recieve data on serial port

Postby fry » Sat Oct 05, 2019 3:57 pm

I'd like to send a string to my OpenMV via the serial port (USB)
and read it in MicroPython.
This will use the same connection used by "print".
Effectively I want the reverse of

Code: Select all

, to the same port.
It might be called

Code: Select all

but I can't find
anything other than UART for different pins, not the USB connection.
User avatar
Posts: 3832
Joined: Sun May 24, 2015 2:10 pm

Re: recieve data on serial port

Postby kwagyeman » Sat Oct 05, 2019 4:37 pm

You have to use the VCP port:

See the VCP example under board control. Note that you can't use the IDE anymore once you start using the VCP port. So, turn this logic on only once you are done debugging...

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 6 guests