Skip to content

Commit ff112b5

Browse files
jerryyang35danieldegrasse
authored andcommitted
tests: Bluetooth: BR: Add test suite RFCOMM_client
IUT works as an RFCOMM Client. The peer device, RFCOMM server, is a PC running bumble. Add following test cases: Case 6, RFCOMM MTU Size Data Send/Receive Test. To verify that the RFCOMM client can correctly send and receive data packets that are exactly equal to the negotiated MTU size. Case 7, RFCOMM Data Transfer Exceeding MTU Size Test. To verify that the RFCOMM client can reject sending and receiving data packets that exceed the negotiated MTU size. Case 8, RFCOMM Disconnect and Reconnect Test. To verify that the RFCOMM client can properly handle a normal RFCOMM disconnection and successfully reestablish the connection. Case 9, RFCOMM Recovery After ACL Disconnection Test. To verify that the RFCOMM client can properly recover when the underlying ACL connection is abruptly disconnected, by reestablishing both ACL and RFCOMM connections. Signed-off-by: Jiawei Yang <jiawei.yang_1@nxp.com>
1 parent a782207 commit ff112b5

File tree

4 files changed

+693
-404
lines changed

4 files changed

+693
-404
lines changed

tests/bluetooth/classic/rfcomm_c/pytest/rfcomm_utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
)
2323

2424
mcc_test_data = bytes.fromhex('01 02 03 04 05')
25-
send_value = bytes.fromhex('ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff')
25+
send_value = bytes([0xFF])
2626

2727

2828
class LogCaptureHandler(logging.Handler):

0 commit comments

Comments
 (0)