site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Thread-index: AcXUv6ar5VwcKkCyEdqjYQANk0Hg8A== Thread-topic: HCI error code? User-agent: Microsoft-Entourage/11.2.0.050811
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 bubba@apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Bubba Giles