Tools used to pass HFP tests in PTS:
TSPX_security_enabled = True TSPX_phone_number = 1234567890 #Replace with your phone number
ACTS Steps:
btc_accept_pairingtool_set_target_device_name PTSrfcomm_inittool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_incoming_call 12345678980tool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_set_service_available falsehfp_set_service_available truebtc_disconnect_devicehfp_set_signal_strength 5tool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_set_signal_strength 0btc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_set_battery_level 1hfp_set_battery_level 3btc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicebtc_disconnect_devicebtc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_incoming_call 1234567hfp_get_state - find call IDhfp_set_call_transferred_to_ag <call_ID>hfp_set_call_terminated <call_ID>btc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_incoming_call 1234567hfp_get_state - find call IDhfp_set_call_transferred_to_ag <call_ID>hfp_set_call_terminated <call_ID>btc_disconnect_deviceSee HFP/AG/ACS/BV-08-I
See HFP/AG/ACS/BV-08-I
tool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_incoming_call 1234567hfp_get_state - find call IDhfp_set_call_terminated <call_ID>btc_disconnect_deviceSee HFP/AG/ACR/BV-01-I
See HFP/AG/ACR/BV-01-I
See HFP/AG/ACR/BV-01-I
tool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_incoming_call 1234567hfp_get_state - find call IDhfp_set_call_transferred_to_ag <call_ID>hfp_set_call_terminated <call_ID>btc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_incoming_call 1234567btc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_incoming_call 1234567hfp_get_state - find call IDhfp_set_call_terminated <call_ID>btc_disconnect_deviceSee HFP/AG/TCA/BV-02-I
tool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_incoming_call 1234567hfp_incoming_call 1234568hfp_incoming_call 1234567hfp_get_state - Find call IDhfp_set_call_active <call_ID>hfp_set_call_terminated <call_IDbtc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_incoming_call 1234567hfp_get_state - find call IDhfp_set_call_transferred_to_ag <call_ID>hfp_set_call_terminated <call_ID>btc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_incoming_call 1234567hfp_get_state - find call IDhfp_set_call_transferred_to_ag <call_ID>hfp_set_call_active <call_ID>hfp_set_call_terminated <call_ID>btc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_incoming_call 1234567btc_disconnect_devicehfp_get_state - find call IDhfp_set_call_terminated <call_ID>btc_connect_devicebtc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_incoming_call 1234567hfp_get_state - find call IDhfp_set_call_terminated <call_ID>btc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_set_dial_result 1234567 0hfp_get_state - find call IDhfp_set_call_active <call_ID>hfp_set_call_terminated <call_ID>btc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_set_memory_location 1 1234567hfp_set_dial_result 1234567 0hfp_get_state - find call IDhfp_set_call_active <call_ID>hfp_set_call_terminated <call_ID>btc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_clear_memory_location 1btc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_get_state - find call IDhfp_set_call_active <call_ID>hfp_set_call_terminated <call_ID>btc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_clear_last_dialedbtc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_incoming_call 1234567hfp_waiting_call 7654321hfp_get_state - find active call IDhfp_set_call_terminated <call_ID>btc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_incoming_call 1234567hfp_incoming_call 7654321See HFP/AG/TWC/BV-02-I
tool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_incoming_call 1234567hfp_set_dial_result 7654321 0hfp_set_last_dialed 7654321hfp_get_state - find call ID of second callhfp_set_call_active <call_ID>hfp_get_state - find call ID of first callhfp_set_call_terminated <call_ID>tool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_incoming_call 1234567hfp_get_state - find call IDhfp_set_call_terminated <call_ID>btc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_incoming_call 1234567hfp_get_state - find call IDhfp_set_call_terminated <call_ID>btc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_connect_devicehfp_incoming_call 1234567hfp_get_state - find call IDhfp_set_call_terminated <call_ID>btc_disconnect_devicehfp_incoming_call 1234567hfp_incoming_call 7654321hfp_get_state - find call ID of first and second callshfp_set_call_held <first_call_ID>hfp_set_call_active <second_call_ID>Perform IUT setup
Launch PTS test
[PTS Interaction] - Press OK
tool_refresh_unique_id_using_bt_control
btc_connect_device
[PTS Interaction] - Press OK
hfp_incoming_call 1234567
[PTS Interaction] - Press OK
[PTS Interaction] - Press OK
hfp_incoming_call 7654321
[PTS Interaction] - Press OK
hfp_incoming_call 7654321
hfp_get_state - find call ID of first and second calls
hfp_set_call_held <first_call_ID>
hfp_set_call_active <second_call_ID>
hfp_incoming_call 7654321hfp_incoming_call 1234567hfp_get_state - find call id of first and second callshfp_set_call_active <first_call_id>hfp_set_call_held <second_call_id>hfp_incoming_call 7654321hfp_incoming_call 1234567hfp_get_state - find call id of first and second callshfp_set_call_active <first_call_id>hfp_set_call_held <second_call_id>hfp_remove_servicetool_refresh_unique_id_using_bt_controlbtc_connect_devicebtc_disconnect_devicetool_refresh_unique_id_using_bt_controlbtc_disconnect_devicehfp_inittool_set_target_device_name PTStool_refresh_unique_id_using_bt_controlbtc_connect_devicebtc_disconnect_deviceACTS Steps:
btc_accept_pairingtool_set_target_device_name PTSbtc_set_discoverable truehfp_inittool_refresh_unique_id_using_bt_controlbtc_disconnectNote: Revisit when setting autoconnect on peer is available ACTS Steps:
btc_accept_pairingtool_set_target_device_name PTShfp_inittool_refresh_unique_id_using_bt_controlbtc_connectbtc_disconnectACTS Steps:
btc_accept_pairingtool_set_target_device_name PTShfp_inittool_refresh_unique_id_using_bt_controlbtc_disconnectACTS Steps:
btc_accept_pairingtool_set_target_device_name PTShfp_inittool_refresh_unique_id_using_bt_controlbtc_connectbtc_disconnectACTS Steps:
btc_accept_pairingtool_set_target_device_name PTShfp_inittool_refresh_unique_id_using_bt_controlbtc_disconnectACTS Steps:
btc_accept_pairingtool_set_target_device_name PTShfp_inittool_refresh_unique_id_using_bt_controlbtc_connectbtc_disconnectACTS Steps:
btc_accept_pairingtool_set_target_device_name PTShfp_inittool_refresh_unique_id_using_bt_controlbtc_connectbtc_disconnectACTS Steps:
btc_accept_pairingtool_set_target_device_name PTShfp_inithfp_incoming_call 1234567hfp_get_state - find call IDhfp_set_call_transferred_to_ag <call_ID>hfp_set_call_active <call_ID>hfp_set_call_terminated <call_ID>tool_refresh_unique_id_using_bt_controlbtc_disconnect_deviceACTS Steps:
btc_accept_pairingtool_set_target_device_name PTShfp_inittool_refresh_unique_id_using_bt_controlbtc_disconnectACTS Steps:
btc_forget_all_known_devicesbtc_accept_pairingtool_set_target_device_name PTShfp_inittool_refresh_unique_id_using_bt_controlbtc_connectbtc_disconnectACTS Steps:
btc_forget_all_known_devicesbtc_accept_pairinghfp_inithfp_incoming_call 12345678980ACTS Steps:
btc_accept_pairingtool_set_target_device_name PTShfp_inithfp_set_service_available truetool_refresh_unique_id_using_bt_controlbtc_connect ACTS Steps:
btc_accept_pairingtool_set_target_device_name PTShfp_inithfp_set_service_available truetool_refresh_unique_id_using_bt_controlbtc_connect ACTS Steps:
btc_accept_pairingtool_set_target_device_name PTShfp_inithfp_set_service_available truetool_refresh_unique_id_using_bt_controlbtc_connect ACTS Steps:
btc_accept_pairingtool_set_target_device_name PTShfp_inithfp_set_service_available truetool_refresh_unique_id_using_bt_controlbtc_connect ACTS Steps:
btc_accept_pairingtool_set_target_device_name PTShfp_inithfp_set_service_available truetool_refresh_unique_id_using_bt_controlbtc_connect ACTS Steps:
btc_accept_pairingtool_set_target_device_name PTShfp_inithfp_set_service_available truetool_refresh_unique_id_using_bt_controlbtc_connect ACTS Steps:
btc_accept_pairinghfp_initbtc_forget_all_known_devicestool_set_target_device_name PTStool_refresh_unique_id_using_bt_controlbtc_connecthfp_incoming_call 12345678980hfp_list_calls // Use latest call number from this listhfp_set_call_terminated # // Number from previous stebtc_disconnectACTS Steps:
btc_accept_pairinghfp_initbtc_forget_all_known_devicestool_set_target_device_name PTStool_refresh_unique_id_using_bt_controlbtc_connecthfp_set_battery_level 0hfp_set_service_available truehfp_set_service_available falsebtc_disconnectACTS Steps:
btc_accept_pairinghfp_initbtc_forget_all_known_devicestool_set_target_device_name PTStool_refresh_unique_id_using_bt_controlbtc_connecthfp_set_service_available truehfp_set_service_available falsehfp_set_signal_strength 0ACTS Steps:
btc_accept_pairingtool_set_target_device_name PTShfp_inittool_refresh_unique_id_using_bt_controlbtc_connectbtc_disconnectACTS Steps:
btc_accept_pairingtool_set_target_device_name PTShfp_inittool_refresh_unique_id_using_bt_controlbtc_connectbtc_disconnectbtc_forget_all_known_devicestool_set_target_device_name PTStool_refresh_unique_id_using_bt_controlbtc_connect_devicebtc_disconnect_devicebtc_forget_all_known_devicestool_set_target_device_name PTStool_refresh_unique_id_using_bt_controlbtc_connect_devicebtc_disconnect_device