2018-09-19 06:18:06

by C K

[permalink] [raw]
Subject: PTS test (GATT/SR/UNS/BI-01-C) failed with bluez5.4.1 stack

Hello,

I'm testing my device with PTS tool for bluetooth sig certification.
And the case "GATT/SR/UNS/BI-01-C" failed.
My device has QT application and bluez5.4.1 stack on linux.
Does anyone know the solution?

[PTS Log]
Test case : GATT/SR/UNS/BI-01-C started
- Running test case with ATT bearer setup over LE
- Connection setup successfully.
- LE Security not initiated due to TSPX_security_enabled value.
- Sending an ATT request with an unsupported opcode.
- Received data 010C-0000-04
- Invalid Error Code received. Expected=0x06 Received =0x4
- Connection terminated successfully.
-Final Verdict: FAIL
GATT/SR/UNS/BI-01-C finished


Thanks,
Calvin


2018-09-19 11:58:54

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: PTS test (GATT/SR/UNS/BI-01-C) failed with bluez5.4.1 stack

Hi Calvin,

On Wed, Sep 19, 2018 at 9:18 AM, Calvin Yoo <[email protected]> wrote:
> Hello,
>
> I'm testing my device with PTS tool for bluetooth sig certification.
> And the case "GATT/SR/UNS/BI-01-C" failed.
> My device has QT application and bluez5.4.1 stack on linux.
> Does anyone know the solution?
>
> [PTS Log]
> Test case : GATT/SR/UNS/BI-01-C started
> - Running test case with ATT bearer setup over LE
> - Connection setup successfully.
> - LE Security not initiated due to TSPX_security_enabled value.
> - Sending an ATT request with an unsupported opcode.
> - Received data 010C-0000-04
> - Invalid Error Code received. Expected=0x06 Received =0x4
> - Connection terminated successfully.
> -Final Verdict: FAIL
> GATT/SR/UNS/BI-01-C finished

This has been fixed upstream for a while:

https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/src/shared/att.c#n770

Either backport the fixes or upgrade BlueZ, which I strongly
recommend, to more recent version.

--
Luiz Augusto von Dentz