Android gets too much Bluetooth debugging data

I use low energy Bluetooth to connect with a heart rate sensor.

Now I get so much logcat data in Eclipse from Bluetooth, I don’t see anything else. 654 lines per second. The phone on which I run the code is HTC. Maybe someone knows where this is happening?

Here is an example.

09-12 16:16:40.003: I/bt-btif(3108): bta_dm_sm_execute event:0x2a 09-12 16:16:40.003: I/bt-btif(3108): bta_brcm_evt_hdlr :0x0007 09-12 16:16:40.003: E/bt-btm(3108): No PF filter has been configured! 09-12 16:16:40.003: I/bt-btif(3108): bta_dm_sm_execute event:0x2a 09-12 16:16:40.003: I/bt-btif(3108): bta_brcm_evt_hdlr :0x0007 09-12 16:16:40.003: I/bt-btif(3108): bta_dm_sm_execute event:0x2a 09-12 16:16:40.003: I/bt-btif(3108): bta_brcm_evt_hdlr :0x0007 09-12 16:16:40.003: I/bt-btif(3108): bta_dm_sm_execute event:0x2a 09-12 16:16:40.003: I/bt-btif(3108): HAL bt_gatt_callbacks->client->adv_filter_cb 09-12 16:16:40.003: E/bt-btm(3108): No PF filter has been configured! 09-12 16:16:40.003: I/bt-btif(3108): bta_dm_sm_execute event:0x2a 09-12 16:16:40.003: I/bt-btif(3108): bta_brcm_evt_hdlr :0x0007 09-12 16:16:40.003: I/bt-btif(3108): bta_dm_sm_execute event:0x2a 09-12 16:16:40.003: D/BtGatt.GattService(3108): onAdvFilterConfig() - action=2 status=1 09-12 16:16:40.003: E/bt-btm(3108): No PF filter has been configured! 09-12 16:16:40.003: I/bt-btif(3108): bta_dm_sm_execute event:0x2a 09-12 16:16:40.003: I/bt-btif(3108): bta_brcm_evt_hdlr :0x0007 09-12 16:16:40.003: I/bt-btif(3108): bta_dm_sm_execute event:0x2a 09-12 16:16:40.003: I/bt-btif(3108): bta_dm_sm_execute event:0x2a 09-12 16:16:40.003: I/bt-btif(3108): bta_brcm_evt_hdlr :0x0007 09-12 16:16:40.003: I/bt-btif(3108): bta_dm_sm_execute event:0x2a 09-12 16:16:40.003: I/bt-btif(3108): bta_brcm_evt_hdlr :0x0007 09-12 16:16:40.013: I/bt-btif(3108): bta_dm_sm_execute event:0x2a 09-12 16:16:40.013: D/BtGatt.GattService(3108): onAdvFilterConfig() - action=2 status=1 09-12 16:16:40.013: E/bt-btm(3108): No PF filter has been configured! 09-12 16:16:40.013: I/bt-btif(3108): bta_dm_sm_execute event:0x2a 09-12 16:16:40.013: I/bt-btif(3108): bta_brcm_evt_hdlr :0x0007 
+5
source share
2 answers

I do not know what is happening on bluetooth. But I suggest you filter logcat messages.
By opening filter configurations, on the left side of logcat messages you can add editing filter configurations. Press + or edit the current configuration.
It will open the screen as shown below.
To filter only application logs, you must put your package ID in by application name:
The most important thing for you happens in the log tag:. You could put deny regex to exclude special tags, it would be like this: ^(?!bt-btif) .
filter configuration
Hope this helps.

0
source

Well, these magazines are printed by their own library to help developers debug the application, if you have no problems with the Bluetooth module, this should not cause problems.

Basically, PF Filter is only a packet filter, which means that all packets are received from the client, and do not have a rule to block some.

Recorded from btm_ble_adv_filter.c in external / bluetooth / bluedroid / stack / btm /

  if (NULL == p_bda_filter || /* not a generic filter */ (p_target != NULL && p_bda_filter)) { BTM_TRACE_ERROR("Error: Can not clear filter, No PF filter has been configured!"); return st; } 
0
source

Source: https://habr.com/ru/post/1202431/


All Articles