<?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>pairing in rejected when running central as windows service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66491/pairing-in-rejected-when-running-central-as-windows-service</link><description>I&amp;#39;m trying to pair my peripheral with the central using BLE. 
 In the central code (running on windows c#): 
 
 In the peripheral terminal: 
 the device in sending PM_EVT_CONN_SEC_PARAMS_REQ but then I receive BLE_GAP_EVT_AUTH_STATUS status = 1 : 
 PM_EVT_CONN_SEC_FAILED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Sep 2020 12:38:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66491/pairing-in-rejected-when-running-central-as-windows-service" /><item><title>RE: pairing in rejected when running central as windows service</title><link>https://devzone.nordicsemi.com/thread/272063?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 12:38:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7e3b41e-206b-4e9c-a9fc-3a33e0276a17</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know why it doesn&amp;#39;t work when you run it as a service and not an .exe, and it may be a bit outside our area of expertise.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As for the event on the nRF:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]BLE_GAP_EVT_AUTH_STATUS: status=0x1 bond=0x0 lv4: 0 kdist_own:0x0 kdist_peer:0x0&amp;nbsp;procedure: Bonding, error: 1[/quote]
&lt;p&gt;&amp;nbsp;Means:&lt;/p&gt;
&lt;p&gt;status:0x1 =&amp;nbsp;BLE_GAP_SEC_STATUS_TIMEOUT&lt;/p&gt;
&lt;p&gt;bonded:0x0: This did not result in a bond.&lt;/p&gt;
&lt;p&gt;lv4: 0: security level 4 is not supported.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Perhaps it would be useful for you to look at a sniffer trace of the bonding procedure. I suggest you look into the &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE"&gt;nRF Sniffer&lt;/a&gt;. Perhaps it shows what part of the bonding that fails. Other than that, I guess you need to debug your application (I am not familiar with Bluetooth apps running on Windows). Perhaps it doesn&amp;#39;t have the same permissions in service and .exe mode? At least it looks like it fails to reply to the bonding procedure.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Feel free to upload the sniffer trace if you need more input. Preferably one trace captured while running .exe and one while running the service.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>