<?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>ANCS add to S130</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28492/ancs-add-to-s130</link><description>I develop ANCS success in S110,but in example ble_app_hrs_rscs_relay of S130 SDK9 .I don&amp;#39;t know how to add the ANCS.I find S110 has ble_bondmnngr.c file,but in S130 dosn&amp;#39;t exsit,Just find device_manager_central.c file. The phone can&amp;#39;t bond the device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Jan 2018 09:39:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28492/ancs-add-to-s130" /><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112719?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 09:39:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90d97e92-f429-47a2-a610-a8d87d139f78</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;TKS,I solute the problem,There are some bugs in the example.I have to debug one by one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112718?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 20:11:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0cecb43-f366-490b-8bf6-d252f55b4a2f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure. Difficult to say without a sniffer trace. Do you have one?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112722?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 08:39:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:098b27e4-4bdd-497f-84a6-a11ba6f27e9f</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;Yes ,I use Keil5.2.   I move your project to the SDK  examples,it is OK .but some functions conflict with the &lt;code&gt;device_manager_central.c&lt;/code&gt;,I modify them,now project can work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112717?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 08:33:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53a5c39c-5cd2-400c-b3e3-d2a250fb6643</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;I phone can&amp;#39;t discover  my device Name,but the android phone is OK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112715?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2017 07:52:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4140850b-218d-43c5-b760-fc16939f7f6c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What do you mean by scan? Service discovery?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112716?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2017 07:06:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca4b0aff-43e9-4b29-a7a7-9d3e049fb28c</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;I modify the &lt;code&gt;device_manager_peripheral.c&lt;/code&gt;,now android phone can link and bonding,but the i phone  can&amp;#39;t scan the device,I don&amp;#39;t know why.My device Generic Attribute (service UUID is 0x1801) is empty, does this reason cause the iphone can&amp;#39;t scan the device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112714?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 13:53:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de3d9ac9-cc0f-46e8-bbe1-37f659ffb9b5</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Why? You have limited the flash allocated to your project because you need to do dual flash OTA? Just increase it temporarily then.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112721?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 13:52:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7dac1c1-3fc1-41a2-8e88-e3b03fda41fa</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;That is the complete project. What kind of errors? Are you using Keil?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112723?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 07:29:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a692dd7c-cd3a-4f79-8ca3-dd0315a97502</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;Thank you.I download the project you send for me,but there are some errors.Could you send me the whole project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112713?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 05:20:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2c02607-8154-43d4-85df-ae8049ba365a</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;There is not enough flash for debug,because I use dual flash  for OTA.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112720?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2017 13:53:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c04c604-fd3f-46e7-85d5-13ad0013756e</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I have tried to make an example for you. I used ble_app_hrs_rscs_relay as a starting point. SDK 9.0.0, S130 1.0.0.&lt;/p&gt;
&lt;p&gt;I have modified the device manager library. Now each .c file has its own .h file. And the function names are not the same, so there shouldn&amp;#39;t be any conflicts. You can find the new libraries in the project folder.&lt;/p&gt;
&lt;p&gt;I have done very limited testing, but it seems to work.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_hrs_5F00_rscs_5F00_relay_5F00_Songplus.rar"&gt;Here&lt;/a&gt; is the example, extract to \examples\ble_central_and_peripheral\experimental. I used Keil.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112712?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2017 13:46:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbd52d70-c396-4335-a30c-905c5f58ef1d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;So I guess you get a reset because of an error returned somewhere? Please define DEBUG, turn off optimizations and put a breakpoint in app_error_handler().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112710?ContentTypeID=1</link><pubDate>Sat, 25 Nov 2017 05:48:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0ac15fc-795b-495f-9a67-d78fc1e17ea2</guid><dc:creator>Songplus</dc:creator><description>&lt;hr /&gt;
&lt;pre&gt;&lt;code&gt;case BLE_GAP_EVT_SEC_PARAMS_REQUEST:
    
             event.event_id = DM_EVT_SECURITY_SETUP;

            m_connection_table[index].state |= STATE_PAIRING;
            notify_app                       = true;

            if (m_connection_table[index].bonded_dev_id == DM_INVALID_ID)
            {
                //Assign a peer index as a new bond or update existing bonds.
                err_code = device_instance_allocate((uint8_t *)&amp;amp;device_index,
                                                    &amp;amp;m_connection_table[index].peer_addr);

                //Allocation successful.
                if (err_code == NRF_SUCCESS)
                {
                    handle.device_id                        = device_index;
                    m_connection_table[index].bonded_dev_id = device_index;
                }
                else
                {
                    event_result = err_code;
                    notify_app   = true;
                }
            }
            else
            {
                //Bond/key refresh.
                event.event_id = DM_EVT_SECURITY_SETUP_REFRESH;
                memset(m_gatts_table[index].attributes, 0, DM_GATT_SERVER_ATTR_MAX_SIZE);

                //Set the update flag for bond data.
                m_connection_table[index].state |= STATE_BOND_INFO_UPDATE;
            }

            ble_gap_sec_keyset_t keys_exchanged;


            keys_exchanged.keys_central.p_enc_key  = NULL;
            keys_exchanged.keys_central.p_id_key   = &amp;amp;m_peer_table[m_connection_table[index].bonded_dev_id].peer_id; 
            keys_exchanged.keys_central.p_sign_key = NULL;
            keys_exchanged.keys_periph.p_enc_key   = &amp;amp;m_bond_table[index].peer_enc_key;
            keys_exchanged.keys_periph.p_id_key    = NULL;
            keys_exchanged.keys_periph.p_sign_key  = NULL;

            err_code = sd_ble_gap_sec_params_reply(p_ble_evt-&amp;gt;evt.gap_evt.conn_handle,
                                                   BLE_GAP_SEC_STATUS_SUCCESS,
                                                   &amp;amp;m_application_table[0].sec_param, 
                                                   &amp;amp;keys_exchanged);

            if (err_code != NRF_SUCCESS)
            {
                event_result = err_code;
                notify_app   = false;
            }
            break;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The program can run here,but then go to restart.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112709?ContentTypeID=1</link><pubDate>Sat, 25 Nov 2017 04:16:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30fe69ea-c682-4701-82dd-cd396928b020</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;Yes,Petter Myhre.My production need  peripheral and central operation.Be peripheral role,it can be linked by phone,but can&amp;#39;t be bonded now.Be central role ,it can scan other BLE device,and create link,but often arise link breaking,I haven&amp;#39;t found where the problem is.I now add the &lt;code&gt;device_manager_peripheral.c&lt;/code&gt; to the ble_app_hrs_rscs_relay example ,program can receive the &lt;code&gt;BLE_GAP_EVT_SEC_INFO_REQUEST&lt;/code&gt; when I use the phone Launching parting operation,then my program restart..  The &lt;code&gt;device_manager_peripheral.c&lt;/code&gt; file manage the master BLE( such as  phone)  Independently,while  &lt;code&gt;device_manager_central.c&lt;/code&gt; manage other slave BLE(such as  CSC device),I think the conflict can be solute,but I don&amp;#39;t know where to start, because I don&amp;#39;t know the BLE encryption principle .Could you show me how to modify the &lt;code&gt;device_manager_peripheral.c&lt;/code&gt;to able bond the phone?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112711?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2017 11:29:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37cdb3be-5785-4ca7-94f6-6dca776fd46a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I see.&lt;/p&gt;
&lt;p&gt;Adding device_manager_peripheral library to the ble_app_hrs_rscs_relay example will probably lead to conflict, but they should be fixable.&lt;/p&gt;
&lt;p&gt;Do you need concurrent peripheral and central operation? Since you have selected the ble_app_hrs_rscs_relay example? Do you need pairing/bonding support for the central and the peripheral?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112708?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 10:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe825acb-ebd8-450e-9fe4-7d65de92a1ff</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;My production are developed base on SDK 9,include the bootloader , We are not familiar with SDK 12.3, although it is the newest,We want to use SDK9 for developing.In the ble_app_hrs_rscs_relay example of SDK9,I fond device_manager_central.c,in the ble_app_ancs_c_s130_pca10028 example,I found the device_manager_peripheral.c file, they are Similar.Could it work, if I want to add the ANCS to the ble_app_hrs_rscs_relay by transplanting the device_manager_peripheral.c to the ble_app_hrs_rscs_relay project? In the device_manager_peripheral.c file ,I found the bonding operation Launching by the phone central terminal.Could I use the device_manager_central.cfor peripheral device manage? I mean that central and peripheral role both use the same  flash block of storing bonding message?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112707?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 11:41:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f7d360d-07d9-48dd-a5bc-9fc9a573fb28</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Please consider using SDK 12.3, if you don&amp;#39;t have a good reason for not using it.&lt;/p&gt;
&lt;p&gt;Yes, Bond Manager is replaced by Bond Manager in SDK 9.0.0.&lt;/p&gt;
&lt;p&gt;How have you tried to add ANCS to ble_app_hrs_rscs_relay? What isn&amp;#39;t working? Do you get any errors? Could you provide some more information and describe what is happening?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112706?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 06:28:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:491e3f34-f7f6-4df6-bba0-ab1e7165f8fe</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;At nrf51_sdk_V6.0.0,ANCS is  OK ,Now I&amp;#39;m developping at nrf51_sdk_v9.0.0. My chip work as central and Peripheral role at the same time&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112705?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 19:01:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f781a197-34b8-40d7-ab7b-59053faa0508</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Which SDK did you develop ANCS successfully with S110? SDK 9 as well? Or are you migrating to SDK 9 now?   Anyways, if you are starting a new project now (on nRF51) I recommend using SDK 12.3, this is the latest SDK with nRF51 support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS add to S130</title><link>https://devzone.nordicsemi.com/thread/112704?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 09:49:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:172554f1-e54d-4d6c-9361-76c5761914a5</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;BTW,&lt;code&gt;dm_ble_evt_handler(p_ble_evt);&lt;/code&gt;Does this function include  bonding   either peer device and phone? If I want   use phone to bonding the BLE device ,do I use the &lt;code&gt;ble_bondmnngr.c&lt;/code&gt; to manage the phone central?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>