<?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>PIn Pairing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63813/pin-pairing</link><description>Hi Nordic guys, 
 
 I&amp;#39;m trying to create a pin pairing between an NRF52 DK and iPhone. 
 I&amp;#39;ve created this function to do that: 
 
 
 
 I&amp;#39;ve added that function in the ble_peripherical template code, in the void gap_params_init(void) function. 
 Any idea</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Aug 2020 11:05:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63813/pin-pairing" /><item><title>RE: PIn Pairing</title><link>https://devzone.nordicsemi.com/thread/264832?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 11:05:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7acc9e99-e045-4749-8e9e-95150f77807c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Jorge,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have added your code into SDK 17 ble_app_template as&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-5dd652202377481cbb681f5574294a26/ble_5F00_app_5F00_template_5F00_253154.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_template_5F00_253154.zip&lt;/a&gt;. When you bond with the device from nRF Connect, the device will ask to give pin code as &amp;quot;123456&amp;quot;. As I mentioned in the previous reply, I only test on the Android phone because I don&amp;#39;t have an iOS phone.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="decastro_25"]Also, I&amp;#39;m working in a custom PCB, and I&amp;#39;ll like to use the nRF9160 for NB-IoT and LTE-M communications, do you know if it comes with the AT commands firmware from factory, or I&amp;#39;ve to upload it by the SWD pins?[/quote]
&lt;p&gt;You have to upload it by the SWD pin. Please see&amp;nbsp;&lt;a title="nRF9160 DK Getting Started" href="https://infocenter.nordicsemi.com/topic/ug_nrf91_dk_gsg/UG/nrf91_DK_gsg/intro.html?cp=2_0_4"&gt;nRF9160 DK Getting Started&lt;/a&gt;. If you have further questions regarding nRF9160, please create a new support case. It will be easy for you and us to manage the issue. It will also benefit other users to search for solutions. This is far away from the original post.&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: PIn Pairing</title><link>https://devzone.nordicsemi.com/thread/264810?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 09:38:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c74685b6-c37f-4d99-ae92-a5f90f7c6f32</guid><dc:creator>decastro_25</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I hope that your summer holydays have been enjoyed. I&amp;#39;m back again too. I was taking a look to the post, but I didn&amp;#39;t be able to solve the problem.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you send me a tested code to get that the nRF ask me about a pin??&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, I&amp;#39;m working in a custom PCB, and I&amp;#39;ll like to use the nRF9160 for NB-IoT and LTE-M communications, do you know if it comes with the AT commands firmware from factory, or I&amp;#39;ve to upload it by the SWD pins?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Jorge,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PIn Pairing</title><link>https://devzone.nordicsemi.com/thread/260511?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 09:32:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af16ac6d-a1a4-4fa2-b2d3-447b63925265</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Jorge,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the mistake. I thought it was the same as the Android app. I am wrong.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There&amp;#39;s a bug in the nRF connect app on iOS that will cause it to disconnect after pairing/bonding, which I have reported internally. You may try a third-party app such as Lighblue and see if you get the same result. See this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/57945/connecting-to-nrf-connect-app-in-ipad/234839#234839"&gt;post&lt;/a&gt;. If that still cannot help you, please create a new support case. I will start the vacation next week.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The support staff is reduced during the summer holidays, and you may experience delayed answers.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PIn Pairing</title><link>https://devzone.nordicsemi.com/thread/260473?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 06:29:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35f858d1-ff3a-47a1-b132-684406b0e206</guid><dc:creator>decastro_25</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Many thanks for your quick reply!&lt;/p&gt;
&lt;p&gt;I was checking for that option in the iPhone nRF Connect App, but I didn&amp;#39;t find it. Are you sure that the code works? The device connected to the phone and I can see the service and characteristics but it didn&amp;#39;t ask me about the pin pairing.&lt;/p&gt;
&lt;p&gt;Could you try the code in the same conditions??&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Jorge.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PIn Pairing</title><link>https://devzone.nordicsemi.com/thread/260290?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 08:24:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb153bf6-0e06-41f7-9154-cb739aaf5fe8</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Jorge,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have tested your code, and it can work. Did you bond with the device in the nRF Connect?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-5dd652202377481cbb681f5574294a26/nRF-Connect_5F00_mobile_5F00_bond.png" /&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>