USB communication with a Microcontroller using BCX-Is this possible?

Started by djsb, February 08, 2023, 02:06:38 PM

Previous topic - Next topic

Jules

@airr, many thanks for the library, I'll be sure to check it out once I get up to speed with BCX.  Slowly but surely. 

@djsb, I always have a PC side serial port + micro project on the go, I use only the FT232 & FT4232 IC's.  I find them the most reliable when deployed in the field.  I know this is an old post, but hoping you can add an update on your progress or success, thanks!





airr

If the device presents as a virtual com port when connected, you should be able to use CreateFile/ReadFile/WriteFile and a few other things.

Something along these lines maybe?  https://www.pololu.com/docs/0J73/15.6

MrBcx

Possible?  Probably ... if you can track down the right library to use. 

When searching for "USB library" on github, LIBUSB has the most stars.
It's written in plain C and has ports for everything, including Windows.  So, if you
can learn how to use it, including its header and lib file into your BCX project and
building your UI is mostly what will be needed.  I'm not a hardware guy.

Start here:

https://libusb.info/

djsb

Is it possible to create a serial terminal like program that interfaces with a PC's USB port? I'd like to be able to send simple text commands and receive the response from a microcontroller via a USB port. Is this possible using BCX?