Post

Replies

Boosts

Views

Activity

iOS Background Bluetooth: BLE scanning when iPhone is locked
I am looking for someone from the team at Apple to help me with a bluetooth issue we are experiencing. I am part of a team that is building a product line with a bluetooth device that requires us to use background bluetooth scanning. The device sends BLE packets periodically and the phone receives these packets and sends the data to our DB. We were able to get background bluetooth packets receiving (although sporadically) on the phone. However we cannot receive any packets while the app is backgrounded and the phone is locked. So my question is two fold: This is more critical: Is there any way to allow scanning while the app is backgrounded and the phone is locked? This is secondary: Is there anyway to make background scanning more reliable/predictable so that we can get consistent readings in the background
7
0
13k
Jul ’20
CentralManager connect command does not sends CONNECT_REQ on 1st discovery of BLE Peripheral
Hello! We are developing a smart BLE device and one of our main concerns is conserving battery life. As such we are only sending BLE packets from our proprietary device every 9 seconds. We have a use case for connecting to the peripheral for a short period of time. However, we have run into some major headaches along the way when trying to connect. Using a BLE sniffer, we recently discovered that when we try to call CentralManager's connect function upon receiving the first BLE packet after launch or after disconnection, the CONNECTREQ packet is never actually sent out from the phone. When the subsequent packet comes in, the CONNECTREQ packet is sent out as expected and a connection is usually made. This is a consistent and easily reproducible pattern. Why do we need to receive 2 packets from the same peripheral in order for the phone to truly send the CONNECT_REQ packet and get a successful connection? Because of our need to conserve battery life it is critical that we be able to make a connection attempt with just one packet.
0
0
291
Oct ’20