Ports
May 18, 2013, 09:01:27 pm
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: SMF - Just Installed!
Home
Help
Search
Login
Register
Welcome to the PORTS Forum. Please post your questions, answers, and comments relating to USB and other hardware interfaces in the appropriate forums below. - Jan
Ports
>
General Category
>
USB
>
Serial numbers
Pages:
1
[
2
]
« previous
next »
Print
Author
Topic: Serial numbers (Read 3443 times)
Jan Axelson
Administrator
Frequent Contributor
Posts: 1625
Re: Serial numbers
«
Reply #15 on:
March 08, 2011, 09:27:57 am »
This is off the top of my head and likely isn't 100% complete and correct but should give you a general idea.
For each of these, create copies for the multiple devices, for example hidHandle, hidHandle2:
Private deviceNotificationHandle As IntPtr
Private exclusiveAccess As Boolean
Private hidHandle As SafeFileHandle
Private hidUsage As String
Private myDeviceDetected As Boolean
Private myDevicePathName As String
Private readHandle As SafeFileHandle
Private writeHandle As SafeFileHandle
Then you can either edit the FindTheHid routine to search for multiple devices or copy the routine (call it FindTheHid2) and search for a different device. In the routines that read and write to devices, use the handle, etc. for the device you want to communicate with.
Jan
Logged
Pages:
1
[
2
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> USB
=> Serial Ports
=> Embedded Ethernet
=> Parallel Port
=> Other Interfaces
=> General Discussion
Loading...