Page 1 of 1

The problem of the “a2db_sink” samples

Posted: Mon Aug 05, 2024 2:29 am
by dhlgclh
ESP32-DevKitC development board, use VisualStudio2017 to burn and test the "a2dp_sink" routine, the phone can detect the Bluetooth ESP_SPEAKER and connect successfully, the phone can play music, but the phone player only plays for 30+ seconds, The development board will automatically disconnect the Bluetooth connection, and then use the mobile phone to connect or use the laptop to connect, repeat many times, can only connect 30 + seconds development board is still automatically disconnected, what is the reason?

Re: The problem of the “a2db_sink” samples

Posted: Mon Aug 05, 2024 4:25 am
by dhlgclh
log as below:

load:0x40080404,len:3904
entry 0x40080640
I (31) boot: ESP-IDF v5.3 2nd stage bootloader
I (31) boot: compile time Aug 2 2024 16:46:46
I (31) boot: Multicore bootloader
I (35) boot: chip revision: v1.0
I (38) boot.esp32: SPI Speed : 40MHz
I (43) boot.esp32: SPI Mode : DIO
I (48) boot.esp32: SPI Flash Size : 2MB
I (52) boot: Enabling RNG early entropy source
I (58) boot: Partition Table:
I (61) boot: ## Label Usage
I (68) boot: 0 nvs WiFi data
I (76) boot: 1 phy_init RF data
I (83) boot: 2 factory factory app
I (91) boot: End of partition table
I (95) esp_image: segment 0: paddr=00010020 va
I (168) esp_image: segment 1: paddr=0003dc08 v
I (171) esp_image: segment 2: paddr=00040020 v
I (408) esp_image: segment 3: paddr=000e7700 v
I (412) esp_image: segment 4: paddr=000e9ec0 v
I (464) boot: Loaded app from partition at off
I (464) boot: Disabling RNG early entropy sour
I (476) cpu_start: Multicore app
I (485) cpu_start: Pro cpu start user code
I (485) cpu_start: cpu freq: 160000000 Hz
I (485) app_init: Application information:
I (488) app_init: Project name: a2dp_sink
I (493) app_init: App version: 1
I (497) app_init: Compile time: Aug 2 202
I (503) app_init: ELF file SHA256: 9fce193eb.
I (508) app_init: ESP-IDF: v5.3
I (513) efuse_init: Min chip rev: v0.0
I (518) efuse_init: Max chip rev: v3.99
I (523) efuse_init: Chip rev: v1.0
I (528) heap_init: Initializing. RAM available
I (535) heap_init: At 3FFAFF10 len 000000F0 (0
I (541) heap_init: At 3FFB6388 len 00001C78 (7
I (547) heap_init: At 3FFB9A20 len 00004108 (1
I (553) heap_init: At 3FFCC198 len 00013E68 (7
I (559) heap_init: At 3FFE0440 len 00003AE0 (1
I (565) heap_init: At 3FFE4350 len 0001BCB0 (1
I (572) heap_init: At 40097718 len 000088E8 (3
I (580) spi_flash: detected chip: generic
I (583) spi_flash: flash io: dio
W (587) spi_flash: Detected size(4096k) larger
I (601) coexist: coex firmware version: dab85a
I (606) main_task: Started on CPU0
I (616) main_task: Calling app_main()
I (646) BTDM_INIT: BT controller compile version [f021fb7]
I (646) BTDM_INIT: BT controller compile version [f021fb7]
I (646) BTDM_INIT: BT controller compile version [f021fb7]
I (646) BTDM_INIT: Bluetooth MAC: bc:dd:c2:cc:4b:be
I (646) phy_init: phy_version 4830,54550f7,Jun 20 2024,14:22:08
W (1316) BT_BTC: A2DP Enable with AVRC
I (646) BTDM_INIT: BT controller compile version [f021fb7]
I (646) BTDM_INIT: Bluetooth MAC: bc:dd:c2:cc:4b:be
I (646) phy_init: phy_version 4830,54550f7,Jun 20 2024,14:22:08
I (646) BTDM_INIT: BT controller compile version [f021fb7]
I (646) BTDM_INIT: Bluetooth MAC: bc:dd:c2:cc:4b:be
I (646) BTDM_INIT: BT controller compile version [f021fb7]
I (646) BTDM_INIT: BT controller compile version [f021fb7]
I (646) BTDM_INIT: BT controller compile version [f021fb7]
I (646) BTDM_INIT: Bluetooth MAC: bc:dd:c2:cc:4b:be
I (646) phy_init: phy_version 4830,54550f7,Jun 20 2024,14:22:08
W (1316) BT_BTC: A2DP Enable with AVRC
I (1336) BT_AV: A2DP PROF STATE: Init Complete
I (1336) BT_AV: event: 10
I (1336) BT_AV: event: 10
I (1336) BT_AV: event: 10
I (1346) BT_AV: Get delay report value: delay_value: 1200 * 1/10 ms
I (1346) BT_AV: event: 23
I (1346) BT_AV: Set delay report value: success, delay_value: 1250 * 1/10 ms
I (1346) main_task: Returned from app_main()
W (75716) BT_HCI: hcif conn complete: hdl 0x80, st 0x0
I (75726) BT_AV: ESP_BT_GAP_ACL_CONN_CMPL_STAT_EVT Connected to [3c:b2:33:45:2b:5c], status: 0x0
W (75756) BT_HCI: hcif link supv_to changed: hdl 0x80, supv_to 8000
I (75876) BT_AV: Encryption mode to [3c:b2:33:45:2b:5c] changed to E0
E (75926) BT_APPL: bta_av_rc_create ACP handle exist for shdl:0
I (75926) BT_AV: A2DP connection state: Connecting, [3c:b2:33:45:2b:5c]
I (75956) BT_AV: A2DP audio stream configuration, codec type: 0
I (75956) BT_AV: Configure audio player: 21-15-2-35
I (75956) BT_AV: Audio player configured, sample rate: 44100
I (75966) BT_AV: protocol service capabilities configured: 0x0
I (75976) BT_AV: Peer device unsupport delay reporting
W (76006) BT_APPL: new conn_srvc id:19, app_id:0
I (76006) BT_AV: A2DP connection state: Connected, [3c:b2:33:45:2b:5c]
I (76006) BT_APP_CORE: ringbuffer data empty! mode changed: RINGBUFFER_MODE_PREFETCHING
I (76086) RC_CT: AVRC conn_state event: state 1, [3c:b2:33:45:2b:5c]
I (76086) RC_CT: AVRC remote features 259, TG features c1
I (76106) RC_CT: remote rn_cap: count 8, bitmask 0x1f26
W (79206) BT_HCI: hci cmd send: sniff: hdl 0x80, intv(400 800)
W (109206) BT_HCI: hci cmd send: sniff: hdl 0x80, intv(400 800)
W (109206) BT_HCI: hcif mode change: hdl 0x80, mode 0, intv 0, status 0x22
W (109216) BT_HCI: btu_hcif_hdl_command_status,opcode:0x0803,status:0x02
E (109216) BT_APPL: bta_dm_pm_btm_status hci_status=34
I (109226) BT_AV: ESP_BT_GAP_MODE_CHG_EVT mode: 0
W (109286) BT_SDP: SDP - Rcvd L2CAP disc cfm, unknown CID: 0x42

W (109286) BT_HCI: hcif disc complete: hdl 0x80, rsn 0x22
W (109286) BT_APPL: bta_dm_act no entry for connected service cbs
W (109296) BT_AVCT: ccb 1 not allocated
I (109296) BT_AV: ESP_BT_GAP_ACL_DISC_CMPL_STAT_EVT Disconnected from [3c:b2:33:45:2b:5c], reason: 0x122
I (109306) BT_AV: A2DP connection state: Disconnected, [3c:b2:33:45:2b:5c]
I (109316) RC_CT: AVRC conn_state event: state 0, [00:00:00:00:00:00]
W (492876) BT_HCI: hcif conn complete: hdl 0x80, st 0x0
I (492876) BT_AV: ESP_BT_GAP_ACL_CONN_CMPL_STAT_EVT Connected to [f4:b3:01:6f:e0:59], status: 0x0
I (493256) BT_AV: ESP_BT_GAP_CFM_REQ_EVT Please compare the numeric value: 366744
I (498826) BT_AV: authentication success: LAPTOP-8QG0IU5T
I (498826) BT_AV: f4 b3 01 6f e0 59
I (498826) BT_AV: link key type of current link is: 5
I (498836) BT_AV: Encryption mode to [f4:b3:01:6f:e0:59] changed to E0
I (498986) RC_TG: AVRC conn_state evt: state 1, [f4:b3:01:6f:e0:59]
I (498986) RC_TG: start volume change simulation
I (499106) RC_TG: AVRC register event notification: 13, param: 0x0
I (499126) RC_CT: AVRC conn_state event: state 1, [f4:b3:01:6f:e0:59]
I (499126) RC_CT: AVRC remote features 24b, TG features 11
I (499126) RC_TG: AVRC remote features: 24b, CT features: 2
I (499136) RC_CT: remote rn_cap: count 6, bitmask 0xf06
I (499156) RC_CT: AVRC metadata rsp: attribute id 0x1,
I (499156) RC_CT: AVRC metadata rsp: attribute id 0x2,
I (499156) RC_CT: AVRC metadata rsp: attribute id 0x4,
W (500986) BT_APPL: reset flags
I (500996) BT_AV: A2DP connection state: Connecting, [f4:b3:01:6f:e0:59]
I (508996) RC_TG: Volume is set locally to: 3%
I (518996) RC_TG: Volume is set locally to: 7%
I (528996) RC_TG: Volume is set locally to: 11%
I (538996) RC_TG: Volume is set locally to: 15%
I (548996) RC_TG: Volume is set locally to: 19%
I (558996) RC_TG: Volume is set locally to: 23%
W (560996) BT_SDP: SDP - Rcvd conn cnf with error: 0xeeee CID 0x40

W (560996) BT_BTC: BTA_AV_OPEN_EVT::FAILED status: 2

I (560996) BT_AV: A2DP connection state: Disconnected, [f4:b3:01:6f:e0:59]
I (568996) RC_TG: Volume is set locally to: 27%
I (578996) RC_TG: Volume is set locally to: 31%
I (588996) RC_TG: Volume is set locally to: 35%
I (598996) RC_TG: Volume is set locally to: 39%
W (603456) BT_HCI: hcif disc complete: hdl 0x80, rsn 0x8
I (603456) BT_AV: ESP_BT_GAP_ACL_DISC_CMPL_STAT_EVT Disconnected from [f4:b3:01:6f:e0:59], reason: 0x108
I (603466) RC_CT: AVRC conn_state event: state 0, [00:00:00:00:00:00]
I (603476) RC_TG: AVRC conn_state evt: state 0, [00:00:00:00:00:00]
I (603476) RC_TG: Stop volume change simulation

Re: The problem of the “a2db_sink” samples

Posted: Fri Aug 09, 2024 2:16 am
by dhlgclh
Why is no one coming forward to answer questions?  Is the company about to go out of business?