How to read/write data from/to USB port ?
-
Reading from USB port.????????:confused::confused::confused::confused: Can anybody help me on how to read the data from USB port. Thanks In Advance Ashok.
Well, that depends on the driver for your specific device. If your device's USB driver acts like a serial-port then you need the ReadFile() and WriteFile() (just like in a serial port) Otherwise, you'll have to refer to the documentation/spec of your device ...
-
Well, that depends on the driver for your specific device. If your device's USB driver acts like a serial-port then you need the ReadFile() and WriteFile() (just like in a serial port) Otherwise, you'll have to refer to the documentation/spec of your device ...
-
You have to open (using CreateFile) the driver that is associated with the device. Then you can use ReadFile and WriteFile to read or write data to the driver. But it depends also of the kind of device you are using. Can you provide more information ?
Cédric Moonen Software developer
Charting control [v1.2 - Updated] -
I am very new to this USB communication. can u please send sample code for this or any links???????? Thanks In Advance Ashok.
ashokbngr wrote:
can u please send sample code for this or any links????????
No, because I don't have any information to give a piece of code. What device are you trying to communicate with ?
Cédric Moonen Software developer
Charting control [v1.2 - Updated] -
ashokbngr wrote:
can u please send sample code for this or any links????????
No, because I don't have any information to give a piece of code. What device are you trying to communicate with ?
Cédric Moonen Software developer
Charting control [v1.2 - Updated]Cedric Moonen wrote:
What device are you trying to communicate with ?
Come on, Cedric, it's a universal serial device!
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
ashokbngr wrote:
can u please send sample code for this or any links????????
No, because I don't have any information to give a piece of code. What device are you trying to communicate with ?
Cédric Moonen Software developer
Charting control [v1.2 - Updated] -
But which Blue or White!
WhiteSky
-
But which Blue or White!
WhiteSky
LOL. 5.
-
But which Blue or White!
WhiteSky
:doh: Still not enough info! Or yellow...
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder