bluetooth-lowenergy

Core Bluetooth LE and Classical in iOS

六月ゝ 毕业季﹏ 提交于 2019-12-11 05:58:32
问题 I'm research about Core Bluetooth. And I have any questions, could you please help me explain more about this: What's difference between Core Bluetooth LE and Classical ? I can implement Core bluetooth LE to connect other iOS devices ? Is UUID used to? How can get UUID of devices? Now, i need to implement application allow connect to count step device and get data from it. How can i do that? That device using Bluetooth LE. If can, you can show me tutorial or example code? Thanks so much. 回答1:

Randomize Mac Address Bluetooth LE Broadcast

非 Y 不嫁゛ 提交于 2019-12-11 05:51:51
问题 As far as I know some android phones today can act as BLE beacon (this feature is usually disabled in most devices ) . When an android device is acting as a beacon and is discoverable , is it's MAC address randomised ? Can we in any way not show the actual MAC id when the device is discoverable ? 回答1: Most newer Android devices with 5.0+ have support for Bluetooth LE peripheral mode, meaning they can transmit as beacons. The feature is present in Android 5.0+, but some manufacturers have

Handler post execute queue not in correct order

China☆狼群 提交于 2019-12-11 05:37:36
问题 i'm working on android application which have communication with Bluetooth BLE device (with custom protocol which was developed specific for our product). after i connect to the device i have callback public void onCharacteristicChanged(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic) which get triggered each time the device want to send me data. In app architecture we have actions (for example getDeviceStatus() ), the protocol working in following way: phone connect to device

Can you access a bluetooth device via the ExternalAccessory framework after pairing with CoreBluetooth?

别说谁变了你拦得住时间么 提交于 2019-12-11 05:35:14
问题 I have a Bluetooth device enrolled in the MFi program. I am able to pair the device via Bluetooth in the iPhone settings, and then use Apple's EADemo example code to access the device via the ExternalAccessory framework. However, I'm wondering if it's possible to first silently pair in the background via CoreBluetooth , and then use the ExternalAcessory framework to communicate with the device? I've run some experiements and after pairing with CoreBluetooth , the ExternalAcessory framework

How to subscribe to multiple BluetoothLE Characteristics with Android

≡放荡痞女 提交于 2019-12-11 05:02:13
问题 I am developing an Android app which should subscribe to multiple BLE characteristics. But whatever I do, I receive only the updated values from one characteristic. Here is the code: BluetoothGattCharacteristic characteristicVel = gatt.getService(BleDefinedUUIDs.Service.KOMMMODUL_SERVICE).getCharacteristic(BleDefinedUUIDs.Characteristic.VELOCITY); gatt.setCharacteristicNotification(characteristicVel, true); BluetoothGattDescriptor descriptorVel = characteristicVel.getDescriptor(

BLE: image transfer between 2 ios devices using CoreBluetooth

可紊 提交于 2019-12-11 04:57:52
问题 So i have 2 iOS devices : one is Peripheral and the other Central. I want that the data would be image. I have tried with a string value and it is working fine but with image i get this error:"read_user_chunkIDOT:1221: invalid PNG file: no valid iEnd chunk", also i can see that the bytes are different( Optional(526 bytes)), they are more larger when i get them. This is the peripheral: if let img = UIImage(named: "maiden") { let data = UIImagePNGRepresentation(img) let base64 = data?

Can BLE iOS device be peripheral and central at the same time?

倖福魔咒の 提交于 2019-12-11 04:52:44
问题 Is there any possibility to have both peripheral and central mode available at the same time? In that case we are advertising as peripheral while listening for advertisements of other devices. Thanks 回答1: Yes - You can Althpough the same device being central and peribheral at the same time is not standard as pe Bluetooth current specification, iOS currently supports it 来源: https://stackoverflow.com/questions/14599784/can-ble-ios-device-be-peripheral-and-central-at-the-same-time

Bluetooth LE GattDeviceServicesResult TypeLoadException from WPF application

我的梦境 提交于 2019-12-11 04:38:01
问题 I'm building a WPF app in Visual Studio 2017, running Windows 10 version build 10586.164, and trying to connect to a bluetooth LE device. I've added references to: System.Runtime.InteropServices.WindowsRuntime.dll System.Runtime.WindowsRuntime.dll System.Runtime.WindowsRuntime.UI.Xaml.dll from C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETCore\v4.5. I also added references to: C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Facade\Windows.WinMD C:\Program Files (x86)

How can sensor data be embedded in the advertising packet of the TI SensorTag cc2650?

倖福魔咒の 提交于 2019-12-11 04:35:38
问题 I'm trying to make the TI SensorTag (cc2650) connectionless (just constantly advertise sensor, like accelerometer, readings). In the SensorTag.c file in the base SensorTag project, I can see the static uint8_t advertData[] but I'm not sure if I can put dynamic sensor data in there (or if that's the right approach or where to find the GAP_ADTYPE_* list if that's needed). 回答1: I do not know anything about this device so my answer will be quite general. Yes you can broadcast your sensor's data

Bluetooth Low Energy connection

独自空忆成欢 提交于 2019-12-11 04:14:10
问题 I'm trying to develop an app for Win 8.1 PC to communicate with my BLE device. I read that in Win 8 there is no something like scanning functionality for BLE so I read some examples from MS and try to simple connect to my device with UUID: "A9DA45B4-34F8-C660-591D-F6918B5B988C" So I write some code based on ms examples: var devices = await DeviceInformation.FindAllAsync( GattDeviceService.GetDeviceSelectorFromUuid(new Guid("A9DA45B4-34F8-C660-591D-F6918B5B988C")), new string[] { "System