I user csr1012 to develop a gatt services to transport data with iOS device,i set the characteristic as
characteristic {
uuid : UUID_SERIAL_DATA_RECEIVE,
name : "SERIAL_DATA_RECEIVE",
flags : [FLAG_DYNLEN,FLAG_IRQ],
properties :[write_cmd,write]
/*size_value: 20 */
}
but when the iOS devices send data to csr1012 ,it can`t received, I catch tha air date , it said iOS device send data use Prepare write request , and csr1012 response with not support ,
so how to support the Prepare write reques, and why csr101x only support ATT_MTU 23, and csr102x is same?
Thanks!
Maybe you have to use :
/* Primary service declaration of Serial service */
primary_service { uuid: UUID_SERIAL_SERVICE, name: "SERIAL_SERVICE",
/* Serial Data Transfer characteristic */
characteristic { uuid: UUID_SERIAL_DATA_TRANSFER,
name: "SERIAL_DATA_TRANSFER",
/* Dynamic value maintained by the application */
flags: [FLAG_IRQ, FLAG_ENCR_W],
properties: [write_cmd, notify],
size_value: 20,
client_config { flags : [FLAG_IRQ, FLAG_ENCR_W,FLAG_ENCR_R],
name : "SERIAL_DATA_C_CFG" } } },
"About csr101x only support ATT_MTU 23, and csr102x is same"
Qualcomm moderator refuse to reply on csr102x family on this forums. See https://developer.qualcomm.com/forum/qdn-forums/hardware/bluetooth-conne...
https://goo.gl/9Ydz04
Hi Rui,
I'm concerned that you're intending to use ATT Prepare Write request because you want to use GATT Write Long Characteristic procedure. This is known to be buggy in CSR101x.
YMMV
Chris