I am trying the UWB Beacons. Anyone know the possibility of multiple concurrent connection and getting the data from the beacons in background? I tested with the sample project and the position update will be suspended once the app go into background.
Out of topics, I found that I can’t get any vector data in iOS 16.
I can’t answer the multiple concurrent connections question, but for connecting to a session in the background see the following WWDC 2022 video:
Regarding Vector data, from what I’ve seen, the Estimote SDK will eventually start providing it, but it’s sporadic at best. Because the native NearbyInteraction framework as been updated for iOS 16 and the Estimote SDK has not, I’ve switched to using only native frameworks (CoreBluetooth, NearbyInteraction). The NearbyInteraction framework sends much more frequent vector updates.
Thank you for the sharing. I am switching to use the native framework too. From the WWDC video, It seems that the application will not get any nearbyObjects didUpdate callback while in background. I don’t know is it the real case. Im going to test it on code.
From the WWDC video, seems the accessory “Beacon” need to update or support the latest UWB configuration which is used to setup connection via Nearby Interaction framework. Otherwise, the initialization on the NINearbyAccessoryConfiguration will fail.
welcome to our community, this is Jakub - one of the founders of Estimote - will be more than happy to help.
BACKGROUND UWB RANGING
It is possible to range in the background on iOS, but you would need our latest firmware since the app has to “enable” background ranging on the UWB beacon. The experience is really magical and it works awesome - could be a game-changer for many hands-free experience, e.g. keyless entry, etc.
Please note it might drain UWB beacon battery.
We are constantly improving firmware of our UWB beacons. If your purchased our UWB Dev Kit this year there is high chance it already supports OTA (Over-the-air firmware upgrade). In that case if you want to test BACKGROUND ranging shoot us a note to contact (at) estimote.com and we will send you instructions how to upgrade your firmware. We also fixed stability, power consumption and few other things.
RANGING TO MULTIPLE PHONES
At this very moment the entire FiRa / U1 compatible UWB sequence works like this:
UWB Beacon is advertising over BLE its presence. Nearby iPhone discovers it and requests BLE connection. Once they are connected over BLE they hand-shake, exchange some keys and start UWB radio both UWB Beacons and U1-enabled iPhone. Once these radios are up you can see UWB ranging sessions. If you kill the app or go outside the range the BLE connection will be lost and UWB radios will go to sleep. At this very moment when BLE connection between UWB beacon and iPhone is up other iPhones CANNOT connect. (Note: One iPhone CAN connect to multiple beacons).
So RANGING TO MULTIPLE PHONES is not supported by default, unless you do the following trick:
You change auto-discovery and BLE connection to false
Your app will “manually” discover and connect to UWB Beacons
As soon as you connect to UWB beacon and get the ranging you disconnect()
That way you will make it possible for other apps/phones to do the same
That might require some time synchronisation, etc. but is a doable work-around.
We are also working to natively support similar mechanism in firmware/SDK, but it’s not available yet.
In addition to distance you can get the vector to the UWB Beacon, but it only works if the beacon is in front of the phone. The 3 UWB antennas in Apple iPhones are not reachable in other positions.
Please also note there is a bug in one of the iOS versions, so you might need to update to the latest iOS 16.3.1 to see it.
Also note there is a bug on iPhone 14 Pro Max which is specific to that device and angle might not render there. Apple is already informed about it.
Feel free to post other questions on the forum and we will be more than happy to help.
Happy to hear that there are more support and features on SDK/firmware. We have contacted your team and still waiting the feedback of how to update the firmware via OTA. Hope to test the background ranging feature as soon as possible.