From c50d0fce0037badc00c51294f3a825178b76476b Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 17 May 2021 17:45:15 +0200 Subject: [PATCH] test/pts: add l2cap_test.md --- test/pts/l2cap_test.c | 8 +++++++- test/pts/l2cap_test.md | 9 +++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 test/pts/l2cap_test.md diff --git a/test/pts/l2cap_test.c b/test/pts/l2cap_test.c index f053a62c3..275aa84f5 100644 --- a/test/pts/l2cap_test.c +++ b/test/pts/l2cap_test.c @@ -65,7 +65,8 @@ static void show_usage(void); // static bd_addr_t remote = {0x04,0x0C,0xCE,0xE4,0x85,0xD3}; -static bd_addr_t remote = {0x00, 0x1B, 0xDC, 0x07, 0x32, 0xef};; +// static bd_addr_t remote = {0x00, 0x1B, 0xDC, 0x07, 0x32, 0xef};; +static bd_addr_t remote = {0x00, 0x1B, 0xDC, 0x08, 0xe2, 0x72}; static uint16_t handle; static uint16_t local_cid; @@ -152,6 +153,7 @@ static void show_usage(void){ printf("s - send some data\n"); printf("S - send more data\n"); printf("p - send echo request\n"); + printf("i - send connectionless data\n"); printf("e - optional ERTM mode\n"); printf("E - mandatory ERTM mode\n"); printf("b - set channel as busy (ERTM)\n"); @@ -188,6 +190,10 @@ static void stdin_process(char buffer){ printf("Send more L2CAP Data\n"); l2cap_send(local_cid, (uint8_t *) "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", 100); break; + case 'u': + printf("Send connection-less L2CAP Data\n"); + l2cap_send_connectionless(handle, 0x0002, (uint8_t *) "0123456789", 10); + break; case 'd': printf("L2CAP Channel Closed\n"); l2cap_disconnect(local_cid, 0); diff --git a/test/pts/l2cap_test.md b/test/pts/l2cap_test.md new file mode 100644 index 000000000..dba70a033 --- /dev/null +++ b/test/pts/l2cap_test.md @@ -0,0 +1,9 @@ +# L2CAP Test + +# Sequences +- L2CAP/COS/ECH/BV-02-C: c, p, t +- L2CAP/COS/IEX/BV-01-C: c, t +- L2CAP/CLS/CLR/BV-01-C: c, u, t + +- L2CAP/FIX/BV-01-C: +- L2CAP/EXF/BV-05-C: