Forums - how to supprot prepare write

3 posts / 0 new
Last post
how to supprot prepare write
MrFine001
Join Date: 13 Jun 16
Posts: 14
Posted: Thu, 2016-06-16 23:02

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! 
  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Fri, 2016-06-17 01:18

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

  • Up0
  • Down0
cbs
Profile picture
Join Date: 4 Mar 15
Location: IoT consultant, Cambridgeshire, UK
Posts: 21
Posted: Tue, 2016-07-19 02:04

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

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.