Page 1 of 1

ESP32 socket always failed

Posted: Sat Mar 09, 2019 8:20 am
by coollofty
My ESP32-Lyrat can connect to the WiFi, but can't access the Internet or the LAN, other PC and mobile devices connected to the same WiFi are all OK. I flashed the examples/cli app, then power it, below is the relevant logs when it run and play a URL:

Code: Select all

I (1388) CONSOLE_EXAMPLE: sdcard mounting...
I (1388) CONSOLE_EXAMPLE: Start Wi-Fi
W (1388) ESP_PERIPH: Peripherals have been initialized already
I (1388) gpio: GPIO[19]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3
I (1398) wifi: wifi driver task: 3ffbc724, prio:23, stack:3584, core=0
E (1408) gpio: gpio_install_isr_service(394): GPIO isr service already installed
I (1418) wifi: wifi firmware version: b2c9a19
I (1418) wifi: config NVS flash: enabled
I (1418) wifi: config nano formating: disabled
I (1428) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (1438) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (1468) wifi: Init dynamic tx buffer num: 32
I (1468) wifi: Init data frame dynamic rx buffer num: 32
I (1468) wifi: Init management frame dynamic rx buffer num: 32
I (1468) wifi: Init static tx buffer num: 16
I (1478) wifi: Init static rx buffer size: 1600
I (1478) wifi: Init static rx buffer num: 10
I (1478) wifi: Init dynamic rx buffer num: 32
I (1548) phy: phy_version: 4000, b6198fa, Sep  3 2018, 15:11:06, 0, 0
I (1548) wifi: mode : sta (24:0a:c4:9c:ff:88)
..........................
I (10198) wifi: n:8 0, o:1 0, ap:255 255, sta:8 0, prof:1
I (11338) wifi: state: init -> auth (b0)
I (11338) wifi: state: auth -> assoc (0)
I (11338) wifi: state: assoc -> run (10)
I (11368) wifi: connected with COOL_NET, channel 8
I (11368) wifi: pm start, type: 1

I (11888) event: sta ip: 192.168.8.101, mask: 255.255.255.0, gw: 192.168.8.1
..........................
I (24258) ESP_AUDIO_TASK: It's a decoder.URI:http://192.168.8.100:8080/szj.mp3

I (24278) ESP_AUDIO_TASK: 1.IN:[http],CODEC:[auto],FILTER:[NULL],OUT:[iis],RESAMPLE:[0]
I (24298) ESP_AUDIO_TASK: 2.Handles,IN:0x3f806d80,CODEC:0x3f807170,FILTER:0x0,OUT:0x3f806eac
I (24318) ESP_AUDIO_TASK: 2.1 Update all pipelines
I (24318) ESP_AUDIO_TASK: in_rb:0x3f807268,filter_rb:0x0,out_rb:0x3f809aa8
I (24318) ESP_AUDIO_TASK: 3. Previous starting...
I (24348) AUDIO_ELEMENT: [http] Element task created
I (24348) AUDIO_ELEMENT: [http] AEL_MSG_CMD_RESUME,state:1
I (24388) AUDIO_ELEMENT: [auto] Element task created
I (24388) AUDIO_ELEMENT: [auto] AEL_MSG_CMD_RESUME,state:1
I (24388) ESP_DECODER: Ready to do audio type check (line 121)
I (24408) AUDIO_ELEMENT: [iis] Element task created
I (24438) AUDIO_ELEMENT: [iis] AEL_MSG_CMD_RESUME,state:1
I (24438) I2S_STREAM: AUDIO_STREAM_WRITER
E (42598) HTTP_CLIENT: Connection failed, sock < 0
E (42598) HTTP_STREAM: Failed to open http stream
E (42598) AUDIO_ELEMENT: [http] AEL_STATUS_ERROR_OPEN
W (42608) AUDIO_ELEMENT: IN-[auto] AEL_IO_ABORT
E (42608) AUDIO_FORMAT: failed to get head buf data(line 319)
E (42618) ESP_DECODER: Audio type detect error (line 125)
E (42618) AUDIO_ELEMENT: [auto] AEL_STATUS_ERROR_OPEN
E (42608) ESP_AUDIO_TASK: media_ctrl_task error:ESP_ERR_AUDIO_OPEN
I (42638) CONSOLE_EXAMPLE: esp_auido status:4,err:10100

What are the possible reasons for this problem?