bluetooth-lowenergy

iPhone 4S - BLE data transfer speed

梦想与她 提交于 2019-12-18 13:37:07
问题 I've been tinkering around with the BLE (Bluetooth Low Energy) connectivity classes quiet a bit lately and haven't been able to make it transfer data any faster than 1KB / 5 seconds. I believe, in the documentation, it says the max speed is 60 bytes per 20 milliseconds. With data transfer and counting the Ack transfer after each set of packets, I believe we should be able to go as fast as 1.5KB per second. So my code is around 7-8 times slower than it should be. I'm just wondering if anyone

BLE background reconnect

≯℡__Kan透↙ 提交于 2019-12-18 13:32:14
问题 I want to reconnect to BLE device after device is moved out/terminated by user or system/reboted in background mode. I know that it's possible : - see this question with description Question - How can i setup centralManager for automatically reconnect to peripheral in background mode if app was terminated? Can someone describe step-by-step how it can be done? Few word about current implementation: I create centralManager with options like: self.centralManager = [[CBCentralManager alloc]

Wrong payload when using BlueZ stack as peripheral

时光怂恿深爱的人放手 提交于 2019-12-18 13:31:09
问题 I tried to follow the steps provided by davidgyoung in this question. Here are the commands I use: hciconfig hci0 up hciconfig hci0 noleadv hcitool -i hci0 cmd 0x08 0x0008 48 45 4c 4c 4f 57 4f 52 4c 44 hciconfig hci0 leadv Which gives me this output: LE set advertise enable on hci0 returned status 12 < HCI Command: ogf 0x08, ocf 0x0008, plen 10 48 45 4C 4C 4F 57 4F 52 4C 44 > HCI Event: 0x0e plen 4 01 08 20 12 Note that I can't use the advised command hciconfig hci0 leadv 0 because it will

BLE peripheral throughput limit

拜拜、爱过 提交于 2019-12-18 13:13:18
问题 We are developing a BLE sensor Peripheral to work with an iPad, that requires the following throughput of data on the BLE notification characteristic (no acknowledge) using a TI CC2541 BLE module and a custom profile: One 20 bytes (GATT maximum standard packet) every 10ms, or since we appear to have a limit of 4 packets per connection interval, this equates to one connection interval every 40ms. Throughput required is 2,000 bytes per second, the TI website recommends the CC2541 BLE solution

How to improve Bluetooth distance measuring using RSSI?

≯℡__Kan透↙ 提交于 2019-12-18 12:00:10
问题 For my project I need to estimate the distance between a Smartphone and a bluetooth module. The Estimation doesn't have to be very precise. I only need to determine the distance with a margin of error of about 50cm . I did test the RSSI of two bluetooth modules at distance-steps of 10 cm. I measured the RSSI 5 times for each step and got the average of the 5 measurements. The averages are shown in the graph below: The red and blue lines resemble the two Bluetooth modules. You can see that the

Bluetooth Low Energy in C - using Bluez to create a GATT server

我只是一个虾纸丫 提交于 2019-12-18 11:59:27
问题 I'm attempting to use GATT on my Linux box to set up a custom service with a load of characteristics. Using this question, and the ones it links to, I was able to identify the code that I would need to write (making use of the gatt_service_add() function). I've created a separate file called gatt_service.c, and written the code I think that I need. However, I cannot work out how to link my code to the Bluez libraries in order to compile and run my solution. For example this site (whilst not

Android 4.3 BTLE as server: How to start advertisements?

两盒软妹~` 提交于 2019-12-18 10:53:16
问题 I am trying to implement a BTLE SERVER on the Nexus 7 with the new BTLE API in 4.3. I am running into several problems. First there are no examples with the SDK. The only example is for a client. Second, the documentation actually tells you to do the wrong thing. It states that one must use the BluetoothAdapter.getProfileProxy() with a BluetoothProfile.GATT_SERVER parameter to obtain the BluetoothGattServer object. This approach will work, but one will be unable to link one's implementation

Bluetooth Low Energy Connection Parameters for Android, iOS and Win8

≡放荡痞女 提交于 2019-12-18 10:29:36
问题 I've been looking all over the place for the required bluetooth connection parameters that will work for all three of these operating platforms. I'm using the HOGP (Bluetooth over HID GATT) profile for this project. My project is an embedded system written by myself with a BLE module that I have control over the following parameters for connection. Connection Interval Min Connection Interval Max Slave Latency Supervision Timeout Advertising Interval Min Advertising Interval Max My target

Not able to scan Through CBCentral Manager with service ID for iBecon Signal

独自空忆成欢 提交于 2019-12-18 09:09:10
问题 Working on iBecon signal using Core Bluetooth i am able to search with CBCentralManager scan optionn nil :- Shared.sharedInstance.centralManager?.scanForPeripherals(withServices: nil, options:[CBCentralManagerScanOptionAllowDuplicatesKey:true]) But when i provide my desirable service ID i.e :- Shared.sharedInstance.centralManager?.scanForPeripherals(withServices: [serviceID], options:[CBCentralManagerScanOptionAllowDuplicatesKey:true]) it never calls didDiscoverPeripheral Delegate method, I

OBJ-C how-to: App using BLE connection and iBeacon in same device

≡放荡痞女 提交于 2019-12-18 08:31:36
问题 I have a use case where my objective-c application needs to immediately use iBeacon after it's been terminated in order to wake the application up from a terminated state, connect to BLE and send a command to the device. I have a larger longer running post found here that you can check out for my code if need be. The Problem The problem so far, happens when I run the application, search for previously paired devices and/or scan for peripherals, find my BLE device and connect. Once connected