Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Studio Bluetooth Forum Discussions

hyhw_4628441
Level 2
50 sign-ins 10 questions asked 25 sign-ins
Level 2

Hello,  i have found the sent HID data is repeated side on peer device when the HID connection is established. 

 

SW Information

- Chipset & EVK : CYW20706 & F1DC2076 EVB (made in F1media)

- WICED SDK version : WCIED 6.2.1

- Test application : HID Device

 

Test Process

- Connect from Windows PC to F1DC2706(CYW20706)

- Send the HID data as below.

#1) "123456789012"

{ 0x01, 0x00, 0x00, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00 } // 1

{ 0x01, 0x00, 0x00, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00 } // 2

{ 0x01, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00 } // 3

...

...

{ 0x01, 0x00, 0x00, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00 } // 1

{ 0x01, 0x00, 0x00, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00 } // 2

{ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } // Release

{ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } // Release

 

#2) "1" "2" "3" "4" "5" "6" "7" "8" "9" "0" "1" "2"

{ 0x01, 0x00, 0x00, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00 } // 1

{ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } // Release

{ 0x01, 0x00, 0x00, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00 } // 2

{ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } // Release

{ 0x01, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00 } // 3

{ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } // Release

...

...

{ 0x01, 0x00, 0x00, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00 } // 1

{ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } // Release

{ 0x01, 0x00, 0x00, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00 } // 2

{ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } // Release

{ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } // Release

{ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } // Release

 

Case of Windows PCs are as below.

  • Notebook (SAMSUNG - NT500R5W-XD5S) > occured
    • Manufacturer : Qualcomm Atheros Communications
    • F/W version : HCI 8.0 / LMP 8.602
    • Driver provider : Qualcomm Atheros Communications
    • Driver date : 2019-01-24
    • Driver version : 10.0.0.825
  • Notebook (SAMSUNG - NT900X5Y-A59WA) > occured
    • Manufacturer : Intel Corporation
    • F/W version : HCI 8.256 / LMP 8.256
    • Driver provider : Intel Corporation
    • Driver date : 2020-06-29
    • Driver version : 21.110.0.3
  • Notebook (SAMSUNG - NT910S5P-KD5S) > don`t occured
    • Manufacturer : Intel Corporation
    • F/W version : HCI 7.0 / LMP 7.602
    • Driver provider : Intel Corporation
    • Driver date : 2018-06-27
    • Driver version : 10.0.0.714
  • PC (BT dongle) > don`t occured
    • Manufacturer : Cambridge Silicon Radio Ltd.
    • F/W version: HCI 6.8891 / LMP 6.8891
    • Driver provider : Microsoft
    • Driver date : 2006-06-21
    • Driver version : 10.0.19041.1202
  • Notebook (LG - 15U560) > don`t occured
    • Manufacturer : Intel Corporation
    • F/W version : HCI 8.4096 / LMP 8.4096
    • Driver provider : Intel Corporation
    • Driver date : 2017-04-07
    • Driver version : 19.60.0.3

 

and snoop log is as below.

- case of normal as "123456789012"

1700     2021-12-17 06:57:36.212273         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 1

1701     2021-12-17 06:57:36.212357         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 2

1702     2021-12-17 06:57:36.212377         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 3

1703     2021-12-17 06:57:36.212422         host     controller          HCI_CMD          8         Sent Write Link Policy Settings

1704     2021-12-17 06:57:36.214685         controller          host     HCI_EVT 9         Rcvd Command Complete (Write Link Policy Settings)

1705     2021-12-17 06:57:36.225738         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 4

1706     2021-12-17 06:57:36.250707         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 5

1707     2021-12-17 06:57:36.275727         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 6

1708     2021-12-17 06:57:36.300886         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 7

1709     2021-12-17 06:57:36.327073         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 8

1710     2021-12-17 06:57:36.350916         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 9

1711     2021-12-17 06:57:36.375785         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 0

1712     2021-12-17 06:57:36.400766         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 1

1713     2021-12-17 06:57:36.425917         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 2

1714     2021-12-17 06:57:36.450808         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - <action key up>

1715     2021-12-17 06:57:36.475917         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - <action key up>

1716     2021-12-17 06:57:36.500728         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - ENTER

1717     2021-12-17 06:57:36.501870         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - <action key up>

- case of occurred repeating like "1234555555555555556789012"

1724     2021-12-17 06:58:01.752072         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 1

1725     2021-12-17 06:58:01.752140         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 2

1726     2021-12-17 06:58:01.752166         host     controller          HCI_CMD          8         Sent Write Link Policy Settings

1727     2021-12-17 06:58:01.752182         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 3

1728     2021-12-17 06:58:01.752220         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 4

1729     2021-12-17 06:58:01.752295         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 5

1730     2021-12-17 06:58:01.753650         controller          host     HCI_EVT 9         Rcvd Command Complete (Write Link Policy Settings)

1731     2021-12-17 06:58:01.753691         host     controller          HCI_CMD          6         Sent Exit Sniff Mode

1732     2021-12-17 06:58:01.755650         controller          host     HCI_EVT 7         Rcvd Command Status (Exit Sniff Mode)

1733     2021-12-17 06:58:02.257789         host     controller          HCI_CMD          8         Sent Write Link Policy Settings

1734     2021-12-17 06:58:02.259647         controller          host     HCI_EVT 9         Rcvd Command Complete (Write Link Policy Settings)

1735     2021-12-17 06:58:02.693200         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 6

1736     2021-12-17 06:58:02.693639         controller          host     HCI_EVT 9         Rcvd Mode Change

1737     2021-12-17 06:58:02.698302         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 7

1738     2021-12-17 06:58:02.698332         host     controller          HCI_CMD          8         Sent Write Link Policy Settings

1739     2021-12-17 06:58:02.699650         controller          host     HCI_EVT 9         Rcvd Command Complete (Write Link Policy Settings)

1740     2021-12-17 06:58:02.700816         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 8

1741     2021-12-17 06:58:02.702054         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 9

1742     2021-12-17 06:58:02.703308         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 0

1743     2021-12-17 06:58:02.704559         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 1

1744     2021-12-17 06:58:02.705807         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - 2

1745     2021-12-17 06:58:02.707053         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - <action key up>

1746     2021-12-17 06:58:02.708302         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - <action key up>

1747     2021-12-17 06:58:02.709557         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - ENTER

1748     2021-12-17 06:58:02.710803         F1Media_74:f7:0d (PM5 SN2122910387)      localhost ()        HID      19           Rcvd DATA - Input - Keyboard - <action key up>

 

Is the repeated HID data related to sniff mode?

Why repeating HID data different for each PC?

Could you help me anybody, please?

 

0 Likes
3 Replies
AnjanaM_61
Moderator
Moderator First comment on KBA 5 questions asked First question asked
Moderator

Hello @hyhw_4628441 

Not sure what exactly is the issue. We will try to reproduce this at our side.

Can you please let us know which project you are testing? If custom project, please share the same. 

Also please share the steps to reproduce. 

Regards,
Anjana

0 Likes
hyhw_4628441
Level 2
50 sign-ins 10 questions asked 25 sign-ins
Level 2

Hello, @AnjanaM_61  thank you for help.

i used the  sdk of wiced_studio_6.2, work on 20706-A2_Bluetooth\apps\demo\hid\hci_hid_device.

it`s a different with sdk about interface, it is as below.

  • default sdk : hci -> data -> hid send report
  • modified     : uart -> data -> hid send report

modified source code are as below. it is called on "receive data handler" of "transport_cfg"

 

    if (wiced_bt_get_link_mode(hidd_cb.host_addr, &mode) == WICED_BT_SUCCESS)
    {
        if (mode <= 2)
        {
            wiced_bt_dev_cancel_sniff_mode(hidd_cb.host_addr);
        }
    }
    ...
    for(i=0; i<data_len; i++)
    {
        uart_hid_buffer[uart_hid_len++] = p_raw_data[i];
        if(HCI_HID_KEYBOARD_REPORT_SIZE <= uart_hid_len)
        {
            ret = hci_hid_handle_send_report(HCI_CONTROL_HID_REPORT_CHANNEL_INTERRUPT, HCI_CONTROL_HID_REPORT_TYPE_INPUT, uart_hid_buffer, (uint16_t)uart_hid_len);
            uart_hid_len = 0;
        }
    }

 

 

and others nothing to modified.

thanks.

0 Likes
LiLe_3234306
Level 3
25 replies posted First comment on KBA 50 sign-ins
Level 3

Hi AnjanaM_61,

This is one of our customer, let me follow-up this case.

Thanks,

Liam

0 Likes