ESP32 - Wrover - AT Instruction - BLE - message data length

The Crow
Posts: 3
Joined: Tue Jun 11, 2019 10:42 am

ESP32 - Wrover - AT Instruction - BLE - message data length

Postby The Crow » Fri Feb 07, 2020 7:56 am

  1. I configured my Wrover device to work with AT commands as server BLE.
  2. Client recognize BLE server, its connect to Wrover and send/receive information on BLE stream.
  3.  
  4. This sequence to start service:
  5. AT+BLEINIT=2
  6. AT+BLENAME="BLE_SERVER_1"
  7. AT+BLEGATTSSRVCRE
  8. AT+BLEGATTSSRVSTART
  9. AT+BLEADVSTART
  10.  
  11. Default data length (received and transmit message) is set 23 bytes  (20 data + 3 control) and may be enlarged until 517 (514 + 3 control bytes).
  12. When client is connected, its change this configuration setting MTU to another value (503, for example), this mean that Wrower can send message until 500.
  13. Unfortunately size of Wrover receive buffer doesn't change (20+3 bytes)
  14. When client send Wrover a message bigger than 20 GATTS, Wrover answer an error message (the attribute value length is invalid for the operation).
  15. I don't know how enlarge this characteristic.
  16. I've use AT+BLEDATALEN but Wrover doesn't manage it (return ERROR).
  17. I think that its settable with AT+BLEGATTSSETATTR but i don't know how manage it.

The Crow
Posts: 3
Joined: Tue Jun 11, 2019 10:42 am

Re: ESP32 - Wrover - AT Instruction - BLE - message data length

Postby The Crow » Mon Feb 17, 2020 10:13 am

problem fixed.., very very hard

aakashteggi96
Posts: 5
Joined: Mon Apr 26, 2021 6:56 am

Re: ESP32 - Wrover - AT Instruction - BLE - message data length

Postby aakashteggi96 » Tue Apr 27, 2021 7:27 am

can you explain how because im using esp32 wroom and my at+blecfgmtu is set to 23 and when i try to set the data len to something else it throughs and error..

aakashteggi96
Posts: 5
Joined: Mon Apr 26, 2021 6:56 am

Re: ESP32 - Wrover - AT Instruction - BLE - message data length

Postby aakashteggi96 » Tue Apr 27, 2021 7:35 am

can you tell me how?

Who is online

Users browsing this forum: Baldhead and 108 guests