How to program USB port?

  • Thread starter Thread starter EdgarBM
  • Start date Start date
E

EdgarBM

Hi,
I think it's a simple question, but I need a light to
follow...
It's an easy question: how may I program the USB port?
maybe it's better to say, where can I find sample codes or
complete developing manuals?

Thank you in advance,
Edgar
 
It's more a question of what do you want to do with the port. There are some
examples if HID classes in the the Windows DDK. But not knowing what you
want to do with the port , this may be the wrong route.

J
 
Thanks JD.

I just want to use the port like I could make with a
serial port or an ethernet port (I think that with USB it
will be the combination of both), just to send and receive
information in an assyncronous way. It's easy!! ;)

Do you know anyway to begin?

Thanks again,
Edgar
 
USB is far more complex than just using a serial port, and it is very much
tied into what type of device is connected to the other end. You can't just
open up a USB port and send or receive data in the same simple way you can
with an RS232 port.

If you visit http://www.beyondlogic.org/ it has lots of interesting articles
that detail how you can use the USB port. There are even details about
drivers which appear as legacy Serial ports. But you need to build your
device you are talking to to.

Hope this helps.

J
BTW, Ethernet Connections are whole new ball game altogether.
 
If you don't need the speed of USB, and just want to do RS232 type commands
and have the same simplicy. The best option may be to use a ready made USB
to Serial Converter. The drivers that ship with these devices can be used to
mimic a Serial port, and are very easy to use.

J
 
Back
Top