<?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>Issues on implementing DIS client on multilink central</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29300/issues-on-implementing-dis-client-on-multilink-central</link><description>Hi all, 
 I&amp;#39;m trying to writing a device information service client on top of ble_app_multilink_central example on nRF52830 using SDK14.1.0 and softdevice 5.0 and have a big trouble getting it works. 
 I have defined only one instance do m_db_disc as</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jan 2018 15:09:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29300/issues-on-implementing-dis-client-on-multilink-central" /><item><title>RE: Issues on implementing DIS client on multilink central</title><link>https://devzone.nordicsemi.com/thread/116560?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 15:09:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d29715df-0c05-44e3-8c28-b2c77c5cbe5d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Sorry for the late reply, I have had the flu for some days now. Have you solved this? The end handle of primary service discovery response being 0xFFFF shouldn&amp;#39;t be a problem, it is normal. It is not used for anything is it?&lt;/p&gt;
&lt;p&gt;If you haven&amp;#39;t solved it, I will try to look into the fault. Let me know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues on implementing DIS client on multilink central</title><link>https://devzone.nordicsemi.com/thread/116559?ContentTypeID=1</link><pubDate>Wed, 17 Jan 2018 09:54:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60154990-c160-4d64-a62c-dad00f9b1ee3</guid><dc:creator>Arthur</dc:creator><description>&lt;p&gt;Hi Petter,&lt;/p&gt;
&lt;p&gt;Thank you for your help. The fix does keep it running and the LBS works fine. However, I still see two issues even it doesn&amp;#39;t break.&lt;/p&gt;
&lt;p&gt;First, the end_handle for DIS is still invalid. Second, I still see a failure message (I cannot find out where the code located yet). Below is the log I&amp;#39;ve got.&lt;/p&gt;
&lt;p&gt; app: Multilink example started.&lt;/p&gt;
&lt;p&gt; app: Start scanning for device name Nordic_Blinky.&lt;/p&gt;
&lt;p&gt; app: Connection 0x0 established, starting DB discovery.&lt;/p&gt;
&lt;p&gt; ble_db_disc: Starting discovery of service with UUID 0x1523 on connection handle 0x0.&lt;/p&gt;
&lt;p&gt; app: Start scanning for device name Nordic_Blinky.&lt;/p&gt;
&lt;p&gt; ble_db_disc: Found service UUID 0x1523.&lt;/p&gt;
&lt;p&gt; ble_db_disc: primary srv discovery rsp uuid 1523 handle: start B end 16&lt;/p&gt;
&lt;p&gt; ble_db_disc: entering descriptors_discover()&lt;/p&gt;
&lt;p&gt; ble_db_disc: leaving descriptors_discover() - return code&lt;/p&gt;
&lt;p&gt; ble_db_disc: entering descriptors_discover()&lt;/p&gt;
&lt;p&gt; ble_db_disc: leaving descriptors_discover() - success&lt;/p&gt;
&lt;p&gt; ble_db_disc: Discovery of service with UUID 0x1523 completed with success on connection handle 0x0.&lt;/p&gt;
&lt;p&gt; ble_db_disc: Starting discovery of service with UUID 0x180A on connection handle 0x0.&lt;/p&gt;
&lt;p&gt; ble_db_disc: Found service UUID 0x180A.&lt;/p&gt;
&lt;p&gt; ble_db_disc: primary srv discovery rsp uuid 180A handle: start 11 end 65535&lt;/p&gt;
&lt;p&gt; ble_db_disc: entering descriptors_discover()&lt;/p&gt;
&lt;p&gt; ble_db_disc: leaving descriptors_discover() - return code&lt;/p&gt;
&lt;p&gt; ble_db_disc: Discovery of service with UUID 0x180A completed with success on connection handle 0x0.&lt;/p&gt;
&lt;p&gt; app: call to ble_lbs_on_db_disc_evt for instance 0 and link 0x0!&lt;/p&gt;
&lt;p&gt; ble_lbs_c: Led Button Service discovered at peer.&lt;/p&gt;
&lt;p&gt; app: LED Button service discovered on conn_handle 0x0&lt;/p&gt;
&lt;p&gt; ble_lbs_c: Configuring CCCD. CCCD Handle = 14, Connection Handle = 0&lt;/p&gt;
&lt;p&gt; ble_lbs_c: SD Read/Write API returns Success..&lt;/p&gt;
&lt;p&gt; ble_dis_c: Device Information Service discovery failure .&lt;/p&gt;
&lt;p&gt; app: BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST.&lt;/p&gt;
&lt;p&gt; ble_lbs_c: writing LED status 0x1&lt;/p&gt;
&lt;p&gt; ble_lbs_c: SD Read/Write API returns Success..&lt;/p&gt;
&lt;p&gt; app: LBS write LED state 1&lt;/p&gt;
&lt;p&gt; ble_lbs_c: writing LED status 0x0&lt;/p&gt;
&lt;p&gt; ble_lbs_c: SD Read/Write API returns Success..&lt;/p&gt;
&lt;p&gt; app: LBS write LED state 0&lt;/p&gt;
&lt;p&gt; app: Link 0x0, Button state changed on peer to 0x1&lt;/p&gt;
&lt;p&gt; app: Link 0x0, Button state changed on peer to 0x0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues on implementing DIS client on multilink central</title><link>https://devzone.nordicsemi.com/thread/116558?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 13:40:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d429eafa-66c9-4fcc-a5c0-8e41b46c6ad3</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I think this is happening because you have dis_c_init_obj.evt_handler = NULL; in dis_c_init() in main.c and when the discovery is complete the application jumps to an invalid address.&lt;/p&gt;
&lt;p&gt;I also think that there should be something like&lt;/p&gt;
&lt;p&gt;VERIFY_PARAM_NOT_NULL(p_ble_lbs_c_init-&amp;gt;evt_handler);&lt;/p&gt;
&lt;p&gt;in ble_dis_c_init() like it is in ble_lbs_c_init().&lt;/p&gt;
&lt;p&gt;Try doing dis_c_init_obj.evt_handler = dis_c_evt_handler; and something like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/**@brief Handles events coming from the DIS central module.
 *
 * @param[in] p_dis_c     The instance of DIS_C that triggered the event.
 * @param[in] p_dis_c_evt The DIS_C event.
 */
static void dis_c_evt_handler(ble_dis_c_t * p_lbs_c, ble_dis_c_evt_t * p_dis_c_evt)
{
    switch (p_dis_c_evt-&amp;gt;evt_type)
    {
        case BLE_DIS_C_EVT_DISCOVERY_COMPLETE:
        {

            NRF_LOG_INFO(&amp;quot;DIS service discovered on conn_handle 0x%x&amp;quot;,
                         p_dis_c_evt-&amp;gt;conn_handle);

        } break; // BLE_DIS_C_EVT_DISCOVERY_COMPLETE
        default:
            // No implementation needed.
            break;
    }
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues on implementing DIS client on multilink central</title><link>https://devzone.nordicsemi.com/thread/116556?ContentTypeID=1</link><pubDate>Mon, 15 Jan 2018 17:29:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0efec0a-3732-41e9-b007-fdb6fc603264</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Thanks. I have been able to reproduce, but I&amp;#39;m not 100 % sure what is going on. Looking into it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues on implementing DIS client on multilink central</title><link>https://devzone.nordicsemi.com/thread/116557?ContentTypeID=1</link><pubDate>Mon, 15 Jan 2018 10:29:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4d79c5c-d752-4379-b624-91f90bba7722</guid><dc:creator>Arthur</dc:creator><description>&lt;p&gt;Yes, I have added the DIS service to the ble_app_blinky example. The modified codes are uploaded in the file ble_app_blinky_dis.zip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues on implementing DIS client on multilink central</title><link>https://devzone.nordicsemi.com/thread/116552?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2018 11:52:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01280daf-9d24-4392-b54b-1a8effcb2f3a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What do you mean by ble_app_blinky example with DIS enabled? You have added the DIS service to the ble_app_blinky example? Could you share that project as well?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues on implementing DIS client on multilink central</title><link>https://devzone.nordicsemi.com/thread/116555?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2018 01:29:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97366748-4e1b-4bbd-b408-352f6cb27f3c</guid><dc:creator>Arthur</dc:creator><description>&lt;p&gt;I am connecting to a board loaded with ble_app_blinky example with DIS enabled. I have tested it with nRF connect on iPhone and both LBS and DIS data show up correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues on implementing DIS client on multilink central</title><link>https://devzone.nordicsemi.com/thread/116554?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2018 15:39:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d56919bc-2953-474b-80ac-6f1d5807fed4</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I think I have got it working. What should I connect it to? A standard example in the SDK or do you have a modifed peripheral example as well?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues on implementing DIS client on multilink central</title><link>https://devzone.nordicsemi.com/thread/116553?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2018 03:26:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d503ea5-2c24-4772-a51f-58d7fafdfaf7</guid><dc:creator>Arthur</dc:creator><description>&lt;p&gt;Hi Petter,&lt;/p&gt;
&lt;p&gt;Thanks for your help. I have uploaded the files I have added/modified as it took forever to upload the whole project. I&amp;#39;ve put ble_dis_c* under the same directory as main.c and added a few lines of codes for debugging in ble_db_discovery.c.&lt;/p&gt;
&lt;p&gt;Arthur&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues on implementing DIS client on multilink central</title><link>https://devzone.nordicsemi.com/thread/116551?ContentTypeID=1</link><pubDate>Tue, 09 Jan 2018 13:16:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75be696f-e133-46a4-9685-53ea815e0ce0</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Would it be possible for you to share your complete project so I can test it here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>