<?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>nrF52840 is not decrypting packets when using LE secure connections with passkey entry and debug keys</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80098/nrf52840-is-not-decrypting-packets-when-using-le-secure-connections-with-passkey-entry-and-debug-keys</link><description>I followed all the steps that are documented. Below is a screen capture of WireShark. 
 /resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1632853085483v1.png 
 One device is the Central which generates a passkey</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Oct 2021 12:56:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80098/nrf52840-is-not-decrypting-packets-when-using-le-secure-connections-with-passkey-entry-and-debug-keys" /><item><title>RE: nrF52840 is not decrypting packets when using LE secure connections with passkey entry and debug keys</title><link>https://devzone.nordicsemi.com/thread/333060?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 12:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e46f34b-46a7-456a-aaea-a334151cd234</guid><dc:creator>Eric Larson</dc:creator><description>&lt;p&gt;Now it&amp;#39;s working. When you pointed out that the&amp;nbsp;&lt;span&gt;notDecrypting_3.pcapng wasn&amp;#39;t using the debug keys I went back to the TI stack and checked were the keys are enabled. The default setting for the triggering the key use needs to be set to TRUE when in SC_HOST_DEBUG mode. I&amp;#39;ve documented for anyone who may have similar problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-2021_2D00_10_2D00_07-074701.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your patience with me in helping me solve this problem.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52840 is not decrypting packets when using LE secure connections with passkey entry and debug keys</title><link>https://devzone.nordicsemi.com/thread/332837?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 12:44:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b89fc7f-9d54-4542-9ad9-40a647847456</guid><dc:creator>Kenneth</dc:creator><description>&lt;div&gt;From the logs the ellisys capture has the peripheral using the Debug keys.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;In notDecrypting_3.pcapng none of the devices are using the debug key. The data of the L2CAP fragment start should look like: 41 00 06 00 0c e6 9d 35 .....&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;You should do the ellisys and nrf sniffer in parallell, to ensure that you are comparing apples and apples.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best regards,&lt;br /&gt;Kenneth&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52840 is not decrypting packets when using LE secure connections with passkey entry and debug keys</title><link>https://devzone.nordicsemi.com/thread/332663?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 14:01:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe0ff3f0-723c-42ff-b35a-dd861da0858c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I will pass you sniffer logs to the team to get their feedback.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52840 is not decrypting packets when using LE secure connections with passkey entry and debug keys</title><link>https://devzone.nordicsemi.com/thread/332653?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 13:47:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e43c7255-463a-4fb7-a0c8-0b2ce5128645</guid><dc:creator>Eric Larson</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/EllisysDecrypted.btt"&gt;devzone.nordicsemi.com/.../EllisysDecrypted.btt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is the original Ellisys file. You can view by downloading their app. At the time of this scan the Peripheral which is controlled by our integration partner had the debug keys turned on. I have spent countless hours at trying to figure out why the Nordic sniffer wouldn&amp;#39;t work. I tried every configuration possible and the only thing that I found works is turning off security and using legacy passcode. I can&amp;#39;t afford to spend anymore time trying to prove to you that this product isn&amp;#39;t working.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I currently am working with the TI cc2640 on both the peripheral and central devices. We do have a Nordic radio that&amp;#39;s slated for development with the same integration partner for an alternative offering.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Eric Larson&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52840 is not decrypting packets when using LE secure connections with passkey entry and debug keys</title><link>https://devzone.nordicsemi.com/thread/332640?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 13:21:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f301929-8630-4740-8b57-588f29109ab9</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi, before I start asking the team I need you to confirm that&amp;nbsp;the&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4520.notDecrypting_5F00_3.pcapng"&gt;notDecrypting_3.pcapng&lt;/a&gt; log is decoded correctly in Ellisys, since this confirm that the debug keys are applied. Can you do that?&lt;/p&gt;
&lt;p&gt;Also, please confirm that one of the peers are Nordic device.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52840 is not decrypting packets when using LE secure connections with passkey entry and debug keys</title><link>https://devzone.nordicsemi.com/thread/332594?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 11:33:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfe59cc2-328f-4807-b33e-c26ab5424714</guid><dc:creator>Eric Larson</dc:creator><description>&lt;p&gt;The only difference is the connection flag is changed from NONE to ALLOW. Both modes are using the debug keys (cc2640 TI stack) and the passkey which is hardcoded to 123456.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633433389027v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52840 is not decrypting packets when using LE secure connections with passkey entry and debug keys</title><link>https://devzone.nordicsemi.com/thread/332491?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 07:47:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d08cb52e-dd92-4ba4-9c87-ac523872032f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;And you can confirm this new log is still decrypted by Ellisys? Just to confirm that the debug keys are used.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52840 is not decrypting packets when using LE secure connections with passkey entry and debug keys</title><link>https://devzone.nordicsemi.com/thread/332334?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 12:06:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5dd4a54-48c2-455e-8289-867b075fd2d9</guid><dc:creator>Eric Larson</dc:creator><description>&lt;p&gt;Sorry, I don&amp;#39;t think I sent the right capture. Please see attached. Thanks.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/notDecrypting_5F00_3.pcapng"&gt;devzone.nordicsemi.com/.../notDecrypting_5F00_3.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52840 is not decrypting packets when using LE secure connections with passkey entry and debug keys</title><link>https://devzone.nordicsemi.com/thread/332257?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 08:33:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c08c373e-9839-4c4e-8200-7222549616cb</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It seems to be decrypted here?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1633336402585v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52840 is not decrypting packets when using LE secure connections with passkey entry and debug keys</title><link>https://devzone.nordicsemi.com/thread/332020?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 19:42:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bf53778-b323-489d-ae32-6557c7769c42</guid><dc:creator>Eric Larson</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/notDecrypting_5F00_2.pcapng"&gt;devzone.nordicsemi.com/.../notDecrypting_5F00_2.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Working on this a little more I found I was able to get the Secure Connection Flag to set to true after I increased the MAX_PDU_SIZE from 50 to 69. I was thinking at the time I might have a heap problem.&lt;/p&gt;
&lt;p&gt;At this point I am back to not being able to decrypt the packets any more.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52840 is not decrypting packets when using LE secure connections with passkey entry and debug keys</title><link>https://devzone.nordicsemi.com/thread/331846?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 07:43:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f53d2f24-d2e4-406e-aa56-77320c991a68</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;For some reason you picture is really small, so difficult to see what you show, but you can see in this picture that the Secure Connection Flag: False:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1632987802892v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52840 is not decrypting packets when using LE secure connections with passkey entry and debug keys</title><link>https://devzone.nordicsemi.com/thread/331798?ContentTypeID=1</link><pubDate>Wed, 29 Sep 2021 19:49:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eefe697-aa2c-4e33-b7c5-78b982c56f36</guid><dc:creator>Eric Larson</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Where in the capture are you seeing the lesc flag?&lt;/p&gt;
&lt;p&gt;Is it the highlighted line in the attached screenshot?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1632945676071v1.png"&gt;/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1632945676071v1.png&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You are right that worked!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52840 is not decrypting packets when using LE secure connections with passkey entry and debug keys</title><link>https://devzone.nordicsemi.com/thread/331796?ContentTypeID=1</link><pubDate>Wed, 29 Sep 2021 19:41:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fb5c131-5afb-4b3a-85ce-9fd291aae144</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It looks like lesc is not actually used here, since the central have the lesc flag set to false.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So in this case you need&amp;nbsp;to input the legacy passkey as described in the User Guide:&amp;nbsp;&amp;quot;For connections that use legacy pairing with a passkey&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>