Problem with ESP_SPP_CONG_EVT using BluetoothSerial.h

Eggg98
Posts: 2
Joined: Mon Nov 25, 2019 4:59 pm

Problem with ESP_SPP_CONG_EVT using BluetoothSerial.h

Postby Eggg98 » Mon Nov 25, 2019 5:03 pm

Hi, thanks in advance for the help. I'm haing trouble trying to send and receive data from an Android App that i made in App inventor. I'm sending every 50 ms 2 bytes that contain a signal that i read with the ESP32 to graph it in the Android App, this part is working like a charm; but when i send 1 byte from the phone to the ESP32 (that contain an action to do for the ESP32) the communication start having problems, freezing from time to time, even when i'm not sending anything to the ESP32.

I check in the serial monitor, with the debug option enable what was happening, and find that the ESP_SPP_CONG_EVT (congestion event) was triggering. I have tried many things to fix this problem, but i didn't get any results, so i would like to know is somebody here has have this problem before and knows what to do, because i almost giving up with this. I will appreciate all the help i can get from you guys.

This is what i get in the serial monitor.

[V][BluetoothSerial.cpp:273] esp_spp_cb(): ESP_SPP_WRITE_EVT: 2 FREE

[V][BluetoothSerial.cpp:273] esp_spp_cb(): ESP_SPP_WRITE_EVT: 2 FREE

[V][BluetoothSerial.cpp:273] esp_spp_cb(): ESP_SPP_WRITE_EVT: 2 FREE

[V][BluetoothSerial.cpp:273] esp_spp_cb(): ESP_SPP_WRITE_EVT: 2 FREE

[V][BluetoothSerial.cpp:273] esp_spp_cb(): ESP_SPP_WRITE_EVT: 2 FREE

[V][BluetoothSerial.cpp:265] esp_spp_cb(): ESP_SPP_CONG_EVT: CONGESTED

[V][BluetoothSerial.cpp:273] esp_spp_cb(): ESP_SPP_WRITE_EVT: 2 CONGESTED

[V][BluetoothSerial.cpp:265] esp_spp_cb(): ESP_SPP_CONG_EVT: FREE

[V][BluetoothSerial.cpp:273] esp_spp_cb(): ESP_SPP_WRITE_EVT: 2 FREE

[V][BluetoothSerial.cpp:273] esp_spp_cb(): ESP_SPP_WRITE_EVT: 32 FREE

[V][BluetoothSerial.cpp:273] esp_spp_cb(): ESP_SPP_WRITE_EVT: 2 FREE

[V][BluetoothSerial.cpp:273] esp_spp_cb(): ESP_SPP_WRITE_EVT: 2 FREE

Sorry for bad english, is not my native language, but i tried my best...

Who is online

Users browsing this forum: Bing [Bot] and 28 guests