This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

What can cause BLE_HIDS_EVT_NOTIF_ENABLED not to be sent by Host(Xiaomi TV).

I have a simple HID BLE device which send left/right/return/home keys to a Android device.it works well when i test it on my android phone(Lenovo S5).but when i test it on my Xiaomi TV :it works well when if it is first time to pair with the TV, but if I turn off and then turn on the TV again,it can be connected successfully,but  the keys no longer working.i find the difference in the log:when BLE_HIDS_EVT_NOTIF_ENABLED event not to be sent,it fails.

<info> app: Fast advertising.

<info> app: Connected
<info> peer_manager_handler: Connection secured: role: Peripheral, conn_handle: 0, procedure: Bonding
<info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Bonding data, action: Update
<info> app: New Bond, add the peer to the whitelist if possible
<info> app: m_whitelist_peer_cnt 2, MAX_PEERS_WLIST 8
<info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update
<info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Local database, action: Update
<info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Central address resolution, action: Update
<info> app: BLE_HIDS_EVT_NOTIF_ENABLED
<info> app: BLE_HIDS_EVT_NOTIF_ENABLED

<info> app: on_disconnected
<info> app: High Duty Directed advertising.
<info> app: Disconnected
<info> app: Fast advertising with whitelist.
<info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update, no change
<info> app: Connected
<info> peer_manager_handler: Connection secured: role: Peripheral, conn_handle: 0, procedure: Encryption
<info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update, no change

SDK version is nRF5 Software Development Kit v16.0.0、s132_nrf52_7.0.1_softdevice,the demo i am learning is ble_app_hids_keyboard.

Parents
  • Hi

    I'm sorry, but would it be possible for you to use the nRF Sniffer to capture these sniffer traces? I'm not familiar with the TI packet sniffer, so it will take me some time to get into it and extract any useful information. From what I can see though, assuming the Master here is the Xiaomi TV, it seems like the TV does not know (or does not support) the re-pairing request. I'm not entirely sure about the details due to this being a foreign sniffer tool though.

    Best regards,

    Simon

Reply
  • Hi

    I'm sorry, but would it be possible for you to use the nRF Sniffer to capture these sniffer traces? I'm not familiar with the TI packet sniffer, so it will take me some time to get into it and extract any useful information. From what I can see though, assuming the Master here is the Xiaomi TV, it seems like the TV does not know (or does not support) the re-pairing request. I'm not entirely sure about the details due to this being a foreign sniffer tool though.

    Best regards,

    Simon

Children
Related