<?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>When send the indication</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19847/when-send-the-indication</link><description>Hi all, 
 i try to log event in memory, and when connection is established read value from E2C and send to APP.
if i send characteristics when event BLE_GAP_EVT_CONNECTED arrive the indication is not send ( maybe i must wait a that the service is discover</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Feb 2017 15:48:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19847/when-send-the-indication" /><item><title>RE: When send the indication</title><link>https://devzone.nordicsemi.com/thread/77189?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2017 15:48:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:276124fc-bab4-4c6b-b064-30a66444e173</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;If i add a delay of one second, the app receive the indication. Maybe i must wait that the service discovered. I can try to use a db_discovery_module&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When send the indication</title><link>https://devzone.nordicsemi.com/thread/77188?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2017 15:36:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bee5db0-7e8d-41f7-8753-ea273f10682d</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;PM_EVT_LOCAL_DB_CACHE_APPLIED occurs before BLE_GAP_EVT_CONNECTED, so is not the correct event to be ensure that the app Master control panel is ready to receive the indication. I think that the problem is The app because if i count the number of ack which receive is it correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When send the indication</title><link>https://devzone.nordicsemi.com/thread/77190?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2017 07:56:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a551614f-6111-43c5-b02a-bd8e5f1d9caf</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Then I think you should be able to use the PM_EVT_LOCAL_DB_CACHE_APPLIED event instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When send the indication</title><link>https://devzone.nordicsemi.com/thread/77185?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 14:40:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04a92c10-dfd7-4ba9-90ed-46e5eff034c3</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Is it possible that the problem is the APP?  Because if i count the ACK that arrived is correct. But in the log of app doesn&amp;#39;t compare. The number of ack for me is the times number that BLE_GATTS_EVT_HVC occurs&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When send the indication</title><link>https://devzone.nordicsemi.com/thread/77187?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 13:25:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a80b7140-b3bc-4c2d-8d45-9fdcb8feb038</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;I use a peer manager not the device manager.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When send the indication</title><link>https://devzone.nordicsemi.com/thread/77186?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 13:21:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4094590a-6a09-4b87-927e-c288631ada32</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Ok. Maybe you can use the DM_EVT_SERVICE_CONTEXT_LOADED event you get in device_manager_evt_handler()? Do something like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if( p_event-&amp;gt;event_id == DM_EVT_SERVICE_CONTEXT_LOADED)
{
    start sending indications
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When send the indication</title><link>https://devzone.nordicsemi.com/thread/77193?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 12:51:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:965fb107-5a2b-4471-aca2-d2517c85d46a</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Yes, i have. i use a BLE Developer studio to create a custom profile and plug in for the Nordic SDK11 to generate the code for it.
The softdevice is s132 version 2.0.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When send the indication</title><link>https://devzone.nordicsemi.com/thread/77192?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 12:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d9977f3-b049-4653-a382-826609a503ef</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;So you have bonded. What example are you using? What SDK and SoftDevice version?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When send the indication</title><link>https://devzone.nordicsemi.com/thread/77191?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 12:45:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:560fb4b1-b956-457b-9725-1900ec205be0</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hi Petter,&lt;/p&gt;
&lt;p&gt;thanks for the answer. Yes, sure the data must be when indication is enable. But if enable it, disconnect the app (Nordic Master control Panel),  and i reconnect the indication is enable, yet. So i don&amp;#39;t need to enable it. But in this case the event send before is lost. How can i understand when the indication is enable? Is there an event or a function that after the connection allow to check if the indication is enable?&lt;/p&gt;
&lt;p&gt;Thanks,
Anna&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When send the indication</title><link>https://devzone.nordicsemi.com/thread/77184?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 12:26:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09e3f99f-20bd-4e2f-9577-32accef7ad17</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You can only send indications and notifications after the client have enabled them, this is done by writing to the CCCD of the characteristic you want to indicate/notify.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>