avdtp: update test files for delay report

This commit is contained in:
Milanka Ringwald 2018-04-24 14:43:23 +02:00
parent bc18ee1a25
commit 619d05643b
3 changed files with 12 additions and 3 deletions

View File

@ -361,6 +361,7 @@ typedef enum {
AVDTP_SIGNALING_CONNECTION_INITIATOR_W2_GET_CAPABILITIES,
AVDTP_SIGNALING_CONNECTION_INITIATOR_W2_GET_ALL_CAPABILITIES,
AVDTP_SIGNALING_CONNECTION_INITIATOR_W2_GET_CONFIGURATION,
AVDTP_SIGNALING_CONNECTION_INITIATOR_W2_SEND_DELAY_REPORT,
AVDTP_SIGNALING_CONNECTION_INITIATOR_W4_ANSWER
} avdtp_initiator_connection_state_t;
@ -398,6 +399,9 @@ typedef struct {
uint8_t local_seid;
uint8_t remote_seid;
uint16_t delay_ms;
// for repeating the set_configuration
void * active_stream_endpoint;

View File

@ -124,7 +124,7 @@ typedef struct {
// mac 2011: static const char * device_addr_string = "04:0C:CE:E4:85:D3";
// pts:
static const char * device_addr_string = "00:1B:DC:08:0A:A5";
static const char * device_addr_string = "00:1B:DC:07:32:EF";
// mac 2013: static const char * device_addr_string = "84:38:35:65:d1:15";
// phone 2013: static const char * device_addr_string = "D8:BB:2C:DF:F0:F2";
// minijambox: static const char * device_addr_string = "00:21:3C:AC:F7:38";
@ -632,6 +632,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
sbc_configuration.frames_per_buffer = sbc_configuration.subbands * sbc_configuration.block_length;
dump_sbc_configuration(sbc_configuration);
avdtp_sink_delay_report(avdtp_cid, remote_seid, 100);
media_processing_close();
media_processing_init(sbc_configuration);
break;
@ -726,6 +727,7 @@ static void show_usage(void){
printf("A - abort stream with %d\n", remote_seid);
printf("P - suspend (pause) stream with %d\n", remote_seid);
printf("S - stop (release) stream with %d\n", remote_seid);
printf("D - send delay report");
printf("C - disconnect\n");
printf("Ctrl-c - exit\n");
printf("---\n");
@ -798,7 +800,10 @@ static void stdin_process(char cmd){
printf("Suspend stream between local %d and remote %d seid\n", local_seid, remote_seid);
status = avdtp_sink_suspend(avdtp_cid, local_seid);
break;
case 'D':
printf("Send delay report between local %d and remote %d seid\n", local_seid, remote_seid);
status = avdtp_sink_delay_report(avdtp_cid, remote_seid, 100);
break;
case '\n':
case '\r':
is_cmd_triggered_localy = 0;

View File

@ -92,7 +92,7 @@ typedef struct {
#ifdef HAVE_BTSTACK_STDIN
// mac 2011: static const char * device_addr_string = "04:0C:CE:E4:85:D3";
// pts:
static const char * device_addr_string = "00:1B:DC:08:0A:A5";
static const char * device_addr_string = "00:1B:DC:07:32:EF";
// mac 2013: static const char * device_addr_string = "84:38:35:65:d1:15";
// phone 2013: static const char * device_addr_string = "D8:BB:2C:DF:F0:F2";
// minijambox: static const char * device_addr_string = "00:21:3C:AC:F7:38";