Getting the HCI snoop logs on an unrooted Mi 9T - Redmi K20 / Xiaomi Mi 9T Questions & Answers

Hi,
I need to debug repeated connection losses between an unrooted Mi 9T and an Abbott Freestyle Libre 2 transmitter.
To do so I activated developer mode and then I activated "Bluetooth HCI Snoop Log" and restarted first bluetooth and then the phone. But I cannot find the hci snoop log file anywhere.
I don't see any entries like "BtSnoopLogOutput=true" or "BtSnoopFileName=..." in /etc/bluetooth/bt_stack.conf. If I am not mistaken I should find those entries in any case when the HCI snoop logging is activated.
Then I tried to extract the logs via adb bugreport and a python-script as described in _https://source.android.com/devices/bluetooth/verifying_debugging#debugging-with-bug-reports. Also no success. In the bugreport-file there is a "BEGIN:BTSNOOP_LOG_SUMMARY"-section but the output-file from the python-script is empty.
Does anyone know what I am doing wrong here? Does HCI snoop logging even work on unrooted phones?
Thanks for any advice...
Kind regards
Arno

I have the same issue, did you find a solution?

Related

Bluetooth beam problems receiving files/items MDA2

Hi all,
Not sure whether this has been asked before (I searched the forum for it, but couldn't find any directly related subjects):
Does anyone have problems with receiving files from other phones/MDAs using Bleutooth?
I am experiencing problems with this: I can send files to other devices using bluetooth, but somehow I can't receive any files (it fails every time I try).
I already tried with enabling/disabling the incoming port, choosing a serial profile, etc, but nothing worked.
Does anyone have a a solution?
BTW: my bluetooth connections to my headset and BT GPS mouse all work.
Thanks in advance!
Desmo.
for receiving files from a pc, you pretty much need to have BT turned on that the devices paired. For receiving files from other handsets etc, you need to ensure that your device is discoverable to other devices in the BT settings (start->settings-> connection-> BT make sure both boxed are checked)
HTH
Jim
Thnx for the reply, but I already tried that. I put Bluetooth in several modes, on and discoverable. In both modes I could only send data, but couldn't receive data from other sources like another MDA or phone.
I also tried changin the inbound and outbound COM options, didn't work either.....
Can anyone help pls pls?
I have the same problem on my o2 xda exec.
I switch on bluetooth, & make it discoverable by other devices.
I can send files no problem but when i try to receive files from another phone, the other phone says "sending failed" all the time.
Ive tried with an established partnership and without, make my device discoverable, messed with the incoming/outgoing com port settings etc etc
pretty much everything i can think of but to no avail.
Anyone else had this problem and managed to over come it?
Ahah
Sorted it.
If you upgraded to the lastes o2 rom 1.13.188 the accept incoming beams is turned off by default.
Just enable start>settings>connections>beam "enable all incoming beams"
enable bluetooth, make your device discoverable.
Now you can receive files over bluetooth.
No need to mess with com incoming/outgoing ports.
Thnx Sirius-C! That should work indeed.
BTW: 10 types of people in this world. LOL!

Restarting Bluetooth programmatically?

I'm having a problem where my phone's (XPERIA X1i) A2DP connection doesn't properly reconnect to my car's receiver most of the time. I've found that if I go into the Bluetooth settings, uncheck "Wireless Stereo" on the appropriate device, save, then recheck it, and save again, everything works well. Obviously, this is a lot of trouble, so I'd like to automate it.
I've found where the enable bits are in the registry, but I can't tell how to do the equivalent of the "save" button in the settings. I'm happy to write my own program to do this if someone can point me to the right API call. Thanks!
- Scott
PS: Although I've found A2DPToggle to be a help elsewhere, it doesn't solve my problem of reconnecting the device.

Bluetooth Monitoring Software

Hi All,
Are there such things as Bluetooth Monitoring software, that basically records a log of commands going back and forth between the HD2 and a Bluetooth Device?
The reason I ask is that I am having difficulties getting a device to talk 100% to the HD2 and I was hoping that there might be some information in a log that I could investigate why. I think it is permissions, but not 100% sure.
So, is there any software that can record this info? Or, maybe there is something built in? I found a DEBUG log in the Registry for the bluetooth, but all that records is "Stack Enabled" or something similar
Thanks,
Rob

Serial Connection to Bluesmirf Bluetooth Dongle

Hi, I'm working on an app which needs to send serial output to a bluesmirf bluetooth dongle connected to a Smartfusion eval board.
So far I have been trying to make the connection in the same way done through the BluetoothChat example app, but have had no luck. It appears that this is in some way related to a failure from the fact that the bluesmirf doesn't have the same UUID. This is the Logcat message I get right before it the connection attempt stops:
04-12 03:28:32.670: DEBUG/BluetoothService(92): Cleaning up failed UUID channel lookup: 00:06:66:04:AA:EA 8ce255c0-200a-11e0-ac64-0800200c9a66
I've been Googling any and every combination of "bluesmirf," "android," and "bluetooth" but can't find any sort of guide or help for having an app connect to anything but the same app on another phone.
Any sort of insight would be greatly appreciated.
Found Solution
Ok so following links through stackoverflow lead me to an answer that was obnoxiously simple.
If anyone else ever finds this thread for the same issue:
There is a set UUID for serial devices, and you just need to set your apps UUID to this value:
00001101-0000-1000-8000-00805F9B34FB

Bluetooth fails to connect with Parrot Mki 9200

Hi all,
On the Parrot carkit in my car I get poor connection with my Moto X force (Droid Turbo 2). When the bluetooth is connected, the telephone connection fails to come up. A2DP is live, though. The HCI dump shows errors in the beginning, but my knowledge of the protocol is not good enough to understand the cause. I managed to get it working once when I cleared the Bluetooth connection app cache and data. Others on the internet suggested doing a factory reset, but this provided no solution to the problem. The phone is running 6.0 with the latest updates. Can someone help? The log is included in the attachment.
OK, A day of frustration, various tests and reading of logs I think I've finally cracked it. The bluetooth headset profile or handsfree profile fails to reconnect after one connection. For this one of two alternatives are an option. Clearing the data/cache of the Bluetooth Share app or going to airplane mode. Unfortunately both are not modifiable via Tasker without root. It irritates me, but at least the phone is now usable, be it with a filthy hack. This seems to be a problem with more than one Moto device, as it is also mentioned extensively on the lenovo/moto forum.
Sent from my XT1580 using Tapatalk
One example
https://forums.lenovo.com/t5/Moto-G...quot-Phone-Audio-quot-when/m-p/3559164#M16483
Second example
https://forums.lenovo.com/t5/MOTO-X-2nd-Gen/bluetooth-won-t-auto-connect-anymore/m-p/3234170#M15341
Sent from my XT1580 using Tapatalk
Found a work around on the forum. This seems to solve the problem.
https://forums.lenovo.com/t5/Moto-X...ired-devices/m-p/3591641/highlight/false#M459
Sent from my XT1580 using Tapatalk

Categories

Resources