<?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 simulate two different peripherals in single device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60293/how-to-simulate-two-different-peripherals-in-single-device</link><description>I need to have two different peripheral profiles (with different addresses and so) that will be advertising at same time and that can be connected by different centrals at same time. I checked the multilink example however it doesn&amp;#39;t handle this use case</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Apr 2020 14:25:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60293/how-to-simulate-two-different-peripherals-in-single-device" /><item><title>RE: How to simulate two different peripherals in single device</title><link>https://devzone.nordicsemi.com/thread/245274?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 14:25:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:541e85ac-b1e4-451f-9125-e7838e92f44e</guid><dc:creator>bjorn-spockeli</dc:creator><description>[quote user="ataii"]Can i have mixed connections secure/unsecure to same peripheral?[/quote]
&lt;p&gt;Yes, a nRF device can be connected to multiple centrals and the security used on each link can be different.&amp;nbsp;&lt;/p&gt;
[quote user="ataii"]And would it be possible to hide some services from non-secure connection?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;You cannot hide services and characteristics , but you can restrict access to the characterics by requiring the link to be secure before allowing centrals to read and write to them.&amp;nbsp;&lt;/p&gt;
[quote user="ataii"] Given this input what would you suggest[/quote]
&lt;p&gt;&amp;nbsp;I would add all the services needed by both centrals to the GATT table and then set the security requirements of the characteristics that should not be accessible without an encrypted link.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to simulate two different peripherals in single device</title><link>https://devzone.nordicsemi.com/thread/245266?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 14:12:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8a873ef-ad22-4b86-b8d9-166d6d72246c</guid><dc:creator>ataii</dc:creator><description>&lt;p&gt;Yes that is correct, each central to be connected to different peripheral of same device. I just wanted to separate concerns and thought it would be easier. In my use case one connection needs to be secure/bonded, this will be used to manage the device, dfu etc.. and the other connection needs not to secure and i want to expose as few services as possible&amp;nbsp;because i am afraid of service discovery time for non-secure connection which is critical for the use case(i might be saying something nonsensical here but it happened before and created some issues, don&amp;#39;t know exact reason though) . Given this input what would you suggest? Can i have mixed connections secure/unsecure to same peripheral? And would it be possible to hide some services from non-secure connection?&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to simulate two different peripherals in single device</title><link>https://devzone.nordicsemi.com/thread/245223?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 12:02:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04629946-f58f-4301-b7cd-b67ef79b5ef9</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, but then you would have to reinitialize the stack everytime you switch the peripheral profile. Any connections would then have to be torn down and reestablished. My impression is that Ata wanted to the nRF to be connected to two centrals concurrently and each central is connected to different peripherals.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to simulate two different peripherals in single device</title><link>https://devzone.nordicsemi.com/thread/245219?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 11:53:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cb65ee9-5312-4d2b-8110-4b2259380d6f</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;I guess one could have it alternate between two profiles ... ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to simulate two different peripherals in single device</title><link>https://devzone.nordicsemi.com/thread/245216?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 11:44:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fe11a48-7078-452d-889a-8a40118f01c6</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI Ata,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Our SoftDevices only allows you to configure a single GATT table. Hence, its not possible to configure a single NRF device to act as two different peripherals with different addresses.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>