<?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>Writing to secure characteristic on nRF51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/626/writing-to-secure-characteristic-on-nrf51822</link><description>I have a nRF51822 module programmed for custom service and characteristics. I am able to connect to this module using android 4.3 API. I can get characteristics and their properties. 
 One of my characteristics advertises as write with no response to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Oct 2013 06:44:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/626/writing-to-secure-characteristic-on-nrf51822" /><item><title>RE: Writing to secure characteristic on nRF51822</title><link>https://devzone.nordicsemi.com/thread/3219?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2013 06:44:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d8e5a61-720f-4f0a-891f-394bce33921f</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;Sorry, I meant the code on the nRF51 side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to secure characteristic on nRF51822</title><link>https://devzone.nordicsemi.com/thread/3220?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2013 03:38:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5034b629-16e3-4209-8def-81dbf7e9ac40</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;I used following code to write data to characteristic.&lt;/p&gt;
&lt;p&gt;//get services for device
if(mBluetoothGatt != null) mBluetoothGattServices = mBluetoothGatt.getServices();&lt;/p&gt;
&lt;p&gt;//get characteristics for a service
chars = service.getCharacteristics();&lt;/p&gt;
&lt;p&gt;//write hex data to characteristic
mCharacteristic.setWriteType(BluetoothGattCharacteristic.WRITE_TYPE_NO_RESPONSE);
mCharacteristic.setValue(dataToWrite);
// ... and then &amp;quot;commit&amp;quot; changes to the peripheral
mBluetoothGatt.writeCharacteristic(mCharacteristic);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to secure characteristic on nRF51822</title><link>https://devzone.nordicsemi.com/thread/3218?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2013 03:38:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:709e8022-8371-4beb-bc07-7a88711ec3e1</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;I used following code to write data to characteristic.&lt;/p&gt;
&lt;p&gt;//get services for device
if(mBluetoothGatt != null) mBluetoothGattServices = mBluetoothGatt.getServices();&lt;/p&gt;
&lt;p&gt;//get characteristics for a service
chars = service.getCharacteristics();&lt;/p&gt;
&lt;p&gt;//write hex data to characteristic
mCharacteristic.setWriteType(BluetoothGattCharacteristic.WRITE_TYPE_NO_RESPONSE);
mCharacteristic.setValue(dataToWrite);
// ... and then &amp;quot;commit&amp;quot; changes to the peripheral
mBluetoothGatt.writeCharacteristic(mCharacteristic);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to secure characteristic on nRF51822</title><link>https://devzone.nordicsemi.com/thread/3217?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2013 11:38:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:943e60cd-b393-4797-a5c6-2e12a87be052</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;One of my characteristics advertises as write with no response to which I am trying to write some value. Android shows that it successfully performed write operation but the module doesn&amp;#39;t receive anything.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Android cannot really know if the characteristic was written to successfully since you used a Write Command (Write Without Response) and not a Write Request to write to it.&lt;/p&gt;
&lt;p&gt;Security could indeed be the problem, or maybe even permissions.&lt;/p&gt;
&lt;p&gt;Could you post the code you used to add the characteristic?&lt;/p&gt;
&lt;p&gt;That way we can take a look at what permissions and security you required.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Carles&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>