<?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 Service Characteristic - Different Properties On Different Phones</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62770/ble-service-characteristic---different-properties-on-different-phones</link><description>Hi All, 
 We have a product based on nrf52832 that has a custom ble service with 2 custom characteristics.The first one is to send data to the nrf device and the second one receives the data back from nrf device using indications. So far this has been</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Jun 2020 12:29:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62770/ble-service-characteristic---different-properties-on-different-phones" /><item><title>RE: Ble Service Characteristic - Different Properties On Different Phones</title><link>https://devzone.nordicsemi.com/thread/256694?ContentTypeID=1</link><pubDate>Wed, 24 Jun 2020 12:29:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1933d3cc-611a-4b4a-afab-0b537f17da74</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Ankit,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Great to hear the success and the sharing. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble Service Characteristic - Different Properties On Different Phones</title><link>https://devzone.nordicsemi.com/thread/256024?ContentTypeID=1</link><pubDate>Sat, 20 Jun 2020 07:23:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d386e8f7-4772-404b-a4a8-e6a3ac4b94e1</guid><dc:creator>Ankit Bhatnagar</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Yes. It&amp;#39;s the same hardware. We change the device name after provisioning. The screenshots were taken before and after provisioning on the same hardware, that&amp;#39;s why the different name.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We managed to the cause of the issue.&lt;/p&gt;
&lt;p&gt;In our code, we set the characteristics property notify value to 1, as seen in the code section below&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ble_gatts_char_md_t char_metadata;

uint8_t initial_characterstic_value2[BLE_CUSTOM_CHARACTERSTIC2_SIZE] = {0};
char* char2_desc = malloc(BLE_CUSTOM_CHARACTERSTIC_DESC_MAX_SIZE);
char_metadata.char_props.write_wo_resp = 0;
char_metadata.char_props.write = 0;
char_metadata.char_props.read = 1;
char_metadata.char_props.indicate = 1;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;adding the line&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;char_metadata.char_props.notify = 0;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;solved the issue.&lt;/p&gt;
&lt;p&gt;Now that I think about it, since the variable is a local one, it would be initialized with a garbage value. So the .notify property could be some random value. Why this would work all this while with ble 4 phones and not with newer phones (with ble 5 support) is something of a mystery. Explicitly setting this field to 0 solves the issue.&lt;/p&gt;
&lt;p&gt;I checked Nordic official examples, and there also only the required fields are being set (and no memset 0 done on this local variable)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble Service Characteristic - Different Properties On Different Phones</title><link>https://devzone.nordicsemi.com/thread/255953?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2020 11:30:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bf4f6cc-f979-40cd-8aeb-d10335b77959</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Ankit,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you connect to the same device?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-958302dacef144c8b59ed04e31c1cae6/251635.png" /&gt;&lt;/p&gt;
&lt;p&gt;Could you try to &amp;quot;Refresh device cache&amp;quot; as the figure? Does it help?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-958302dacef144c8b59ed04e31c1cae6/refresh-the-device-cache.png" /&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>