<?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>LESC with old phones (e.g. iPhone 4s)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22590/lesc-with-old-phones-e-g-iphone-4s</link><description>Hi, 
 I just implemented LESC Numeric Match on the NUS service for my peripheral device (based on ble_app_multirole_lesc example). I am able to connect to my device using numeric match confirmation with iPhone 6 and iPhone SE and transfer data. 
 However</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Jul 2017 14:07:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22590/lesc-with-old-phones-e-g-iphone-4s" /><item><title>RE: LESC with old phones (e.g. iPhone 4s)</title><link>https://devzone.nordicsemi.com/thread/88862?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2017 14:07:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c800a628-5cf9-4bba-8d53-2c269a151954</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Sam, its not possible to modify the GATT table after you have added the services/characteristics/descriptors on the fly. in order to change the properties of the CCCD you&amp;#39;ll have to disable the Softdevice, re-enable it and then re-add the services/characteristics/descriptors with the different configuration. I think the better option is to set the security mode to BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM to ensure that you can access the attributes with phones that does not support LESC. If the phones support LESC then you can upgrade the security mode by using pm_conn_secure with force_repairing set to true.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC with old phones (e.g. iPhone 4s)</title><link>https://devzone.nordicsemi.com/thread/88861?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2017 20:23:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c78489b2-3593-4fa3-ac23-8d7d45f76ede</guid><dc:creator>sam wagner</dc:creator><description>&lt;p&gt;Thanks, Petter.&lt;/p&gt;
&lt;p&gt;Is there any way to change the security mode on the fly (to BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM) to allow connection and data exchange with BLE4.1 central devices (like iPhone 4s) and keep the default setting to BLE_GAP_CONN_SEC_MODE_SET_LESC_ENC_WITH_MITM for BLE4.2 central devices?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC with old phones (e.g. iPhone 4s)</title><link>https://devzone.nordicsemi.com/thread/88860?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2017 07:26:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e4b0d93-28f3-4379-8585-563190430af9</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;That is exactly what it means. If you want devices that doesn&amp;#39;t support LESC to access your attributes you cannot use BLE_GAP_CONN_SEC_MODE_SET_LESC_ENC_WITH_MITM.&lt;/p&gt;
&lt;p&gt;BLE_GAP_CONN_SEC_MODE_SET_LESC_ENC_WITH_MITM is the only option that requires LESC. Use  	BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM if you want devices that pair with just works to access your attributes, or use BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM if you only want devices that use passkey entry or OOB to access your devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC with old phones (e.g. iPhone 4s)</title><link>https://devzone.nordicsemi.com/thread/88863?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2017 17:51:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0001ff96-b879-4d1e-892d-77f78eb471b5</guid><dc:creator>sam wagner</dc:creator><description>&lt;p&gt;Hi Petter,&lt;/p&gt;
&lt;p&gt;I am using BLE_GAP_CONN_SEC_MODE_SET_LESC_ENC_WITH_MITM  for attributes and CCCDs in the tx_char_add and rx_char_add functions in ble_nus.c. If the central (iPhone 4s) does not support lesc pairing, then does it mean that we will not be able to do data transfer with that central?&lt;/p&gt;
&lt;p&gt;What is the provision for backward compatibility then? I do see that the iPhone 4s prompts the user to enter the 6 digit code displayed on the peripheral device (nRF52) and then show the peripheral as connected.&lt;/p&gt;
&lt;p&gt;What should be the settings in rx_char_add and tx_char_add of ble_nus.c to guarantee backward compatibility with phones that do not support BLE 4.2?&lt;/p&gt;
&lt;p&gt;thanks,
Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC with old phones (e.g. iPhone 4s)</title><link>https://devzone.nordicsemi.com/thread/88864?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2017 14:46:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:070de3b1-d40e-4759-9d1c-ed43beb56ae6</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Even if it shows successful (legacy) pairing you have characteristic values and CCCDs that require the connection to be in security level 4 (LESC pairing with MITM) before they read or written.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC with old phones (e.g. iPhone 4s)</title><link>https://devzone.nordicsemi.com/thread/88859?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2017 20:18:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91d97967-ce9c-4e20-b3c0-25898454a614</guid><dc:creator>sam wagner</dc:creator><description>&lt;p&gt;HI Petter,
Yes, I suppose it is legacy pairing. What I am not able to understand is that while both FW and the phone show that pairing is successful, the datapath is not working. The app is not able to enable notifications on device&amp;#39;s characteristics.
Is there any particular setting that is needed to ensure that LESC falls back correctly to BLE 4.1 method of display and passkey entry?
thanks,
Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC with old phones (e.g. iPhone 4s)</title><link>https://devzone.nordicsemi.com/thread/88858?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2017 08:39:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59ccf423-bfc2-4206-bfba-1aa8ce76f03b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Since LESC isn&amp;#39;t supported I guess you are not doing LESC pairing.&lt;/p&gt;
&lt;p&gt;Instead you are probably doing Legacy pairing with Passkey Entry. This will not result in security level 4 (BLE_GAP_CONN_SEC_MODE_SET_LESC_ENC_WITH_MITM) but security level 3 (BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>