List of connected USB UIRT devices?

Interested in integrating USB-UIRT support into an application? Look here!

Moderator: jrhees

List of connected USB UIRT devices?

Postby avalanche333 » Tue Feb 12, 2008 7:24 pm

Is it possible to retrieve a list of all connected USB-UIRT devices?
avalanche333
 
Posts: 8
Joined: Tue Feb 12, 2008 7:21 pm

Postby avalanche333 » Fri Feb 15, 2008 2:07 pm

I have got word from support that with the current API's there is no function to retrieve a list of connected devices.
avalanche333
 
Posts: 8
Joined: Tue Feb 12, 2008 7:21 pm

Postby josh » Fri Apr 04, 2008 12:02 am

Assuming that the devices were named with the uurename utility, I was able to get the list by simply opening each possible name. See the VB code below:
For i = 0 To 9
'Build the name
If i = 0 Then
sUUIRTName = "USB-UIRT"
Else
sUUIRTName = "USB-UIRT-" & i
End If
'Try to open that device
hTempHandle = UUIRTOpenEx(sUUIRTName, 0, 0, 0)
If hTempHandle <> INVALID_HANDLE_VALUE Then
gUUIRTs(gNumUUIRTs).hDrvHandle = hTempHandle
gUUIRTs(gNumUUIRTs).sName = sUUIRTName
gNumUUIRTs = gNumUUIRTs + 1
End If
Next
-Josh
josh
 
Posts: 1
Joined: Thu Apr 03, 2008 11:57 pm
Location: New Hampshire


Return to Developers

Who is online

Users browsing this forum: No registered users and 2 guests

cron