Hallo zusammen,
ich versuche gerade, einen BT-Kopfhörer an meinem ESPuino (Lolin D32 pro) lauffähig zu bekommen. Die Verbindung klappt aber sobald die Tonausgabe startet, wird die Verbindung ohne Logeintrag getrennt (die Verbindungs-LED am Kopfhörer blinkt) und der Ton kommt normal aus dem Lautsprecher. Unterschiedliche Kopfhörer zeigen das gleiche Verhalten.
Das Log dazu:
[ 1210 ] Software-revision: 20230214-1
[ 1214 ] Git-revision: 4df0da8-dirty
[ 1217 ] ESP-IDF version: v3.3.5-1-g85c43024c
[ 1221 ] Wakeup was not caused by deepsleep: 0
[ 1225 ] Versuche SD-Karte wird im SD_MMC-Modus (1 Bit) zu mounten...
[ 1232 ] SD card type: [ 1234 ] SDHC
[ 1235 ] SD-Kartengröße / freier Speicherplatz: 121942 MB / 120224 MB
[ 1242 ] FTP-User wurde aus NVS geladen: esp32
[ 1246 ] FTP-Passwort wurde aus NVS geladen: esp32
[ 1351 ] RFID-Tags koennen jetzt gescannt werden...
[E][Preferences.cpp:472] getString(): nvs_get_str len fail: btDeviceName NOT_FOUND
[ 1874 ] Bluetooth source started, connect to device: 'First device found'
[ 1877 ] Freier Heap-Speicher nach Setup-Routine: 63768
[ 1882 ] PSRAM: 4192108 bytes
[ 1885 ] Flash-size: 16777216 bytes
[ 1892 ] Neue Lautstärke empfangen via Queue: 2
[ 1977 ] Bluetooth source => connection state: Connecting
[ 2737 ] Bluetooth source => connection state: Connected
[ 10005 ] Aktuelle Batteriespannung: 4.04 V
[ 10007 ] Aktuelle Batterieladung: 86.41 %
[ 12290 ] Bluetooth source => audio state: Started
[ 12423 ] RFID-Karte erkannt: 6a-db-f2-80
[ 12423 ] RFID-Karte empfangen: 106219242128
[ 12439 ] Playlist-Generierung: cached
[ 12444 ] Freier Speicher: 56824
[ 12444 ] Anzahl gültiger Files/Webstreams: 17
[ 12445 ] Modus: Alle Tracks eines Ordners zufällig in Endlosschleife
[ 12453 ] Neue Playlist empfangen mit 17 Titel(n)
[ 12453 ] Free heap: : 57620
[ 12499 ] info : PSRAM found, inputBufferSize: 283615 bytes
[ 12508 ] info : buffers freed, free Heap: 57620 bytes
[ 12511 ] info : Reading file: "/07/006.MP3"
[ 12521 ] info : MP3Decoder has been initialized, free Heap: 34008 bytes
[ 12522 ] '/07/006.MP3' wird abgespielt (1 von 17)
[ 12934 ] info : stream ready
[ 12935 ] info : Content-Length: 65865600
[ 12935 ] info : ID3 framesSize: 49102
[ 12935 ] info : ID3 version: 2.3
[ 12939 ] info : ID3 normal frames
[ 12944 ] id3data : Artist: Die drei Fragezeichen Kids
[ 12952 ] id3data : ContentType: Hörspiel
[ 12953 ] id3data : Band: Die Drei Fragezeichen Kids
[ 12958 ] id3data : Album: 06 - Gefahr im Gruselgarten
[ 12963 ] id3data : Year: 2009
[ 13080 ] info : Audio-Length: 65816498
[ 13080 ] info : syncword found at pos 0
[ 13086 ] info : Channels: 2
[ 13086 ] info : SampleRate: 44100
[ 13086 ] info : BitsPerSample: 16
[ 13088 ] info : BitRate: 128000
[ 13108 ] info : VBR recognized, audioFileDuration is estimated
[ 31288 ] Gehe jetzt in Deep Sleep!
[ 31288 ] Lautsprecher ausgeschaltet
[ 31497 ] deep-sleep, good night.......
Ein Debug-Log hab ich auch (mit fest hinterlegtem Gerätenamen):
[ 1213 ] Software-revision: 20230214-1
[ 1217 ] Git-revision: 4df0da8-dirty
[ 1220 ] ESP-IDF version: v3.3.5-1-g85c43024c
[ 1224 ] Wakeup was not caused by deepsleep: 0
[ 1228 ] Versuche SD-Karte wird im SD_MMC-Modus (1 Bit) zu mounten...
[ 1235 ] SD card type: [ 1237 ] SDHC
[ 1238 ] SD-Kartengröße / freier Speicherplatz: 121942 MB / 120224 MB
[ 1245 ] FTP-User wurde aus NVS geladen: esp32
[ 1249 ] FTP-Passwort wurde aus NVS geladen: esp32
[ 1354 ] RFID-Tags koennen jetzt gescannt werden...
[D][BluetoothA2DPSource.cpp:111] BluetoothA2DPSource(): BluetoothA2DPSource,
[D][BluetoothA2DPSource.cpp:141] set_pin_code(): set_pin_code,
[D][BluetoothA2DPSource.cpp:153] start(): start,
[D][BluetoothA2DPSource.cpp:171] start_raw(): start_raw,
[D][BluetoothA2DPCommon.cpp:149] get_last_connection(): get_last_connection
[D][BluetoothA2DPCommon.cpp:172] get_last_connection(): => e8:07:bf:86:a2:24
[D][BluetoothA2DPSource.cpp:324] bt_app_task_start_up(): bt_app_task_start_up
[D][BluetoothA2DPSource.cpp:250] bt_app_work_dispatch(): bt_app_work_dispatch event 0x0, param len 0
[D][BluetoothA2DPSource.cpp:301] bt_app_task_handler(): bt_app_task_handler, sig 0x1, 0x0
[D][BluetoothA2DPSource.cpp:535] bt_av_hdl_stack_evt(): bt_av_hdl_stack_evt evt 0
[I][BluetoothA2DPCommon.cpp:291] set_scan_mode_connectable(): set_scan_mode_connectable true
[W][BluetoothA2DPSource.cpp:561] bt_av_hdl_stack_evt(): Reconnecting to e8:07:bf:86:a2:24
[W][BluetoothA2DPCommon.cpp:41] connect_to(): connect_to to e8:07:bf:86:a2:24
[I][BluetoothA2DPCommon.cpp:291] set_scan_mode_connectable(): set_scan_mode_connectable true
[E][Preferences.cpp:472] getString(): nvs_get_str len fail: btDeviceName NOT_FOUND
[ 1931 ] Bluetooth source started, connect to device: 'Soundcore Life Q10'
[I][BluetoothA2DPCommon.h:119] set_volume(): set_volume: 127
[ 1943 ] Freier Heap-Speicher nach Setup-Routine: 62996
[ 1948 ] PSRAM: 4192316 bytes
[ 1951 ] Flash-size: 16777216 bytes
[ 1958 ] Neue Lautstärke empfangen via Queue: 2
[D][BluetoothA2DPSource.cpp:250] bt_app_work_dispatch(): bt_app_work_dispatch event 0x0, param len 16
[D][BluetoothA2DPSource.cpp:301] bt_app_task_handler(): bt_app_task_handler, sig 0x1, 0x0
[I][BluetoothA2DPSource.cpp:631] bt_app_av_sm_hdlr(): bt_app_av_sm_hdlr state 4, evt 0x0
[D][BluetoothA2DPSource.cpp:599] process_user_state_callbacks(): process_user_state_callbacks
[D][BluetoothA2DPSource.cpp:607] process_user_state_callbacks(): process_user_state_callbacks ESP_A2D_CONNECTION_STATE_EVT: Connecting
[D][BluetoothA2DPSource.cpp:696] bt_app_av_state_connecting(): bt_app_av_state_connecting evt 0
[D][BluetoothA2DPSource.cpp:250] bt_app_work_dispatch(): bt_app_work_dispatch event 0x0, param len 16
[D][BluetoothA2DPSource.cpp:301] bt_app_task_handler(): bt_app_task_handler, sig 0x1, 0x0
[I][BluetoothA2DPSource.cpp:631] bt_app_av_sm_hdlr(): bt_app_av_sm_hdlr state 4, evt 0x0
[D][BluetoothA2DPSource.cpp:599] process_user_state_callbacks(): process_user_state_callbacks
[D][BluetoothA2DPSource.cpp:607] process_user_state_callbacks(): process_user_state_callbacks ESP_A2D_CONNECTION_STATE_EVT: Connected
[D][BluetoothA2DPSource.cpp:696] bt_app_av_state_connecting(): bt_app_av_state_connecting evt 0
[I][BluetoothA2DPSource.cpp:702] bt_app_av_state_connecting(): a2dp connected
[I][BluetoothA2DPCommon.cpp:291] set_scan_mode_connectable(): set_scan_mode_connectable false
[D][BluetoothA2DPSource.cpp:854] bt_app_rc_ct_cb(): bt_app_rc_ct_cb evt 0
[D][BluetoothA2DPSource.cpp:250] bt_app_work_dispatch(): bt_app_work_dispatch event 0x0, param len 12
[D][BluetoothA2DPSource.cpp:301] bt_app_task_handler(): bt_app_task_handler, sig 0x1, 0x0
[D][BluetoothA2DPSource.cpp:897] bt_av_hdl_avrc_ct_evt(): bt_av_hdl_avrc_ct_evt evt 0
[I][BluetoothA2DPSource.cpp:903] bt_av_hdl_avrc_ct_evt(): AVRC conn_state evt: state 1, [e8:07:bf:86:a2:24]
[D][BluetoothA2DPSource.cpp:854] bt_app_rc_ct_cb(): bt_app_rc_ct_cb evt 5
[D][BluetoothA2DPSource.cpp:250] bt_app_work_dispatch(): bt_app_work_dispatch event 0x5, param len 12
[D][BluetoothA2DPSource.cpp:301] bt_app_task_handler(): bt_app_task_handler, sig 0x1, 0x5
[D][BluetoothA2DPSource.cpp:897] bt_av_hdl_avrc_ct_evt(): bt_av_hdl_avrc_ct_evt evt 5
[I][BluetoothA2DPSource.cpp:934] bt_av_hdl_avrc_ct_evt(): AVRC remote features
[ 10002 ] Aktuelle Batteriespannung: 4.05 V
[ 10003 ] Aktuelle Batterieladung: 85.55 %
[D][BluetoothA2DPSource.cpp:250] bt_app_work_dispatch(): bt_app_work_dispatch event 0xff00, param len 0
[D][BluetoothA2DPSource.cpp:301] bt_app_task_handler(): bt_app_task_handler, sig 0x1, 0xff00
[I][BluetoothA2DPSource.cpp:631] bt_app_av_sm_hdlr(): bt_app_av_sm_hdlr state 5, evt 0xff00
[D][BluetoothA2DPSource.cpp:599] process_user_state_callbacks(): process_user_state_callbacks
[D][BluetoothA2DPSource.cpp:733] bt_app_av_state_connected(): bt_app_av_state_connected evt 65280
[D][BluetoothA2DPSource.cpp:793] bt_app_av_media_proc(): bt_app_av_media_proc evt 65280
[I][BluetoothA2DPSource.cpp:798] bt_app_av_media_proc(): a2dp media ready checking ...
[D][BluetoothA2DPSource.cpp:250] bt_app_work_dispatch(): bt_app_work_dispatch event 0x3, param len 16
[D][BluetoothA2DPSource.cpp:301] bt_app_task_handler(): bt_app_task_handler, sig 0x1, 0x3
[I][BluetoothA2DPSource.cpp:631] bt_app_av_sm_hdlr(): bt_app_av_sm_hdlr state 5, evt 0x3
[D][BluetoothA2DPSource.cpp:599] process_user_state_callbacks(): process_user_state_callbacks
[D][BluetoothA2DPSource.cpp:733] bt_app_av_state_connected(): bt_app_av_state_connected evt 3
[D][BluetoothA2DPSource.cpp:793] bt_app_av_media_proc(): bt_app_av_media_proc evt 3
[I][BluetoothA2DPSource.cpp:804] bt_app_av_media_proc(): a2dp media ready, starting ...
[D][BluetoothA2DPSource.cpp:250] bt_app_work_dispatch(): bt_app_work_dispatch event 0x3, param len 16
[D][BluetoothA2DPSource.cpp:301] bt_app_task_handler(): bt_app_task_handler, sig 0x1, 0x3
[D][BluetoothA2DPSource.cpp:250] bt_app_work_dispatch(): bt_app_work_dispatch event 0x1, param len 16
[I][BluetoothA2DPSource.cpp:631] bt_app_av_sm_hdlr(): bt_app_av_sm_hdlr state 5, evt 0x3
[D][BluetoothA2DPSource.cpp:599] process_user_state_callbacks(): process_user_state_callbacks
[D][BluetoothA2DPSource.cpp:733] bt_app_av_state_connected(): bt_app_av_state_connected evt 3
[D][BluetoothA2DPSource.cpp:793] bt_app_av_media_proc(): bt_app_av_media_proc evt 3
[I][BluetoothA2DPSource.cpp:816] bt_app_av_media_proc(): a2dp media start successfully.
[D][BluetoothA2DPSource.cpp:301] bt_app_task_handler(): bt_app_task_handler, sig 0x1, 0x1
[I][BluetoothA2DPSource.cpp:631] bt_app_av_sm_hdlr(): bt_app_av_sm_hdlr state 5, evt 0x1
[D][BluetoothA2DPSource.cpp:599] process_user_state_callbacks(): process_user_state_callbacks
[D][BluetoothA2DPSource.cpp:618] process_user_state_callbacks(): process_user_state_callbacks ESP_A2D_AUDIO_STATE_EVT: Started
[ 12379 ] Bluetooth source => audio state: Started
[D][BluetoothA2DPSource.cpp:733] bt_app_av_state_connected(): bt_app_av_state_connected evt 1
[ 13128 ] RFID-Karte erkannt: 6a-db-f2-80
[ 13128 ] RFID-Karte empfangen: 106219242128
[ 13145 ] Playlist-Generierung: cached
[ 13149 ] Freier Speicher: 56348
[ 13150 ] Anzahl gültiger Files/Webstreams: 17
[ 13150 ] Modus: Alle Tracks eines Ordners zufällig in Endlosschleife
[ 13163 ] Neue Playlist empfangen mit 17 Titel(n)
[ 13163 ] Free heap: : 57148
[ 13210 ] info : PSRAM found, inputBufferSize: 283615 bytes
[V][ssl_client.cpp:265] stop_ssl_socket(): Cleaning SSL connection.
[ 13221 ] info : buffers freed, free Heap: 57148 bytes
[ 13223 ] info : Reading file: "/07/015.MP3"
[ 13236 ] info : MP3Decoder has been initialized, free Heap: 33556 bytes
[ 13236 ] '/07/015.MP3' wird abgespielt (1 von 17)
[ 13586 ] info : stream ready
[ 13586 ] info : Content-Length: 66985856
[ 13586 ] info : ID3 framesSize: 57092
[ 13587 ] info : ID3 version: 2.3
[ 13590 ] info : ID3 normal frames
[ 13595 ] id3data : Artist: Die drei Fragezeichen Kids
[ 13603 ] id3data : ContentType: Hörspiel
[ 13604 ] id3data : Band: Die Drei Fragezeichen Kids
[ 13609 ] id3data : Album: 15 - In der Geisterstadt
[ 13614 ] id3data : Year: 2010
[ 13727 ] info : Audio-Length: 66928764
[ 13727 ] info : syncword found at pos 0
[ 13733 ] info : Channels: 2
[ 13733 ] info : SampleRate: 44100
[ 13733 ] info : BitsPerSample: 16
[ 13735 ] info : BitRate: 128000
[ 13755 ] info : VBR recognized, audioFileDuration is estimated
[D][BluetoothA2DPSource.cpp:250] bt_app_work_dispatch(): bt_app_work_dispatch event 0xff00, param len 0
[D][BluetoothA2DPSource.cpp:301] bt_app_task_handler(): bt_app_task_handler, sig 0x1, 0xff00
[I][BluetoothA2DPSource.cpp:631] bt_app_av_sm_hdlr(): bt_app_av_sm_hdlr state 5, evt 0xff00
[D][BluetoothA2DPSource.cpp:599] process_user_state_callbacks(): process_user_state_callbacks
[D][BluetoothA2DPSource.cpp:733] bt_app_av_state_connected(): bt_app_av_state_connected evt 65280
[D][BluetoothA2DPSource.cpp:793] bt_app_av_media_proc(): bt_app_av_media_proc evt 65280
[D][BluetoothA2DPSource.cpp:250] bt_app_work_dispatch(): bt_app_work_dispatch event 0xff00, param len 0
[D][BluetoothA2DPSource.cpp:301] bt_app_task_handler(): bt_app_task_handler, sig 0x1, 0xff00
[I][BluetoothA2DPSource.cpp:631] bt_app_av_sm_hdlr(): bt_app_av_sm_hdlr state 5, evt 0xff00
[D][BluetoothA2DPSource.cpp:599] process_user_state_callbacks(): process_user_state_callbacks
[D][BluetoothA2DPSource.cpp:733] bt_app_av_state_connected(): bt_app_av_state_connected evt 65280
[D][BluetoothA2DPSource.cpp:793] bt_app_av_media_proc(): bt_app_av_media_proc evt 65280
[D][BluetoothA2DPSource.cpp:250] bt_app_work_dispatch(): bt_app_work_dispatch event 0xff00, param len 0
[D][BluetoothA2DPSource.cpp:301] bt_app_task_handler(): bt_app_task_handler, sig 0x1, 0xff00
[I][BluetoothA2DPSource.cpp:631] bt_app_av_sm_hdlr(): bt_app_av_sm_hdlr state 5, evt 0xff00
[D][BluetoothA2DPSource.cpp:599] process_user_state_callbacks(): process_user_state_callbacks
[D][BluetoothA2DPSource.cpp:733] bt_app_av_state_connected(): bt_app_av_state_connected evt 65280
[D][BluetoothA2DPSource.cpp:793] bt_app_av_media_proc(): bt_app_av_media_proc evt 65280
[D][BluetoothA2DPSource.cpp:250] bt_app_work_dispatch(): bt_app_work_dispatch event 0xff00, param len 0
[D][BluetoothA2DPSource.cpp:301] bt_app_task_handler(): bt_app_task_handler, sig 0x1, 0xff00
[I][BluetoothA2DPSource.cpp:631] bt_app_av_sm_hdlr(): bt_app_av_sm_hdlr state 5, evt 0xff00
[D][BluetoothA2DPSource.cpp:599] process_user_state_callbacks(): process_user_state_callbacks
[D][BluetoothA2DPSource.cpp:733] bt_app_av_state_connected(): bt_app_av_state_connected evt 65280
[D][BluetoothA2DPSource.cpp:793] bt_app_av_media_proc(): bt_app_av_media_proc evt 65280
[D][BluetoothA2DPSource.cpp:250] bt_app_work_dispatch(): bt_app_work_dispatch event 0xff00, param len 0
[D][BluetoothA2DPSource.cpp:301] bt_app_task_handler(): bt_app_task_handler, sig 0x1, 0xff00
[I][BluetoothA2DPSource.cpp:631] bt_app_av_sm_hdlr(): bt_app_av_sm_hdlr state 5, evt 0xff00
[D][BluetoothA2DPSource.cpp:599] process_user_state_callbacks(): process_user_state_callbacks
[D][BluetoothA2DPSource.cpp:733] bt_app_av_state_connected(): bt_app_av_state_connected evt 65280
[D][BluetoothA2DPSource.cpp:793] bt_app_av_media_proc(): bt_app_av_media_proc evt 65280
[D][BluetoothA2DPSource.cpp:854] bt_app_rc_ct_cb(): bt_app_rc_ct_cb evt 0
Bzgl. BT habe ich, nachdem ich anfänglich alle Anpassungen hier im Thread auch bei mir eingesetzt (erstes Testobjekt war der Action-Kopfhörer), derzeit die Default-Config.
Hat jemand eine Idee, woran das Verhalten liegen könnte?
Danke und Gruß
Lars