473,395 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 8249
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Noel | last post by:
Hi, I am a tad confused about if there are any benefits from using asynchronous vs synchronous network communication. As my example, I have been writing a dns lookup stack with a network...
1
by: alederer | last post by:
Hallo! I have the following situation: A db2 v6.1 client on AIX 4.3 (db2level reports U469703) and a OS/390 database version 6.1 . In some situations, I get the following error in my db2...
1
by: xixi | last post by:
i have catalog a remote database on my local db2 server, but now the remote database server with same machine name but the ip address changed, so i remove the old one, and try to catalog again...
3
by: Tim Reynolds | last post by:
I support a .Net application running on a SERVER accessing MF Db2 data. Occasionally, we have some type of connection problem that we have been unable to debug up to this point. We typically...
3
by: Laura | last post by:
I've just installed the DB2 Run-time client in a Solaris machine. Then I finnish the installation configuring the connection: 1. machine catalog was OK: ========================== $ db2 catalog...
3
by: Bryan Christopher | last post by:
Hello All! I have a rather abstract question for some genius out there to answer. I want to integrate communication tracking, for customer relations, into an existing Access DB. What I was going...
2
by: xeyder | last post by:
Hi everyone.. I need help about graph theory ( network problems) .. I have below problem . Does anyone know any existence algorithms or solutions to this problem ?? The Problems is: "...
4
by: Sačo Zagoranski | last post by:
Hi! I'm writing a simple 3D First person shooter game. It is a multiplayer game, where all the players connect to one server.
21
by: dast | last post by:
Hi, I'm having trouble letting my background thread tell my main thread what to do. I'm trying to tell my main thread to open a form, but when my background thread ends, the form that I...
2
by: xeyder | last post by:
Hi everyone.. I need help about graph theory ( network problems) .. I have below problem . Does anyone know any existence algorithms or solutions to this problem ?? The Problems is: " We...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.