<?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>How to interact with connected devices through the device manger</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16868/how-to-interact-with-connected-devices-through-the-device-manger</link><description>Hello,
I started implementing a project with the device manager. I am using the S120 as central.
I am able to connect to 3 peripherals at the same time (also nordic nrf51822). So in general, the device manger does its work.
But now, I can not find</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Oct 2016 13:45:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16868/how-to-interact-with-connected-devices-through-the-device-manger" /><item><title>RE: How to interact with connected devices through the device manger</title><link>https://devzone.nordicsemi.com/thread/64602?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2016 13:45:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56fd2641-18d2-4a30-9e38-30d882d8aeef</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not aware of any side effects, other than requiring more RAM.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interact with connected devices through the device manger</title><link>https://devzone.nordicsemi.com/thread/64601?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2016 14:03:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df387bfe-7f38-433f-bccc-64f7dd637acb</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;So, I am now able to discover all characteristics from the peripheral. Also I am able to write a charactersitic. Surprisingly this works only after a complete discover. Even if I hardcode the characteristics handle!?&lt;/p&gt;
&lt;p&gt;By implementing this, I found out, that BLE_DB_DISCOVERY_MAX_CHAR_PER_SRV is set to 3. In my application I have 19 characteristics in one service. Is it enough to change 3 to 19? I did this for the moment. And it seems to work. Does this have any side effects to the discovery module?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interact with connected devices through the device manger</title><link>https://devzone.nordicsemi.com/thread/64599?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2016 13:28:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ad771fd-4573-4dcc-9923-ebf8cad7d589</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I don&amp;#39;t know what you have to do. I don&amp;#39;t know what your application is. For a client to be able to access a characteristic value, descriptor++ on a server it needs to have the attribute handles of these. These are normally obtained by doing a service discovery. If you know the attribute handles, you could also hack it and hard code the them. Yes, there are several examples, in \examples\ble_central&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interact with connected devices through the device manger</title><link>https://devzone.nordicsemi.com/thread/64600?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2016 08:36:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65b3a826-0064-4e92-b120-eb1e1ae7bf0d</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Ok, after looking into the multilink example, I am pretty sure that I have to discover all the services and characteristics that are available on the connected peer. Right!? Normally I would say this doubles the work. Because I know with what kind of device I am connected. So I should know which, services and characteristics are available. For example, I know, that the device I want to interact with, has two services, one with 20 characteristics, and one with 4 characteristics. Which data fields do I have to adjust when looking at the multilink example? Or will all these information be stored in the m_client[].srv_db data field when doing a discover?
Is there an example, how to set up a propper communication to a peripheral on the central side?&lt;/p&gt;
&lt;p&gt;Regards,
BTprogrammer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interact with connected devices through the device manger</title><link>https://devzone.nordicsemi.com/thread/64598?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2016 14:21:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a83267c-f204-49e4-ac9b-d889db2d8378</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Well, yes, it handles multiple connections, but only the pairing and bond information aspect. You get the connection handle with the BLE_GAP_EVT_CONNECTED event. Then you can use the handle do identify events on that connection, and do operations, like write, on that connection. In ble_app_multilink_central you can see that connection handle is assigned with ble_lbs_c_handles_assign() when you get the BLE_GAP_EVT_CONNECTED in on_ble_evt().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interact with connected devices through the device manger</title><link>https://devzone.nordicsemi.com/thread/64597?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2016 14:07:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51482a82-fa78-4756-b0c2-c59aee1dc902</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hi Petter, thanks for your reply. Yes, in my understanding, the device manager handles multiple connections to more than one peripheral at the same time. Right!?
I had a deeper look into the S120 multilink example. There I found, that the interaction is done by the client_handling.c file/functions.
Yes, I mean the connection handle. I found out that it seems to work with &lt;code&gt;sd_ble_gap_disconnect(m_client[systemID].srv_db.conn_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);&lt;/code&gt;. So the connection handle is part of the m_client array. Right!?
Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interact with connected devices through the device manger</title><link>https://devzone.nordicsemi.com/thread/64596?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2016 13:40:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:943cfcc4-8e06-441c-800c-f18b97badf5d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Why are you mixing device manager into this? Device manager handles pairing and bond information, it is not used for writing to a characteristic value. You are correct about sd_ble_gattc_write(). What handle do you mean? The connection handle or the attribute handle?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>