<?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 Peripheral from Central</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47673/writing-to-peripheral-from-central</link><description>Hi, 
 
 I am using nRF52840 Preview DK, with SDK V15.3.0 and Softdevice API V6.1.1 
 
 First, I modified the &amp;#39;ble blinky peripheral example&amp;#39; to have more characteristics tying it to appropriate event handler and I have verified that it works using nRF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Jun 2019 13:43:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47673/writing-to-peripheral-from-central" /><item><title>RE: Writing to Peripheral from Central</title><link>https://devzone.nordicsemi.com/thread/192733?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 13:43:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbbf11f2-ba9f-4687-9cf3-53f96d2b24f1</guid><dc:creator>Jimmy Wong</dc:creator><description>&lt;p&gt;HI ,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can try to refer to my example&amp;nbsp;&lt;a href="https://github.com/jimmywong2003/nrf5-ble-multiple-role-example"&gt;https://github.com/jimmywong2003/nrf5-ble-multiple-role-example&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I add the lbs+nus central (&lt;a class="js-navigation-open" id="17b0de57b44b907fda32e6cc147a2924-05a34d4e6e6a35a4bebcd6d21c5ce864b2fe9fb6" title="ble_app_lbs_nus_c" href="https://github.com/jimmywong2003/nrf5-ble-multiple-role-example/tree/master/ble_app_lbs_nus_c"&gt;ble_app_lbs_nus_c&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can use the NUS_C client to write cmd to peripheral role.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to Peripheral from Central</title><link>https://devzone.nordicsemi.com/thread/192717?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 13:13:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b03f689e-aa51-415b-88ea-4411987492ab</guid><dc:creator>Aamir</dc:creator><description>&lt;p&gt;Can someone please answer me? every time I change the order of characteristics, I get different number of characteristics discovered, I need all of the services to be discovered.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to Peripheral from Central</title><link>https://devzone.nordicsemi.com/thread/190271?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 11:40:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff585117-e020-4e77-95ae-7f70c0988a2f</guid><dc:creator>Aamir</dc:creator><description>&lt;p&gt;I rearranged the order in which the characteristics is defined and now it discovers up to 6 characteristics and nothing further, and now it is the same with nRF Connect mobile app ?&lt;/p&gt;
&lt;p&gt;I am really confused? can someone please explain ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to Peripheral from Central</title><link>https://devzone.nordicsemi.com/thread/189268?ContentTypeID=1</link><pubDate>Mon, 27 May 2019 10:28:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83f0b092-13cb-44e5-988d-fdcd8effa409</guid><dc:creator>Aamir</dc:creator><description>&lt;p&gt;Ok, so, I started off from a fresh ble-central example and started to add each characteristics 1-by-1 and I put up&amp;nbsp;counter named &amp;#39;flag&amp;#39; in the&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ble_lbs_on_db_disc_evt()&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;like this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;case LBS_UUID_ALARM_CHAR:
evt.params.peer_db.alarm_handle = p_char-&amp;gt;characteristic.handle_value;
flag++;
break;

case LBS_UUID_BUZZER_CHAR:
evt.params.peer_db.buzzer_handle = p_char-&amp;gt;characteristic.handle_value;
flag++;
break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;so that I know if my characteristic is getting found and assigned a handle&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and so, I found a weird behavior, the program stopped discovering characteristics above the count of 5&lt;/p&gt;
&lt;p&gt;meaning after 5 discovering 5 characteristics it won&amp;#39;t proceed to discover any more characteristics, till 5 characteristics everything works fine.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I took a quick glance through the sdk_config.h file to see if there is any setting related to this, but, I couldn&amp;#39;t find any ?&lt;/p&gt;
&lt;p&gt;is there something I am missing ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to Peripheral from Central</title><link>https://devzone.nordicsemi.com/thread/189180?ContentTypeID=1</link><pubDate>Mon, 27 May 2019 05:24:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7b33f64-fff4-4e04-bb0b-3afd0a991b66</guid><dc:creator>Aamir</dc:creator><description>&lt;p&gt;Now, I have made several characteristics, some gets called and some doesn&amp;#39;t, and there is no obvious reason as to why that is the case. I have inserted a breakpoint at ble_lbs_on_ble_evt to check if it is being is called and what I observed is that it works for some characteristics and for some it doesn&amp;#39;t. I tried changing the order in which I define characteristics and reordered their characteristic UUID then the ones that were not working before began working, I am really confused.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I still haven&amp;#39;t tested with a sniffer trace, but the logs on the central side shows successful sending of the data.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to Peripheral from Central</title><link>https://devzone.nordicsemi.com/thread/189031?ContentTypeID=1</link><pubDate>Fri, 24 May 2019 12:00:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ceee0195-4a9a-4703-9d4c-0c1599b8963a</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;First I would recommend that you get a new DK, the preview kit has an engineering revision chip, and SDK 15 is not tested against that.&lt;/p&gt;
&lt;p&gt;Do you have a sniffer trace that shows what is happening? Also are you getting a call to ble_lbs_on_ble_evt when you perform the write?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>