ESP32 AT command BT CLASSIC

m.caddia
Posts: 2
Joined: Wed Mar 27, 2019 1:43 pm

ESP32 AT command BT CLASSIC

Postby m.caddia » Wed Mar 27, 2019 2:02 pm

Hi,
i'm trying to use BT Classic by AT Command, on esp32-pico-d4.
I'm using spp connection, i receive byte but i lose many byte, this is what happen:
This i right, i receive 3 byte (1D 49 03) seguito dallo 0d 0a
2B 42 54 44 41 54 41 3A 33 2C 1D 49 03 0D 0A -->> +BTDATA:3,.I...

this is wrong:
2B 42 54 44 41 54 41 3A 39 38 39 2C 18 1B 2A 72 +BTDATA:989,.......
30 44 18 1B 32 1B 2A 6F 30 51 1B 2A 74 32 30 30 .............
52 1B 26 6C 39 35 32 50 1B 26 6B 34 57 1B 2A 70 .............
31 36 59 1B 2A 62 32 4D 1B 2A 62 32 30 57 0D 0A ..................
2B 42 54 44 41 54 41 3A 39 38 39 2C 02 FE 0D 0A +BTDATA:989,.....
2B

i wait 989 byte in first packet, but the byte between +BTDATA aren't 989 are very very less.

Someone can help me?
Can explain me what happen?

Thanks,Marco

Helen L
Posts: 71
Joined: Thu Aug 16, 2018 9:07 am

Re: ESP32 AT command BT CLASSIC

Postby Helen L » Fri Mar 29, 2019 9:01 am

I also use the BT classic, but never met data loss. Maybe you can connect the UART CTS, RTS, enable the UART flow control and try it again. To see if it is the UART that lost data.

m.caddia
Posts: 2
Joined: Wed Mar 27, 2019 1:43 pm

Re: ESP32 AT command BT CLASSIC

Postby m.caddia » Fri Mar 29, 2019 9:23 am

Helen L wrote:
Fri Mar 29, 2019 9:01 am
I also use the BT classic, but never met data loss. Maybe you can connect the UART CTS, RTS, enable the UART flow control and try it again. To see if it is the UART that lost data.
Thanks for reply
i'm doing the test from PC, without RTS or CTS, but the problem, for me, isnt' rts o cts, because at the end of packet there are 0x0d & 0x0A, the packet terminator, right?

Who is online

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