Hi Frederic, On Fri, Oct 11, 2024 at 5:16 AM Raghavender Reddy Bujala <quic_rbujala@xxxxxxxxxxx> wrote: > > Hi, > > We are trying to verify the below PTS usecase, where remote initiates > the connection and sends AVDTP setconfiguration with unknown sampling > frequency. > > PTS case: A2DP/SNK/AVP/BI-03-C > > Description: > Verify that the SNK IUT, acting as an AVDTP Acceptor, returns error > codes when the Lower Tester, acting as an A2DP SRC and an AVDTP INT, > configures a stream using an invalid configuration > (INVALID_SAMPLING_FREQUENCY). > > (TSPC_A2DP_15b_1 AND (TSPC_A2DP_5_6 OR TSPC_A2DP_5_4 OR TSPC_A2DP_5_1)) > OR TSPC_ALL > > > > User prompt: > Please prepare the IUT to reject an AVDTP SET CONFIGURATION command with > error code INVALID_SAMPLING_FREQUENCY, > > then press 'OK 'to continue." > > > Results: > > Expectation: DUT needs to reject the setconfiguration with invalid > sampling frequency error code. > > Behavior: When PTS asks for user prompt to prepare and press ok to > continue. it is failing, because in bluez there is a 1 second timer for > connection. this timer is getting expired and avdtp signalling(DISCOVER > procedure) starting again from dut. > > diconnect timer source link: > https://github.com/bluez/bluez/blob/5.65/profiles/audio/avdtp.c#L1202 > > due to this behaviour we were unable to send setconfiguration with > invalid sampling frequency error code from dut. > > Is there any workaround for this to fix? git log to the rescue: commit fb681e795027edb3e995e2c75657ebab0360a299 Author: Frédéric Danis <frederic.danis@xxxxxxxxxxxxx> Date: Fri Dec 8 11:17:11 2023 +0100 tools: avtest: Add reject-code option Some PTS tests like A2DP/SNK/AVP/BI-03-C, A2DP/SNK/AVP/BI-08-C , … request some specific rejection code to pass. This commit adds an option to specify the rejection code during AVDTP_SET_CONFIGURATION rejection. E.g. "avtest --reject setconf --reject-code 195" to reject setconf with INVALID_SAMPLING_FREQUENCY code. Yeah, we need to put together these instructions into a proper documentation, which is why I was asking companies to collaborate: https://github.com/orgs/bluez/discussions/817 > Bluez version: 5.65 > pulseaudio version: 15.0 > kernel version: 6.6.38 > > Note: We are observing avdtp connection failure with iphone due to this > timer sometimes. > > > Thanks & Regards, > Raghavender > > > > > -- Luiz Augusto von Dentz