<?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>Integrating two NRF Development kit blinky code with my android app at that time data is not received</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79079/integrating-two-nrf-development-kit-blinky-code-with-my-android-app-at-that-time-data-is-not-received</link><description>While connecting with one NRF Development kit and Android NRF blink app mobile code, data is getting received properly. 
 But with some changes in development kit code ,We are trying to make a connection between 2 development kits in that one DK act as</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Sep 2021 09:23:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79079/integrating-two-nrf-development-kit-blinky-code-with-my-android-app-at-that-time-data-is-not-received" /><item><title>RE: Integrating two NRF Development kit blinky code with my android app at that time data is not received</title><link>https://devzone.nordicsemi.com/thread/327554?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 09:23:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e878a50-6a9f-43b0-bcd2-98201afc954c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thank you for your clarifications.&lt;/p&gt;
&lt;p&gt;The number of links are set by CONFIG_BT_MAX_CONN in Kconfig in the nRFConnect SDK. How is the DK handling the switch between being a central and peripheral exactly. I don&amp;#39;t think we have a multirole application in the nRFConnect SDK, but we do in &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_multirole_lesc.html"&gt;the nRF5 SDK&lt;/a&gt; if that&amp;#39;s of interest to you.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m afraid I don&amp;#39;t understand what you refer to by &amp;quot;&lt;em&gt;&lt;span&gt;So Byte Array of data sent from DK is not received in mobile blinky app ,but able to read from other Core BLE Apps&lt;/span&gt;&lt;/em&gt;&amp;quot;. You should be able to debug on the DK by running the application in debug mode and see if the debug log returns any errors while running.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m guessing what&amp;#39;s going on is that your Android application loses the connection to your DK when it switches to being a central and connects to the other &amp;quot;only peripheral&amp;quot; DK. You need to handle the device switching between being a central and peripheral in this case. Do you want the device to act as a relay device passing on the information from the peripheral only device to the Android app?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating two NRF Development kit blinky code with my android app at that time data is not received</title><link>https://devzone.nordicsemi.com/thread/327380?ContentTypeID=1</link><pubDate>Tue, 31 Aug 2021 10:30:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f829a04-0d1c-40ad-a134-6894953c2aee</guid><dc:creator>SathishKR</dc:creator><description>&lt;p&gt;I have cloned the code from the latest Nordic Blinky App Repository&lt;/p&gt;
&lt;p&gt;So Byte Array of data sent from DK is not received in mobile blinky app ,but able to read from other Core BLE Apps&lt;/p&gt;
&lt;p&gt;Is there any way to capture the exception from embedded device or any way to track where is the exact issue happen either sender end(embedded Development Kit) or receiver end(app)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating two NRF Development kit blinky code with my android app at that time data is not received</title><link>https://devzone.nordicsemi.com/thread/327361?ContentTypeID=1</link><pubDate>Tue, 31 Aug 2021 08:59:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9e055e0-bf8f-40d6-afb3-48779f31e732</guid><dc:creator>SathishKR</dc:creator><description>&lt;p&gt;&lt;em&gt;Is your Android nRF blinky app acting as a peripheral or central in this case?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Ans&lt;/strong&gt;: Initially android app will be central with 1 DK(Development Kit) till connection&amp;nbsp;establishment&amp;nbsp;, afterwards that DK will act as&amp;nbsp;central&amp;nbsp;to&amp;nbsp;one more DK .But app will have connection only with the first one DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Are the two development kits (central and peripheral) able to connect and work as intended?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Ans&lt;/strong&gt;: Yes ,Two DKs are able to connect and receive data between them and also able to throw data to other core BLE apps but for nordic blinky app it doesn&amp;#39;t. In Blinky android application at the time of throwing data from DK getting these following things in logcat.&lt;/p&gt;
&lt;p&gt;2021-08-31 11:24:43.706 3390-3446/com.imu_for_tka D/BluetoothGatt: onConnectionUpdated() - Device=D5:E6:90:3C:A5:4F interval=36 latency=0 timeout=500 status=0&lt;br /&gt;2021-08-31 11:25:03.351 3390-3446/com.imu_for_tka D/BluetoothGatt: onConnectionUpdated() - Device=D5:E6:90:3C:A5:4F interval=156 latency=0 timeout=400 status=0&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Are you trying to connect to the Android while the central DK is already connected to the peripheral DK? If so you might need to increase the number of links that the central can maintain at a time. Depending on what SDK and version you&amp;#39;re using how to do this might vary.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Ans :&amp;nbsp;&lt;/strong&gt;Where to increase the number of links in app side or embedded side.&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;Initially android app will be central with 1 DK till connection&amp;nbsp;establishment , after&amp;nbsp;that connection is successful and data transfer is also happening but once the peripheral DK becomes central for another DK app is unable to read the data.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;What callback data exactly is it that you&amp;#39;re expecting that you&amp;#39;re not getting back?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Ans&lt;/strong&gt;: I am expecting the button callback data in our case it will be a byte array of 20 bytes . May be increasing some delay will provide some solutions ah is it so means where in the app we need to change&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating two NRF Development kit blinky code with my android app at that time data is not received</title><link>https://devzone.nordicsemi.com/thread/327222?ContentTypeID=1</link><pubDate>Mon, 30 Aug 2021 12:49:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ddb686b-04eb-452a-9a96-1340131fdba6</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, but can you clarify a few things:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Is your Android nRF blinky app acting as a peripheral or central in this case?&lt;/li&gt;
&lt;li&gt;Are the two development kits (central and peripheral) able to connect and work as intended?&lt;/li&gt;
&lt;li&gt;Are you trying to connect to the Android while the central DK is already connected to the peripheral DK? If so you might need to increase the number of links that the central can maintain at a time. Depending on what SDK and version you&amp;#39;re using how to do this might vary.&lt;/li&gt;
&lt;li&gt;What callback data exactly is it that you&amp;#39;re expecting that you&amp;#39;re not getting back?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>