Page 1 of 1

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

Posted: Fri Feb 07, 2020 7:56 am
by The Crow
  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.

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

Posted: Mon Feb 17, 2020 10:13 am
by The Crow
problem fixed.., very very hard

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

Posted: Tue Apr 27, 2021 7:27 am
by aakashteggi96
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..

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

Posted: Tue Apr 27, 2021 7:35 am
by aakashteggi96
can you tell me how?