Exemple #1
0
 def test_reject_connection_parameter_update_parameters(self):
     """
     Verify that the IUT is able to reject a request for connection parameter update with illegal parameters.
     NOTE: Currently we need to establish at least one dynamic channel to allow update.
     """
     self._set_link_from_dut_and_open_channel()
     self.cert_l2cap.get_control_channel().send(
         l2cap_packets.ConnectionParameterUpdateRequestBuilder(2, 0x10, 0x10, 512, 0x64))
     assertThat(self.cert_l2cap.get_control_channel()).emits(
         L2capMatchers.LeConnectionParameterUpdateResponse(
             l2cap_packets.ConnectionParameterUpdateResponseResult.REJECTED))
Exemple #2
0
 def test_accept_connection_parameter_update_request(self):
     """
     Verify that the IUT is able to receive and handle a request for connection parameter update when acting as a central device.
     NOTE: Currently we need to establish at least one dynamic channel to allow update.
     """
     self._set_link_from_dut_and_open_channel()
     self.cert_l2cap.get_control_channel().send(
         l2cap_packets.ConnectionParameterUpdateRequestBuilder(2, 0x10, 0x10, 0x0a, 0x64))
     assertThat(self.cert_l2cap.get_control_channel()).emits(
         L2capMatchers.LeConnectionParameterUpdateResponse(
             l2cap_packets.ConnectionParameterUpdateResponseResult.ACCEPTED))