Re: HCI error code?
Re: HCI error code?
- Subject: Re: HCI error code?
- From: Bubba Giles <email@hidden>
- Date: Wed, 19 Oct 2005 08:13:25 -0700
- Thread-topic: HCI error code?
> I get an error code 5 when sending writeAsync:... to an RFCOMM
> channel (more precisely, the error arrives in the
> rfcommChannelWriteComplete: delegate). writeSync:... returns the same.
>
> Any idea what this means? I do in fact realize that these values
> could vary widely due to specific hw implementations -- I'm just
> curious if, say, the Cambridge Silicon chipset is prone to return a
> particular value for a particular error condition in general.
>
> Actually, on subsequent tests, I'm getting not just 5, but the
> ubiquitous 0xe00002ca, and now I just started getting 0xe00002c8.
Error codes could come from one of three places:
IOReturn.h - general IOKit errors. Typically codes such as "0xe00002CA".
The ones you are seeing are:
#define kIOReturnIOError iokit_common_err(0x2ca) // General I/O
error
#define kIOReturnVMError iokit_common_err(0x2c8) // misc. VM failure
IOBluetooth/IOBluetoothTypes.h - Bluetooth defined IOKit errors:
#define kIOBluetoothDeviceResetError iokit_bluetooth_err(1) //
Device reset interrupted pending operation
Finally, HCI errors are defined in IOBluetooth/Bluetooth.h. Common codes
are:
kBluetoothHCIErrorSuccess = 0x00,
kBluetoothHCIErrorNoConnection = 0x02,
kBluetoothHCIErrorHardwareFailure = 0x03,
kBluetoothHCIErrorPageTimeout = 0x04,
kBluetoothHCIErrorAuthenticationFailure = 0x05,
kBluetoothHCIErrorPairingNotAllowed = 0x18,
The error code 5 is probably an Authentication failure - as if you have not
paired properly with the device before trying to open a connection. What
device are you using and how did you set it up?
jason
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden