• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2254
  • Last Modified:

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.
0
SwamyN
Asked:
SwamyN
  • 3
  • 3
1 Solution
 
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
 
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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
 
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
 
cquinnCommented:
Have a look at this site:

http://www.lvr.com/hidpage.htm
0

Featured Post

Who's Defending Your Organization from Threats?

Protecting against advanced threats requires an IT dream team – a well-oiled machine of people and solutions working together to defend your organization. Download our resource kit today to learn more about the tools you need to build you IT Dream Team!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now