pts/hid: complete test sequences

This commit is contained in:
Matthias Ringwald 2021-04-09 14:58:48 +02:00
parent 278ff8a910
commit 80561c9e82
3 changed files with 17 additions and 18 deletions

View File

@ -7,10 +7,14 @@ HID11/DEV/DRE/BV-09-I: (wait), c
HID11/DEV/DCR/BV-01-I: (wait), c, M, M
HID11/DEV/DCR/BV-02-I: I, C, c, M, I, C, (wait), M
NOTE: if you want to redo the next two testa, remove link key on PTS side
NOTE: if you want to redo the next two tests, remove link key on PTS side
HID11/DEV/DCR/BV-03-I: I, C, c, (OK)
HID11/DEV/DCR/BV-04-I: u, c, (OK)
HID11/DEV/DCR/BV-02-I: c, q, w, z, D
HID11/DEV/DCR/BV-03-I: c, q, w, z, D
HID11/DEV/DCR/BV-04-I: c, q, w, z, D
HID11/DEV/DCT/BV-01-C: (wait)
HID11/DEV/DCT/BV-02-C: (wait)
HID11/DEV/DCT/BV-03-C: (wait)

View File

@ -281,10 +281,9 @@ static void show_usage(void){
printf("M - Request can send now (keyboard)\n");
printf("L - Reset limited discoverable mode\n");
printf("u - Unplug\n");
printf("y - Set link supervision timeout to 0 \n");
printf("w - Send sniff subrating cmd \n");
printf("z - Enter sniff mode \n");
printf("t - Write Link Policy\n");
printf("w - Set sniff subrating\n");
printf("z - Enter sniff mode\n");
printf("q - Set QoS 'Guaranteed'\n");
printf("Ctrl-c - exit\n");
printf("---\n");
@ -334,15 +333,10 @@ static void stdin_process(char character){
printf("Send unplug request to %s...\n", bd_addr_to_str(device_addr));
hid_device_send_virtual_cable_unplug(hid_cid);
break;
case 'y':
printf("Set link supervision timeout to 0 \n");
hci_send_cmd(&hci_write_link_supervision_timeout, hid_con_handle, 0);
break;
case 'w':
printf("Send sniff subrating cmd \n");
hci_send_cmd(&hci_sniff_subrating, hid_con_handle, 0, 0, 0);
printf("Set sniff subrating\n");
gap_sniff_subrating_configure(hid_con_handle, 0, 0, 0);
break;
case 'z':{
@ -354,14 +348,15 @@ static void stdin_process(char character){
gap_sniff_mode_enter(hid_con_handle, sniff_min_interval, sniff_max_interval, sniff_attempt, sniff_timeout);
break;
}
case 't':
printf("Write Link Policy\n");
hci_send_cmd(&hci_write_link_policy_settings, hid_con_handle, LM_LINK_POLICY_ENABLE_SNIFF_MODE);
case 'q':
printf("Set QoS 'Guaranteed'\n");
gap_qos_set(hid_con_handle, 1, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff);
break;
case '\n':
case '\r':
break;
default:
show_usage();
break;

View File

@ -539,8 +539,8 @@ static void stdin_process(char cmd){
break;
case 'w':
printf("Send sniff subrating cmd \n");
hci_send_cmd(&hci_sniff_subrating, hid_host_con_handle, host_max_latency, host_min_timeout, 0);
printf("Configure sniff subrating\n");
gap_sniff_subrating_configure(hid_host_con_handle, host_max_latency, host_min_timeout, 0);
break;
case '\n':