Post

Replies

Boosts

Views

Activity

Reply to BLE disconnects in challenging environments
Blocked by human body or a few feet is rather surprising to get a disconnect in open air. What is the tx power of your device? Do you have a PCB antenna or a dedicated one? Years and years ago I was able to get an iPhone and iPad to stay connected over BLE several houses away down the street in open air. I think iOS defaults to 0 dbm for tx power when using CBPeripheralManger? It has been a while. Anyways, operating within an arms length should really be something that is stable IMHO if you have relatively high TX and good antenna design. I forget if the NRF series has an antenna built into the housing or allows for external ones. If you have the ability to turn up your tx power, that is one thing you can try. Do you read RSSI from your device often? What does it look like just before disconnect? This can be used to help troubleshoot too. As for what is controlling the disconnect determination, you're looking for the "supervisory timeout" or "supervision timeout". This is probably something you can control from the nordic SDK and have updated during the connection with your iOS device. I thought that iOS set the supervisory timeout to 720 ms by default, so you can only go < 1 second without bidirectional packets before the link is considered lost. However the accessory guideline now talks about having your device set to 2 seconds. Here are some useful links Accessories Accessory Design Guidelines
Aug ’22
Reply to iOS Bluetooth scan found peripheral but connect method not callback result
Can you share some sample code related to your CBCentralManager, scan call, connect call, peripheral object property?
Replies
Boosts
Views
Activity
Aug ’22
Reply to BLE disconnects in challenging environments
Blocked by human body or a few feet is rather surprising to get a disconnect in open air. What is the tx power of your device? Do you have a PCB antenna or a dedicated one? Years and years ago I was able to get an iPhone and iPad to stay connected over BLE several houses away down the street in open air. I think iOS defaults to 0 dbm for tx power when using CBPeripheralManger? It has been a while. Anyways, operating within an arms length should really be something that is stable IMHO if you have relatively high TX and good antenna design. I forget if the NRF series has an antenna built into the housing or allows for external ones. If you have the ability to turn up your tx power, that is one thing you can try. Do you read RSSI from your device often? What does it look like just before disconnect? This can be used to help troubleshoot too. As for what is controlling the disconnect determination, you're looking for the "supervisory timeout" or "supervision timeout". This is probably something you can control from the nordic SDK and have updated during the connection with your iOS device. I thought that iOS set the supervisory timeout to 720 ms by default, so you can only go < 1 second without bidirectional packets before the link is considered lost. However the accessory guideline now talks about having your device set to 2 seconds. Here are some useful links Accessories Accessory Design Guidelines
Replies
Boosts
Views
Activity
Aug ’22
Reply to sceneDidEnterBackground( and applicationDidEnterBackground( not getting called when the app is launched in the background
@MrWizardCoder, in addition to receiving (or lack of) didEnterBackground, you should also be getting delegate callbacks on your CLLocationManager. Are you getting those? Additionally, it sounds like you're just seeing issues when the app is in memory, not during launch, correct?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to iOS 16 Live Activities cann't be refreshed in the background ?
WidgetKit gets some extra reloads for apps that use background location, like navigation. Unfortunately, I forget where that was documented or mentioned. Nothing is documented for ActivityKit yet in terms of reloads you can get or should expect to get. What is keeping your app from getting suspended while it is in the background?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to App Disappeared From App Store
@Zivi0, are you just not seeing your app in search, or when you hit your listing by App ID is it also not showing?
Replies
Boosts
Views
Activity
Jun ’22