Bluetooth device capabilities

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
fagci
Posts: 80
Joined: 03 Feb 2017 13:06
Location: Novosibirsk, RU
Contact:

Bluetooth device capabilities

Post by fagci » 03 Sep 2017 04:29

Some time ago, I wrote python code for my Nokia 3250 to get near BT devices with their abilities (audio transmission, modem, etc.).

How can I achieve this by Automagic?

I already made a flow, which logs near BT devices, but so far, it logs while scanning process run by hand.
All systems nominal.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Bluetooth device capabilities

Post by Desmanto » 03 Sep 2017 06:39

How do you log the nearby BT devices? Afaik Automagic only supplied more detail variables with Trigger Bluetooth Connected/Disconnected. Which mean we have to connect/disconnect in the process. Not like wifi, where we can just simply scan only. Bluetooth scan only available for BLE devices.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
fagci
Posts: 80
Joined: 03 Feb 2017 13:06
Location: Novosibirsk, RU
Contact:

Re: Bluetooth device capabilities

Post by fagci » 03 Sep 2017 21:08

Not sure about BLE.
https://developer.android.com/guide/top ... h.html#HDP

I use General broadcast trigger with android.bluetooth.device.action.FOUND action
All systems nominal.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Bluetooth device capabilities

Post by Desmanto » 04 Sep 2017 15:51

I tried that trigger, It can be triggered when I open the bluetooth setting and found devices. I put this at the Intent Extra

Code: Select all

clas = getString("android.bluetooth.device.extra.DEVICE")
But debug dialog give me clas = null. How do you get the value? I tested some and haven't found the variable that can get the value from scan result.

So far I only can trigger the scan process by opening bluetooth setting. Try another method, can't replicate it. Maybe last resort is to open bluetooth setting and tap the search button periodically. But it is so distracting and can't use the phone during the scan.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply