Problem receiving commands via Bluetooth Classic SPP

rafaelwerneck0
Posts: 3
Joined: Tue Nov 26, 2019 2:28 pm

Problem receiving commands via Bluetooth Classic SPP

Postby rafaelwerneck0 » Mon Sep 27, 2021 7:15 pm

Hello.

I am using ESP32 project ESP-AT and IDF version release/v4.2. The version of firmware AT is v2.2.0.0_esp32 release.

I am working with ESP32 AT Firmware and am using Bluetooth Classic SPP.

Below, we have a print of the ESP32 module UART RX. See that we received a command "+BTDATA:8,xxxxxxxxx\r\n" (see attached file "BT_OK".
BT_OK.png
BT_OK
BT_OK.png (207.99 KiB) Viewed 15389 times
The problem is that sometimes this command is getting "broken" into two parts, as shown in the another image (see attached file "BT_ERROR").
BT_ERROR.png
BT_ERROR
BT_ERROR.png (212.4 KiB) Viewed 15389 times
Is there any way to fix this problem through menuconfig?

Thank you in advance,

Rafael Werneck

ESP_Alson
Posts: 106
Joined: Mon Mar 22, 2021 3:37 am

Re: Problem receiving commands via Bluetooth Classic SPP

Postby ESP_Alson » Sat Oct 09, 2021 1:35 pm

UART transmission seems to be interrupted. Is there any operation performed at this time? For example, have you received spp data again?

Could you provide specific AT firmware version? You can execute AT+GMR to obtain AT version information.

rafaelwerneck0
Posts: 3
Joined: Tue Nov 26, 2019 2:28 pm

Re: Problem receiving commands via Bluetooth Classic SPP

Postby rafaelwerneck0 » Wed Oct 13, 2021 12:29 pm

Hello @ESP_Alson, thank you for your reply.

There is no operation being performed, just a command via SPP.

For the specific AT firmware version, the AT+GMR command response follows:

AT+GMR
AT version:2.3.0.0-dev(s-2b7b8e8 - ESP32 - Jul 23 2021 09:58:50)
SDK version:v4.2.2-76-gefa6eca8b-dirty
compile time(e941032):Sep 23 2021 17:30:10
Bin version:2.2.0(WROVER-32)

ESP_Alson
Posts: 106
Joined: Mon Mar 22, 2021 3:37 am

Re: Problem receiving commands via Bluetooth Classic SPP

Postby ESP_Alson » Thu Dec 30, 2021 7:10 am

Judging from the version you provided, this is your own compiled version, and it seems that some source files in esp-idf have been modified.

My suggestion is you can download AT v2.2.0.0 WROVER-32 from https://docs.espressif.com/projects/esp ... aries.html. Test your problem with our officially released version.

If there is still a problem, you can post your command log and application scenario. I can help you see it.

Who is online

Users browsing this forum: No registered users and 7 guests