test/pts: update hfp tests

This commit is contained in:
Milanka Ringwald 2021-04-13 09:14:32 +02:00
parent 8b19c4558d
commit e9fcaaaadc
3 changed files with 33 additions and 18 deletions

View File

@ -3,20 +3,35 @@ Tool: hfp_ag_test
HFP/AG/OOR/BV-01-I:
HFP/AG/OOR/BV-02-I:
HFP/AG/TRS/BV-01-C:
HFP/AG/TRS/BV-01-C: "OK", a ?
HFP/AG/PSI/BV-01-C:
HFP/AG/PSI/BV-02-C:
HFP/AG/PSI/BV-03-C:
HFP/AG/PSI/BV-04-C:
HFP/AG/PSI/BV-01-C: "OK", a, G, "OK", g, "OK" , "OK", "OK", A
HFP/AG/PSI/BV-02-C: "OK", a, H, "OK", h, "OK" ,"OK", A
HFP/AG/PSI/BV-03-C: "OK", a, i, "OK", "OK", I ,"OK", A
HFP/AG/PSI/BV-04-C: "OK", a, "OK", "OK", A
HFP/AG/PSI/BV-05-C:
HFP/AG/ACS/BV-02-I:
HFP/AG/ACS/BV-04-I:
HFP/AG/ACS/BV-06-I:
HFP/AG/ACS/BV-08-I:
HFP/AG/ACS/BV-10-I:
HFP/AG/ACS/BV-11-I:
HFP/AG/ACS/BV-14-I:
HFP/AG/ACS/BV-16-I:
HFP/AG/ACS/BV-18-I:
HFP/AG/ACS/BV-02-I: "OK", a, "OK", b, "OK", B, "OK", A
HFP/AG/ACS/BV-04-I: "OK", a, "OK", c, "OK", B (test fail, HCI: HCI_CONNECTION_COMPLETE contained an error)
HFP/AG/ACS/BV-06-I: "OK", a, "OK", c, "OK", "OK", C, "OK", A
HFP/AG/ACS/BV-08-I: "OK", a, "OK", c, "OK", "OK", B (test fail)
HFP/AG/ACS/BV-10-I: "OK", a, "OK", c, "OK", "OK", B, "OK", b, "OK", B (test fail)
HFP/AG/ACS/BV-11-I: "OK", a, "OK", c, "OK", "OK", B (test fail)
HFP/AG/ACS/BV-14-I: "OK", a, "OK", c, "OK", "OK", B, "OK", "OK", "OK", C, "OK", A
HFP/AG/ACS/BV-16-I: "OK", a, "OK", c, "OK", "OK", B (test fail)
HFP/AG/ACS/BV-18-I: "OK", a, "OK", c, "OK", "OK", B (test fail)
HFP/AG/ACR/BV-01-I: "OK", a, "OK", b, "OK", A
HFP/AG/ACR/BV-02-I: "OK", a, "OK", b, "OK", B, "OK", A (bug when we call first A, then B)
HFP/AG/CLI/BV-01-I: "OK", a, "OK", c, "OK", "OK", C, "OK", A
HFP/AG/ICA/BV-01-I: "OK", a, "OK", c, "OK", "OK", C, "OK", A
HFP/AG/ICA/BV-02-I: "OK", a, "OK", r, "OK", c, "OK", "OK", R, "OK", c, OK", "OK", C, "OK", A
HFP/AG/ICA/BV-04-I: "OK", a, "OK", r, "OK", c, "OK", "OK", C, "OK", A
HFP/AG/ICA/BV-05-I: "OK", a, (test fail)
HFP/AG/ICA/BV-06-I: "OK", a, "OK", c, "OK", e, "OK", C, "OK", A
HFP/AG/ICA/BV-07-I: "OK", c, "OK", "OK", C, "OK", A
HFP/AG/ICA/BV-08-I: "OK", a, "OK", c, "OK" (crash)
HFP/AG/ICA/BV-09-I: "OK", a, "OK", c, "OK" (crash)

View File

@ -70,7 +70,7 @@ const uint8_t rfcomm_channel_nr = 1;
const char hfp_ag_service_name[] = "HFP AG Demo";
static bd_addr_t device_addr;
static const char * device_addr_string = "00:21:3C:AC:F7:38";
static const char * device_addr_string = "00:1B:DC:08:E2:5C";
#ifdef ENABLE_HFP_WIDE_BAND_SPEECH
static uint8_t codecs[] = {HFP_CODEC_CVSD, HFP_CODEC_MSBC};
@ -88,10 +88,10 @@ static btstack_packet_callback_registration_t hci_event_callback_registration;
static int ag_indicators_nr = 7;
static hfp_ag_indicator_t ag_indicators[] = {
// index, name, min range, max range, status, mandatory, enabled, status changed
{1, "service", 0, 1, 1, 0, 0, 0},
{1, "service", 0, 1, 1, 0, 1, 0},
{2, "call", 0, 1, 0, 1, 1, 0},
{3, "callsetup", 0, 3, 0, 1, 1, 0},
{4, "battchg", 0, 5, 3, 0, 0, 0},
{4, "battchg", 0, 5, 3, 0, 1, 0},
{5, "signal", 0, 5, 5, 0, 1, 0},
{6, "roam", 0, 1, 0, 0, 1, 0},
{7, "callheld", 0, 2, 0, 1, 1, 0}

View File

@ -68,7 +68,7 @@ const char hfp_hf_service_name[] = "HFP HF Demo";
#ifdef HAVE_BTSTACK_STDIN
// static const char * device_addr_string = "6C:72:E7:10:22:EE";
static const char * device_addr_string = "54:E4:3A:26:A2:39";
static const char * device_addr_string = "00:1B:DC:08:E2:5C";
#endif
static bd_addr_t device_addr;