schreibfaul1 / ESP32-MiniWebRadio

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

WiFi errors attempting to use a BT Emitter #493

Closed rjshiffer closed 1 month ago

rjshiffer commented 1 month ago

Hi Wolle and others,

I'm unable to get the radio to operate correctly when the BT Emitter is attached. I've tried with both an ESP32 and ESP32-S3. I get numerous WiFi error messages and continuous re-boots. There seems to be a conflict between WiFi and the BT Emitter. I soldered the KCX_BT_Emitter to a PCB same as the one shown in a previous issue (see my picture). Only very, very, occasionally do I get the BT Emitter to connect to a remote speaker and then only for a few seconds.

Suspecting the Emitter/PCB soldering, etc., I checked with a multimeter to ensure proper connectivity with no solder bridges, etc. No problems are detected.

All my connections are as shown in the ESP32 and ESP32-S3 schematic drawings in the docs folder.

I'm at a loss as to my problem. Could you please give me a pointer as to where I could look next.

Thanks. Richard

(I hope I did not overwhelm you with the volume of serial monitor output.)

** ESP32 Monitor Output with BT Emitter Connected -- Failure *****

ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4832
load:0x40078000,len:16440
load:0x40080400,len:4
ho 8 tail 4 room 4
load:0x40080404,len:3504
entry 0x400805cc

ESP32 Chip: ESP32-D0WDQ6
Arduino Version: 3.0.4
ESP-IDF Version: 5.1.4
MiniWebRadio     Version 3.3h Aug 07/2024  
ARDUINO_LOOP_STACK_SIZE 8192 words (32 bit)
FLASH size 4194304 bytes, speed 40 MHz
CPU speed 240 MHz
SDMMC speed 80 MHz
TFT speed 80 MHz
PSRAM total size: 4194304 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
0 tft_info: .  init ILI9341
00:00:00 setup: ....  Init SD card
00:00:00 setup: ....  SD card found, 14052.4 MB by 15193.5 MB free
00:00:00 setup: ....  seek for stations.csv
00:00:00 setup: ....  stations.csv found
00:00:00 setup: ....  seek for WiFi networks
[  3706][E][WiFiMulti.cpp:306] run(): [WIFI] no matching wifi found!
00:00:00 WiFI_info:   WiFi credentials are not correct
00:00:00 RECONNECTION try 1
[  6113][W][STA.cpp:537] disconnect(): STA already disconnected.
[  7152][W][STA.cpp:135] _onStaArduinoEvent(): Reason: 39 - TIMEOUT
[  7159][W][STA.cpp:537] disconnect(): STA already disconnected.
[  8240][W][STA.cpp:135] _onStaArduinoEvent(): Reason: 2 - AUTH_EXPIRE
[  8247][W][STA.cpp:537] disconnect(): STA already disconnected.
[ 10445][W][STA.cpp:135] _onStaArduinoEvent(): Reason: 201 - NO_AP_FOUND
[ 10453][W][STA.cpp:537] disconnect(): STA already disconnected.
[ 11139][E][WiFiMulti.cpp:293] run(): [WIFI] Connecting Failed AP not found.
00:00:00 WiFI_info:   WiFi credentials are not correct
00:00:00 RECONNECTION try 2
[ 11156][W][STA.cpp:537] disconnect(): STA already disconnected.
00:00:00 WiFI_info:   WiFi credentials are not correct
00:00:00 RECONNECTION try 3
00:00:00 WiFi credentials are not correct
[ 12651][W][STA.cpp:135] _onStaArduinoEvent(): Reason: 201 - NO_AP_FOUND
[ 12659][W][STA.cpp:537] disconnect(): STA already disconnected.
E (26312) wifi:NAN WiFi stop
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4832
load:0x40078000,len:16440
load:0x40080400,len:4
ho 8 tail 4 room 4
load:0x40080404,len:3504
entry 0x400805cc

ESP32 Chip: ESP32-D0WDQ6
Arduino Version: 3.0.4
ESP-IDF Version: 5.1.4
MiniWebRadio     Version 3.3h Aug 07/2024  
ARDUINO_LOOP_STACK_SIZE 8192 words (32 bit)
FLASH size 4194304 bytes, speed 40 MHz
CPU speed 240 MHz
SDMMC speed 80 MHz
TFT speed 80 MHz
PSRAM total size: 4194304 bytes
RESET_REASON: Software reset via esp_restart

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
00:00:00 tft_info: .  init ILI9341
00:00:00 setup: ....  Init SD card
00:00:00 setup: ....  SD card found, 14052.4 MB by 15193.5 MB free
00:00:00 setup: ....  seek for stations.csv
00:00:00 setup: ....  stations.csv found
00:00:00 setup: ....  seek for WiFi networks
[  3706][E][WiFiMulti.cpp:306] run(): [WIFI] no matching wifi found!
00:00:00 WiFI_info:   WiFi credentials are not correct
00:00:00 RECONNECTION try 1
[  6113][E][WiFiMulti.cpp:306] run(): [WIFI] no matching wifi found!
00:00:00 WiFI_info:   WiFi credentials are not correct
00:00:00 RECONNECTION try 2
[  7442][E][WiFiMulti.cpp:306] run(): [WIFI] no matching wifi found!
00:00:00 WiFI_info:   WiFi credentials are not correct
00:00:00 RECONNECTION try 3
00:00:00 WiFi credentials are not correct
E (18883) wifi:NAN WiFi stop
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4832
load:0x40078000,len:16440
load:0x40080400,len:4
ho 8 tail 4 room 4
load:0x40080404,len:3504
entry 0x400805cc

----- Repeats -------

** ESP32 Monitor Output with NO BT Emitter Connected -- Success *****

Here is the log of a successful boot. The only difference is the BT Emitter is not connected.

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4832
load:0x40078000,len:16440
load:0x40080400,len:4
ho 8 tail 4 room 4
load:0x40080404,len:3504
entry 0x400805cc

ESP32 Chip: ESP32-D0WDQ6
Arduino Version: 3.0.4
ESP-IDF Version: 5.1.4
MiniWebRadio     Version 3.3h Aug 07/2024  
ARDUINO_LOOP_STACK_SIZE 8192 words (32 bit)
FLASH size 4194304 bytes, speed 40 MHz
CPU speed 240 MHz
SDMMC speed 80 MHz
TFT speed 80 MHz
PSRAM total size: 4194304 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 ILI9341
00:00:00 setup: ....  Init SD card
00:00:00 setup: ....  SD card found, 14052.4 MB by 15193.5 MB free
00:00:00 setup: ....  seek for stations.csv
00:00:00 setup: ....  stations.csv found
00:00:00 setup: ....  seek for WiFi networks
[  3903][W][STA.cpp:537] disconnect(): STA already disconnected.
00:00:00 WiFI_info:   Connecting WiFi...
00:00:00 WiFI_info:   mDNS name: MiniWebRadio
00:00:00 setup: ....  connected to rigel, IP address is 10.0.0.243, Received Signal Strength -64 dB
00:00:00 ftpServer:   Buffers allocated: 4622 bytes
00:00:00 rtime_info:  Initializing SNTP
00:00:00 audiotask:   is pinned to core 0
00:00:00 audiotask:   priority is 2
00:00:00 AUDIO_info:  commFMT = Philips
00:00:00 setup: ....  Number of saved stations: 16
00:00:00 setup: ....  current station number: 1
00:00:00 setup: ....  current volume: 11
00:00:00 setup: ....  volume steps: 21
00:00:00 setup: ....  last connected host: http://edge-bauerall-01-gos2.sharp-stream.com:80/net2lincoln.mp3?aw_0_1st.skey=1653967769&aw_0_1st.playerid=BMUK_RPi
00:00:00 setup: ....  connection timeout: 2500 ms
00:00:00 setup: ....  connection timeout SSL: 3500 ms
00:00:00 action: ...  switch to station 1
00:00:00 AUDIO_info:  PSRAM found, inputBufferSize: 638965 bytes
00:00:00 AUDIO_info:  buffers freed, free Heap: 118732 bytes
00:00:00 AUDIO_info:  connect to: "edge-bauerall-01-gos2.sharp-stream.com" on port 80 path "/net2lincoln.mp3?aw_0_1st.skey=1653967769&aw_0_1st.playerid=BMUK_RPi"
00:00:00 AUDIO_info:  Connection has been established in 163 ms, free Heap: 117568 bytes
00:00:00 bitRate:     112Kbit/s
00:00:00 StationName: Greatest Hits Radio (Lincolnshire)
00:00:00 AUDIO_info:  MP3Decoder has been initialized, free Heap: 86476 bytes , free stack 5364 DWORDs
00:00:00 lastURL: ..  http://edge-bauerall-01-gos2.sharp-stream.com:80/net2lincoln.mp3?aw_0_1st.s ... st.playerid=BMUK_RPi
00:00:00 AUDIO_info:  stream ready
00:00:00 AUDIO_info:  syncword found at pos 0
00:00:00 AUDIO_info:  Channels: 2
00:00:00 AUDIO_info:  SampleRate: 32000
00:00:00 AUDIO_info:  BitsPerSample: 16
00:00:00 AUDIO_info:  BitRate: 112000
00:00:00 StreamTitle: I Want You Back - The Jackson 5
00:00:00 AUDIO_info:  StreamUrl='https://listenapi.planetradio.co.uk/api9.2/eventdata/265851913'
00:00:00 Audiocodec:  MP3
00:00:00 ftpServer:   Ftp server waiting for connection on port 21
14:17:14 BT-Emitter:  KCX_BT_Emitter not found 
14:17:19 DLNA_server: [0] 10.0.0.245:2869  ENVYPC: rjshiffer@comcast.net:
14:17:20 DLNA_server: [1] 10.0.0.18:2869  DELL-LAPTOP: Shiffer Music Library:
14:17:20 DLNA_server: 2 media server found
14:17:25 StreamTitle: START ADBREAK 1
14:17:25 AUDIO_info:  StreamUrl='https://listenapi.planetradio.co.uk/api9.2/eventdata/265851913'
14:17:34 StreamTitle: AD 2
14:17:34 AUDIO_info:  StreamUrl='https://listenapi.planetradio.co.uk/api9.2/eventdata/265851913'
14:18:05 StreamTitle: AD 3
14:18:05 AUDIO_info:  StreamUrl='https://listenapi.planetradio.co.uk/api9.2/eventdata/265851913'
14:18:15 StreamTitle: AD 4
14:18:15 AUDIO_info:  StreamUrl='https://listenapi.planetradio.co.uk/api9.2/eventdata/265851913'
14:18:54 StreamTitle: AD 5
14:18:54 AUDIO_info:  StreamUrl='https://listenapi.planetradio.co.uk/api9.2/eventdata/265851913'
14:19:25 StreamTitle: AD 6
14:19:25 AUDIO_info:  StreamUrl='https://listenapi.planetradio.co.uk/api9.2/eventdata/265851913'
14:19:49 action: ...  current volume is 11
14:19:55 StreamTitle: AD 7
14:19:55 AUDIO_info:  StreamUrl='https://listenapi.planetradio.co.uk/api9.2/eventdata/265851913'
14:19:55 action: ...  switch to station 2
14:19:55 AUDIO_info:  buffers freed, free Heap: 116056 bytes
14:19:55 AUDIO_info:  connect to: "144.217.158.59" on port 5140 path "/stream?type=http"
14:19:55 AUDIO_info:  Connection has been established in 238 ms, free Heap: 116036 bytes
14:19:55 StationName: Easy Hits Miami South Florida
14:19:55 bitRate:     128Kbit/s
14:19:55 icy-url: ..  http://www.easyhitsflorida.com
14:19:55 AUDIO_info:  MP3Decoder has been initialized, free Heap: 77068 bytes , free stack 5236 DWORDs
14:19:55 lastURL: ..  http://144.217.158.59:5140/stream?type=http
14:19:55 AUDIO_info:  stream ready
14:19:55 AUDIO_info:  syncword found at pos 0
14:19:55 AUDIO_info:  Channels: 2
14:19:55 AUDIO_info:  SampleRate: 44100
14:19:55 AUDIO_info:  BitsPerSample: 16
14:19:55 AUDIO_info:  BitRate: 128000
14:19:56 Audiocodec:  MP3

** ESP32-S3 Monitor Output with BT Emitter Connected -- Failure *****

ESP32 Chip: ESP32-S3
Arduino Version: 3.0.4
ESP-IDF Version: 5.1.4
MiniWebRadio     Version 3.3h Aug 07/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 80 MHz
PSRAM total size: 8388608 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 ILI9341
00:00:00 setup: ....  Init SD card
00:00:00 setup: ....  SD card found, 6436.6 MB by 7568.0 MB free
00:00:00 setup: ....  seek for stations.csv
00:00:00 setup: ....  stations.csv found
00:00:00 setup: ....  seek for WiFi networks
[  6996][E][WiFiMulti.cpp:306] run(): [WIFI] no matching wifi found!
00:00:00 WiFI_info:   WiFi credentials are not correct
00:00:00 RECONNECTION try 1
[  8322][E][WiFiMulti.cpp:306] run(): [WIFI] no matching wifi found!
00:00:00 WiFI_info:   WiFi credentials are not correct
00:00:00 RECONNECTION try 2
[  9648][E][WiFiMulti.cpp:306] run(): [WIFI] no matching wifi found!
00:00:00 WiFI_info:   WiFi credentials are not correct
00:00:00 RECONNECTION try 3
00:00:00 WiFi credentials are not correct

** ESP32 Monitor Output with BT Emitter Connected -- Partial Success *****

ESP32 Chip: ESP32-D0WDQ6
Arduino Version: 3.0.4
ESP-IDF Version: 5.1.4
MiniWebRadio     Version 3.3h Aug 07/2024  
ARDUINO_LOOP_STACK_SIZE 8192 words (32 bit)
FLASH size 4194304 bytes, speed 40 MHz
CPU speed 240 MHz
SDMMC speed 80 MHz
TFT speed 80 MHz
PSRAM total size: 4194304 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 ILI9341
00:00:00 setup: ....  Init SD card
00:00:00 setup: ....  SD card found, 14052.4 MB by 15193.5 MB free
00:00:00 setup: ....  seek for stations.csv
00:00:00 setup: ....  stations.csv found
00:00:00 setup: ....  seek for WiFi networks
[  4306][W][STA.cpp:537] disconnect(): STA already disconnected.
00:00:00 WiFI_info:   Connecting WiFi...
00:00:00 WiFI_info:   mDNS name: MiniWebRadio
00:00:00 setup: ....  connected to rigel, IP address is 10.0.0.243, Received Signal Strength -56 dB
00:00:00 ftpServer:   Buffers allocated: 4622 bytes
00:00:00 rtime_info:  Initializing SNTP
00:00:00 audiotask:   is pinned to core 0
00:00:00 audiotask:   priority is 2
00:00:00 AUDIO_info:  commFMT = Philips
00:00:00 setup: ....  Number of saved stations: 16
00:00:00 setup: ....  current station number: 2
00:00:00 setup: ....  current volume: 11
00:00:00 setup: ....  volume steps: 21
00:00:00 setup: ....  last connected host: http://144.217.158.59:5140/stream?type=http
00:00:00 setup: ....  connection timeout: 2500 ms
00:00:00 setup: ....  connection timeout SSL: 3500 ms
00:00:00 action: ...  switch to station 2
00:00:00 AUDIO_info:  PSRAM found, inputBufferSize: 638965 bytes
00:00:00 AUDIO_info:  buffers freed, free Heap: 119112 bytes
00:00:00 AUDIO_info:  connect to: "144.217.158.59" on port 5140 path "/stream?type=http"
00:00:00 AUDIO_info:  Connection has been established in 60 ms, free Heap: 118204 bytes
00:00:00 StationName: Easy Hits Miami South Florida
00:00:00 bitRate:     128Kbit/s
00:00:00 icy-url: ..  http://www.easyhitsflorida.com
00:00:00 AUDIO_info: MP3Decoder has been initialized, free Heap: 84184 bytes , free stack 5140 DWORDs
00:00:00 lastURL: ..  http://144.217.158.59:5140/stream?type=http
00:00:00 AUDIO_info:  stream ready
00:00:00 AUDIO_info:  syncword found at pos 0
00:00:00 AUDIO_info:  Channels: 2
00:00:00 AUDIO_info:  SampleRate: 44100
00:00:00 AUDIO_info:  BitsPerSample: 16
00:00:00 AUDIO_info:  BitRate: 128000
00:00:00 ftpServer:   Ftp server waiting for connection on port 21
00:00:00 Audiocodec:  MP3
00:00:00 BT-Emitter:  KCX_BT_Emitter found 
00:00:00 BT-Emitter:  Version KCX_BT_RTX_V1.4
00:00:00 BT-Emitter:  Volume -> 0
00:00:00 BT-Emitter:  OK+POWEROFF_MODE 
15:53:20 BT-Emitter:  no response: last command was: AT+POWER_OFF
15:53:21 DLNA_server: [0] 10.0.0.18:2869  DELL-LAPTOP: Shiffer Music Library:
15:53:21 DLNA_server: [1] 10.0.0.245:2869  ENVYPC: rjshiffer@comcast.net:
15:53:21 DLNA_server: 2 media server found
[ 14829][W][KCX_BT_Emitter.cpp:184] parseATcmds(): unknown message ...z.
15:53:55 webSrv: ...  GetFolder "/"
15:54:03 webSrv: ...  File not found "/png/Button_BT_Yellow.png"
[ 54754][E][websrv.cpp:513] handleWS(): webSocketClient should be connected but is not!
15:54:15 BT-Emitter:  no response: last command was: AT+VOL=0
[ 68345][W][KCX_BT_Emitter.cpp:184] parseATcmds(): unknown message .~...
15:54:18 BT-Emitter:  Status -> Disconnected
15:54:26 BT-Emitter:  POWER OFF 
15:54:39 Webpage:     index.html
15:54:41 webSrv: ...  GetFolder "/"
[101966][E][NetworkClient.cpp:423] write(): fail on fd 56, errno: 104, "Connection reset by peer"
15:54:50 webSrv: ...  File not found "/png/Button_BT_Yellow.png"
[101977][E][websrv.cpp:513] handleWS(): webSocketClient should be connected but is not!
15:55:15 BT-Emitter:  POWER ON 
15:55:15 BT-Emitter:  OK+RESET 
15:55:15 BT-Emitter:  POWER ON 
15:55:15 BT-Emitter:  Mode -> RECEIVER
15:55:38 BT-Emitter:  OK+RESET 
15:55:38 BT-Emitter:  POWER ON 
15:55:38 BT-Emitter:  Mode -> EMITTER
15:55:39 BT-Emitter:  Status -> Scan...
15:55:40 BT-Emitter:  scanned: MacAdd:4a89a8fd4ef4,Name:SoundCore mini
15:55:40 BT-Emitter:  CON ONE 
15:55:40 BT-Emitter:  CONNECT=>MacAdd:4a89a8fd4ef4,Name:SoundCore mini 
15:55:42 BT-Emitter:  Status -> Connected
15:55:56 AUDIO_info:  slow stream, dropouts are possible
15:55:59 AUDIO_info:  slow stream, dropouts are possible
15:56:00 AUDIO_info:  slow stream, dropouts are possible
15:56:01 AUDIO_info:  slow stream, dropouts are possible
15:56:02 AUDIO_info:  slow stream, dropouts are possible
15:56:02 AUDIO_info:  Stream lost -> try new connection
15:56:02 AUDIO_info:  buffers freed, free Heap: 110356 bytes
15:56:02 AUDIO_info:  connect to: "144.217.158.59" on port 5140 path "/stream?type=http"
15:56:05 AUDIO_info:  Request http://144.217.158.59:5140/stream?type=http failed!
[176543][W][STA.cpp:135] _onStaArduinoEvent(): Reason: 8 - ASSOC_LEAVE
15:56:05 AUDIO_info:  Request http://144.217.158.59:5140/stream?type=http failed!
15:56:05 StationName: 
15:56:05 StreamTitle: 
[176610][E][NetworkClient.cpp:423] write(): fail on fd 55, errno: 113, "Software caused connection abort"
[177833][W][STA.cpp:135] _onStaArduinoEvent(): Reason: 39 - TIMEOUT
[177840][W][STA.cpp:537] disconnect(): STA already disconnected.
[180240][W][STA.cpp:135] _onStaArduinoEvent(): Reason: 201 - NO_AP_FOUND
[180247][W][STA.cpp:537] disconnect(): STA already disconnected.
[182446][W][STA.cpp:135] _onStaArduinoEvent(): Reason: 201 - NO_AP_FOUND
[182453][W][STA.cpp:537] disconnect(): STA already disconnected.
[184653][W][STA.cpp:135] _onStaArduinoEvent(): Reason: 201 - NO_AP_FOUND
[184660][W][STA.cpp:537] disconnect(): STA already disconnected.
[186859][W][STA.cpp:135] _onStaArduinoEvent(): Reason: 201 - NO_AP_FOUND
[186867][W][STA.cpp:537] disconnect(): STA already disconnected.
[189265][W][STA.cpp:135] _onStaArduinoEvent(): Reason: 201 - NO_AP_FOUND
[189273][W][STA.cpp:537] disconnect(): STA already disconnected.
15:56:18 WiFi         :  Reconnecting to WiFi...
[190174][W][STA.cpp:537] disconnect(): STA already disconnected.
E (201308) wifi:sta is connecting, return error
[191472][W][STA.cpp:135] _onStaArduinoEvent(): Reason: 201 - NO_AP_FOUND
[191479][W][STA.cpp:537] disconnect(): STA already disconnected.
[193678][W][STA.cpp:135] _onStaArduinoEvent(): Reason: 201 - NO_AP_FOUND
.[0;33m[193686][W][STA.cpp:537] disconnect(): STA already disconnected.
[194832][W][STA.cpp:135] _onStaArduinoEvent(): Reason: 39 - TIMEOUT
15:56:32 WiFi         :  Reconnecting to WiFi...
[204173][W][STA.cpp:537] disconnect(): STA already

KCX-BT-Emitter

schreibfaul1 commented 1 month ago

BT and WiFi use the same frequency range. Where BT looks for a free channel before it transmits (frequency hopping). Nevertheless, influences can occur. Try to rotate the BT antenna 90° compared to the WiFi antenna, horizontally and vertically. And the distance between the two should be as large as possible. If it is not possible to shield the antennas from each other, try to wrap the BT module in an antistatic foil, image

You can simply put such a bag over the BT module for testing. The BT range will still be sufficient after that.

rjshiffer commented 1 month ago

Yes, that is what is happening. I placed the BT Emitter in a antistatic bag, and re-orientated it as you suggested and was able to get more consistent connections and the streams play but with "slow stream, dropouts are possible."

Realizing that the work room I was in had other BT/WiFi interference possibilities (fluorescent lights, wireless controllers, another MiniWebRadio running in background, etc.) I moved the radio to my normal living space and it works fine with only minimal, barely noticeable dropouts over a period of an hour.

That's for your help.