471,318 Members | 2,690 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,318 software developers and data experts.

USB Communication

MAT
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..
Dec 27 '05 #1
4 8121
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
Dec 27 '05 #2
MAT
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?

Dec 27 '05 #3

"MAT" <MA*@discussions.microsoft.com> wrote in message
news:B9**********************************@microsof t.com...
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.
Dec 27 '05 #4
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
Dec 27 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by alederer | last post: by
3 posts views Thread by Bryan Christopher | last post: by
4 posts views Thread by Sao Zagoranski | last post: by
21 posts views Thread by dast | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.