<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MCP android long write</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7151/mcp-android-long-write</link><description>Hi, I&amp;#39;m trying to write a long byte array with the nrf master control panel on android. I&amp;#39;m unsure if the app is able to, but in any case I&amp;#39;m not getting the event: BLE_EVT_USER_MEM_REQUEST . I simply get the BLE_GATTS_EVT_WRITE with BLE_GATTS_OP_WRITE_CMD</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 May 2015 14:06:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7151/mcp-android-long-write" /><item><title>RE: MCP android long write</title><link>https://devzone.nordicsemi.com/thread/25274?ContentTypeID=1</link><pubDate>Wed, 20 May 2015 14:06:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d4cd1a6-f533-4923-a751-890155412ebe</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@bart: I&amp;#39;m glad that you found the solution. I think the reason for this is that on MCP we will check if the write without response is allowed in the property we will use write command. And this won&amp;#39;t allow writing more than 20 bytes. If write without response is not allowed, we will use write request, and this will allow long write.&lt;/p&gt;
&lt;p&gt;You can modify your app so that it will use write request regardless the property of the characteristic allow write command.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP android long write</title><link>https://devzone.nordicsemi.com/thread/25277?ContentTypeID=1</link><pubDate>Wed, 20 May 2015 14:00:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e91888d1-5cf3-4771-88af-683f530adf58</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@bart: We don&amp;#39;t add any code in the BLE_GATTS_EVT_WRITE because there is no action needed in the application when receiving a write. If you debug the application you can see it&amp;#39;s jump to BLE_EVT_USER_MEM_REQUEST event when you start write long.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP android long write</title><link>https://devzone.nordicsemi.com/thread/25276?ContentTypeID=1</link><pubDate>Wed, 20 May 2015 13:10:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07ce7d7b-4a91-41b9-b255-4fc6a7b81ef2</guid><dc:creator>bart</dc:creator><description>&lt;p&gt;Thanks for the reply, I checked the code, cause I&amp;#39;m working on linux and I don&amp;#39;t know how to use all the settings you include with the project to compile and upload it :) It doesn&amp;#39;t include the handling of the write event as far as i could tell.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP android long write</title><link>https://devzone.nordicsemi.com/thread/25273?ContentTypeID=1</link><pubDate>Wed, 20 May 2015 13:07:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:842cdee3-5805-4666-a1a4-76824f7b90e5</guid><dc:creator>bart</dc:creator><description>&lt;p&gt;Turns out that I had to set &lt;code&gt;char_props.write_wo_resp = 0&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCP android long write</title><link>https://devzone.nordicsemi.com/thread/25275?ContentTypeID=1</link><pubDate>Wed, 20 May 2015 09:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f5f5a45-6bca-457c-8dc8-c5a6e782eb89</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Bart: I don&amp;#39;t think you need char_ext_props.reliable_wr = 1 if you just want long write.
Not sure what could be wrong in your case but can you try my example &lt;a href="https://github.com/NordicSemiconductor/ble_app_hrs---LongWrite"&gt;here&lt;/a&gt; and let me know the result?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>