Hallo zusammen,
ich habe einen kleinen Streamer MP3 auf einem ESP32-Wroom 32 am laufen.
Bisher ohne Probleme.
Nur der EMpfang mit der int. Wlan Antenne auf dem Wroom32 koomt ab uns zu ins stocken.
Deswegen habe ich mir nun ein Board mit ESP32-Wroom 32U besorgt zum anschluss einer extenernen Antenne.
Jetzt steht ich vor folgendem Problem.
Der Sketch läuft auf dem ESP32-Wroom32 aber nicht auf dem SP32-Wroom32 U.
Ich habe im Boardverwalter den Typ "ESP32 Dev Modul." welcher bisher einwandfrei funktiopniert hat.
Vielleicht kann mir einer von euch helfen, im Web habe ich nichts dazu gefunden.
Die beiden Typen sind jeweils auf einem MCU board, also die ganz normalen.
Was passiert:
Wroom32 , Reset, Init WLAN, streamen geht los.
Wroom32U , Reset , hängt und nichts geht.
An was kann den das nur liegen.
Der Sketch:
#include "Arduino.h"
#include "WiFi.h"
#include "Audio.h"
// Digital I/O used
#define I2S_DOUT 25 // DIN connection
#define I2S_BCLK 27 // Bit clock
#define I2S_LRC 26 // Left Right Clock
Audio audio;
String ssid = "xxxx";
String password = "xxxxxx";
void setup() {
Serial.begin(115200);
// WiFi.disconnect();
WiFi.mode(WIFI_STA);
WiFi.begin(ssid.c_str(), password.c_str());
while (WiFi.status() != WL_CONNECTED) delay(1500);
audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT);
audio.setVolume(7); // 0...21
audio.connecttohost("https://stream.radioparadise.com/rock-320");
// http://streams.radiobob.de/bob-bestofrock/mp3-192/mediaplayer // Best of Rock
// http://streams.radiobob.de/bob-classicrock/mp3-192/mediaplayer // Classic Rock
}
void loop()
{
audio.loop();
}
void audio_info(const char *info){
Serial.print("info "); Serial.println(info);
}
void audio_id3data(const char *info){ //id3 metadata
Serial.print("id3data ");Serial.println(info);
}
void audio_eof_mp3(const char *info){ //end of file
Serial.print("eof_mp3 ");Serial.println(info);
}
void audio_showstation(const char *info){
Serial.print("station ");Serial.println(info);
}
void audio_showstreaminfo(const char *info){
Serial.print("streaminfo ");Serial.println(info);
}
void audio_showstreamtitle(const char *info){
Serial.print("streamtitle ");Serial.println(info);
}
void audio_bitrate(const char *info){
Serial.print("bitrate ");Serial.println(info);
}
void audio_commercial(const char *info){ //duration in sec
Serial.print("commercial ");Serial.println(info);
}
void audio_icyurl(const char *info){ //homepage
Serial.print("icyurl ");Serial.println(info);
}
void audio_lasthost(const char *info){ //stream URL played
Serial.print("lasthost ");Serial.println(info);
}
void audio_eof_speech(const char *info){
Serial.print("eof_speech ");Serial.println(info);
}
Start ESP32-Wroom32:
ets Jun 8 2016 00:22:57
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:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:10944
load:0x40080400,len:6388
entry 0x400806b4
info PSRAM not found, inputBufferSize: 6399 bytes
info buffers freed, free Heap: 226768 bytes
info Connect to new host: "https://stream.radioparadise.com/rock-320"
info Connect to "stream.radioparadise.com" on port 443, extension "/rock-320"
info SSL has been established in 1052 ms, free Heap: 180916 bytes
info HTTP/1.1 200 OK
info server: openresty/1.17.8.2
info date: Sun, 17 Apr 2022 11:15:16 GMT
info content-type: audio/aac, format is aac
info AACDecoder has been initialized, free Heap: 99888 bytes
bitrate 320000
info ice-audio-info: channels=2;samplerate=44100;bitrate=320
info icy-name: Radio Paradise Rock Mix (320k aac)
station Radio Paradise Rock Mix (320k aac)
icyurl https://radioparadise.com
info access-control-allow-origin: *
info access-control-allow-headers: Origin, Accept, X-Requested-With, Content-Type, Icy-MetaData
info access-control-allow-methods: GET, OPTIONS, SOURCE, PUT, HEAD, STATS
info Switch to DATA, metaint is 16000
lasthost https://stream.radioparadise.com/rock-320
info stream ready
info buffer filled in 0 ms
info syncword found at pos 0
info Channels: 2
info SampleRate: 44100
info BitsPerSample: 16
info BitRate: 315590
info AAC HeaderFormat: ADTS
info AAC Codec: MPEG-4
info AAC Profile: LowComplexity
info VBR recognized, audioFileDuration is estimated
info StreamTitle='Radiohead - There There'
streamtitle Radiohead - There There
info StreamUrl='http://img.radioparadise.com/covers/l/B000092ZYX.jpg'
info slow stream, dropouts are possible
info slow stream, dropouts are possible
info slow stream, dropouts are possible
info slow stream, dropouts are possible
info slow stream, dropouts are possible
Start ESP32-Wroom32U:
ets Jun 8 2016 00:22:57
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:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:10944
load:0x40080400,len:6388
entry 0x400806b4