Re: IOBluetoothAddServiceDict invocation leads to crash of blued
Re: IOBluetoothAddServiceDict invocation leads to crash of blued
- Subject: Re: IOBluetoothAddServiceDict invocation leads to crash of blued
- From: Matthias Ringwald <email@hidden>
- Date: Wed, 21 Jul 2010 15:29:22 +0200
Hi
I did more tests with dictionaries and found out that IOBluetoothAddServiceDict fails to handle BOOL data elements.
If I specify an attribute like this:
Item (dictionary)
DataElementType (integer): 5
DataElementSize (integer) : 1
DataElementValue (integer): 1
the service record received by a remote device lacks the value byte, and gets the header of the next data element as the value of the BOOL entry. It did not crash for me but this clearly is a bug. Can someone from the Apple devs please have a look at this? (I guess posting here is more efficient than filling out a rdar - google could find this mail).
Also, does anybody know if are there other methods/functions, maybe private ones, that add a service that contains BOOL attribute value?
Best
Matthias
Am Jul 17, 2010 um 4:05 PM schrieb Thomas Tempelmann:
> Back in 2007, I had tried to create a HID bluetooth service on a OS X
> (Tiger) system. That failed, due to bugs in OS X (rdar:5094971).
>
> Later, when I had long given up on this project, I received note that
> this issue had been resolved in 10.5. I received no details on how
> this was resolved, though.
>
> Now I finally tried again, and this time, it's gotten worse: While on
> Tiger I simply noticed wrong SDP entries for my registered service,
> now the same code crashes blued, apparently.
>
> All I do is to invoke IOBluetoothAddServiceDict just as it's
> documented in Apple's BT docs under "Adding a Service Definition to
> the SDP Database". I've been trying with two different HID plists, one
> for a simple "3 button boot mouse" and one with what Apple's own
> original Bluetooth uses. Neither the crashlog nor the syslog are
> giving any helpful indication what's going wrong.
>
> I'm trying this on 10.6.4.
>
> Does anyone know more on this?
>
> Has anyone ever successfully registered a HID service on OS X?
>
> And is there perhaps a ObjC alternative to this C function? I could
> not find one.
>
> --
> Thomas Tempelmann, http://www.tempel.org/
> _______________________________________________
> 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
_______________________________________________
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