schreibfaul1 / ESP32-MiniWebRadio

Internetradio with ESP32, I2S DAC and SPI TFT Display with Touchpad
https://www.youtube.com/watch?v=6QbPee2583o
325 stars 80 forks source link

slow stream, dropouts are possible #434

Closed valera39 closed 2 months ago

valera39 commented 5 months ago

Hi Dear Wolle! In version 3 of the radio, on some stations playback is interrupted, look at the log please. On the receiver version 2 all streams work without fail.

ESP32 Chip: ESP32-S3 Arduino Version: 2.0.16 ESP-IDF Version: 4.4.7 MiniWebRadio Version 3.1 May 21/2024 ARDUINO_LOOP_STACK_SIZE 8192 words (32 bit) FLASH size 8388608 bytes, speed 80 MHz CPU speed 240 MHz SDMMC speed 80 MHz TFT speed 40 MHz PSRAM total size: 8381399 bytes RESET_REASON: Reset due to power-on event

00:00:00
00:00:00
00:00:00
MiniWebRadio V3
00:00:00

00:00:00 00:00:00 setup: .... Arduino is pinned to core 1 00:00:00 tft_info: . init ILI9488 00:00:00 setup: .... Init SD card 00:00:00 setup: .... SD card found, 3761.4 MB by 3781.5 MB free 00:00:01 setup: .... seek for stations.csv 00:00:01 setup: .... stations.csv found 00:00:01 setup: .... seek for WiFi networks [ 2392][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: ASUS_AC66U [ 2414][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: Honor 00:00:03 setup: .... 6 WiFi networks found 00:00:03 setup: .... ASUS_AC66U (-54) 00:00:03 setup: .... TP-LINK_E345E0_RPT (-67) 00:00:03 setup: .... TP-LINK_E345E0 (-77) 00:00:03 setup: .... ASUS_AC66U_RPT (-80) 00:00:03 setup: .... PS4network (-84) 00:00:03 setup: .... GG (-88) [ 10928][I][WiFiMulti.cpp:114] run(): [WIFI] scan done [ 10934][I][WiFiMulti.cpp:119] run(): [WIFI] 6 networks found [ 10941][I][WiFiMulti.cpp:160] run(): [WIFI] Connecting BSSID: 2C:FD:A1:C2:44:F0 SSID: ASUS_AC66U Channel: 1 (-53) [ 11021][I][WiFiMulti.cpp:174] run(): [WIFI] Connecting done. 00:00:10 WiFI_info: Connecting WiFi... 00:00:10 WiFI_info: mDNS name: MiniWebRadio 00:00:10 setup: .... connected to ASUS_AC66U, IP address is 192.168.1.130 [ 11062][I][ArduinoOTA.cpp:141] begin(): OTA server at: MiniWebRadio.local:3232 00:00:10 ftpServer: Buffers allocated: 4622 bytes 00:00:10 rtime_info: Initializing SNTP 02:00:10 rtime_info: Waiting for system time to be set... (1/10) 18:28:22 rtime_info: 18:28:22 18:28:22 audiotask: is pinned to core 0 18:28:22 audiotask: priority is 2 18:28:22 AUDIO_info: commFMT = 1 18:28:22 setup: .... Number of saved stations: 92 18:28:22 setup: .... current station number: 56 18:28:22 setup: .... current volume: 2 18:28:22 setup: .... last connected host: https://cast1.torontocast.com:1335/stream 18:28:22 setup: .... connection timeout: 1000 ms 18:28:22 setup: .... connection timeout SSL: 2500 ms 18:28:23 action: ... switch to station 56 18:28:23 AUDIO_info: Connect to new host: "http://harddanceradio.ddns.is74.ru:8000/eurodisco.m3u" 18:28:23 AUDIO_info: PSRAM found, inputBufferSize: 638965 bytes 18:28:23 AUDIO_info: buffers freed, free Heap: 166580 bytes 18:28:23 AUDIO_info: Connection has been established in 458 ms, free Heap: 165304 bytes 18:28:23 AUDIO_info: Connect to new host: "http://harddanceradio.ddns.is74.ru:8000/eurodisco" 18:28:23 AUDIO_info: buffers freed, free Heap: 165848 bytes 18:28:23 AUDIO_info: Connection has been established in 83 ms, free Heap: 164860 bytes 18:28:23 bitRate: 256Kbit/s 18:28:23 icy-descr: Eurodisco Syntpop Italodisco SynthWave 80s 90s 18:28:23 StationName: EURODISCO '80 [HDR] 18:28:23 icy-url: .. http://harddanceradio.ddns.is74.ru:8000 18:28:23 AUDIO_info: AACDecoder has been initialized, free Heap: 164336 bytes , free stack 5068 DWORDs 18:28:24 lastURL: .. http://harddanceradio.ddns.is74.ru:8000/eurodisco 18:28:24 WiFI_info: RSSI is -52 dB 18:28:24 Audiocodec: AAC 18:28:24 ftpServer: Ftp server waiting for connection on port 21 18:28:24 AUDIO_info: stream ready 18:28:24 AUDIO_info: syncword found at pos 80 18:28:24 AUDIO_info: syncword found at pos 0 18:28:24 AUDIO_info: Channels: 2 18:28:24 AUDIO_info: SampleRate: 44100 18:28:24 AUDIO_info: BitsPerSample: 16 18:28:24 AUDIO_info: BitRate: 280448 18:28:24 AUDIO_info: AAC HeaderFormat: ADTS 18:28:24 AUDIO_info: AAC Codec: MPEG-4 LowComplexity 18:28:24 BT-Emitter: KCX_BT_Emitter not found 18:28:24 StreamTitle: On-Line: 5 / Italo Made In Spain vol. 16 - Mixed By Juan Martinez & Toni Bafles (Long Version) (15:45) 18:28:24 BT-Emitter: KCX_BT_Emitter found 18:28:25 BT-Emitter: Version KCX_BT_RTX_V1.4 18:28:25 BT-Emitter: Volume -> 31 18:28:25 AUDIO_info: slow stream, dropouts are possible 18:28:27 AUDIO_info: slow stream, dropouts are possible 18:28:29 AUDIO_info: slow stream, dropouts are possible [ 21087][E][DLNAClient.cpp:225] readHttpHeader(): contentlength is not given [ 21095][E][DLNAClient.cpp:226] readHttpHeader(): content type not found 18:28:30 AUDIO_info: slow stream, dropouts are possible [ 21144][E][DLNAClient.cpp:749] loop(): error in readContent 18:28:31 AUDIO_info: slow stream, dropouts are possible 18:28:32 AUDIO_info: slow stream, dropouts are possible 18:28:32 AUDIO_info: Stream lost -> try new connection 18:28:32 AUDIO_info: Connect to new host: "http://harddanceradio.ddns.is74.ru:8000/eurodisco" 18:28:32 AUDIO_info: buffers freed, free Heap: 159264 bytes 18:28:32 AUDIO_info: Connection has been established in 355 ms, free Heap: 160640 bytes 18:28:33 bitRate: 256Kbit/s 18:28:33 icy-descr: Eurodisco Syntpop Italodisco SynthWave 80s 90s 18:28:33 StationName: EURODISCO '80 [HDR] 18:28:33 icy-url: .. http://harddanceradio.ddns.is74.ru:8000 18:28:33 AUDIO_info: AACDecoder has been initialized, free Heap: 159388 bytes , free stack 5068 DWORDs 18:28:33 lastURL: .. http://harddanceradio.ddns.is74.ru:8000/eurodisco 18:28:33 AUDIO_info: stream ready 18:28:33 AUDIO_info: syncword found at pos 287 18:28:33 AUDIO_info: syncword found at pos 0 18:28:33 AUDIO_info: Channels: 2 18:28:33 AUDIO_info: SampleRate: 44100 18:28:33 AUDIO_info: BitsPerSample: 16 18:28:33 AUDIO_info: BitRate: 271490 18:28:33 AUDIO_info: AAC HeaderFormat: ADTS 18:28:33 AUDIO_info: AAC Codec: MPEG-4 LowComplexity 18:28:33 StreamTitle: On-Line: 5 / Italo Made In Spain vol. 16 - Mixed By Juan Martinez & Toni Bafles (Long Version) (15:45) 18:28:35 AUDIO_info: slow stream, dropouts are possible 18:28:36 AUDIO_info: slow stream, dropouts are possible 18:28:36 BT-Emitter: Status -> Scan... 18:28:37 AUDIO_info: slow stream, dropouts are possible 18:28:38 AUDIO_info: slow stream, dropouts are possible 18:28:39 AUDIO_info: slow stream, dropouts are possible 18:28:40 AUDIO_info: slow stream, dropouts are possible 18:28:41 AUDIO_info: slow stream, dropouts are possible 18:28:42 AUDIO_info: Stream lost -> try new connection 18:28:42 AUDIO_info: Connect to new host: "http://harddanceradio.ddns.is74.ru:8000/eurodisco" 18:28:42 AUDIO_info: buffers freed, free Heap: 160952 bytes 18:28:42 AUDIO_info: Connection has been established in 83 ms, free Heap: 160636 bytes 18:28:42 bitRate: 256Kbit/s 18:28:42 icy-descr: Eurodisco Syntpop Italodisco SynthWave 80s 90s 18:28:42 StationName: EURODISCO '80 [HDR] 18:28:42 icy-url: .. http://harddanceradio.ddns.is74.ru:8000 18:28:42 AUDIO_info: AACDecoder has been initialized, free Heap: 159384 bytes , free stack 4844 DWORDs 18:28:42 lastURL: .. http://harddanceradio.ddns.is74.ru:8000/eurodisco 18:28:42 AUDIO_info: stream ready 18:28:42 AUDIO_info: syncword found at pos 327 18:28:42 AUDIO_info: slow stream, dropouts are possible 18:28:42 AUDIO_info: syncword found at pos 0 18:28:42 AUDIO_info: Channels: 2 18:28:42 AUDIO_info: SampleRate: 44100 18:28:42 AUDIO_info: BitsPerSample: 16 18:28:43 AUDIO_info: BitRate: 305943 18:28:43 AUDIO_info: AAC HeaderFormat: ADTS 18:28:43 AUDIO_info: AAC Codec: MPEG-4 LowComplexity 18:28:43 StreamTitle: On-Line: 5 / Italo Made In Spain vol. 16 - Mixed By Juan Martinez & Toni Bafles (Long Version) (15:45) 18:28:45 AUDIO_info: slow stream, dropouts are possible 18:28:46 BT-Emitter: scanned: MacAdd:5f673c5cfaec,Name:MIBOX4 18:28:46 BT-Emitter: CON MATCH ADD 18:28:46 BT-Emitter: CONNECT=>MacAdd:5f673c5cfaec,Name:MIBOX4 18:28:51 AUDIO_info: slow stream, dropouts are possible 18:29:01 AUDIO_info: slow stream, dropouts are possible 18:29:02 AUDIO_info: slow stream, dropouts are possible 18:29:02 BT-Emitter: CON MATCH ADD 18:29:02 BT-Emitter: CONNECT=>MacAdd:5f673c5cfaec,Name:MIBOX4 18:29:05 AUDIO_info: slow stream, dropouts are possible 18:29:06 StreamTitle: On-Line: 6 / Italo Made In Spain vol. 16 - Mixed By Juan Martinez & Toni Bafles (Long Version) (15:45) 18:29:11 action: ... switch to station 62 18:29:11 AUDIO_info: Connect to new host: "http://stream.polskastacja.pl/ps27_mp3" [ 62713][I][WiFiClient.cpp:539] connected(): Unexpected: RES: 0, ERR: 119 18:29:11 AUDIO_info: buffers freed, free Heap: 160960 bytes 18:29:12 AUDIO_info: Connection has been established in 214 ms, free Heap: 160428 bytes 18:29:12 bitRate: 128Kbit/s 18:29:12 bitRate: 128Kbit/s 18:29:12 icy-descr: Grupa Wirtualna Polska 18:29:12 StationName: 27_mp3 18:29:12 icy-url: .. http://grupawp.pl 18:29:12 AUDIO_info: MP3Decoder has been initialized, free Heap: 157132 bytes , free stack 4844 DWORDs 18:29:12 lastURL: .. http://stream.polskastacja.pl/ps27_mp3 18:29:12 AUDIO_info: stream ready 18:29:12 AUDIO_info: syncword found at pos 0 18:29:12 AUDIO_info: Channels: 2 18:29:12 AUDIO_info: SampleRate: 44100 18:29:12 AUDIO_info: BitsPerSample: 16 18:29:12 AUDIO_info: BitRate: 128000 18:29:12 StreamTitle: Fancy - Lady of Ice w Italo Disco 18:29:12 Audiocodec: MP3 18:29:24 BT-Emitter: CON MATCH ADD 18:29:24 BT-Emitter: CONNECT=>MacAdd:5f673c5cfaec,Name:MIBOX4 18:29:57 BT-Emitter: CON MATCH ADD 18:29:57 BT-Emitter: CONNECT=>MacAdd:5f673c5cfaec,Name:MIBOX4 18:30:17 BT-Emitter: CON MATCH ADD 18:30:17 BT-Emitter: CONNECT=>MacAdd:5f673c5cfaec,Name:MIBOX4 18:30:17 action: ... switch to station 56 18:30:17 AUDIO_info: Connect to new host: "http://harddanceradio.ddns.is74.ru:8000/eurodisco.m3u" 18:30:17 AUDIO_info: buffers freed, free Heap: 160480 bytes 18:30:17 AUDIO_info: Connection has been established in 93 ms, free Heap: 159932 bytes 18:30:17 AUDIO_info: Connect to new host: "http://harddanceradio.ddns.is74.ru:8000/eurodisco" 18:30:17 AUDIO_info: buffers freed, free Heap: 158652 bytes 18:30:17 AUDIO_info: Connection has been established in 85 ms, free Heap: 158892 bytes 18:30:18 bitRate: 256Kbit/s 18:30:18 icy-descr: Eurodisco Syntpop Italodisco SynthWave 80s 90s 18:30:18 StationName: EURODISCO '80 [HDR] 18:30:18 icy-url: .. http://harddanceradio.ddns.is74.ru:8000 18:30:18 AUDIO_info: AACDecoder has been initialized, free Heap: 153664 bytes , free stack 4844 DWORDs 18:30:18 lastURL: .. http://harddanceradio.ddns.is74.ru:8000/eurodisco 18:30:18 AUDIO_info: stream ready 18:30:18 AUDIO_info: syncword found at pos 382 18:30:18 AUDIO_info: syncword found at pos 0 18:30:18 AUDIO_info: Channels: 2 18:30:18 AUDIO_info: SampleRate: 44100 18:30:18 AUDIO_info: BitsPerSample: 16 18:30:18 AUDIO_info: BitRate: 242894 18:30:18 AUDIO_info: AAC HeaderFormat: ADTS 18:30:18 AUDIO_info: AAC Codec: MPEG-4 LowComplexity 20:30:18 StreamTitle: On-Line: 5 / Italo Made In Spain vol. 16 - Mixed By Juan Martinez & Toni Bafles (Long Version) (15:45) 18:30:18 Audiocodec: AAC 18:30:21 AUDIO_info: slow stream, dropouts are possible 18:30:22 AUDIO_info: slow stream, dropouts are possible 18:30:23 AUDIO_info: slow stream, dropouts are possible 18:30:25 AUDIO_info: slow stream, dropouts are possible 18:30:26 AUDIO_info: slow stream, dropouts are possible 18:30:26 StreamTitle: On-Line: 6 / Italo Made In Spain vol. 16 - Mixed By Juan Martinez & Toni Bafles (Long Version) (15:45) 18:30:28 AUDIO_info: slow stream, dropouts are possible 18:30:29 AUDIO_info: slow stream, dropouts are possible 18:30:30 AUDIO_info: slow stream, dropouts are possible 18:30:33 BT-Emitter: CON MATCH ADD 18:30:33 BT-Emitter: CONNECT=>MacAdd:5f673c5cfaec,Name:MIBOX4 18:30:33 AUDIO_info: slow stream, dropouts are possible 18:30:35 AUDIO_info: slow stream, dropouts are possible 18:30:36 AUDIO_info: slow stream, dropouts are possible 18:30:37 AUDIO_info: slow stream, dropouts are possible 18:30:38 AUDIO_info: slow stream, dropouts are possible 18:30:38 AUDIO_info: Stream lost -> try new connection 18:30:38 AUDIO_info: Connect to new host: "http://harddanceradio.ddns.is74.ru:8000/eurodisco" 18:30:38 AUDIO_info: buffers freed, free Heap: 158680 bytes 18:30:39 AUDIO_info: Connection has been established in 299 ms, free Heap: 160328 bytes 18:30:39 bitRate: 256Kbit/s 18:30:39 icy-descr: Eurodisco Syntpop Italodisco SynthWave 80s 90s 18:30:39 StationName: EURODISCO '80 [HDR] 18:30:39 icy-url: .. http://harddanceradio.ddns.is74.ru:8000 18:30:39 AUDIO_info: AACDecoder has been initialized, free Heap: 159080 bytes , free stack 4844 DWORDs 18:30:39 lastURL: .. http://harddanceradio.ddns.is74.ru:8000/eurodisco 18:30:39 AUDIO_info: stream ready 18:30:39 AUDIO_info: syncword found at pos 703 18:30:39 AUDIO_info: slow stream, dropouts are possible 18:30:39 AUDIO_info: syncword found at pos 0 18:30:39 AUDIO_info: Channels: 2 18:30:39 AUDIO_info: SampleRate: 44100 18:30:39 AUDIO_info: BitsPerSample: 16 18:30:39 AUDIO_info: BitRate: 275625 18:30:39 AUDIO_info: AAC HeaderFormat: ADTS 18:30:39 AUDIO_info: AAC Codec: MPEG-4 LowComplexity 18:30:39 StreamTitle: On-Line: 6 / Italo Made In Spain vol. 16 - Mixed By Juan Martinez & Toni Bafles (Long Version) (15:45) 18:30:40 AUDIO_info: slow stream, dropouts are possible 18:30:41 AUDIO_info: slow stream, dropouts are possible 18:30:42 AUDIO_info: slow stream, dropouts are possible 18:30:46 AUDIO_info: slow stream, dropouts are possible 18:30:47 AUDIO_info: slow stream, dropouts are possible 18:30:48 BT-Emitter: CON MATCH ADD 18:30:48 BT-Emitter: CONNECT=>MacAdd:5f673c5cfaec,Name:MIBOX4 18:30:50 AUDIO_info: slow stream, dropouts are possible 18:30:51 AUDIO_info: slow stream, dropouts are possible 18:30:52 AUDIO_info: slow stream, dropouts are possible 18:30:53 AUDIO_info: slow stream, dropouts are possible 18:30:54 AUDIO_info: Stream lost -> try new connection 18:30:54 AUDIO_info: Connect to new host: "http://harddanceradio.ddns.is74.ru:8000/eurodisco" 18:30:54 AUDIO_info: buffers freed, free Heap: 160636 bytes 18:30:54 AUDIO_info: Connection has been established in 189 ms, free Heap: 160320 bytes 18:30:54 bitRate: 256Kbit/s 18:30:54 icy-descr: Eurodisco Syntpop Italodisco SynthWave 80s 90s 18:30:54 StationName: EURODISCO '80 [HDR] 18:30:54 icy-url: .. http://harddanceradio.ddns.is74.ru:8000 18:30:54 AUDIO_info: AACDecoder has been initialized, free Heap: 159072 bytes , free stack 4844 DWORDs 18:30:54 lastURL: .. http://harddanceradio.ddns.is74.ru:8000/eurodisco 18:30:54 AUDIO_info: stream ready 18:30:54 AUDIO_info: syncword found at pos 759 18:30:54 AUDIO_info: syncword found at pos 0 18:30:54 AUDIO_info: Channels: 2 18:30:54 AUDIO_info: SampleRate: 44100 18:30:54 AUDIO_info: BitsPerSample: 16 18:30:54 AUDIO_info: BitRate: 264600 18:30:54 AUDIO_info: AAC HeaderFormat: ADTS 18:30:54 AUDIO_info: AAC Codec: MPEG-4 LowComplexity 18:30:54 AUDIO_info: slow stream, dropouts are possible 18:30:54 StreamTitle: On-Line: 6 / Italo Made In Spain vol. 16 - Mixed By Juan Martinez & Toni Bafles (Long Version) (15:45) 18:30:55 AUDIO_info: slow stream, dropouts are possible

And one more problem, not always connected to the router, if the bluetooth module is connected. If you disconnect it from the power, the connection always happens. The bluetooth module is located at a distance from ESP32, antennas are perpendicular to each other

ESP32 Chip: ESP32-S3 Arduino Version: 2.0.16 ESP-IDF Version: 4.4.7 MiniWebRadio Version 3.1 May 21/2024 ARDUINO_LOOP_STACK_SIZE 8192 words (32 bit) FLASH size 8388608 bytes, speed 80 MHz CPU speed 240 MHz SDMMC speed 80 MHz TFT speed 40 MHz PSRAM total size: 8381399 bytes RESET_REASON: Reset due to power-on event

00:00:00 00:00:00
00:00:00
MiniWebRadio V3
00:00:00

00:00:00 00:00:00 setup: .... Arduino is pinned to core 1 00:00:00 tft_info: . init ILI9488 00:00:00 setup: .... Init SD card 00:00:00 setup: .... SD card found, 3761.4 MB by 3781.5 MB free 00:00:01 setup: .... seek for stations.csv 00:00:01 setup: .... stations.csv found 00:00:01 setup: .... seek for WiFi networks [ 2531][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: ASUS_AC66U [ 2553][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: Honor 00:00:03 setup: .... 6 WiFi networks found 00:00:03 setup: .... TP-LINK_E345E0_RPT (-61) 00:00:03 setup: .... ASUS_AC66U (-64) 00:00:03 setup: .... ASUS_AC66U_RPT (-73) 00:00:03 setup: .... GG (-79) 00:00:03 setup: .... TP-LINK_E345E0 (-81) 00:00:03 setup: .... PS4network (-85) [ 11068][I][WiFiMulti.cpp:114] run(): [WIFI] scan done [ 11074][I][WiFiMulti.cpp:119] run(): [WIFI] 6 networks found [ 11081][I][WiFiMulti.cpp:160] run(): [WIFI] Connecting BSSID: 2C:FD:A1:C2:44:F0 SSID: ASUS_AC66U Channel: 1 (-63) [ 16121][E][WiFiMulti.cpp:187] run(): [WIFI] Connecting Failed (6). 00:00:15 WiFI_info: WiFi credentials are not correct 00:00:15 RECONNECTION try 1 [ 16129][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: ASUS_AC66U [ 16152][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: Honor 00:00:15 setup: .... -2 WiFi networks found 00:00:15 WiFI_info: WiFi credentials are not correct 00:00:15 RECONNECTION try 2 [ 16190][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: ASUS_AC66U [ 16205][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: Honor 00:00:15 setup: .... -1 WiFi networks found 00:00:15 WiFI_info: WiFi credentials are not correct 00:00:15 RECONNECTION try 3 [ 16391][W][tft.cpp:2669] validCharsInString(): char is not printable 0x0A 00:00:15 Accesspoint: IP: 192.168.4.1 00:00:22 setup: .... 6 WiFi networks found 00:00:22 setup: .... TP-LINK_E345E0_RPT (-61) 00:00:22 setup: .... ASUS_AC66U (-62) 00:00:22 setup: .... ASUS_AC66U_RPT (-73) 00:00:22 setup: .... TP-LINK_E345E0 (-83) 00:00:22 setup: .... GG (-85) 00:00:22 setup: .... PS4network (-87) 00:00:22 ftpServer: Ftp server waiting for connection on port 21

schreibfaul1 commented 5 months ago

I have adopted the sdkconfig from V2. But somehow the settings have been reset. Now it will be okay.

valera39 commented 5 months ago

With the latest changes there are improvements, but still I can't get the bluetooth module and ESP32 to work together. If I do not supply power to the bluetooth module, there are no records "slow stream, dropouts are possible" at all, but when working together this error is present all the time. I changed the position of the module relative to ESP32 in different positions, I moved it to a distance of about 20cm, but there is no result. What else can I think of?

ESP32 Chip: ESP32-S3 Arduino Version: 2.0.16 ESP-IDF Version: 4.4.7 MiniWebRadio Version 3.1 May 21/2024 ARDUINO_LOOP_STACK_SIZE 8192 words (32 bit) FLASH size 8388608 bytes, speed 80 MHz CPU speed 240 MHz SDMMC speed 80 MHz TFT speed 40 MHz PSRAM total size: 8381399 bytes RESET_REASON: Reset due to power-on event

00:00:00 00:00:00
00:00:00
MiniWebRadio V3
00:00:00

00:00:00 00:00:00 setup: .... Arduino is pinned to core 1 00:00:00 tft_info: . init ILI9488 00:00:00 setup: .... Init SD card 00:00:00 setup: .... SD card found, 3761.4 MB by 3781.5 MB free 00:00:01 setup: .... seek for stations.csv 00:00:01 setup: .... stations.csv found 00:00:01 setup: .... seek for WiFi networks [ 2530][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: ASUS_AC66U [ 2552][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: Honor 00:00:03 setup: .... 5 WiFi networks found 00:00:03 setup: .... ASUS_AC66U (-57) 00:00:03 setup: .... TP-LINK_E345E0_RPT (-60) 00:00:03 setup: .... ASUS_AC66U_RPT (-72) 00:00:03 setup: .... TP-LINK_E345E0 (-78) 00:00:03 setup: .... GG (-82) [ 11068][I][WiFiMulti.cpp:114] run(): [WIFI] scan done [ 11074][I][WiFiMulti.cpp:119] run(): [WIFI] 7 networks found [ 11081][I][WiFiMulti.cpp:160] run(): [WIFI] Connecting BSSID: 2C:FD:A1:C2:44:F0 SSID: ASUS_AC66U Channel: 6 (-56) [ 11169][I][WiFiMulti.cpp:174] run(): [WIFI] Connecting done. 00:00:10 WiFI_info: Connecting WiFi... 00:00:10 WiFI_info: mDNS name: MiniWebRadio 00:00:10 setup: .... connected to ASUS_AC66U, IP address is 192.168.1.130 [ 11209][I][ArduinoOTA.cpp:141] begin(): OTA server at: MiniWebRadio.local:3232 00:00:10 ftpServer: Buffers allocated: 4622 bytes 00:00:10 rtime_info: Initializing SNTP 02:00:10 rtime_info: Waiting for system time to be set... (1/10) 02:00:12 rtime_info: Waiting for system time to be set... (2/10) 02:00:14 rtime_info: Waiting for system time to be set... (3/10) 17:18:10 rtime_info: 17:18:10 17:18:10 audiotask: is pinned to core 0 17:18:10 audiotask: priority is 2 17:18:10 AUDIO_info: commFMT = 1 17:18:10 setup: .... Number of saved stations: 92 17:18:10 setup: .... current station number: 56 17:18:10 setup: .... current volume: 2 17:18:10 setup: .... last connected host: http://harddanceradio.ddns.is74.ru:8000/eurodisco 17:18:10 setup: .... connection timeout: 1000 ms 17:18:10 setup: .... connection timeout SSL: 2500 ms 17:18:11 action: ... switch to station 56 17:18:11 AUDIO_info: Connect to new host: "http://harddanceradio.ddns.is74.ru:8000/eurodisco.m3u" 17:18:11 AUDIO_info: PSRAM found, inputBufferSize: 638965 bytes 17:18:11 AUDIO_info: buffers freed, free Heap: 164996 bytes 17:18:11 AUDIO_info: Connection has been established in 110 ms, free Heap: 163956 bytes 17:18:11 AUDIO_info: Connect to new host: "http://harddanceradio.ddns.is74.ru:8000/eurodisco" 17:18:11 AUDIO_info: buffers freed, free Heap: 159604 bytes 17:18:11 AUDIO_info: Connection has been established in 96 ms, free Heap: 164016 bytes 17:18:11 bitRate: 256Kbit/s 17:18:11 icy-descr: Eurodisco Syntpop Italodisco SynthWave 80s 90s 17:18:11 StationName: EURODISCO '80 [HDR] 17:18:11 icy-url: .. http://harddanceradio.ddns.is74.ru:8000 17:18:11 AUDIO_info: AACDecoder has been initialized, free Heap: 162768 bytes , free stack 5072 DWORDs 17:18:11 lastURL: .. http://harddanceradio.ddns.is74.ru:8000/eurodisco 17:18:11 WiFI_info: RSSI is -56 dB 17:18:11 AUDIO_info: stream ready 17:18:11 AUDIO_info: syncword found at pos 787 17:18:11 AUDIO_info: syncword found at pos 0 17:18:11 AUDIO_info: Channels: 2 17:18:11 AUDIO_info: SampleRate: 44100 17:18:11 AUDIO_info: BitsPerSample: 16 17:18:11 AUDIO_info: BitRate: 243239 17:18:11 AUDIO_info: AAC HeaderFormat: ADTS 17:18:11 AUDIO_info: AAC Codec: MPEG-4 LowComplexity 17:18:12 Audiocodec: AAC 17:18:12 StreamTitle: On-Line: 2 / Secchi & Orlando Johnson - I Say Yeah (shaman.edit) (05:58) 17:18:12 ftpServer: Ftp server waiting for connection on port 21 17:18:12 BT-Emitter: KCX_BT_Emitter not found 17:18:12 BT-Emitter: KCX_BT_Emitter found [ 19625][W][KCX_BT_Emitter.cpp:143] writeCommand(): unknown command AT+ 17:18:16 AUDIO_info: slow stream, dropouts are possible 17:18:18 BT-Emitter: Status -> Scan... 17:18:18 DLNA_server: [0] 192.168.1.1:8200 RT-AC66U_B1-44F0 [ 25357][E][DLNAClient.cpp:226] readHttpHeader(): content type not found 17:18:18 DLNA_server: [1] 192.168.1.4:6000 dlink-E247EB 17:18:18 BT-Emitter: no response: last command was: AT+ 17:18:18 DLNA_server: 2 media server found [ 25426][W][KCX_BT_Emitter.cpp:143] writeCommand(): unknown command AT+ 17:18:18 BT-Emitter: scanned: MacAdd:5f673c5cfaec,Name:MIBOX4 17:18:18 BT-Emitter: CON MATCH ADD 17:18:18 BT-Emitter: CONNECT=>MacAdd:5f673c5cfaec,Name:MIBOX4 17:18:19 AUDIO_info: slow stream, dropouts are possible 17:18:20 AUDIO_info: slow stream, dropouts are possible 17:18:22 AUDIO_info: slow stream, dropouts are possible 17:18:23 AUDIO_info: slow stream, dropouts are possible 17:18:24 AUDIO_info: slow stream, dropouts are possible 17:18:24 BT-Emitter: no response: last command was: AT+ 17:18:24 BT-Emitter: Version KCX_BT_RTX_V1.4 17:18:24 BT-Emitter: Volume -> 31 17:18:25 AUDIO_info: slow stream, dropouts are possible 17:18:25 AUDIO_info: Stream lost -> try new connection 17:18:25 AUDIO_info: Connect to new host: "http://harddanceradio.ddns.is74.ru:8000/eurodisco" 17:18:25 AUDIO_info: buffers freed, free Heap: 161556 bytes 17:18:25 AUDIO_info: Connection has been established in 308 ms, free Heap: 161224 bytes 17:18:26 bitRate: 256Kbit/s 17:18:26 icy-descr: Eurodisco Syntpop Italodisco SynthWave 80s 90s 17:18:26 StationName: EURODISCO '80 [HDR] 17:18:26 icy-url: .. http://harddanceradio.ddns.is74.ru:8000 17:18:26 AUDIO_info: AACDecoder has been initialized, free Heap: 159996 bytes , free stack 5072 DWORDs 17:18:26 lastURL: .. http://harddanceradio.ddns.is74.ru:8000/eurodisco 17:18:26 AUDIO_info: stream ready 17:18:26 AUDIO_info: syncword found at pos 308 17:18:26 AUDIO_info: slow stream, dropouts are possible 17:18:26 AUDIO_info: syncword found at pos 0 17:18:26 AUDIO_info: Channels: 2 17:18:26 AUDIO_info: SampleRate: 44100 17:18:26 AUDIO_info: BitsPerSample: 16 17:18:26 AUDIO_info: BitRate: 283549 17:18:26 AUDIO_info: AAC HeaderFormat: ADTS 17:18:26 AUDIO_info: AAC Codec: MPEG-4 LowComplexity 17:18:26 StreamTitle: On-Line: 2 / Secchi & Orlando Johnson - I Say Yeah (shaman.edit) (05:58) 17:18:27 AUDIO_info: slow stream, dropouts are possible 17:18:28 AUDIO_info: slow stream, dropouts are possible 17:18:30 AUDIO_info: slow stream, dropouts are possible 17:18:31 AUDIO_info: slow stream, dropouts are possible 17:18:32 AUDIO_info: slow stream, dropouts are possible 17:18:33 AUDIO_info: slow stream, dropouts are possible 17:18:33 BT-Emitter: CON MATCH ADD 17:18:33 BT-Emitter: CONNECT=>MacAdd:5f673c5cfaec,Name:MIBOX4 17:18:34 AUDIO_info: Stream lost -> try new connection 17:18:34 AUDIO_info: Connect to new host: "http://harddanceradio.ddns.is74.ru:8000/eurodisco" 17:18:34 AUDIO_info: buffers freed, free Heap: 159880 bytes 17:18:34 AUDIO_info: Connection has been established in 581 ms, free Heap: 161224 bytes 17:18:35 bitRate: 256Kbit/s 17:18:35 icy-descr: Eurodisco Syntpop Italodisco SynthWave 80s 90s 17:18:35 StationName: EURODISCO '80 [HDR] 17:18:35 icy-url: .. http://harddanceradio.ddns.is74.ru:8000 17:18:35 AUDIO_info: AACDecoder has been initialized, free Heap: 160000 bytes , free stack 5072 DWORDs 17:18:35 lastURL: .. http://harddanceradio.ddns.is74.ru:8000/eurodisco 17:18:35 AUDIO_info: stream ready 17:18:35 AUDIO_info: syncword found at pos 464 17:18:35 AUDIO_info: slow stream, dropouts are possible 17:18:35 AUDIO_info: syncword found at pos 0 17:18:35 AUDIO_info: Channels: 2 17:18:35 AUDIO_info: SampleRate: 44100 17:18:35 AUDIO_info: BitsPerSample: 16 17:18:35 AUDIO_info: BitRate: 386219 17:18:35 AUDIO_info: AAC HeaderFormat: ADTS 17:18:35 AUDIO_info: AAC Codec: MPEG-4 LowComplexity 17:18:36 StreamTitle: On-Line: 2 / Secchi & Orlando Johnson - I Say Yeah (shaman.edit) (05:58) 17:18:36 AUDIO_info: slow stream, dropouts are possible 17:18:37 AUDIO_info: slow stream, dropouts are possible 17:18:37 StreamTitle: On-Line: 3 / Secchi & Orlando Johnson - I Say Yeah (shaman.edit) (05:58) 17:18:38 AUDIO_info: slow stream, dropouts are possible 17:18:40 AUDIO_info: slow stream, dropouts are possible 17:18:48 AUDIO_info: slow stream, dropouts are possible 17:18:49 AUDIO_info: slow stream, dropouts are possible 17:18:51 AUDIO_info: slow stream, dropouts are possible 17:18:52 AUDIO_info: slow stream, dropouts are possible 17:18:53 AUDIO_info: slow stream, dropouts are possible 17:18:54 BT-Emitter: POWER ON 17:18:54 AUDIO_info: slow stream, dropouts are possible 17:18:55 BT-Emitter: Status -> Disconnected 17:18:55 AUDIO_info: Stream lost -> try new connection 17:18:55 AUDIO_info: Connect to new host: "http://harddanceradio.ddns.is74.ru:8000/eurodisco" 17:18:55 AUDIO_info: buffers freed, free Heap: 161552 bytes [ 63665][I][WiFiClient.cpp:260] connect(): select returned due to timeout 1000 ms for fd 53 17:18:56 AUDIO_info: Request http://harddanceradio.ddns.is74.ru:8000/eurodisco failed! [ 63677][W][WiFiGeneric.cpp:1062] _eventCallback(): Reason: 8 - ASSOC_LEAVE [ 63691][W][main.cpp:2694] audio_info(): disconnected 17:18:56 StationName: 17:18:56 StreamTitle: 17:18:56 WiFI_info: RSSI is 0 dB 17:18:56 AUDIO_info: file "�?" not found 17:18:56 RECONNECTION to http://harddanceradio.ddns.is74.ru:8000/eurodisco, try 1 [ 63803][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: ASUS_AC66U [ 63824][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: Honor 17:18:58 setup: .... 2 WiFi networks found 17:18:58 setup: .... TP-LINK_E345E0_RPT (-58) 17:18:58 setup: .... ASUS_AC66U_RPT (-74) [ 71472][I][WiFiMulti.cpp:114] run(): [WIFI] scan done [ 71478][I][WiFiMulti.cpp:119] run(): [WIFI] 3 networks found [ 71485][E][WiFiMulti.cpp:191] run(): [WIFI] no matching wifi found! 17:19:04 WiFI_info: WiFi credentials are not correct 17:19:04 AUDIO_info: Connect to new host: "http://harddanceradio.ddns.is74.ru:8000/eurodisco" 17:19:04 AUDIO_info: buffers freed, free Heap: 162096 bytes [ 71508][E][WiFiClient.cpp:249] connect(): connect on fd 53, errno: 118, "Host is unreachable" 17:19:04 AUDIO_info: Request http://harddanceradio.ddns.is74.ru:8000/eurodisco failed! [ 71523][W][main.cpp:2694] audio_info(): disconnected 17:19:04 StationName: 17:19:04 StreamTitle: 17:19:04 RECONNECTION to http://harddanceradio.ddns.is74.ru:8000/eurodisco, try 2 [ 71643][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: ASUS_AC66U [ 71665][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: Honor 17:19:06 setup: .... 5 WiFi networks found 17:19:06 setup: .... TP-LINK_E345E0_RPT (-55) 17:19:06 setup: .... ASUS_AC66U (-60) 17:19:06 setup: .... ASUS_AC66U_RPT (-74) 17:19:06 setup: .... TP-LINK_E345E0 (-76) 17:19:06 setup: .... GG (-82) [ 80120][I][WiFiMulti.cpp:114] run(): [WIFI] scan done [ 80126][I][WiFiMulti.cpp:119] run(): [WIFI] 6 networks found [ 80133][I][WiFiMulti.cpp:160] run(): [WIFI] Connecting BSSID: 2C:FD:A1:C2:44:F0 SSID: ASUS_AC66U Channel: 6 (-56) [ 80224][I][WiFiMulti.cpp:174] run(): [WIFI] Connecting done. 17:19:13 WiFI_info: Connecting WiFi... [ 80231][E][ESPmDNS.cpp:148] addService(): Failed adding service esp32.tcp.

17:19:13 WiFI_info: mDNS name: MiniWebRadio 17:19:13 AUDIO_info: Connect to new host: "http://harddanceradio.ddns.is74.ru:8000/eurodisco" 17:19:13 AUDIO_info: buffers freed, free Heap: 161200 bytes 17:19:13 AUDIO_info: Connection has been established in 222 ms, free Heap: 160216 bytes 17:19:13 bitRate: 256Kbit/s 17:19:13 icy-descr: Eurodisco Syntpop Italodisco SynthWave 80s 90s 17:19:13 StationName: EURODISCO '80 [HDR] 17:19:13 icy-url: .. http://harddanceradio.ddns.is74.ru:8000 17:19:13 AUDIO_info: AACDecoder has been initialized, free Heap: 159236 bytes , free stack 5072 DWORDs 17:19:13 lastURL: .. http://harddanceradio.ddns.is74.ru:8000/eurodisco 17:19:13 WiFI_info: RSSI is -56 dB 17:19:14 Audiocodec: AAC 17:19:14 BT-Emitter: scanned: MacAdd:9c1fbeabc930,Name:KDL-43WF804 17:19:14 BT-Emitter: CON MATCH ADD 17:19:14 BT-Emitter: CONNECT=>MacAdd:5f673c5cfaec,Name:MIBOX4 17:19:14 AUDIO_info: stream ready 17:19:14 AUDIO_info: syncword found at pos 20 17:19:14 AUDIO_info: syncword found at pos 0 17:19:14 AUDIO_info: AAC decode error -3 : INVALID_ADTS_HEADER 17:19:14 AUDIO_info: syncword found at pos 234 17:19:14 AUDIO_info: syncword found at pos 0 17:19:14 AUDIO_info: Channels: 2 17:19:14 AUDIO_info: SampleRate: 44100 17:19:14 AUDIO_info: BitsPerSample: 16 17:19:14 AUDIO_info: BitRate: 306288 17:19:14 AUDIO_info: AAC HeaderFormat: ADTS 17:19:14 AUDIO_info: AAC Codec: MPEG-4 LowComplexity 17:19:14 BT-Emitter: CON MATCH ADD 17:19:14 BT-Emitter: CONNECT=>MacAdd:5f673c5cfaec,Name:MIBOX4 17:19:15 StreamTitle: On-Line: 3 / Secchi & Orlando Johnson - I Say Yeah (shaman.edit) (05:58) 17:19:15 AUDIO_info: slow stream, dropouts are possible 17:19:17 AUDIO_info: slow stream, dropouts are possible 17:19:18 StreamTitle: On-Line: 2 / Secchi & Orlando Johnson - I Say Yeah (shaman.edit) (05:58) 17:19:18 AUDIO_info: slow stream, dropouts are possible 17:19:30 AUDIO_info: slow stream, dropouts are possible 17:19:31 BT-Emitter: CON MATCH ADD 17:19:31 BT-Emitter: CONNECT=>MacAdd:5f673c5cfaec,Name:MIBOX4 17:19:31 AUDIO_info: slow stream, dropouts are possible 17:19:32 AUDIO_info: slow stream, dropouts are possible 17:19:33 AUDIO_info: slow stream, dropouts are possible 17:19:34 AUDIO_info: slow stream, dropouts are possible 17:19:35 AUDIO_info: slow stream, dropouts are possible 17:19:36 AUDIO_info: slow stream, dropouts are possible 17:19:37 AUDIO_info: slow stream, dropouts are possible 17:19:38 AUDIO_info: slow stream, dropouts are possible 17:19:39 AUDIO_info: Stream lost -> try new connection 17:19:39 AUDIO_info: Connect to new host: "http://harddanceradio.ddns.is74.ru:8000/eurodisco" 17:19:39 AUDIO_info: buffers freed, free Heap: 161308 bytes 17:19:39 AUDIO_info: Connection has been established in 183 ms, free Heap: 160952 bytes 17:19:39 bitRate: 256Kbit/s 17:19:39 icy-descr: Eurodisco Syntpop Italodisco SynthWave 80s 90s 17:19:39 StationName: EURODISCO '80 [HDR] 17:19:39 icy-url: .. http://harddanceradio.ddns.is74.ru:8000 17:19:39 AUDIO_info: AACDecoder has been initialized, free Heap: 159732 bytes , free stack 5072 DWORDs 17:19:39 lastURL: .. http://harddanceradio.ddns.is74.ru:8000/eurodisco 17:19:40 AUDIO_info: stream ready 17:19:40 AUDIO_info: syncword found at pos 560 17:19:40 AUDIO_info: slow stream, dropouts are possible 17:19:40 AUDIO_info: syncword found at pos 0 17:19:40 AUDIO_info: Channels: 2 17:19:40 AUDIO_info: SampleRate: 44100 17:19:40 AUDIO_info: BitsPerSample: 16 17:19:40 AUDIO_info: BitRate: 269767 17:19:40 AUDIO_info: AAC HeaderFormat: ADTS 17:19:40 AUDIO_info: AAC Codec: MPEG-4 LowComplexity 17:19:40 StreamTitle: On-Line: 3 / Secchi & Orlando Johnson - I Say Yeah (shaman.edit) (05:58) 17:19:44 AUDIO_info: slow stream, dropouts are possible 17:19:45 AUDIO_info: slow stream, dropouts are possible 17:19:46 BT-Emitter: CON MATCH ADD 17:19:46 BT-Emitter: CONNECT=>MacAdd:5f673c5cfaec,Name:MIBOX4 17:19:48 AUDIO_info: slow stream, dropouts are possible 17:19:49 AUDIO_info: slow stream, dropouts are possible 17:19:50 AUDIO_info: slow stream, dropouts are possible 17:19:51 AUDIO_info: slow stream, dropouts are possible 17:19:51 AUDIO_info: Stream lost -> try new connection 17:19:51 AUDIO_info: Connect to new host: "http://harddanceradio.ddns.is74.ru:8000/eurodisco" 17:19:51 AUDIO_info: buffers freed, free Heap: 159836 bytes 17:19:52 AUDIO_info: Connection has been established in 370 ms, free Heap: 160936 bytes 17:19:52 bitRate: 256Kbit/s 17:19:52 icy-descr: Eurodisco Syntpop Italodisco SynthWave 80s 90s 17:19:52 StationName: EURODISCO '80 [HDR] 17:19:52 icy-url: .. http://harddanceradio.ddns.is74.ru:8000 17:19:52 AUDIO_info: AACDecoder has been initialized, free Heap: 159724 bytes , free stack 5072 DWORDs 17:19:52 lastURL: .. http://harddanceradio.ddns.is74.ru:8000/eurodisco 17:19:52 AUDIO_info: stream ready 17:19:52 AUDIO_info: syncword found at pos 703 17:19:52 AUDIO_info: syncword found at pos 0 17:19:52 AUDIO_info: Channels: 2 17:19:52 AUDIO_info: SampleRate: 44100 17:19:52 AUDIO_info: BitsPerSample: 16 17:19:52 AUDIO_info: BitRate: 264944 17:19:52 AUDIO_info: AAC HeaderFormat: ADTS 17:19:52 AUDIO_info: AAC Codec: MPEG-4 LowComplexity 17:19:53 StreamTitle: On-Line: 3 / Secchi & Orlando Johnson - I Say Yeah (shaman.edit) (05:58) 17:19:54 AUDIO_info: slow stream, dropouts are possible 17:19:56 AUDIO_info: slow stream, dropouts are possible

valera39 commented 5 months ago

Maybe prohibit bluetooth and wifi to work together, disconnect the module by pulsing "connect" when wifi is running or the reason is different?

schreibfaul1 commented 5 months ago

Your reception field strength of -56dB is very weak. BT and WiFi use the same band, BT performs "frequency hopping" to occupy a different channel. Try to position the BT emitter and the ESP32 as far apart as possible, the antennas should be orthogonal to each other in the x, y and z planes. If this is not possible, insert some antistatic foil between the two antennas.

valera39 commented 5 months ago

Dear Wolle! Thanks for the quick response and advice. I will continue my experiments. It seems to me that to accommodate a radio in a small enclosure, the screen option might work well

valera39 commented 5 months ago

Dear Wolle! Unfortunately all my experiments to eliminate the above error when using bluetooth and wifi module together have failed. I have checked all your tips on the location of the modules, used grounding shield, placed the radio near the router, changed "AUDIOTASK_CORE" values, but in vain. Please check this station http://harddanceradio.ddns.is74.ru:8000/eurodisco with bluetooth module connected, what will be your result? Even without connected bluetooth module this station sometimes writes in the log " AUDIO_info: slow stream, dropouts are possible". I am left with the last option, to use ESP 12K-S3 Ai-Thinker, otherwise to my regret I will have to give up bluetooth, or what is extremely undesirable, to use its mechanical disconnection with a switch. So please add to the documentation a working diagram with the correct connection pins for ESP 12K-S3. Thank you, with best wishes for success!

schreibfaul1 commented 5 months ago

EURODISCO '80 has been running for an hour !

image

The problem is the weak WiFi signal. Do you have the possibility to open a second access point, e.g. a WiFI repeater?

valera39 commented 5 months ago

Why it works for you and not for me, because we have the same components, I am very puzzled. Yes, I've tried connecting to both a cell phone internet distribution and a repeater from the next room, together with the bluetooth module does not work. Without it, if the radio is located 1-2 meters away from the access point, playback goes smoothly. What is interesting, the receiver of the second version on ESP32 wrower, stands much farther from the access point and works without fail at a lower signal level on the internal antenna. Perhaps the ESP32S3 boards I use (and I tried N8 and N16) have defects in sensitivity. I have a proven ESP-12k -S3 with an external antenna, and if you can tell me the correct pins to connect it, then maybe this is a chance.

schreibfaul1 commented 5 months ago

1-2 metres to the access point is perfect, then the received field strength should be estimated at -25 ... -30dB. But less than -50 is bad.

valera39 commented 5 months ago

I did everything I could, spent a lot of time, but still could not get rid of this error in the radio version 3, much less achieve stable operation in bluetooth co-mode. I've run out of ideas why I can't beat this. It's just some kind of miracles. I have used every ESP32S3 I have available? ESP32 wrower as well as ESP12K-S3.
I have a radio version 2.9. on the wrower I built an exact copy of it from the same components and flashed it with version 3. I then put the two receivers side by side at the same distance from the router and turned on the same station I wrote about earlier. Version 2.9 works flawlessly, unlike the third version. And finally, to eliminate all suspicions, I updated my radio 2.9 to the current version 3. As a result I got two identical unstable radios. So I had to put my stable version 2.9 back on. I'm sorry, but unless I can figure something else out, I'll have to stay with the second version of the radio. Thanks for your help dear Wolle, I hope you will find my experiments interesting.

Translated with DeepL.com (free version)

Jefke1 commented 5 months ago

Hi valera39, At the beginning of April I had problems with WiFiMultie. I had an rssi of -46 but no connection.When connected, i also suffered from dropouts, my modem was outdated. I replaced it with a recent model (Wifi6) and everything works properly now. While V1 and V2 had no problem at all. I hope this might help you.

valera39 commented 5 months ago

Jefke1, Thanks, I have already tried that option. I think I've tried everything, but maybe I'm missing something. In my case, I have a strange situation: two exactly the same radios with different firmware work differently from the same router. And even if I swap the firmware, the second version still works like a Swiss watch without fail. I will think, but my knowledge is limited. Maybe Mr. Volle will change something. I hope so. But he has everything working perfectly.

valera39 commented 4 months ago

Dear Wolle! There are fewer of them, but I'm still trying to get rid of the "slow streaming, possible interruptions" line in the log. 13:48:04 icy-descr: Eurodisco Syntpop Italodisco SynthWave 80s 90s 13:48:04 StationName: EURODISCO '80 [HDR] 13:48:04 icy-url: .. http://harddanceradio.ddns.is74.ru:8000 13:48:04 AUDIO_info: AACDecoder has been initialized, free Heap: 147284 bytes , free stack 4972 DWORDs 13:48:04 lastURL: .. http://harddanceradio.ddns.is74.ru:8000/eurodisco 13:48:04 AUDIO_info: stream ready 13:48:04 AUDIO_info: syncword found at pos 3 13:48:04 AUDIO_info: slow stream, dropouts are possible 13:48:04 AUDIO_info: syncword found at pos 0 13:48:04 AUDIO_info: Channels: 2 13:48:04 AUDIO_info: SampleRate: 44100 13:48:04 AUDIO_info: BitsPerSample: 16 13:48:04 AUDIO_info: BitRate: 193282 13:48:04 AUDIO_info: AAC HeaderFormat: ADTS 13:48:04 AUDIO_info: AAC Codec: MPEG-4 LowComplexity 13:48:04 StreamTitle: On-Line: 5 / Long Garden - Porque Te Alejas (06:23) 13:48:15 BT-Emitter: CON MATCH ADD 13:48:15 BT-Emitter: CONNECT=>MacAdd:5f673c5cfaec,Name:MIBOX4 13:48:15 AUDIO_info: slow stream, dropouts are possible 13:48:16 AUDIO_info: slow stream, dropouts are possible 13:48:27 StreamTitle: On-Line: 4 / Long Garden - Porque Te Alejas (06:23) 13:48:30 BT-Emitter: CON MATCH ADD 13:48:30 BT-Emitter: CONNECT=>MacAdd:5f673c5cfaec,Name:MIBOX4 13:48:49 AUDIO_info: slow stream, dropouts are possible 13:48:49 BT-Emitter: CON MATCH ADD 13:48:49 BT-Emitter: CONNECT=>MacAdd:5f673c5cfaec,Name:MIBOX4 13:48:50 AUDIO_info: slow stream, dropouts are possible 13:48:51 AUDIO_info: slow stream, dropouts are possible 13:48:52 AUDIO_info: slow stream, dropouts are possible 13:48:53 AUDIO_info: slow stream, dropouts are possible 13:48:54 AUDIO_info: slow stream, dropouts are possible 13:48:55 AUDIO_info: slow stream, dropouts are possible 13:48:55 AUDIO_info: Stream lost -> try new connection 13:48:55 AUDIO_info: Connect to new host: "http://harddanceradio.ddns.is74.ru:8000/eurodisco" 13:48:55 AUDIO_info: buffers freed, free Heap: 148672 bytes 13:48:56 AUDIO_info: Connection has been established in 462 ms, free Heap: 148504 bytes 13:48:56 bitRate: 192Kbit/s 13:48:56 icy-descr: Eurodisco Syntpop Italodisco SynthWave 80s 90s 13:48:56 StationName: EURODISCO '80 [HDR] 13:48:56 icy-url: .. http://harddanceradio.ddns.is74.ru:8000 13:48:56 AUDIO_info: AACDecoder has been initialized, free Heap: 147336 bytes , free stack 4972 DWORDs 13:48:56 lastURL: .. http://harddanceradio.ddns.is74.ru:8000/eurodisco 13:48:56 AUDIO_info: stream ready 13:48:56 AUDIO_info: syncword found at pos 514 13:48:56 AUDIO_info: slow stream, dropouts are possible 13:48:56 AUDIO_info: syncword found at pos 0 13:48:56 AUDIO_info: Channels: 2 13:48:56 AUDIO_info: SampleRate: 44100 13:48:56 AUDIO_info: BitsPerSample: 16 13:48:56 AUDIO_info: BitRate: 208441 13:48:56 AUDIO_info: AAC HeaderFormat: ADTS 13:48:56 AUDIO_info: AAC Codec: MPEG-4 LowComplexity 13:48:56 StreamTitle: On-Line: 4 / Long Garden - Porque Te Alejas (06:23) 13:49:04 BT-Emitter: CON MATCH ADD 13:49:04 BT-Emitter: CONNECT=>MacAdd:5f673c5cfaec,Name:MIBOX4 Here is part of my log, and I noticed that when the bluetooth module starts pairing with a device, this line appears and the stream disappears. 13:48:15 BT-Emitter: CON MATCH ADD 13:48:15 BT-Emitter: CONNECT=>MacAdd:5f673c5cfaec,Name:MIBOX4 13:48:15 AUDIO_info: slow stream, dropouts are possible 13:48:16 AUDIO_info: slow stream, dropouts are possible It seems that the bluetooth module gets a high priority to perform its task and takes up a lot of memory that is used for the station buffer, and the "heavier" the station, the more frequent the disconnects and reconnects. Maybe lower the task priority of the bluetooth module and limit its memory voracity? What do you think? Sorry, I may not be understanding the process correctly, but I'm trying to understand and help you make your radio perfect.

schreibfaul1 commented 4 months ago

Hi Valera, BT and WiFi use the same frequency range. The antennas can influence each other, especially if the WiFi signal is not very strong. I suspect that the antennas of the ESP32 and the BT emitter "see" each other. You can cover the BT emitter with antistatic film without changing anything in the design. You can simply wrap the BT emitter with it, the BT range is then only slightly lower. Such film can also shield the audio amplifier against interference from radio signals. This is what I mean by antistatic film: image Electronic components are often packaged with it by the manufacturer.

valera39 commented 4 months ago

Do you use antstatic film in your radio too?

github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.