Frameworks > Bluetooth Framework
Catastrophic failure while Pairing
servel333:
While attempting to pair, we are getting the following error:
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
ErrorCode -2147418113
StackTrace
at WCLX.wclBluetoothDevicexClass.Pair(wclBluetoothRadiox Radio, String PIN)
at wclnet.wclBluetoothDevice.Pair(wclBluetoothRadio Radio, String PIN)
During testing, we have been pairing and unpairing over and over. We are not pairing with a PDA or phone.
Also sometimes, after getting the previous error, I am also getting the following error while attempting to pair:
ErrorCode -2147422205
Message "Bluetooth API is not available"
StackTrace
at WCLX.wclBluetoothDevicexClass.Pair(wclBluetoothRadiox Radio, String PIN)
at wclnet.wclBluetoothDevice.Pair(wclBluetoothRadio Radio, String PIN)
Language: Visual Basic 2005
Stack: Microsoft
Driver: Microsoft
Version: 5.1.2600.2180
C:\WINDOWS\system32\bthprops.cpl
C:\WINDOWS\system32\DRIVERS\bthport.sys
C:\WINDOWS\system32\DRIVERS\BTHUSB.SYS
C:\WINDOWS\system32\fsquirt.exe
Dongle: Abe
USB Version: 1.1
USB PID: 0x0400
USB VID: 0x080A
Bluetooth Version:1.2
Bluetooth Class: 2
Chipset: National Semiconductor
When I posted this question before, you asked for sample code. I will discuss this with my coworker and see what we can share. Hopefully the information above will help you anyway.
Mike Petrichenko:
Thank you for report the question.
How do you do pairing? What is the Radio object you passed to the Pair method? How do you get the Radio object? Do you call API.Load before call pair?
I need only code part wich actually do pairing. Nothing more
servel333:
We've been very busy over the past few days. Sorry about posting this and then not getting back to you. I should be able to give more details over the next few days and figure out if I think it's something my code is doing.
I will pay more attention to the Radio object that is passed into WCL functions and see if it's invalid in some way.
To answer some of the questions:
- I do call API.Load() and make sure the API is loaded before calling any other methods.
- I get the Radio object by calling EnumRadios() and then caching one of the radios in the list for future use during our pairing.
servel333:
I've modified the code to generate log files with details about the radio and also further examined the radio object being passed into the WCL classes and they seem fine to me.
------------------------------------------------------------
BluetoothDevice.IsPaired failed.
radio : BluetoothRadio: Name 'ROMEO', Address '(00:15:83:BF:8B:B9)', BluetoothStack 'Microsoft', Connectable 'True', Discoverable 'False', ;
Exception Message: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
Stack Trace:
at WCLX.wclBluetoothDevicexClass.get_Paired(wclBluetoothRadiox Radio)
at wclnet.wclBluetoothDevice.Paired(wclBluetoothRadio Radio)
at AgaMatrix.BluetoothDevice.IsPaired(BluetoothRadio radio, Boolean& value)
If this helps at all, I was able to examine the WCLX.wclBluetoothRadioxClass object and found the following values about it:
__DoFree False Boolean
__Radio 105072940 Integer
This error seems to come up frequently and inconsistently.
I've also switched Bluetooth dongles since my last post:
AluraTek ABD2020
USB Version 2.0
VID 0x0A12
PID 0x0001
Bluetooth Version 2.0
Class 2
My computer is
Dell Optiplex 745
servel333:
Another note: I only seem to get this error when calling the Paired method. I have been using it to determine if a device is paired with a specified radio.
Navigation
[0] Message Index
[#] Next page
Go to full version