<?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>NFC and enforcing L4 security</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91390/nfc-and-enforcing-l4-security</link><description>I want to get the peripheral side of my dual-role gateway device to accept ONLY NFC (LESC) pairing from my Android phone. 
 I have had NFC working but it seems I keep breaking it with configurations for other things. 
 The issue seems to come and go,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Mar 2023 17:14:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91390/nfc-and-enforcing-l4-security" /><item><title>RE: NFC and enforcing L4 security</title><link>https://devzone.nordicsemi.com/thread/415000?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2023 17:14:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:753497d9-ee68-47e8-aac6-26b1c7a88e52</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply, looks like this one slipped through the cracks and was not answered.&lt;/p&gt;
&lt;p&gt;All&lt;span&gt;&amp;nbsp;connections initially&amp;nbsp;start&amp;nbsp;it&amp;#39;s lifetime in security level 1, and then the link needs to be encrypted. But, the sample does what&amp;#39;s called directed advertising&amp;nbsp;to&amp;nbsp;the central it has received bond information for(over NFC), so&amp;nbsp;other centrals are not connecting&amp;nbsp;to your device.(It&amp;#39;s also possible to use whitelist/filter accept list). Also, when creating your characteristic using&amp;nbsp;BT_GATT_CHARACTERISTIC() you&amp;nbsp;can set the&amp;nbsp;Characteristic Attribute access permissions. Here you can set it to&amp;nbsp;BT_GATT_PERM_READ_LESC(If set, requires that LE Secure Connections is used for read access).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC and enforcing L4 security</title><link>https://devzone.nordicsemi.com/thread/384105?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 10:59:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51199d86-1218-4e0f-8f57-42236cf9c0a4</guid><dc:creator>Caycee</dc:creator><description>&lt;p&gt;&lt;span&gt;REPEAT &lt;br /&gt;Q: Is there a way to force NFC-ONLY pairing?&amp;nbsp; It seems the default security level is 1 when the connect callback occurs, at which point I set_security to L4, but that still leaves the connection active for a time in low security such that it allows discovery to happen.&amp;nbsp;Is there a way to&amp;nbsp;force the connection to only use high-security and to allow connections if-and-only-if NFC has succeeded?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC and enforcing L4 security</title><link>https://devzone.nordicsemi.com/thread/383893?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2022 12:00:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab2dbdab-e267-4beb-b188-712d6b687d3c</guid><dc:creator>Caycee</dc:creator><description>&lt;p&gt;So now I&amp;#39;ve tried with v2.02 but still nothing.&amp;nbsp; The touching of the NFC tag produced lots of debug messages as above, but once the &amp;quot;Pair the device&amp;quot; message comes up, after hitting YES, no debug messages appear at all.&lt;/p&gt;
&lt;p&gt;None of the key exchange and data transfer&amp;nbsp;which apparently goes on doesn&amp;#39;t provide ANY feedback.&amp;nbsp; The only indication is the &amp;quot;NOT BONDED&amp;quot; -&amp;gt; &amp;quot;BONDED&amp;quot; -&amp;gt;&amp;quot;NOT BONDED&amp;quot; display on the nRF App.&lt;/p&gt;
&lt;p&gt;Is a sniffer the only way to find out what&amp;#39;s going on here?&amp;nbsp; (I have two DK boards which act identically)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC and enforcing L4 security</title><link>https://devzone.nordicsemi.com/thread/383715?ContentTypeID=1</link><pubDate>Mon, 29 Aug 2022 13:32:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:154613a9-5f32-4744-9ae6-0d8883f397b7</guid><dc:creator>Caycee</dc:creator><description>&lt;p&gt;Still no joy... (and I always use --chiperase when programming)&lt;/p&gt;
&lt;p&gt;The peripheral_sc_only example connects without asking for PassKey. At first it may disconnect, but it will connect on second or third try and the terminal displays &amp;quot;Security failed: &amp;lt;mac-address&amp;gt; (random) level 1 err 5&amp;quot;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a log of the peripheral_nfc_pairing attempt with NFC with all the above configs enabled...&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;T4 field Off
T4 field Off
[00:01:34.606,384] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
[00:01:35.117,126] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
T4 field Off
T4 field Off
[00:01:35.627,624] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
[00:01:36.138,092] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
T4 field Off
T4 field Off
T4 field Off
T4 field ON
T4 field Off
T4 field Off
T4 field Off
T4 field Off
T4 field ON
T4 field ON
T4 field READ
Regular advertising started
[00:01:36.648,559] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
[00:01:37.159,088] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_readyT4 field Off
: TNEP Service Ready&#x1B;[0m
[00:01:37.172,027] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0mT4 field Off

[00:01:37.189,117] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
[00:037.472,198] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: event_packet_process: Command Complete (0x2005) status: 0x00, ncmd: 1, len 4&#x1B;[0m
[00:01:37.472,229] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_recv: buf 0x2000aaf4 len 6&#x1B;[0m
[00:01:37.472,259] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: hci_cmd_complete: opcode 0x2005&#x1B;[0m
[00:01:37.472,259] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: hci_cmd_done: opcode 0x20alling sem_take_wait&#x1B;[0m
[00:01:37.472,717] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: Sending command 0x2006 (buf 0x2000aaf4) to driver&#x1B;[0m
[00:01:37.472,747] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_send: buf 0x2000aaf4 len 18 type 0&#x1B;[0m
[00:01:37.472,747] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: hci_driver_send: &#x1B;[0m
[00:01:37.472,778] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: cmd_handle: &#x1B;[0m
[00:01:37.472,869] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: hci_driver_send: Exit: 0&#x1B;[0m
[00:01:37.472,869] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 0&#x1B;[0m
[00:01:37.4: opcode 0x2009 param_len 32&#x1B;[0m
[00:01:37.473,999] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: buf 0x2000aaf4&#x1B;[0m
[00:01:37.474,029] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: buf 0x2000aaf4 opcode 0x2009 len 35&#x1B;[0m
[00:01:37.474,090] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: count 2&#x1B;[0m
[00:01:37.474,121] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 4&#x1B;[0m
[00:01:37.474,121] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: calling net_buf_get&#x1B;[0m
[00:01:37.474,151] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: calling sem_take_wait&#x1B;[0m
[00:01:37.474,151] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: Sending command 0x2009 (buf 0x2000aaf4) to driver&#x1B;[0m
[00:01:37.474,182] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_send: buf 0x2000aaf4 len 35 type 0&#x1B;[0m
[00:01:37.474,182] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: hci_driver_send: &#x1B;[0m
[00:01:37.474,212] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: cmd_handle: &#x1B;[0m
[00:01:37.474,273] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: hci_driver_send: Exit: 0&#x1B;[0m
[00:01:37.474,304] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 0&#x1B;[0m
[00:01:37.474,365] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: event_packet_process: Command Complete (0x2009) status: 0x00, ncmd: 1, len 4&#x1B;[0m
[00:01:37.474,365] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_recv: buf 0x2000aaf4 len 6&#x1B;[0m
[00:01:37.474,395] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: hci_cmd_complete: opcode 0x2009&#x1B;[0m
[00:01:37.474,395] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: hci_cmd_done: opcode 0x2009 status 0x00 buf 0x2000aaf4&#x1B;[0m
[00:01:37.474,578] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_conn: bt_conn_prepare_events: &#x1B;[0m
[00:01:37.474,609] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: hci_tx_thread: Calling k_poll with 2 events&#x1B;[0m
[00:01:37.474,639] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: rsp 0x2000aaf4 opcode 0x2009 len 1&#x1B;[0m
[00:01:37.474,700] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_conn: bt_conn_set_state: disconnected -&amp;gt; connecting-adv&#x1B;[0m
[00:01:37.474,700] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 1 -&amp;gt; 2&#x1B;[0m
[00:01:37.474,731] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: opcode 0x200a param_len 1&#x1B;[0m
[00:01:37.474,761] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: buf 0x2000aaf4&#x1B;[0m
[00:01:37.474,761] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: buf 0x2000aaf4 opcode 0x200a len 4&#x1B;[0m
[00:01:37.474,853] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: count 2&#x1B;[0m
[00:01:37.474,853] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 4&#x1B;[0m
[00:01:37.474,884] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: calling net_buf_get&#x1B;[0m
[00:01:37.474,914] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: calling sem_take_wait&#x1B;[0m
[00:01:37.474,914] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: Sending command 0x200a (buf 0x2000aaf4) to driver&#x1B;[0m
[00:01:37.474,945] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_send: buf 0x2000aaf4 len 4 type 0&#x1B;[0m
[00:01:37.474,945] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: hci_driver_send: &#x1B;[0m
[00:01:37.474,975] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: cmd_handle: &#x1B;[0m
[00:01:37.475,128] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: hci_driver_send: Exit: 0&#x1B;[0m
[00:01:37.475,158] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 0&#x1B;[0m
[00:01:37.475,189] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: event_packet_process: Command Complete (0x200a) status: 0x00, ncmd: 1, len 4&#x1B;[0m
[00:01:37.475,219] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_recv: buf 0x2000aaf4 len 6&#x1B;[0m
[00:01:37.475,250] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: hci_cmd_complete: opcode 0x200a&#x1B;[0m
[00:01:37.475,250] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: hci_cmd_done: opcode 0x200a status 0x00 buf 0x2000aaf4&#x1B;[0m
[00:01:37.475,463] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_conn: bt_conn_prepare_events: &#x1B;[0m
[00:01:37.475,463] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: hci_tx_thread: Calling k_poll with 2 events&#x1B;[0m
[00:01:37.475,524] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: rsp 0x2000aaf4 opcode 0x200a len 1&#x1B;[0m
[00:01:37.475,524] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 0 ref 2 -&amp;gt; 1&#x1B;[0m
[00:01:37.493,164] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
[00:01:37.504,638] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
[00:01:37.517,852] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
[00:01:37.534,973] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
[00:01:37.881,072] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
cting-adv&#x1B;[0m
[00:01:37.474,700] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 1 -&amp;gt; 2&#x1B;[0m
[00:01:37.474,731] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: opcode 0x200a param_len 1&#x1B;[0m
[00:01:37.474,761] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: buf 0x2000aaf4&#x1B;[0m
[00:01:37.474,761] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: buf 0x2000aaf4 opcode 0x200a len 4&#x1B;[0m
[00:01:37.474,853] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: count 2&#x1B;[0m
[00:01:37.474,853] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 4&#x1B;[0m
[0cting-adv&#x1B;[0m
[00:01:37.474,700] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 1 -&amp;gt; 2&#x1B;[0m
[00:01:37.474,731] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: opcode 0x200a param_len 1&#x1B;[0m
[00:01:37.474,761] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: buf 0x2000aaf4&#x1B;[0m
[00:01:37.474,761] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: buf 0x2000aaf4 opcode 0x200a len 4&#x1B;[0m
[00:01:37.474,853] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: count 2&#x1B;[0m
[00:01:37.474,853] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 4&#x1B;[0m
[00:01:37.474,884] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: calling net_buf_get&#x1B;[0m
[00:01:37.474,914] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: calling sem_take_wait&#x1B;[0m
[00:01:37.474,914] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: Sending command 0x200a (buf 0x2000aaf4) to driver&#x1B;[0m
[00:01:37.474,945] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_send: buf 0x2000aaf4 len 4 type 0&#x1B;[0m
[00:01:37.474,945] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: hci_driver_send: &#x1B;[0m
[00:01:37.474,975] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: cmd_handle: &#x1B;[0m
[00:01:37.475,128] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: hci_driver_send: Exit: 0&#x1B;[0m
[00:01:37.475,158] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 0&#x1B;[0m
[00:01:37.475,189] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: event_packet_process: Command Complete (0x200a) status: 0x00, ncmd: 1, len 4&#x1B;[0m
[00:01:37.475,219] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_recv: buf 0x2000aaf4 len 6&#x1B;[0m
[00:01:37.475,250] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: hci_cmd_complete: opcode 0x200a&#x1B;[0m
[00:01:37.475,250] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: hci_cmd_done: opcode 0x200a status 0x00 buf 0x2000aaf4&#x1B;[0m
[00:01:37.475,463] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_conn: bt_conn_prepare_events: &#x1B;[0m
[00:01:37.475,463] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: hci_tx_thread: Calling k_poll with 2 events&#x1B;[0m
[00:01:37.475,524] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: rsp 0x2000aaf4 opcode 0x200a len 1&#x1B;[0m
[00:01:37.475,524] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 0 ref 2 -&amp;gt; 1&#x1B;[0m
[00:01:37.493,164] &#x1B;[0m&amp;lt;dbg&amp;gt;cting-adv&#x1B;[0m
[00:01:37.474,700] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 1 -&amp;gt; 2&#x1B;[0m
[00:01:37.474,731] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: opcode 0x200a param_len 1&#x1B;[0m
[00:01:37.474,761] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: buf 0x2000aaf4&#x1B;[0m
[00:01:37.474,761] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: buf 0x2000aaf4 opcode 0x200a len 4&#x1B;[0m
[00:01:37.474,853] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: count 2&#x1B;[0m
[00:01:37.474,853] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 4&#x1B;[0m
[00:01:37.474,884] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: calling net_buf_get&#x1B;[0m
[00:01:37.474,914] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: calling sem_take_wait&#x1B;[0m
[00:01:37.474,914] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: Sending command 0x200a (buf 0x2000aaf4) to driver&#x1B;[0m
[00:01:37.474,945] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_send: buf 0x2000aaf4 len 4 typecting-adv&#x1B;[0m
[00:01:37.474,700] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 1 -&amp;gt; 2&#x1B;[0m
[00:01:37.474,731] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: opcode 0x200a param_len 1&#x1B;[0m
[00:01:37.474,761] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: buf 0x2000aaf4&#x1B;[0m
[00:01:37.474,761] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: buf 0x2000aaf4 opcode 0x200a len 4&#x1B;[0m
[00:01:37.474,853] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: count 2&#x1B;[0m
[00:01:37.474,853] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;scting-adv&#x1B;[0m
[00:01:37.474,700] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 1 -&amp;gt; 2&#x1B;[0m
[00:01:37.474,731] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: opcode 0x200a param_len 1&#x1B;[0m
[00:01:37.474,761] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: buf 0x2000aaf4&#x1B;[0m
[00:01:37.474,761] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: buf 0x2000aaf4 opcode 0x200a len 4&#x1B;[0m
[00:01:37.474,853] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: count 2&#x1B;[0m
[00:01:37.474,853] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 4&#x1B;[0m
[00:01:37.474,884] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: calling net_buf_get&#x1B;[0m
[00:01:37.474,914] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: calling sem_take_wait&#x1B;[0m
[00:01:37.474,914] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: send_cmd: Sending command 0x200a (buf 0x2000aaf4) to driver&#x1B;[0m
[00:01:37.474,945] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: bt_send: buf 0x2000aaf4 len 4 type 0&#x1B;[0m
[00:01:37.474,945] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: hci_driver_send: &#x1B;[0m
[00:01:37.474,975] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: cmd_handle: &#x1B;[0m
[00:01:37.475,128] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: hci_driver_send: Exit: 0&#x1B;[0m
[00:01:37.475,158] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_hci_core: process_events: ev-&amp;gt;state 0&#x1B;[0m
[00:01:37.475,189] &#x1B;[0m&amp;lt;dbg&amp;gt; sdc_hci_driver: event_packT4 field Off
T4 field Off
T4 field Off
T4 field ON
T4 field Off
T4 field Off
T4 field Off
T4 field Off
T4 field ON
T4 field ON
T4 field READ
Regular advertising started
T4 field ON
[00:01:46.558,624] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
[00:01:46.583,862] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
[00:01:46.597,045] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
[00:01:46.614,196] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
[00:01:46.620,117] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
[00:01:46.654,724] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
[00:01:46.793,090] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
[00:01:46.806,243] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
[00:01:46.823,364] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
[00:01:46.840,209] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
[00:01:46.900,360] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m
T4 field Off
[00:01:47.226,715] &#x1B;[0m&amp;lt;dbg&amp;gt; nfc_tnep_tag: tnep_sm_service_ready: TNEP Service Ready&#x1B;[0m&lt;/pre&gt;T4 field Off&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC and enforcing L4 security</title><link>https://devzone.nordicsemi.com/thread/383701?ContentTypeID=1</link><pubDate>Mon, 29 Aug 2022 12:51:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29bd19b7-a95c-45ca-b2cc-f57329551e00</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try to delete the keys on both phone and nrF device(try do a nrfjprog --eraseall, before programming the sample again). For debugging this, try to set&amp;nbsp;these:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;CONFIG_BT_LOG_LEVEL_DBG=y
CONFIG_BT_DEBUG_SMP=y&lt;br /&gt;&lt;/code&gt;CONFIG_BT_DEBUG_LOG=y&lt;br /&gt;CONFIG_BT_DEBUG_CONN=y&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;CONFIG_DEBUG=y
CONFIG_LOG=y&lt;br /&gt;&lt;span&gt;CONFIG_LOG_BUFFER_SIZE=8192&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Also try to set:&lt;/p&gt;
&lt;p&gt;CONFIG_BT_SMP_SC_ONLY&lt;/p&gt;
&lt;p&gt;There is a &amp;quot;S&lt;span&gt;ecure Connections Only mode&amp;quot; sample in zephyr you can have a look at:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/bluetooth/peripheral_sc_only"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/bluetooth/peripheral_sc_only&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>