<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Prepare Write Functionality on BLE KW41Z in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/Prepare-Write-Functionality-on-BLE-KW41Z/m-p/796298#M5065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gerardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;I am testing reliable write functionality&amp;nbsp;of ble server role using test tool which generate the prepare write request but getting error response as shown below.&lt;/P&gt;&lt;P&gt;************************ Prepare write request ***********************************&lt;/P&gt;&lt;P&gt;Send Event: ATT!ATT_PREPARE_WRITE_REQ{&lt;BR /&gt; lcid=0x0040,&lt;BR /&gt; attributeHandle=0x003A,&lt;BR /&gt; valueOffset=0x0000,&lt;BR /&gt; length=0x000D,&lt;BR /&gt; {&lt;BR /&gt; partAttributeValue=0x616E69684320676E696A696542 &lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;*********************** Prepare write response ****************************************&lt;BR /&gt;Receive Event: ATT?ATT_PREPARE_WRITE_CFM{&lt;BR /&gt; lcid=0x0040,&lt;BR /&gt; attributeHandle=0x0000,&lt;BR /&gt; valueOffset=0x0000,&lt;BR /&gt; length=0x0000,&lt;BR /&gt; result=0x0006&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;ATT Prepare Write returned an error.&lt;/P&gt;&lt;P&gt;*******************************************************************************************&lt;/P&gt;&lt;P&gt;As you said above This response from ble stack internally and we need not to do anything in application firmware.&lt;/P&gt;&lt;P&gt;Could you please describe that how i can avoid this error or successful write operation on it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the setting for above characteristic, which gives error.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Characteristic properties :&amp;nbsp;gGattCharPropRead_c | gGattCharPropExtendedProperties_c | gGattCharPropWrite_c&amp;nbsp;&lt;/P&gt;&lt;P&gt;Characteristic size is 128 bytes&lt;/P&gt;&lt;P&gt;Descriptor for&amp;nbsp;gBleSig_CharExtndPrprtsDescriptor_d and&amp;nbsp;reliable write is enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please provide details for how server will get the long characteristic write event in application? or it would be better if is there any working example is available for it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you want more information on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2018 05:01:00 GMT</pubDate>
    <dc:creator>ashish_patel</dc:creator>
    <dc:date>2018-06-20T05:01:00Z</dc:date>
    <item>
      <title>Prepare Write Functionality on BLE KW41Z</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Prepare-Write-Functionality-on-BLE-KW41Z/m-p/796296#M5063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide the details for the prepare write functionality&amp;nbsp;on BLE KW41Z chipset?&lt;/P&gt;&lt;P&gt;How to configure this event or register callback for prepare write event?&lt;/P&gt;&lt;P&gt;How could i receive&amp;nbsp;event and also respond this prepare write event?&lt;/P&gt;&lt;P&gt;Please&amp;nbsp;let me know as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 13:46:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Prepare-Write-Functionality-on-BLE-KW41Z/m-p/796296#M5063</guid>
      <dc:creator>ashish_patel</dc:creator>
      <dc:date>2018-06-19T13:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Prepare Write Functionality on BLE KW41Z</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Prepare-Write-Functionality-on-BLE-KW41Z/m-p/796297#M5064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;Ashish Patel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Prepare Write Request/Response&amp;nbsp;are the attribute protocol PDUs used by the&amp;nbsp;&lt;STRONG&gt;Write Long Characteristic Values&amp;nbsp;&lt;/STRONG&gt;or&amp;nbsp;&lt;STRONG&gt;Reliable Writes&amp;nbsp;&lt;/STRONG&gt;sub-procedures of the&amp;nbsp;&lt;STRONG&gt;Characteristic Value&amp;nbsp;Write &lt;/STRONG&gt;procedure. Refer to&amp;nbsp;&lt;EM&gt;Table 4.2: GATT Procedure mapping to ATT protocol opcodes&lt;/EM&gt; from the &lt;A href="https://www.bluetooth.org/DocMan/handlers/DownloadDoc.ashx?doc_id=441541"&gt;BLE core specification v4.2&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61999iCB618CC8316ADE1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The KW41 BLE host stack will handle automatically the Prepare Write Requests and Responses when a long characteristic is being written. For information on how to register a procedure callback in your application and how to use the characteristic write procedure refer to the&amp;nbsp;&lt;STRONG&gt;5.1.4.4 Characteristic write procedure&lt;/STRONG&gt; section of the &lt;EM&gt;&lt;STRONG&gt;BLE Application Developer's Guide.pdf &lt;/STRONG&gt;&lt;/EM&gt;document located at "&amp;lt;&lt;A href="https://mcuxpresso.nxp.com/en/select"&gt;KW41 SDK&lt;/A&gt;&amp;gt;\docs\wireless\Bluetooth\".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have any question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gerardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 20:56:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Prepare-Write-Functionality-on-BLE-KW41Z/m-p/796297#M5064</guid>
      <dc:creator>gerardo_rodriguez</dc:creator>
      <dc:date>2018-06-19T20:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Prepare Write Functionality on BLE KW41Z</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Prepare-Write-Functionality-on-BLE-KW41Z/m-p/796298#M5065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gerardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;I am testing reliable write functionality&amp;nbsp;of ble server role using test tool which generate the prepare write request but getting error response as shown below.&lt;/P&gt;&lt;P&gt;************************ Prepare write request ***********************************&lt;/P&gt;&lt;P&gt;Send Event: ATT!ATT_PREPARE_WRITE_REQ{&lt;BR /&gt; lcid=0x0040,&lt;BR /&gt; attributeHandle=0x003A,&lt;BR /&gt; valueOffset=0x0000,&lt;BR /&gt; length=0x000D,&lt;BR /&gt; {&lt;BR /&gt; partAttributeValue=0x616E69684320676E696A696542 &lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;*********************** Prepare write response ****************************************&lt;BR /&gt;Receive Event: ATT?ATT_PREPARE_WRITE_CFM{&lt;BR /&gt; lcid=0x0040,&lt;BR /&gt; attributeHandle=0x0000,&lt;BR /&gt; valueOffset=0x0000,&lt;BR /&gt; length=0x0000,&lt;BR /&gt; result=0x0006&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;ATT Prepare Write returned an error.&lt;/P&gt;&lt;P&gt;*******************************************************************************************&lt;/P&gt;&lt;P&gt;As you said above This response from ble stack internally and we need not to do anything in application firmware.&lt;/P&gt;&lt;P&gt;Could you please describe that how i can avoid this error or successful write operation on it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the setting for above characteristic, which gives error.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Characteristic properties :&amp;nbsp;gGattCharPropRead_c | gGattCharPropExtendedProperties_c | gGattCharPropWrite_c&amp;nbsp;&lt;/P&gt;&lt;P&gt;Characteristic size is 128 bytes&lt;/P&gt;&lt;P&gt;Descriptor for&amp;nbsp;gBleSig_CharExtndPrprtsDescriptor_d and&amp;nbsp;reliable write is enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please provide details for how server will get the long characteristic write event in application? or it would be better if is there any working example is available for it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you want more information on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 05:01:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Prepare-Write-Functionality-on-BLE-KW41Z/m-p/796298#M5065</guid>
      <dc:creator>ashish_patel</dc:creator>
      <dc:date>2018-06-20T05:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Prepare Write Functionality on BLE KW41Z</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Prepare-Write-Functionality-on-BLE-KW41Z/m-p/796299#M5066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;Ashish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide more details of your setup so I can better understand your use case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand you have a device running a GATT server. What demo application is it running?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are you using as the GATT client? Is it test tool communicating with another device running the FSCI black box? If so, let me know the list of commands that you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the section&amp;nbsp;&lt;STRONG&gt;5.2.3 Attribute write notifications&lt;/STRONG&gt;&amp;nbsp;from the same document covers your use case and explains how to register an attribute so it generates an event to the GATT server callback when a long characteristic is written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gerardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2018 19:33:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Prepare-Write-Functionality-on-BLE-KW41Z/m-p/796299#M5066</guid>
      <dc:creator>gerardo_rodriguez</dc:creator>
      <dc:date>2018-06-22T19:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Prepare Write Functionality on BLE KW41Z</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Prepare-Write-Functionality-on-BLE-KW41Z/m-p/796300#M5067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gerardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am testing my services development on PTS test tool. The device is configured for GATT Server&amp;nbsp;on the user-defined&amp;nbsp;demo. The PTS dongle is GATT Client and It will perform operations automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have registered att read and different kind of write events and also receiving each event except the long write characteristic so I was&amp;nbsp;looking for any other method to register this event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But fortunately, the problem identified by one your colleague that the peripheral library doesn't have this functionality because it is not a full library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your all efforts to resolve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 05:27:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Prepare-Write-Functionality-on-BLE-KW41Z/m-p/796300#M5067</guid>
      <dc:creator>ashish_patel</dc:creator>
      <dc:date>2018-06-25T05:27:20Z</dc:date>
    </item>
  </channel>
</rss>

