Bluetooth Low Energy: listening for notifications/indications in linux

Try this… Run gatttool -b <MAC Address> –interactive like you did before. You’ll get a prompt and then you type connect. You should see a CON in the prompt indicating that you’ve connected to the device. Then type char-read-uuid 2902. You should get a list of all CCC (Client Characteristic Configuration) attributes on the device. … Read more

Communicating between iOS and Android with Bluetooth LE

I’ve already gone through this for at least one week having this same issue. I’ve already asked a question here and I’ve already answered on my own. The main problem is an Android BUG issue. It’s sending a non permitted command on a fixed L2CAP channnel. But when Android is communicating with normal peripheral BLE … Read more

Bluetooth Low Energy startScan on Android 6.0 does not find devices

I struggled with the same issue. To fix it you have to enable “Location” (GPS) in the settings of the phone as well as request location permission in the app at runtime. Both need to be done for scanning to work properly. To request the location permission put the following in a dialog or the … Read more

Creating background services for Bluetooth low energy on Android

This functionality has all been moved to the open source Android Beacon Library which will: wake up/launch your app when iBeacons matching a desired pattern are detected perform beacon scanning in the background even if the user has not launched your app yet reduce the scan rate automatically in the background to 30 seconds every … Read more

Use BlueZ Stack As A Peripheral (Advertiser)

With your Bluetooth dongle plugged in, running the following command will tell you the device name and give its state: $ hciconfig The output should look something like this: hci0: Type: BR/EDR Bus: USB BD Address: 00:01:02:aa:bb:cc ACL MTU: 1021:8 SCO MTU: 64:1 DOWN RX bytes:1000 acl:0 sco:0 events:47 errors:0 TX bytes:1072 acl:0 sco:0 commands:47 … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)