ibeacon

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

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

Can a HTC advertise itself as a BLE Beacon?

拈花ヽ惹草 提交于 2019-12-17 19:38:00
问题 Ive been doing some work around BLE and iBeacons. At present I'm aware that you can turn your iPhone into an iBeacon but I have not come across any details of whether this is possible with an Android phone - specifically a HTC One as that the one I've got ;) Any advice, details or web links on this matter would be appreciated, Thanks, Steve 回答1: Android devices have a public APIs to transmit BLE advertisements only starting with Android 5.0. You would need to install this operating system on

Obtaining Bluetooth LE scan response data with iOS

与世无争的帅哥 提交于 2019-12-17 19:25:06
问题 I am working with Bluetooth Low Energy devices, and I was wondering whether it is possible to read the Scan Response Data to an advertisement with iOS and Core Bluetooth without connecting. I understand that after reading an advertisement packet, you can request additional data from the peripheral in the format of a 31 byte scan response. I know that Core Bluetooth suggests that if the ad packet is full, you can put the local name in the scan response packet, but does it allow you to see the

iOS CoreBluetooth / iBeacon: Advertise an iBeacon and a peripheral service concurrently

天涯浪子 提交于 2019-12-17 18:39:56
问题 I'm writing an application for iOS that requires that the application advertise both an iOS iBeacon as well as advertise peripheral service concurrently. It's necessary that the service is advertised rather that simply discoverable on the peripheral because the use case requires the central (in BLE parlance) connect to the peripheral after being woken up by iOS (but still in the background) due to proximity to the iBeacon. Apps running in the background on centrals can only discover

Search for all iBeacons and not just with specific UUID

ぐ巨炮叔叔 提交于 2019-12-17 17:29:26
问题 Is it possible to search for all iBeacons which are nearby? I know it's possible to search iBeacons by UUID. But i want to find all iBeacons nearby. 回答1: An iBeacon is a region, and has as defining property the UUID. Therefore, you can only search for the ones matching a UUID. After you find one or more with a specific UUID, you can figure out which is closest using the delegate callbacks, where the beacons are stored in an array ordered by distance. There is great sample code on this and

How to bring application to foreground in ios?

£可爱£侵袭症+ 提交于 2019-12-17 16:37:35
问题 I am detecting for iBeacon in background. When my device comes in a particular region application should comes to foreground. 回答1: It cannot be done without user interaction. The only option is you can generate a push notification to tell the user to bring the application to foreground. This is from the Apple documentation about this issue: When the operating system delivers push notification (iOS or OS X) and the target application is not running in the foreground, it presents the

Can we start an iBeacon transmitter in the background?

我怕爱的太早我们不能终老 提交于 2019-12-17 15:56:31
问题 I have an iPhone app, in which I have created a transmitter and a receiver, both. But, the transmitter stops transmitting when the screen is locked or the app is sent to the background. Can I keep transmitting (a.k.a. advertising, broadcasting) while still in the background? 回答1: Unfortunately, no. iOS does allow background advertising of Bluetooth Services, but only using a proprietary technique that breaks the iBeacon advertising format. As a result, if your app starts transmitting as an

Run iPhone as an iBeacon in the background

萝らか妹 提交于 2019-12-17 14:59:14
问题 Is it possible to run an iOS 7 device as a Bluetooth LE peripheral (iBeacon) and have it advertise in the background? I have been able to get it to advertise in the foreground with the code below and can see it from another iOS device but as soon as I go back to the home screen it stops advertising. I did add the bluetooth-peripheral background mode in the plist but that didn't seem to help although I do get the prompt saying the device wants to use bluetooth in the background. Am I doing

iBeacon: didRangeBeacons stops getting called, must reset device for it to work again

梦想的初衷 提交于 2019-12-17 04:07:50
问题 I am using a custom BeaconManager delegate so that beacon ranging is not determined by the life-cycle of the view controller. Everything works great but every once in a while (1-2 days) beacon ranging will stop working and didRangeBeacons will never get called. The only way to fix this is for me to reset my iPhone, once I do this, it works perfectly. Below is the code that I am using. The basic flow is that when my ViewController calls ViewDidLoad it sends a notification back to the