bluetooth-lowenergy

IOS Bluetooth BLE writevalue return “Unknown error”

限于喜欢 提交于 2019-12-11 10:23:37
问题 I am developping my first Smart Bluetooth (BLE) software on IOS 6. I am able to receive notifications and read chracteristics values exchanged with a Nordic Development kit including from a custom GATT profile I have created (with specific UUIDs for service and characteristics). But, everytime I am trying to write a value in a characteristic, I get the error message Unknown Error without more information. No error code, no CoreBluetooth[WARNING] from XCode. I have set my service and

CoreBluetooth advertisement error

心已入冬 提交于 2019-12-11 10:19:41
问题 I have a strange error when attempting to advertise some service data. func locationManager(manager: CLLocationManager, didRangeBeacons beacons: [CLBeacon], inRegion region: CLBeaconRegion) { if let beacon = beacons.first, username = NSUserDefaults.standardUserDefaults().objectForKey("username") { var major = beacon.major.integerValue var minor = beacon.minor.integerValue let advertismentData:[String:AnyObject] = [ CBAdvertisementDataServiceUUIDsKey:[AppDelegate.MajorUUID, AppDelegate

Null pointer exception error sending a characteristic BLE android

久未见 提交于 2019-12-11 10:19:09
问题 I'm a new android developer and I'm trying to send a data using BLE 4.3 , based on Gatt android sample project. I use characteristics to put the data that i want to transmit. When I try to transmit, I use the third service in the list of DeviceControlActivity of the project, appears a text dialog to introduce text. When I press OK, the idea is that start the transmission, but I obtain a NullPointerException error. I don't know why appears this error and how can I solve this. This is my full

calculate distance from beacon when user is moving in a vehicle

我与影子孤独终老i 提交于 2019-12-11 10:15:32
问题 How to calculate distance using BLE beacons if the user is moving in a vehicle with 2-15kmph speed?Also,if the distance won't give me accurate results is there any other mechanism with the help of which I can calculate the nearest beacon.The default implementation does not give me proper results as there is a 20sec lag in distance estimates. Secondly,in which cases should ARMA filter be used. 回答1: Beacon distance estimates are only estimates, so you must set accuracy expectations accordingly.

Retrieving Android BluetoothLE device information (Major / minor / identifier / ProximityUUID) on scan?

﹥>﹥吖頭↗ 提交于 2019-12-11 10:05:44
问题 I've been looking around and unfortunately the android ibeacon library has been deprecated, so I am attempting to do this native. I have implemented the BluetoothAdapter.LeScanCallback and the built in onLeScan() method that will fire when a device is picked up. I would like to read in that device's ProximityUUID, major and minor characteristics and identifier. I'm not sure how to get that information out of the Android object BluetoothDevice. How do I extract that information (ProximityUUID,

RxAndroidBle - Auto connect issue

拈花ヽ惹草 提交于 2019-12-11 09:48:00
问题 I am using RxAndroidBle library: This code is working fine as expected, on click of Connect button on UI, it establishes connection. Issue coming up when I wanted the auto-connect to the device when the device comes back to range. I don’t want to click on Connect button again. is there any functionality exists like that ? does ’true’ flag helps me here, if yes, how to implement it ? Suggestion please. rxBleDevice.establishConnection(true); If I use rxBleDevice.establishConnection(true) ,

Link Layer state for more than one simultaneous connection

北战南征 提交于 2019-12-11 09:46:13
问题 If I understood the Link Layer correctly, it is always exactly in one of the five states "Standby", "Advertising", "Scanning", "Initiating", or "Connected". So how is it possible that I can connect to two devices simultaneously? When I am connected to one device, the Link Layer is in "Connected" state. To connect to another device, it would have to switch to "Initiating" or "Advertising" state (depending on its GAP role), while maintaining the "Connected" state to the already connected device

unable to connect bluetooth device in ios 8 even existing code not finding bluetooth and main thing it woring very fine on ios 7

我怕爱的太早我们不能终老 提交于 2019-12-11 09:45:49
问题 problem to connect Bluetooth device like wristband in ios 8 even existing code not finding Bluetooth and main thing it working very fine on ios 7..my code is as suggest me any idea or changes in ios 8 for Bluetooth.. -(void)connecttodevice { // Scan for all available CoreBluetooth LE devices NSArray *services = @[[CBUUID UUIDWithString:info_UUID],[CBUUID UUIDWithString:info_UUID_service],[CBUUID UUIDWithString:BAND_SERVICE_INFO]]; NSLog(@"device connting....."); CBCentralManager

Bluetooth Speaker Playback and control by using Dual mode capability in iOS device ? without using iAP protocol

余生颓废 提交于 2019-12-11 09:28:37
问题 I have researched a lot and yet have doubts with respect Bluetooth dual mode accessory working with iOS device. help by any expert who has experience in the following case is appreciated. i need the feasible solution which can get the work done and App should not be rejected while uploading to app store . i have stated constraints and my solution let me know if this is valid . Existing Resource : i have a Bluetooth speaker which is MFI Certified and supports A2DP and AVRCP profiles , it

How does BLE scanning work for altbeacon library on Oreo?

冷暖自知 提交于 2019-12-11 09:03:11
问题 Before Android L Android Altbeacon library used background running services to scan BLE beacons. Default scan times are 1.1 seconds in a loop in the foreground and 10 seconds every 5 mins in the background. Also for background tasks alarm manager is used to wakeup the app. I was looking at how similar setup works in Android Oreo given that long-running background services are not allowed. I was going through http://www.davidgyoungtech.com/2017/08/07/beacon-detection-with-android-8 and it did