comunication

  • Thread starter Thread starter Pedro
  • Start date Start date
P

Pedro

How can you send and recive data to a usb port, or is it
beter to do it with the serial port? Ej: I have a device
witch has both interfaces, witch should I use?

Thx
Pedro
 
Hi,

It will be easier to use serial. .NET has no built-in support for either
modes. However, there are lots of serial classes available (and ActiveX
controls that may be used, such as NETComm.ocx from my homepage). If the
device manufacturer provides a USB API for the device, you can P/Invoke
(platform invoke) that API -- however, you will need documentation from the
device manufacturer.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 
Back
Top