<?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>S130 can&amp;#39;t be a central and Peripheral at the same time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28923/s130-can-t-be-a-central-and-peripheral-at-the-same-time</link><description>As a peripheral,S130 can work ok,but when I add a central role, there is a error at central start to connect a peripheral. err_code = sd_ble_gap_connect(&amp;amp;addr,&amp;amp;m_scan_param,&amp;amp;m_connection_param); APP_ERROR_CHECK(err_code); here,err_code=0x00000005,the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 06 Jan 2018 11:17:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28923/s130-can-t-be-a-central-and-peripheral-at-the-same-time" /><item><title>RE: S130 can't be a central and Peripheral at the same time</title><link>https://devzone.nordicsemi.com/thread/114450?ContentTypeID=1</link><pubDate>Sat, 06 Jan 2018 11:17:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d3c0c4f-56d4-4be6-8d6e-171ec719bc98</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;&lt;em&gt;&amp;quot;But in the example,before modify,the program can&amp;#39;t work stability.&amp;quot;&lt;/em&gt; what do you mean by that???? The examples indeed work in multi-role without problems. Could you show some BLE sniffer trace where it breaks and doesn&amp;#39;t release some role (whatever that means)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 can't be a central and Peripheral at the same time</title><link>https://devzone.nordicsemi.com/thread/114451?ContentTypeID=1</link><pubDate>Sat, 06 Jan 2018 03:53:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64495fa6-497c-42bd-ad99-3bfc7ce5f20b</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;I have sold 20K boards,Now I want to add central role into the program for upgrade my production.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 can't be a central and Peripheral at the same time</title><link>https://devzone.nordicsemi.com/thread/114449?ContentTypeID=1</link><pubDate>Sat, 06 Jan 2018 02:38:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e7510cb-505d-43bf-a82c-6a4f0dc44ab2</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;Maybe.But in the example,before modify,the program can&amp;#39;t work stability.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 can't be a central and Peripheral at the same time</title><link>https://devzone.nordicsemi.com/thread/114448?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 02:35:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07656b98-6b32-4ffb-8793-0d2a4b76da17</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Do you want to say that &amp;quot;ble_app_hrs_rscs_relay&amp;quot; example in nRF51 SDK on nRF51 DK with S130 V1.0.0 doesn&amp;#39;t work? That sound weird because I expect Nordic application engineers to test it before release. So if you are able to make that work with 3 other boards (or does it work with phone app in the up-stream?) then I stay by my claim that you killed the functionality in some of your modifications.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 can't be a central and Peripheral at the same time</title><link>https://devzone.nordicsemi.com/thread/114447?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 01:34:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d739c42-11b4-4b16-90d0-ea049f45446a</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;The connect param as a slave is`#define SLAVER_MIN_CONN_INTERVAL                MSEC_TO_UNITS(125, UNIT_1_25_MS)           /&lt;strong&gt;&amp;lt; Minimum acceptable connection interval (150ms). */
#define SLAVER_MAX_CONN_INTERVAL                MSEC_TO_UNITS(188, UNIT_1_25_MS)           /&lt;/strong&gt;&amp;lt; Maximum acceptable connection interval (235ms). &lt;em&gt;/
#define SLAVER_SLAVE_LATENCY                    0                                         /&lt;strong&gt;&amp;lt; Slave latency. */
#define SLAVER_CONN_SUP_TIMEOUT                 MSEC_TO_UNITS(600, UNIT_10_MS)            /&lt;/strong&gt;&amp;lt; Connection supervisory timeout (6 seconds)&lt;/em&gt;/&lt;/p&gt;
&lt;p&gt;The scan param is:
#define MARSTER_SCAN_INTERVAL              560           /&lt;strong&gt;&amp;lt; Determines scan interval in units of 0.625 millisecond. //350ms */
#define MARSTER_SCAN_WINDOW                 80           /&lt;/strong&gt;&amp;lt; Determines scan window in units of 0.625 millisecond. //50ms */
when remove the central role ,the slaver role can work well.
`&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 can't be a central and Peripheral at the same time</title><link>https://devzone.nordicsemi.com/thread/114446?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 01:28:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b69fa597-9a13-479e-958b-9e16d6933818</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;I used NRF51822FFAC,SD is S130 V1.0,SDK is 9.0,example is &lt;code&gt;ble_app_hrs_rscs_relay&lt;/code&gt;.I used the S130 as a central and peripheral before,but the connection between central and other peripheral offen  breaks,and the connection never release as a slaver role.The gap connect param as a central is &lt;code&gt;#define MARSTER_MIN_CONNECTION_INTERVAL MSEC_TO_UNITS(200, UNIT_1_25_MS) /**&amp;lt; Determines minimum connection interval in millisecond 1.25 ms units. 200=250ms*/ #define MARSTER_MAX_CONNECTION_INTERVAL MSEC_TO_UNITS(360, UNIT_1_25_MS) /**&amp;lt; Determines maximum connection interval in millisecond 1.25 ms units. 360=450ms*/ #define MARSTER_SLAVE_LATENCY 0 /**&amp;lt; Determines slave latency in counts of connection events. */ #define MARSTER_SUPERVISION_TIMEOUT MSEC_TO_UNITS(400, UNIT_10_MS) /**&amp;lt; Determines supervision time-out in units of 10 millisecond.4000ms */&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 can't be a central and Peripheral at the same time</title><link>https://devzone.nordicsemi.com/thread/114445?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 11:06:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dd98315-899e-4636-834f-741b84b1420b</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;The headline is incorrect. The S130 indeed can handle both GAP Central and Peripheral roles at the same time and several nRF5 SDK examples show it. It&amp;#39;s your FW which is buggy.&lt;/p&gt;
&lt;p&gt;From very little you shared it&amp;#39;s impossible to help you. Please identify which exact HW do you use, which SD version, which nRF5/nRF51 SDK version, what example project you started from and also go back in your project history to be as close as possible to the example (ideally to the moment when all major features worked as expected). Then we can do something together. Otherwise your question is as effective as screaming from the window.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>