USB Communication

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi...
I have to get data from a device (that has no driver) with the USB Port.
Can anybody help me?
How can communicate with USB Port..
Thanks..
 
MAT kirjoitti:
Hi...
I have to get data from a device (that has no driver) with the USB Port.
Can anybody help me?
How can communicate with USB Port..
Thanks..

You absolutely need the driver, if you want any kind of access from C#.
C# and .NET is simply not inteded for direct hardware access like USB.

See
http://support.microsoft.com/kb/323594/en-us

To write lower level routines I'd stay well clear of C# and use the more
"native" C/C++ instead, if I were you... :) You can make the hardware
routines in C/C++ DLL/OCX and use interop for calling these from C#/.NET
later.

Or, what kind of device is it exactly? Is using the serial or parallel
port instead of USB out of question?

regards,
- Jan
 
Hi Jan

I have to write it with C#. Because it it a part of a program that has been
improved.
The Device sends data with a protocol.
What cab I do?
 
MAT said:
Hi Jan

I have to write it with C#. Because it it a part of a program that has
been
improved.
The Device sends data with a protocol.
What cab I do?

As Jan said, you can't communicate with a device without the help of a
driver, your device should come with a driver, else it is useless.

Willy.
 
MAT kirjoitti:
I have to write it with C#. Because it it a part of a program that has been
improved.
The Device sends data with a protocol.
What cab I do?

If you're doing the development for a company, ask the hardware R&D
department for the drivers (though you may have to wait till they finish
programming the driver). Or check/ask what kind of USB chip your device
uses (inside), if it is a USB<->serial or USB<->parallel interfacing
chip then there's a small chance that you can use generic drivers
provided by the chip manufacturer (e.g. Silabs, Prolific, ... - use
www.google.com with the part number that is written on the chip).

- Jan
 
Back
Top