• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Extracting bluetooth?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extracting bluetooth?


  • Subject: Re: Extracting bluetooth?
  • From: Matthias Ringwald <email@hidden>
  • Date: Sat, 11 Sep 2010 14:59:53 +0200

Hi Matthias

AFAIK, there is no public API to get the Bluetooth address on iOS. But you got other choices: as a quick hack, the Bluetooth address on iOS devices usually equals the WLAN MAC address + 1 or -1 (check yourself).

And there's even a coorect appraoch: the Bluetooth address is not stored in the actual Bluetooth chipset, it is stored in the IORegistry and set by the OS upon start-up See ioregistry_get_info() in the iOS adaption of BTstack at http://code.google.com/p/btstack/source/browse/trunk/src/bt_control_iphone.m for example code on how to query IOKit (same as on OS X).

I don't know if talking to IOKit is considered private or not, so I'd suggest looking up symbols at runtime and maybe using obfuscated strings to be on the safe side if your aiming for the AppStore. :)

What do you do want to do with the Bluetooth address anyway? Building a pseudo-secure Bluetooth garage door opener? :)

Best
 Matthias


On 11.09.2010, at 08:07, Matthias wrote:

> Hi all,
>
> Is it possible to extract the Iphone's Bluetooth address automatically from an app or can this only be done manually?
>
> /Matthias
> _______________________________________________
> 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

References: 
 >Extracting bluetooth? (From: Matthias <email@hidden>)

  • Prev by Date: Extracting bluetooth?
  • Previous by thread: Extracting bluetooth?
  • Index(es):
    • Date
    • Thread