Missing "+BTDATA:" message end (terminating / CR LF) bytes.

firmware_guy
Posts: 12
Joined: Fri Oct 13, 2023 1:09 pm

Missing "+BTDATA:" message end (terminating / CR LF) bytes.

Postby firmware_guy » Mon Nov 06, 2023 1:49 pm

Hello,
My device is controlled via BT and I want to send a large amount of data over Wi-Fi. When I start sending I also occasionally get BT polling bytes. Everything seems fine, but at some point two messages merge and the terminating bytes (0x0D 0x0A) are skipped. Normally it is happen at the end of the "+BTDATA:" new BT data message .
Is it normal behavior for messages to be linked/merged like this?

I have CONFIG_ESP_COEX_SW_COEXIST_ENABLE enabled (if this helps) and hardware flow control - connect CTS/RTS pins.

Version Info:

Code: Select all

AT version:3.3.0.0-dev(s-d5269eb - ESP32 - Sep 19 2023 03:00:47)
SDK version:v5.0.2-376-g24b9d38a24-dirty
compile time(34be80ff):Nov  2 2023 11:29:47
Bin version:v3.2.0.0(MY-PICO)
I've done a lot of tests and missing bytes are always this two (0x0D 0x0A) at the end of "+BTDATA:". I have attached image of my logs (Missing-CR-LF - log.png) and images from my uart buffer that you can see missing (0x0D 0x0A) bytes.
Attachments
Missing-CR-LF - 2.png
Missing-CR-LF - 2.png (13.78 KiB) Viewed 28342 times
Missing-CR-LF - 1.png
Missing-CR-LF - 1.png (37.68 KiB) Viewed 28342 times
Missing-CR-LF - log.png
Missing-CR-LF - log.png (14.59 KiB) Viewed 28342 times

esp-at
Posts: 133
Joined: Mon May 09, 2022 3:00 am

Re: Missing "+BTDATA:" message end (terminating / CR LF) bytes.

Postby esp-at » Tue Nov 07, 2023 2:19 am

thanks for your report. you are right, the terminating bytes (0x0D 0x0A) should always appear the end of "+BTDATA", it shouldn't be skipped. will fix it within next two weeeks.

esp-at
Posts: 133
Joined: Mon May 09, 2022 3:00 am

Re: Missing "+BTDATA:" message end (terminating / CR LF) bytes.

Postby esp-at » Fri Nov 17, 2023 3:14 am

this issue should be fixed after: https://github.com/espressif/esp-at/com ... c6738a24b1
could you please have a try.

firmware_guy
Posts: 12
Joined: Fri Oct 13, 2023 1:09 pm

Re: Missing "+BTDATA:" message end (terminating / CR LF) bytes.

Postby firmware_guy » Fri Nov 17, 2023 9:23 am

Yes, it is fixed.
Thank you.

Who is online

Users browsing this forum: No registered users and 71 guests