Core Bluetooth

RSS for tag

Communicate with Bluetooth 4.0 low energy devices using Core Bluetooth.

Core Bluetooth Documentation

Posts under Core Bluetooth tag

304 results found
Sort by:
Post not yet marked as solved
13 Views

receiving scan response in the background

Hello there, I'm developing an app to scan for a certain BLE service in the background. The app is receiving the advertisement packet from a peripheral while it is running in the background but did not receive the scan response. The app receives the scan response only when it is running in the foreground. My question is that is it possible to make the app getting the scan response while it is running in the background ? if yes how do I do it? Thanks for your help in advance.
Asked
by Aalsubhi.
Last updated
.
Post not yet marked as solved
15 Views

iOS app can't receive more than first BLE indication data

I'm developing an iOS app that is supposed to connect to IoT device that push data with an indication (not Notification) via Bluetooth Low Energy every interval (1 min/5 min/15 min) I've managed to have a working Android App that receives this indication and we have this app working without any issues. However, my iOS app can't receive more than first indication. This behavior is replicated through AppStore LightBlue and my own custom app with Apple's CoreBluetooth library following Apple Transferring Data Between Bluetooth Low Energy Devices | Apple Developer Documentation with ObjC and Swift 5 library For more detail: I'm using iOS 14.6 with iPhone mini as a testing device. I've managed to connect, discoverServices, discoverCharacteristic, setNotifyValue, and register didUpdateValue. From my observation it seems that the callback didUpdateValue only got called for the first interaction of sending indication. I've tried and experiment to setNotifyValue after each didUpdateValue, but I still only got the first message Another experiment is to call readValue after each didUpdateValue callback, but I still only got the first message. writeValue to IoT seems to have no problem Has someone has experience like this that can help me figure out why does only the first BLE indication data get sent? I've read that the main difference between Indication and Notification is ack exists in indication, but not on Notification. Is it possible that the iOS can't read the indication or doesn't send the indication ack to read after the first data? Thanks and have a great day!
Asked Last updated
.
Post not yet marked as solved
1.1k Views

iOS interaction with Raspberry Pi Zero W via BLE protocol

Hello everyone,I' working with a Raspberry Pi Zero W (having BLE) which reads the data from a temperature sensor, and makes a notification if necessary, I want to send this notification to my application written in Swift 3 for iOS, to display an alarm on the screen for example.I've been searching almost a week on Web but I have not found a method to do this finally, in fact I'm looking for a tutorial or example reference to do this. I don't know how I can use Core Bluetooth to communicate with my Raspberry Pi. That's why I would ask you if is possible for a solution either a reference or example or tutorial or book about on this subject, asking about communication between the Raspberry Pi Zero W and iOS application in Swoft 3 via BLE protocol.Thanks in advance,
Asked Last updated
.
Post not yet marked as solved
2.6k Views

Is MFi needed if using iAP on Bluetooth?

Hi,We are developing a Bluetooth peripheral that shall interact with an iOS based device (e.g. iPhone 7). Bluetooth Classic shall be used to improve speed communication.For the peripheral, we are using the Bluetooth module RN4678 from Microchip: http://ww1.microchip.com/downloads/en/DeviceDoc/50002519A.pdfWe are developing the application using the iAP profile which is already supported by the RN4678 Module. Shall we go through the MFi Program if we are using a Module that is already MFi?Regards,Andres
Asked Last updated
.
Post not yet marked as solved
96 Views

iOS 14.7 Bluetooth Connectivity

I upgraded from iOS 14.6 to 14.7 as I had encountered issues playing lossless music offline, and there was a fix available with the 14.7 release. Come to find out that 14.7 has a much bigger issue - my music does NOT play anymore regardless of lossless or standard songs. I have tried restarting the devices, tried connecting to multiple Bluetooth headsets, both of which were playing music before. Any help to resolve this would be appreciated.
Asked
by hrao.
Last updated
.
Post not yet marked as solved
51 Views

Detect peripheral turning off from central [SWIFT]

Is there any way from the Central app to detect when a peripheral for example runs out of power and consequently disconnects? I tried using this: func centralManager(_ central: CBCentralManager, didDisconnectPeripheral peripheral: CBPeripheral, error: Error?) { bleCentralManagerDelegate?.disconnectFromDeviceBLEResult(result: true)} But this event gets called only if the peripheral requests an actual disconnection, and does NOT get called if the peripheral randomly turns off. Thanks
Asked
by izs.
Last updated
.
Post not yet marked as solved
67 Views

Does corebluetooth support IP Support Profile (IPSP)?

Does corebluetooth support IP Support Profile (IPSP)? I couldn't find a statement as to whether corebluetooth supports the ipsp profile. Thanks.
Asked Last updated
.
Post not yet marked as solved
60 Views

Connection Failed using CoreBluetooth

English I'm not good at English, so I used a translator. please understand. I am working on a project using Ble with iOS Swift. I am trying to use BLE connection and service using CoreBluetooth. During the development process, the connection and BLE Services were normally performed on the iphone 7. However, there is a phenomenon that BLE connection is not available in iphone 11 / iphone SE2 models. As a result of debugging the code, the callback was not called, so the connection was not made. In this case, it is determined that it is not a hardware problem, and we will contact you here. If it was a hardware problem, it shouldn't work on iphone7, but it works. I hope there is a solution or answer for the above situation. Thank you. 한국어 IOS Swift 로 Ble 사용 프로젝트를 진행하고 있습니다. CoreBluetooth 를 이용하여 BLE 접속과 Service 를 이용하려고 합니다. 개발 과정에서 iphone 7 에서는 정상적으로 접속과 BLE Service 들이 정상적으로 진행 되었습니다. 하지만, iphone 11 / iphone SE2 기종에서는 BLE 접속이 되지 않은 현상이 있습니다. 코드 디버깅한 결과 Callback 이 호출되지 않아서, 연결이 되지 않았습니다. 이럴 경우, 하드웨어 문제점이 아니라 판단이 되어 여기에 문의를 드립니다. 하드웨어 문제였으면, iphone7 에서도 동작이 되지 않아야 하는데, 동작이 되어서 그렇습니다. 위 상황에 대한 해결책 혹은 답변이 있었으면 합니다. 감사합니다.
Asked
by yckwon.
Last updated
.
Post not yet marked as solved
46 Views

Core Bluetooth on tvOS

How does core bluetooth work on tvOS? Is it available for use? Any docs would be helpful?
Asked
by jcho.
Last updated
.
Post not yet marked as solved
64 Views

Change iOS BLE MTU size to 512 (SWIFT)

Hi, is there any way to change the MTU value on iOS from the default to an arbitrary value? Much like in Android it's possible to do requestMTU(512). Thanks
Asked
by izs.
Last updated
.
Post not yet marked as solved
63 Views

Example of sending string through BLE

I have a app that I am creating to control a esp32 with LED. Very simple setup. I need to find some sample code or app source that will send a TEXT string "ON" or "OFF" to the BLE device to control the LED.
Asked Last updated
.
Post not yet marked as solved
70 Views

BLE connection with custom device with DTLS protocol

Hello I have a custom BLE device with which I need to have a secure connection over DTLS protocol to the iOS app. The device has two Characteristics, one to read and one to write. Could anyone give me some hints? ;) My best idea is to use CoreBluetooth with L2CAP streem, and connect it somehow with Network.framework which has DTLS included. Is it a good trail? How to do that? Cheers
Asked
by radsasda.
Last updated
.
Post not yet marked as solved
65 Views

Does any IOS version support BLE long range

Is there any Iphone with any IOS version support BLE long range mode (125kb/s or 500kb/s)? I saw someone asked the question and replied that in some version of IOS it supports. But I can't find any documentation/spec indicating this. Just want to have an official confirmation from Apple for this. Thanks!
Asked
by tc_2021.
Last updated
.
Post not yet marked as solved
184 Views

Bluetooth in Daemon program Not Working on Big Sur.

I use Authorization Plugin & Daemon to connect to mobile phone via Bluetooth to do user login authentication. It can be used normally in macOS 10.14, 10.15. But on Big Sur, the Bluetooth function is not working. To use [CBCentralManager authorization] always get CBManagerAuthorizationDenied. I have tried the following but it still not work. Add NSBluetoothAlwaysUsageDescription in plist Manually add my daemon program to the Security & Privacy > Bluetooth Is there any way to make the Bluetooth function to work?
Asked
by Eddie Hua.
Last updated
.