core-bluetooth

CoreBluetooth and audio stream

与世无争的帅哥 提交于 2021-02-19 06:33:12
问题 Can I transfer audio stream from one iOS device to other iOS device (for example from 4s to new iPad) using CoreBluetooth framework. Maybe BLE is too slow fo media streaming? 回答1: Bluetooth Low Energy (BLE) is not intended to stream data ! If you want to a stream you MUST use Bluetooth 2.X+EDR and an appropriate profile. Therefore, if you want to stream audio, you need a headset or A2DP profile. CoreBluetooth API give only access to BLE devices. 回答2: Audio streaming wont work any good, since

CoreBluetooth and audio stream

我的梦境 提交于 2021-02-19 06:32:08
问题 Can I transfer audio stream from one iOS device to other iOS device (for example from 4s to new iPad) using CoreBluetooth framework. Maybe BLE is too slow fo media streaming? 回答1: Bluetooth Low Energy (BLE) is not intended to stream data ! If you want to a stream you MUST use Bluetooth 2.X+EDR and an appropriate profile. Therefore, if you want to stream audio, you need a headset or A2DP profile. CoreBluetooth API give only access to BLE devices. 回答2: Audio streaming wont work any good, since

iOS central writing is not permitted

坚强是说给别人听的谎言 提交于 2021-02-19 06:08:52
问题 I am a ios developer. I can take a value from arduino sensor. But i cannot send a message by using the following the method. [peripheral writeValue:dataToWrite forCharacteristic:characteristic type:CBCharacteristicWriteWithResponse]; " dataToWrite " value is alloc by using NSString * NSString* data = @"1"; NSData* dataToWrite = [data dataUsingEncoding:NSUTF8StringEncoding]; and the following code is full code of "DiscoverCharacteristics in service" //DISCOVER CHAR -(void)peripheral:

iOS central writing is not permitted

和自甴很熟 提交于 2021-02-19 06:07:43
问题 I am a ios developer. I can take a value from arduino sensor. But i cannot send a message by using the following the method. [peripheral writeValue:dataToWrite forCharacteristic:characteristic type:CBCharacteristicWriteWithResponse]; " dataToWrite " value is alloc by using NSString * NSString* data = @"1"; NSData* dataToWrite = [data dataUsingEncoding:NSUTF8StringEncoding]; and the following code is full code of "DiscoverCharacteristics in service" //DISCOVER CHAR -(void)peripheral:

iOS central writing is not permitted

删除回忆录丶 提交于 2021-02-19 06:07:31
问题 I am a ios developer. I can take a value from arduino sensor. But i cannot send a message by using the following the method. [peripheral writeValue:dataToWrite forCharacteristic:characteristic type:CBCharacteristicWriteWithResponse]; " dataToWrite " value is alloc by using NSString * NSString* data = @"1"; NSData* dataToWrite = [data dataUsingEncoding:NSUTF8StringEncoding]; and the following code is full code of "DiscoverCharacteristics in service" //DISCOVER CHAR -(void)peripheral:

Bluetooth 5.1 Angle of Arrival backward compatibility

流过昼夜 提交于 2021-02-10 12:46:50
问题 I am currently designing a simple indoor location project to evaluate possibilities of Bluetooth 5.1 standard. The feature I would like to use is AoA (Angle of Arrival) introduced in Bluetooth 5.1. According to the standard, AoA allows to measure position of a transmitting device (tx) by approximating the angle and measuring RSSI on a locator/receiver (rx). Since AoA is a feature newly implemented in 5.1, I understand that rx needs to support 5.1 Bluetooth standard. How about the transmitting

swift - corebluetooth writing 2 bytes

感情迁移 提交于 2021-02-08 11:35:50
问题 I getting a text input and writing it to a ble device. I don't have an issue for 1 Byte of data but I could not covert the text input value to 2 bytes and send it. How can I convert a value like 3400 to 2 bytes of UInt8 array and what should I for values below 255? For 1 byte I use: let myInt = Int(textField.text) let value: [UInt8] = [UInt8(myInt)] self.bluetoothManager.writeValue(data: Data(bytes: value), forCharacteristic: myChar!, type: .withResponse) I tried to convert like this but I

Bluetooth LE dual-mode

耗尽温柔 提交于 2021-02-07 20:19:07
问题 Is it possible for the Bluetooth dual-mode device to be discoverable by classic bluetooth at the same time as being pairable with BT LE devices? It's ok if the device can not operate with both at the same time, but should I switch the chip between those modes really? I just can not find the answer in the BT 4 Core Specification 回答1: Yes, A dual mode device can be discoverable by classic Bluetooth while being connected to a LE device. The device can also be connected to both classic and LE at

Custom BLE Advertisement on iOS

不羁的心 提交于 2021-02-07 12:22:02
问题 I'm hoping to create a BLE advertisement on iOS where I can control the advertisement on a byte level. One use case would be to mimic an iBeacon advertisement. What is the iBeacon Bluetooth Profile (I want to advertise while my app is in the background which is why I'm not using CoreLocation) I do not see a way to do this with the Core Bluetooth API. Is this correct? Are there alternatives using private API's or jailbreaking? 回答1: As the others already pointed out, there is no API on iOS that

Custom BLE Advertisement on iOS

北城以北 提交于 2021-02-07 12:21:33
问题 I'm hoping to create a BLE advertisement on iOS where I can control the advertisement on a byte level. One use case would be to mimic an iBeacon advertisement. What is the iBeacon Bluetooth Profile (I want to advertise while my app is in the background which is why I'm not using CoreLocation) I do not see a way to do this with the Core Bluetooth API. Is this correct? Are there alternatives using private API's or jailbreaking? 回答1: As the others already pointed out, there is no API on iOS that