how do i send data via USB to an HID compliant USB device (card reader)

how do i send data via USB to an HID compliant USB device (card reader)? i am using VB 6, but work on .NET (C# or VB) as well. i have got code to detect the USB device. I get a 'VID' and a 'PID' from the detecting program,  I need to know how i can send a string or byte array to a USB device.
SwamyNAsked:
Who is Participating?
 
spprivateCommented:
I read this article which talks about using a
USB-to-Serial port adapter and then using .net classes to talk through serial port
Hope this helps

http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/4ea6d90e-5388-445e-8b20-8a154d4589c1
0
 
spprivateCommented:
I am afraid if there is any standard way of doing it.We might need to write code based on the device manufacturer.So check to see if there is any SDK available from the device company.
0
 
SwamyNAuthor Commented:
The vendor's SDK is not available with me right now, but i read somewhere that there's a way of doing this through the MSComm control in Microsoft VB6.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
spprivateCommented:
MSComm will listen in the serial port.But USB devices,some vendors like Nokia makes USB devices appear as serial devices to windows
http://discussion.forum.nokia.com/forum/showthread.php?t=104554

So if the manufaturer provides that kind of support you can do that.
0
 
SwamyNAuthor Commented:
OK...can i use MSComm to send data?.....in case the reader picks it up....i suppose i can use the MSComm's OnComm event to listen for data if it does respond to any data i send it
0
 
SwamyNAuthor Commented:
my question is :
is it possible to just blindly send data through the USB port? and If there is a way, please tell me how.
0
 
cquinnCommented:
Have a look at this site:

http://www.lvr.com/hidpage.htm
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.