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

media button become invalid when ble mouse reboot and connected to PC

When I connect my ble mouse to the PC win8.1 , media button works normal.

When I power off and power on my mouse, it reconnected to win8.1 PC quickly, sensor ,left button,right button works well but media button.

I must remove ble mouse from win8.1 and research my mouse and connect it media button work again.

Why this happen? How can I make media button always wokes well when mouse connected to the win8.1PC?

Parents
  • It seems that , when I connect to the PC and disconnected my ble device from PC then media button will be ok when connect again to the PC even reboot my ble device.

    So it must be white list problem, because when ble device get the event of disconnected it will store something by "ble_bondmngr_bonded_centrals_store();"

    And I try this:

    1. when I erase all chip and program my ble app to the nrf51822 , connect to PC and mediabutton works well and
    ble_hids_inp_rep_send(&m_hids,
                                             INPUT_REP_MPLAYER_INDEX,
                                             INPUT_REP_MEDIA_PLAYER_LEN,
                                             (uint8_t *)&mm_key);
    

    will return 0

    1. if I reboot my ble device and it will connect to PC auto , but ble_hids_inp_rep_send(); will return error code :"8". it means "Invalid state". And in this case left button right button works well but media button not.

    I want to know that , is there any info from white list will be need for media button? Why other button and mouse move works well?

Reply
  • It seems that , when I connect to the PC and disconnected my ble device from PC then media button will be ok when connect again to the PC even reboot my ble device.

    So it must be white list problem, because when ble device get the event of disconnected it will store something by "ble_bondmngr_bonded_centrals_store();"

    And I try this:

    1. when I erase all chip and program my ble app to the nrf51822 , connect to PC and mediabutton works well and
    ble_hids_inp_rep_send(&m_hids,
                                             INPUT_REP_MPLAYER_INDEX,
                                             INPUT_REP_MEDIA_PLAYER_LEN,
                                             (uint8_t *)&mm_key);
    

    will return 0

    1. if I reboot my ble device and it will connect to PC auto , but ble_hids_inp_rep_send(); will return error code :"8". it means "Invalid state". And in this case left button right button works well but media button not.

    I want to know that , is there any info from white list will be need for media button? Why other button and mouse move works well?

Children
No Data
Related