Closed eagi223 closed 6 years ago
So I doubled the amount of heap that I was allocating to both the Wifi and HTTPS tasks and I'm now getting this in the log: Has anyone got a fix or suggestion for this? I've given more info at esp32.com ` I (18516) WiFi Driver (dWifi): Wifi Config Bit Detected
I (18557) Bluetooth Interface (iBluetooth): ESP_GATTS_READ_EVT E (18558) BT: GATT_INFO_READ_EVT, conn_id 0, trans_id 21, handle 58
I (18643) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1 I (19309) wifi: state: init -> auth (b0) I (19314) wifi: state: auth -> assoc (0) I (19318) wifi: state: assoc -> run (10) I (19334) wifi: connected with RPHEngineering, channel 1 I (22318) wifi: pm start, type:0
I (23653) event: sta ip: 10.42.125.96, mask: 255.255.255.0, gw: 10.42.125.1 I (23653) WiFi Driver (dWifi): SYSTEM_EVENT_STA_GOT_IP Wifi Serv char status read val changed to : 1 System got IP: wifiServVal: 1 I (23663) WiFi Driver (dWifi): Wifi Config Good Bit Detected
I (23663) ESP32 HTTPS Driver (dESP32_HTTPS): Connected to AP I (23675) ESP32 HTTPS Driver (dESP32_HTTPS): Connecting to 54.218.40.65:443... I (23759) ESP32 HTTPS Driver (dESP32_HTTPS): Connected. I (23760) ESP32 HTTPS Driver (dESP32_HTTPS): Performing the SSL/TLS handshake... I (29844) wifi: bcn_timout,ap_probe_send_start I (32345) wifi: ap_probe_send over, resett wifi status to disassoc I (32345) wifi: state: run -> init (1) I (32346) wifi: pm stop, total sleep time: 0/10027329
I (32346) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1 I (32355) WiFi Driver (dWifi): SYSTEM_EVENT_STA_DISCONNECTED Wifi Serv char status read val changed to : 0 I (34774) WiFi Driver (dWifi): SYSTEM_EVENT_STA_DISCONNECTED Wifi Serv char status read val changed to : 0 I (37184) WiFi Driver (dWifi): SYSTEM_EVENT_STA_DISCONNECTED Wifi Serv char status read val changed to : 0 I (39594) WiFi Driver (dWifi): SYSTEM_EVENT_STA_DISCONNECTED Wifi Serv char status read val changed to : 0 I (42003) WiFi Driver (dWifi): SYSTEM_EVENT_STA_DISCONNECTED Wifi Serv char status read val changed to : 0 I (44413) WiFi Driver (dWifi): SYSTEM_EVENT_STA_DISCONNECTED `
@eagi223 , you can try the latest master branch that we have finish wifi/bluetooth coexistence function.
@TianHao-Espressif Perfect, I'll give it a try. Thanks!
Hi @eagi223 , is there any update? Is this issue solved now?
Sorry, I've never been able to get it to work, so I just shutdown all non critical tasks and peripherals when communicating with the server. I'll be updating my code to 3.1 within a month or two, so hopefully I'll have more time to try to implement a real solution. I'll close the issue for now, because it's a definite possibility that I just need to optimize my code. Thanks!
I'm getting the following errors when trying to connect to a server with HTTPS while Bluetooth is running. I'm using the latest IDF v3.0 commit I believe. I ran git pull on esp-idf right before testing this. Once the issue occurs, wifi disconnects and is unable to reconnect. I've combed through forums and issues trying to find a solution, but I'm stumped. Maybe I'm doing something wrong, but I've seen these error messages pop up in the issue tracker a few times for other bugs.
I've basically worked off of examples to this point so it's mainly using the Bluetooth GATT Server table example, in conjunction with the HTTPS Request example. If I set Bluetooth to disconnect when Wifi obtains an IP address, the Https code starts like expected and no crash occurs.