<?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>BLE Driver Unable to write to a characteristic</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8261/ble-driver-unable-to-write-to-a-characteristic</link><description>Hi , 
 I am unable to write to discover all services and write to a characteristic too. 
 On discovering services: 
 Discovering primary services 
 Received service discovery response 
 UUID: 0xA100, start handle: 0x000C, end handle: 0x0015 
 Discovering</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 19 Jul 2015 08:04:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8261/ble-driver-unable-to-write-to-a-characteristic" /><item><title>RE: BLE Driver Unable to write to a characteristic</title><link>https://devzone.nordicsemi.com/thread/29770?ContentTypeID=1</link><pubDate>Sun, 19 Jul 2015 08:04:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6962619-69c8-4dcc-a8a4-78466a170156</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;nope can&amp;#39;t help you with that code, don&amp;#39;t use the python stuff. At least you found the correct handle now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Driver Unable to write to a characteristic</title><link>https://devzone.nordicsemi.com/thread/29769?ContentTypeID=1</link><pubDate>Sun, 19 Jul 2015 07:34:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22005f5a-3de2-4ef5-b946-8ee07201dc4b</guid><dc:creator>carvalhn</dc:creator><description>&lt;p&gt;The handle appears different as I have changed the order of the characteristics in the code.&lt;/p&gt;
&lt;p&gt;It appears the handle for Characteristic A102 is 0x0015 . I am still unable to write to it with the do_write function specified here
&lt;a href="https://devzone.nordicsemi.com/question/44656/ble-driver-python-concurrent-notifications/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt; .&lt;/p&gt;
&lt;p&gt;hrm_ctl_handle is 0x0015&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;def do_write(self,value):

 global hrm_ctl_handle

    print &amp;quot;do_write&amp;quot;,type(value),value,&amp;quot;-&amp;quot;,hrm_ctl_handle

    led_value = [value]

    led_array = util.list_to_uint8_array(led_value)

    write_params = ble_driver.ble_gattc_write_params_t()

    write_params.handle = hrm_ctl_handle

    write_params.len = 1

    write_params.p_value = led_array.cast()

    write_params.write_op = ble_driver.BLE_GATT_OP_WRITE_REQ

    write_params.offset = 0
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Could you please help me?&lt;/p&gt;
&lt;p&gt;Thanks and Regards,
Neil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Driver Unable to write to a characteristic</title><link>https://devzone.nordicsemi.com/thread/29768?ContentTypeID=1</link><pubDate>Sun, 19 Jul 2015 07:31:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c20f1ef-6212-45b1-8192-9eb070506447</guid><dc:creator>carvalhn</dc:creator><description>&lt;p&gt;Ok I have done created a new method and manually specified the start handle for the descriptor discovery service.&lt;/p&gt;
&lt;p&gt;Received descriptor discovery response, descriptor count: 5&lt;/p&gt;
&lt;p&gt;on Discovery response Handle: 0x000D, UUID: 0x2803&lt;/p&gt;
&lt;p&gt;on Discovery response Handle: 0x000E, UUID: 0xA101&lt;/p&gt;
&lt;p&gt;on Discovery response Handle: 0x000F, UUID: 0x2902&lt;/p&gt;
&lt;p&gt;on Discovery response Handle: 0x0010, UUID: 0x2803&lt;/p&gt;
&lt;p&gt;on Discovery response Handle: 0x0011, UUID: 0x2A38&lt;/p&gt;
&lt;p&gt;Press enter to toggle notifications 1&lt;/p&gt;
&lt;p&gt;Discovering descriptorsvjhghgjh&lt;/p&gt;
&lt;p&gt;Received descriptor discovery response, descriptor count: 5&lt;/p&gt;
&lt;p&gt;on Discovery response Handle: 0x0011, UUID: 0x2A38&lt;/p&gt;
&lt;p&gt;on Discovery response Handle: 0x0012, UUID: 0x2803&lt;/p&gt;
&lt;p&gt;on Discovery response Handle: 0x0013, UUID: 0xA103&lt;/p&gt;
&lt;p&gt;on Discovery response Handle: 0x0014, UUID: 0x2803&lt;/p&gt;
&lt;p&gt;on Discovery response Handle: 0x0015, UUID: 0xA102&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Driver Unable to write to a characteristic</title><link>https://devzone.nordicsemi.com/thread/29767?ContentTypeID=1</link><pubDate>Sun, 19 Jul 2015 06:59:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c058151e-2886-4d95-abfc-24788e75b084</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Why didn&amp;#39;t it work? Error message? What? If you can&amp;#39;t discover the descriptors then there&amp;#39;s something wrong. The service says descriptors go to 0x15, you need to work out how to get them all, perhaps you will then find your error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Driver Unable to write to a characteristic</title><link>https://devzone.nordicsemi.com/thread/29766?ContentTypeID=1</link><pubDate>Sun, 19 Jul 2015 06:52:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c21c8c8e-1c7f-480d-baf0-e9f6716af2d8</guid><dc:creator>carvalhn</dc:creator><description>&lt;p&gt;Hi rk&lt;/p&gt;
&lt;p&gt;Thanks for your response&lt;/p&gt;
&lt;p&gt;I had issued a second char discovery but that did not work&lt;/p&gt;
&lt;p&gt;For the writing to a characteristic part, I have written to the correct handle which is 11 in this scenario but It still doesnt write properly&lt;/p&gt;
&lt;p&gt;I m able to write to a descriptor but not to a characteristic , I m confused why&lt;/p&gt;
&lt;p&gt;Could you please help?&lt;/p&gt;
&lt;p&gt;Thanks and Regards
Neil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Driver Unable to write to a characteristic</title><link>https://devzone.nordicsemi.com/thread/29765?ContentTypeID=1</link><pubDate>Sun, 19 Jul 2015 03:00:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8419aee1-dedd-4088-8d12-a844e4707004</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;You haven&amp;#39;t discovered all the characteristics. The service discovery shows handles all the way up to 0x0015. You&amp;#39;ve only discovered up to 0x0011. You need to do another discover descriptors starting at 0x0012 until you&amp;#39;ve exhausted the service. The payload for the underlying ATT find information request is of max size MTU-2, which is 21 bytes, which is 5 {Handle,value} pairs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>