<?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>Can&amp;#39;t connect central/peripheral relay to peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60852/can-t-connect-central-peripheral-relay-to-peripheral</link><description>Hi 
 So, Im trying to repeat the ble_central_and_peripheral example but with my own services. To be easier let&amp;#39;s call the service &amp;quot; snsr &amp;quot;. So, I did the snsr.c and the snsr_c. I didn&amp;#39;t get any errors compiling in both cases. I tried to keep as close</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 May 2020 15:17:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60852/can-t-connect-central-peripheral-relay-to-peripheral" /><item><title>RE: Can't connect central/peripheral relay to peripheral</title><link>https://devzone.nordicsemi.com/thread/250501?ContentTypeID=1</link><pubDate>Mon, 18 May 2020 15:17:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29ad865e-69f1-4654-8008-34696dfb692b</guid><dc:creator>Joao Filipe</dc:creator><description>&lt;p&gt;Hi Amanda&lt;/p&gt;
&lt;p&gt;So, I figured it out where was the error. When I used the peripheral alone to connect do my phone, I had mysnsr defined as BLE_UUID_TYPE_BLE, and it worked fine.&lt;/p&gt;
&lt;p&gt;So, on relay app I did the same thing, but was not working. I changed everything to BLE_UUID_TYPE_VENDOR_BEGIN, and it&amp;#39;s working now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't connect central/peripheral relay to peripheral</title><link>https://devzone.nordicsemi.com/thread/250016?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 14:49:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b204a75-62ab-4415-ad80-e016135c99fb</guid><dc:creator>Joao Filipe</dc:creator><description>&lt;p&gt;Hi Amanda, the SDK version is 15.3.0.&lt;/p&gt;
&lt;p&gt;And yes, ble_db_discovery_evt_register() is called, I inspected and that function returns the values that is suppose to return uuid=0x1620 (my service uuid), and type=0x01 (ble type I defined previously).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't connect central/peripheral relay to peripheral</title><link>https://devzone.nordicsemi.com/thread/249886?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 09:41:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:037c4e17-d567-4b9e-bb67-cb94bbe95e60</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Joao,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What is the SDK version you&amp;#39;re using?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you call&amp;nbsp;ble_db_discovery_evt_register() in the &lt;span&gt;snsr_c&lt;/span&gt;_c_init()? You can take a look at the snip of ble_nus_c_init() in the&amp;nbsp;nRF5_SDK\components\ble\ble_services\ble_nus_c\ble_nus_c.c&lt;/p&gt;
&lt;p&gt;Please also see this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/21152/db-discovery-failing-with-ble_db_discovery_srv_not_found"&gt;post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't connect central/peripheral relay to peripheral</title><link>https://devzone.nordicsemi.com/thread/249247?ContentTypeID=1</link><pubDate>Mon, 11 May 2020 14:57:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfa3316a-234a-4656-8ed0-9c9c8f9e8b3c</guid><dc:creator>Joao Filipe</dc:creator><description>&lt;p&gt;UPDATE!&lt;/p&gt;
&lt;p&gt;Hi Amanda. So, I found the following.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6406.Untitled.png" /&gt;&lt;/p&gt;
&lt;p&gt;The evt_type is not returning what was suppose to return. It says that my service was not found at peer.&lt;/p&gt;
&lt;p&gt;I checked and the .srv_uuid.uuid and&amp;nbsp;srv_uuid.type below evt_type,and they have the correct value.&lt;/p&gt;
&lt;p&gt;How can I supposedly fix this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't connect central/peripheral relay to peripheral</title><link>https://devzone.nordicsemi.com/thread/248772?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 14:42:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efafb72d-87ae-4a30-b8ac-85e6ab4a69be</guid><dc:creator>Joao Filipe</dc:creator><description>&lt;p&gt;Hi Amanda. So I have different news today. Now the peer_manager_handler gives a message on Log saying that relay board is at central and the sensor board is at peripheral, that didn&amp;#39;t append before. But the relay still cant connect to my service I think.&lt;/p&gt;
&lt;p&gt;So, here is what you asked for. It says that there&amp;#39;s no error code there.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/errcode.png" /&gt;&lt;/p&gt;
&lt;p&gt;Now theres the new logs: The relay one.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/relay-relay.png" /&gt;&lt;/p&gt;
&lt;p&gt;And down the sensor.c one&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0458.sensor.png" /&gt;&lt;/p&gt;
&lt;p&gt;And this log in the&amp;nbsp;snsr_c_evt_handler never gets on screen, so I don&amp;#39;t know where I&amp;#39;m failing.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/snsr_5F00_handler7Untitled.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't connect central/peripheral relay to peripheral</title><link>https://devzone.nordicsemi.com/thread/248420?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 11:09:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa405823-6b9a-4c78-8481-4f2ef425c366</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="JoaoXensa"]This is the relay debug![/quote]
&lt;p&gt;&amp;nbsp;From the relay debug log, it looks like the&amp;nbsp;relay board connected with the&amp;nbsp;sensor board. Could you check what err_code is returned by ble_db_discovery_start()? You should check where it stops in the&amp;nbsp;ble_db_discovery_start function.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        case BLE_GAP_EVT_CONNECTED:
        {
            NRF_LOG_INFO(&amp;quot;Central connected&amp;quot;);
            // If no Heart Rate sensor or RSC sensor is currently connected, try to find them on this peripheral.
            if (   (m_conn_handle_hrs_c  == BLE_CONN_HANDLE_INVALID)
                || (m_conn_handle_rscs_c == BLE_CONN_HANDLE_INVALID))
            {
                NRF_LOG_INFO(&amp;quot;Attempt to find HRS or RSC on conn_handle 0x%x&amp;quot;, p_gap_evt-&amp;gt;conn_handle);

                err_code = ble_db_discovery_start(&amp;amp;m_db_discovery[0], p_gap_evt-&amp;gt;conn_handle);
                if (err_code == NRF_ERROR_BUSY)
                {
                    err_code = ble_db_discovery_start(&amp;amp;m_db_discovery[1], p_gap_evt-&amp;gt;conn_handle);
                    APP_ERROR_CHECK(err_code);
                }
                else
                {
                    APP_ERROR_CHECK(err_code);
                }
            }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't connect central/peripheral relay to peripheral</title><link>https://devzone.nordicsemi.com/thread/248025?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 20:17:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f47fca0-07c2-40bd-92cb-bfd19a122365</guid><dc:creator>Joao Filipe</dc:creator><description>&lt;p&gt;Hi, thank you for the response.&lt;/p&gt;
&lt;p&gt;This is the relay debug!&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Untitlwefwed.png" /&gt;&lt;/p&gt;
&lt;p&gt;And this is the snsr.c debug!&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Unwfwetitled.png" /&gt;&lt;/p&gt;
&lt;p&gt;The relay debug stays &amp;quot;Attempt to find HRS or SNSR on conn_handle 0x0&amp;quot; forever and not connect to the snsr.c&lt;/p&gt;
&lt;p&gt;Yes, I already had tested and I can confirm to you that my phone can detect and connect to the snsr with nRF connect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't connect central/peripheral relay to peripheral</title><link>https://devzone.nordicsemi.com/thread/248005?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 17:53:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec475531-57dc-426a-898f-fcafc597c7fb</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]With my phone&lt;strong&gt; I can detect and connect to the relay board&lt;/strong&gt; but that board &lt;strong&gt;can´t connect to snsr board.&lt;/strong&gt;[/quote]
&lt;p&gt;Could you provide the debug log on both sides (relay board&amp;nbsp;and&amp;nbsp;snsr board)? If you use segger, you could enable NRF_LOG_BACKEND_RTT_ENABLED in the sdk_config.h, it will show the log in the RTT window. Before connect to the&amp;nbsp;&lt;span&gt;relay&lt;/span&gt;&lt;span&gt;&amp;nbsp;application, could you test your &lt;b&gt;snsr&amp;nbsp;&lt;/b&gt;application could advertise and connect with nRF connect on mobile?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the&lt;a title="Software Development Kit" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_rscs_relay.html?resultof=%22%72%65%6c%61%79%22%20%22%72%65%6c%61%69%22%20%22%65%78%61%6d%70%6c%65%22%20%22%65%78%61%6d%70%6c%22%20"&gt;&amp;nbsp;BLE Relay Example&lt;/a&gt;, it uses&amp;nbsp;&lt;b&gt;2 sensor boards&lt;/b&gt;: nRF5 Development Kit board containing the SoftDevice. One of the boards should be running the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_rsc.html"&gt;Running Speed and Cadence Application&lt;/a&gt;&amp;nbsp;example. The other one should be running the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_hrs.html"&gt;Heart Rate Application&lt;/a&gt;&amp;nbsp;example. Both of these two sensor board examples could connect with&amp;nbsp;nRF connect mobile.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>