bluetooth-lowenergy

Windows 8 Bluetooth Low Energy API example

浪子不回头ぞ 提交于 2019-12-10 10:18:00
问题 Has anyone found a good example of how to discover, connect, and disconnect BLE devices on Windows 8 using C/C++? I'm not sure how to get a device handle to use with the "Bluetooth Low Energy Functions" API http://msdn.microsoft.com/en-us/library/windows/hardware/hh450825(v=vs.85).aspx 回答1: The Windows 8 Bluetooth GATT apis requires that the device be paired using the built-in UI and does not allow application to connect to an arbitrary Bluetooth LE device. Source: MSDN Forum 回答2: MSDN has

[iOS][BLE] Get negotiate MTU

烂漫一生 提交于 2019-12-10 10:15:06
问题 I'm currently developing a BLE App in iOS. In my application I need to implement a segmentation protocol to send large datas using BLE. My application need to have the Central role. My issue is that I can't get the negotiate MTU. I can get the maximumWriteValueLength of my peripheral but it is bigger that mine and can't find the maximumWriteValueLength of my central object. Did someone know a way to find the negotiate MTU or a way to access the CBCentral object of my CBCentralManager? 回答1:

Missing socket.AF_BLUETOOTH in Anaconda Python?

做~自己de王妃 提交于 2019-12-10 09:48:00
问题 I'm trying to use socket.AF_BLUETOOTH as explained here: https://docs.python.org/3.3/library/socket.html I have Python 3.3.5 :: Anaconda 2.1.0 (x86_64) on Mac OS X 10.10.2 and the socket module doesn't seem to contain any AF_BLUETOOTH reference: In [1]: import socket In [2]: socket.AF socket.AF_APPLETALK socket.AF_INET socket.AF_IPX socket.AF_SNA socket.AF_UNIX socket.AF_DECnet socket.AF_INET6 socket.AF_ROUTE socket.AF_SYSTEM socket.AF_UNSPEC Can anyone help? 回答1: The docs say: Depending on

How to read a BLE Characteristic Float in Swift

∥☆過路亽.° 提交于 2019-12-10 09:03:42
问题 I am trying to connect to a Bluetooth LE / Bluetooth Smart / BLE health device's Health Thermometer Service (0x1809), as officially described here: https://developer.bluetooth.org/gatt/services/Pages/ServiceViewer.aspx?u=org.bluetooth.service.health_thermometer.xml. Specifically, I'm requesting notifications from the Health Thermometer Characteristic (0x2A1C), with description here: https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth

BLE Device disconnect with Android device automatically. Android BLE

99封情书 提交于 2019-12-10 01:59:02
问题 I'm using Android Nexus 7 to connect a device via Bluetooth Low Energy link. I'm able to connect the device, and stay connected if I don't do any communication with the device. However, if I enable the notification of one specific characteristic by clicking a button, then the device would disconnect with the tablet after a few seconds' data transmission. Does anyone know what might be the problem? Thank you very much! Here's my code: public boolean setCharacteristicNotification(boolean

What is the proper method for reading a GATT characteristic in Android?

天涯浪子 提交于 2019-12-10 01:58:44
问题 In attempting to read the value of a Bluetooth Low-Energy GATT characteristic in the Android API 18, I came across the following dilemma: What is the proper way to retrieve the value stored in a characteristic? And at which level of the stack should this action take place? In conducting my own research, I stumbled upon what I understand are two possible methods: BluetoothGatt .readCharacteristic(BluetoothGattCharacteristic characteristic) BluetoothGattCharacteristic .getValue() public void

BLE Scan Stop when Mobile Screen off in android 8.1.0

二次信任 提交于 2019-12-09 22:19:38
问题 I put this permission in manifest file. <uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> This is a Start scan method. When Screen is on scanning works fine. But when Screen goes to off, scanning stops and resume back when screen is on again. I tried this

How to discover Bluetooth Low Energy Device(BLE) from Windows Phone 8.1

久未见 提交于 2019-12-09 20:59:18
问题 I am writing a Silverlight Windows Phone 8.1 application, I am trying to connect with Bluetooth Low Energy(BLE) device from Windows Phone 8.1, the device is "HEART RATE", but I'm not getting the result. See my code below. protected async override void OnNavigatedTo(NavigationEventArgs e) { var devices = await DeviceInformation.FindAllAsync(GattDeviceService.GetDeviceSelectorFromUuid (GattServiceUuids.HeartRate)); if (devices.Count > 0) { } } I have also added capability in appmanifest file.

Android 4.4 BLE Scanning lack of stability

青春壹個敷衍的年華 提交于 2019-12-09 18:59:15
问题 Would a Bluetooth LE Jedi know any trick how to get a reliable BLE scanning mode on cheap Android 4.4 devices ? Everything works fine from Android 5 to 6, and most of the Android 4.4 phones... However, on some cheap phones with 4.4 we encounter random issues, some phones do not detect anything, or sometimes just a few beacons among others, depending on environment, daytime, weather, or whatever... It's obviously due to a poor software or hardware on this side, but is there any trick to make

Handling indications instead of notifications in Android BLE

非 Y 不嫁゛ 提交于 2019-12-09 17:08:49
问题 Using the Bluetooth SIG Application Accelerator code and it does a good job of demonstrating the different concepts of bluetooth low energy. However, in mentions nothing about indications as opposed to notifications. I know that indications need to be acknowledge unlike notifcations, and in the code I would do byte[] val = enabled ? BluetoothGattDescriptor.ENABLE_INDICATION_VALUE : BluetoothGattDescriptor.DISABLE_INDICATION_VALUE; instead of byte[] val = enabled ? BluetoothGattDescriptor