bluetooth-lowenergy

Bluetooth LE TX Power reading

强颜欢笑 提交于 2019-12-06 13:21:34
问题 How do i get a bluetooth device's TX power reading? I have a bluetooth device, and some calibration software. I'd like to understand if Tx is 4db or Tx is -40db what does it mean? 回答1: The Tx power of a BLE device is usually made available in the Tx Power service 0x1804 and Tx Power Level Characteristic 0x2A07. Take a look at this page as it shows how the Tx Power Level is encapsulated in the Tx Power service. So, from your Android code you should scan for available services, and once you

BTLE 4.0 - ConnectBlue Low Energy Serial Port Service

半腔热情 提交于 2019-12-06 13:05:12
问题 I am looking for a way to load data from an embedded device via a serial port (RS232) to an iPhone. The app needs to be on the AppStore and our company is not part of the MFI program. Before you say, it can't be done, we are looking into Bluetooth Low Energy 4.0 as a possible solution. We can create a device that can turn ConnectBlue's OBS421 module into a serial port adapter (with the speed bursts limitation). To that effect, connectBlue provides their own protocol called Serial Port Service

How to send the text data to CC2541 keyfob via Android 4.3?

百般思念 提交于 2019-12-06 12:57:49
I am developing an application where I have to connect to Bluetooth device on Android 4.3. And I want to change the name of CC2541 Keyfob via the Android application. My ideas is: 1.There has a Plain Text that I can type the name what I want in my Android application. 2.After I type the name, I push the button to send this text. 3.If the CC2541 receive this text from Android application , it will change the text in the deviceName[] of the following code in keyfobdemo.c: static uint8 deviceName[] = { // complete name 0x0b, // length of first data structure (11 bytes excluding length byte) 0x09,

Android 4.3: How to connect to multiple Bluetooth Low Energy devices?

爷,独闯天下 提交于 2019-12-06 12:47:42
问题 Task: I am developing an Android application that will need to simultaneously connect to multiple (identical, that can be differentiated via their ID) BLE chip devices in order to send and receive updates. I have used the tutorials on Google's official web page: http://developer.android.com/guide/topics/connectivity/bluetooth-le.html This has helped me to create a DeviceScanActivity Java class that allows me to scan for and list all of the available BLE devices in close proximity, similarly

getBluetoothLeAdvertiser() returns null

坚强是说给别人听的谎言 提交于 2019-12-06 12:43:53
BluetoothLeAdvertiser advertiser = BluetoothAdapter.getDefaultAdapter().getBluetoothLeAdvertiser(); This returns null. I have tried on an API 21 and on an API 23 device, but with the same result. I have no idea what I am missing? The app builds and runs just fine, until of course the advertiser is used and the app crashes. I appreciate any help provided! :) If you check the developer docs, link here . You'll see that the null object is returned in the following case: Returns a BluetoothLeAdvertiser object for Bluetooth LE Advertising operations. Will return null if Bluetooth is turned off or

CoreBluetooth Functions not working from Singleton

我的未来我决定 提交于 2019-12-06 12:01:29
问题 So I currently got a bluetooth connection setup between a iPad and iPhone. I've created my testcode in the ViewController and everything works fine. Now I moved it to 2 manager classes one for the CBCentralManager and one for the CBPeripheralManager above those to classes I made a BluetoothManager which is a singleton class and holds some information regarding currently connected devices. However when doing this I'm facing a problem it seems like the centralManager.connect() call doesn't

How to pass any object from activity to service?

情到浓时终转凉″ 提交于 2019-12-06 11:50:16
问题 I want to pass object of "BluetoothDevice" class from an activity to service. I am getting syntaxes for passing Strings or any primitive types but not passing objects. Please Help. Thanx in advance. 回答1: you should create a class containing your data to be passed and extend that from Serializable or Parcelable and then you can put an object of that class as an Extra to your Intent and use it in your Service EDIT : as rom4ek mentioned, BluetoothDevice is already implements Parcelable and all

Bluetooth Low Energy app failed to write characteristics on iOS 7

可紊 提交于 2019-12-06 11:48:59
I have a Bluetooth Low Energy (BLE) app that communicates with a BLE device through open connection. I am using CoreBluetooth library. After I upgraded my iPhone to iOS 7 and XCode to XCode 5. I recompiled my Bluetooth Low Energy app and found it no longer working. The connection is successful. The services and characteristics are discovered with no problems. Even the reading of the characteristics seems fine. But writing to a characteristic which should trigger some action on the BLE device has not any effect. If I use XCode to download the same app to another iPhone with iOS 6 , everything

Event handler handling events out of order

孤者浪人 提交于 2019-12-06 11:37:32
问题 I'm doing some work with a radio microcontroller (BLE). The mechanism supported in .NET's GenericAttributeProfile namespace, is to use an EventHandler whenever new data comes in (notifications). A problem I'm currently seeing is that, despite my data being sent in order from the radio hardware, the data does not necessarily get dealt with in that order. I'm guessing this is due to the asynchronous manner in which the EventHandler is invoked (please correct me if I'm wrong). Every time a new

Read/Write custom characteristic from BLE device

删除回忆录丶 提交于 2019-12-06 11:36:44
I'm trying to interact with a temperature meter BLE device using Android Studio as IDE and Java as programming language. Using an app on my smartphone I discovered the services that this device exposes during its functioning: there were a lot of generic services/characteristic and one custom service. First of all I tried to read the HEALTH THERMOMETER service (UUID = 00001809-0000-1000-8000-00805F9B34FB) TEMPERATURE MEASUREMENT characteristic (UUID = 00002A1C-0000-1000-8000-00805F9B34FB) [marked as INDICATE] recovering the characteristic from the list of services and accessing to its