bluetooth-lowenergy

GATT profile and UART service

非 Y 不嫁゛ 提交于 2021-02-07 13:27:28
问题 I am new to developing a mobile app with bluetooth connection to peripheral device. I searched that GATT is the relevant profile used for bluetoothLE communication but our client recommended that we use UART service. Now I am confused as to 1. how these two things are related and 2. Do we have to opt for one of these, if so, what are the pros and cons of each. Thanks 回答1: Legacy Bluetooth provides the serial port profile (SPP) - This is essentially a serial input/output stream over Bluetooth.

GATT profile and UART service

霸气de小男生 提交于 2021-02-07 13:26:58
问题 I am new to developing a mobile app with bluetooth connection to peripheral device. I searched that GATT is the relevant profile used for bluetoothLE communication but our client recommended that we use UART service. Now I am confused as to 1. how these two things are related and 2. Do we have to opt for one of these, if so, what are the pros and cons of each. Thanks 回答1: Legacy Bluetooth provides the serial port profile (SPP) - This is essentially a serial input/output stream over Bluetooth.

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

How to bond/pair to a bluetooth LE device programmatically in swift Xcode?

試著忘記壹切 提交于 2021-02-07 09:10:39
问题 I am currently trying to develop and application that allows users to bond to a Peripheral via a click of a button and the password will be automatically entered. Is it possible to Bond and Remove Bond programmatically using swift? 回答1: Pairing is initiated any time that you attempt to write to or read from a characteristic on the BLE device. However, if the device is not set to require authentication and/or bonding, you will not see the iOS popup which requests the PIN code. I struggled with

How to bond/pair to a bluetooth LE device programmatically in swift Xcode?

我的梦境 提交于 2021-02-07 09:10:34
问题 I am currently trying to develop and application that allows users to bond to a Peripheral via a click of a button and the password will be automatically entered. Is it possible to Bond and Remove Bond programmatically using swift? 回答1: Pairing is initiated any time that you attempt to write to or read from a characteristic on the BLE device. However, if the device is not set to require authentication and/or bonding, you will not see the iOS popup which requests the PIN code. I struggled with

How to bond/pair to a bluetooth LE device programmatically in swift Xcode?

放肆的年华 提交于 2021-02-07 09:10:19
问题 I am currently trying to develop and application that allows users to bond to a Peripheral via a click of a button and the password will be automatically entered. Is it possible to Bond and Remove Bond programmatically using swift? 回答1: Pairing is initiated any time that you attempt to write to or read from a characteristic on the BLE device. However, if the device is not set to require authentication and/or bonding, you will not see the iOS popup which requests the PIN code. I struggled with

What's the maximum length of a BLE Manufacturer Specific Data AD?

风流意气都作罢 提交于 2021-02-07 06:12:49
问题 A BLE advertisement can send out 31 bytes at max. Inside an advertisement, there might be several ADs. I'm wondering whether it is valid to make an advertisement contains just one Manufacturer Specific Data AD, and whether this kind of AD can fill up all the 31 bytes(1 byte of length field, 1 byte of type field(0xff), 2 bytes of CIC and 27 bytes of custom data). Is the Bluetooth Core Specification or any other specification specify this? 回答1: From the spec- Supplement to the Bluetooth Core

What's the maximum length of a BLE Manufacturer Specific Data AD?

六眼飞鱼酱① 提交于 2021-02-07 06:12:43
问题 A BLE advertisement can send out 31 bytes at max. Inside an advertisement, there might be several ADs. I'm wondering whether it is valid to make an advertisement contains just one Manufacturer Specific Data AD, and whether this kind of AD can fill up all the 31 bytes(1 byte of length field, 1 byte of type field(0xff), 2 bytes of CIC and 27 bytes of custom data). Is the Bluetooth Core Specification or any other specification specify this? 回答1: From the spec- Supplement to the Bluetooth Core

Unique identifier for peripheral BLE device

半世苍凉 提交于 2021-02-06 11:25:43
问题 So I have peripheral BLE device and I need some identifier for it to later share with another iPhone. Example I connect with iPhone 'A' to peripheral. iPhone 'A' saves peripheral's identifier to database and later I easily can take iPhone 'B' and connect to the peripheral found by this identifier. Now there is UUID what changes for every iPhone-peripheral connection, but MAC Address is not available. What could you suggest? 回答1: If you do not manufacture the peripheral yourself then you can