• 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: Bluetooth-dev Digest, Vol 13, Issue 96
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bluetooth-dev Digest, Vol 13, Issue 96


  • Subject: Re: Bluetooth-dev Digest, Vol 13, Issue 96
  • From: Craig Dooley <email@hidden>
  • Date: Mon, 24 Oct 2016 08:23:08 -0700

Hi Dwayne,
This should be easy to accomplish by creating a peripheral with a custom service for your game.  It sounds like you just need a characteristic that can be read (return the current score), or send notifications (update to the score).  Your game device in this case would be a BLE peripheral, and it would need to advertise some unique bit of information for the app to find your game (most likely a generated 128-bit service UUID).

- Craig

On Oct 22, 2016, at 5:09 PM, Dwayne Wedderburn <email@hidden> wrote:

Hi everyone,

I'm working on my senior capstone project, and our team is creating an automatic cornhole scorekeeper.  We also want to include an app, which I already created, but now comes the difficult part where to include the BLE to display the score from the game to the app.

I already have already created the BLE scanner, but wanting to know if anyone could help me get the information from the game to display on the app (how to pair to solidify connection).  Base off the reading I've read from the Core Bluetooth, the UUID is what I need in order to make it work, but I'm having a difficult time.  Can anyone help me with the task?


On Sat, Oct 22, 2016 at 3:00 PM, <email@hidden> wrote:
Send Bluetooth-dev mailing list submissions to
        email@hidden

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.apple.com/mailman/listinfo/bluetooth-dev
or, via email, send a message with subject or body 'help' to
        bluetooth-dev-request@lists.apple.com

You can reach the person managing the list at
        bluetooth-dev-owner@lists.apple.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bluetooth-dev digest..."


Today's Topics:

   1. MFi / iOS prompting user to install app / BLE (Ralf Rottmann)
   2. Re: MFi / iOS prompting user to install app / BLE (Dave Boydston)
   3. Re: MFi / iOS prompting user to install app / BLE (Ramin Firoozye)


----------------------------------------------------------------------

Message: 1
Date: Sat, 22 Oct 2016 02:02:13 +0200
From: Ralf Rottmann <ralf.rottmann@grandcentrix.net>
To: email@hidden
Subject: MFi / iOS prompting user to install app / BLE
Message-ID: <email@hidden" class="">56B99B57-5926-4AE4-92EE-email@hidden>
Content-Type: text/plain; charset="utf-8"

Hi Everyone,

We understand that in order for iOS to show the system prompt which asks a user to install a companion app, the HW vendor needs to be an MFi member.
However, we don't quite understand the exact technical requirements. Hopefully, somebody from Apple can clarify:
Is this functionality available for BLE only connections, too? Or does it require BL Classic?
What exactly is required MFi wise?
How does the accessory, given that it is a single-mode BLE device, tell iOS which app to install? E.g. how is the bundle or App Store ID transmitted?
Any help would be greatly appreciated.
‌
Ralf
twitter: https://twitter.com/ralf
--


grandcentrix GmbH
Schanzenstrasse 6-20
51063 Köln, Deutschland

phone: +49 221 677 860 0
fax: +49 221 677 860 99
email: email@hidden

Amtsgericht Köln | HRB  70119 | Geschäftsführer: R. Rottmann, M. Willnow |
USt.-IdNr.: DE266333969
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.apple.com/mailman/private/bluetooth-dev/attachments/20161022/5aa9617d/attachment.html>

------------------------------

Message: 2
Date: Fri, 21 Oct 2016 19:08:08 -0500
From: Dave Boydston <email@hidden>
To: email@hidden
Subject: Re: MFi / iOS prompting user to install app / BLE
Message-ID: <email@hidden" class="">dd95d4a7-0f4f-d9e2-4304-email@hidden>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

BLE does *NOT *require MFi membership.

MFi is needed for MFi certified devices only.

Dave Boydston
512.994.3630
866.546.4523 FAX
Serialio.com - Bringing your bright ideas to Life

On 10/21/2016 7:02 PM, Ralf Rottmann wrote:
>
> Hi Everyone,
>
>
> We understand that in order for iOS to show the system prompt which
> asks a user to install a companion app, the HW vendor needs to be an
> MFi member.
>
> However, we don't quite understand the *exact* technical
> requirements. Hopefully, somebody from Apple can clarify:
>
>   * Is this functionality available for BLE only connections, too? Or
>     does it require BL Classic?
>   * What exactly is required MFi wise?
>   * How does the accessory, given that it is a single-mode BLE device,
>     tell iOS which app to install? E.g. how is the bundle or App Store
>     ID transmitted?
>
> Any help would be greatly appreciated.
>
> ‌
>
> *Ralf*
> twitter: https://twitter.com/ralf
>
>
> grandcentrix GmbH
> Schanzenstrasse 6-20
> 51063 Köln, Deutschland
>
> phone: +49 221 677 860 0
> fax: +49 221 677 860 99
> email: email@hidden <mailto:email@hidden>
>
> Amtsgericht Köln | HRB  70119 | Geschäftsführer: R. Rottmann, M.
> Willnow | USt.-IdNr.: DE266333969
>
>
>   _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.apple.com/mailman/private/bluetooth-dev/attachments/20161021/d7d6aa7d/attachment.html>

------------------------------

Message: 3
Date: Fri, 21 Oct 2016 21:56:30 -0700
From: Ramin Firoozye <email@hidden>
To: Ralf Rottmann <ralf.rottmann@grandcentrix.net>,
        email@hidden
Subject: Re: MFi / iOS prompting user to install app / BLE
Message-ID: <email@hidden" class="">etPan.580af17e.2c35cb56.e670@gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi Ralf,

I’m not from Apple but I’ve worked on both BLE and Classic/MFi apps talking to devices.

For Classic BT profiles supported by iOS there is usually no need to install a custom app. The system will take care of those (for example, for most of the audio/messaging profiles). If you have a device implementing a custom protocol using IAP then you can define a custom app/bundle ID which the system can use to prompt the user to go and install. The UX flow is that you turn on the device and the system searches the appstore for an app matching that ID which they can then install it. For IAP you need to follow Apple’s MFi guidelines. On the app side you need to use Apple’s Accessory framework which can only be used by those folks signed up for MFi. 

For BLE you don’t need to do any of these. There is no need to go through MFi certification (this was one of the big selling points of BLE for most developers). On the app side you use the CoreBluetooth framework and can create custom protocols on top of a pre-defined communication model defined by the Bluetooth SIG. In this universe you have general purpose services and characteristics which you can define in any way you want. The down side is the communication is much slower than Classic with IAP but your device is presumably much more power-efficient (hence the Low Energy part of BLE).

To build a BLE app you define your services and characteristics. If you need more than 20 bytes at a time you need to define your own custom streaming protocol. Then you build that protocol handling code in both your device firmware and your mobile app. You can then ship your app and device without having to go through any sort of MFi certification.

The feature you’re asking about… to have the system prompt the user to install the right app, unfortunately doesn’t exist in BLE world. This is one of the side-effects of not having to go through MFi, since Apple has no way to verify that two developers aren’t using the same app bundle/ID. 

The way most people do it is to instruct users (often on the app package or in documentation) to go download the app and run it. On first run the app scans for any devices implementing the device's custom service UUID. Once the device is turned on the app then connects to that device, establishes pairing (if necessary) and starts exchanging information with the device through the pre-defined characteristics.

If you need to support the model where you turn on a device and then the app for it automatically runs there’s a way to get close to that with BLE (after the app has been downloaded and run once) but it can get pretty complicated. Probably easier if you re-think your application/device interaction to better follow the BLE model. Or if you really need that interaction, may want to stick with IAP and MFi.

Hope this helps.

Best,
Ramin


On October 21, 2016 at 5:02:58 PM, Ralf Rottmann (ralf.rottmann@grandcentrix.net) wrote:

Hi Everyone,

We understand that in order for iOS to show the system prompt which asks a user to install a companion app, the HW vendor needs to be an MFi member.
However, we don't quite understand the exact technical requirements. Hopefully, somebody from Apple can clarify:
Is this functionality available for BLE only connections, too? Or does it require BL Classic?
What exactly is required MFi wise?
How does the accessory, given that it is a single-mode BLE device, tell iOS which app to install? E.g. how is the bundle or App Store ID transmitted?
Any help would be greatly appreciated.
‌
Ralf
twitter: https://twitter.com/ralf


grandcentrix GmbH
Schanzenstrasse 6-20
51063 Köln, Deutschland

phone: +49 221 677 860 0
fax: +49 221 677 860 99
email: email@hidden

Amtsgericht Köln | HRB  70119 | Geschäftsführer: R. Rottmann, M. Willnow | USt.-IdNr.: DE266333969
_______________________________________________
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.apple.com/mailman/private/bluetooth-dev/attachments/20161021/177b45af/attachment.html>

------------------------------

_______________________________________________
Bluetooth-dev mailing list
email@hidden
https://lists.apple.com/mailman/listinfo/bluetooth-dev

End of Bluetooth-dev Digest, Vol 13, Issue 96
*********************************************

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
  • Follow-Ups:
    • Re: Bluetooth-dev Digest, Vol 13, Issue 96
      • From: Dwayne Wedderburn <email@hidden>
References: 
 >Re: Bluetooth-dev Digest, Vol 13, Issue 96 (From: Dwayne Wedderburn <email@hidden>)

  • Prev by Date: Re: Bluetooth-dev Digest, Vol 13, Issue 96
  • Next by Date: Re: Bluetooth-dev Digest, Vol 13, Issue 96
  • Previous by thread: Re: Bluetooth-dev Digest, Vol 13, Issue 96
  • Next by thread: Re: Bluetooth-dev Digest, Vol 13, Issue 96
  • Index(es):
    • Date
    • Thread