<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: KW36 Pairing&amp;Bond with Link Encryption issue in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/KW36-Pairing-Bond-with-Link-Encryption-issue/m-p/957476#M7734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any more details please feel free to let me know.&lt;/P&gt;&lt;P&gt;this issue is very critical to our new start project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ziv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Aug 2019 03:55:49 GMT</pubDate>
    <dc:creator>zhi_wang</dc:creator>
    <dc:date>2019-08-29T03:55:49Z</dc:date>
    <item>
      <title>KW36 Pairing&amp;Bond with Link Encryption issue</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-Pairing-Bond-with-Link-Encryption-issue/m-p/957472#M7730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi someone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is: while the Pairing and bonding are succeed, but if set the Char &amp;amp; Char value ACCESS level to&amp;nbsp;gPermissionFlagReadWithEncryption_c or&amp;nbsp;gPermissionFlagWriteWithEncryption_c , the mobile app cannot read or write successfully from/to these values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my working environment:&lt;/P&gt;&lt;P&gt;IDE: MCUXpresso&amp;nbsp;&lt;/P&gt;&lt;P&gt;SDK:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/89073i6EE4379D745B79BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Demo project:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;frdmkw36_wireless_examples_bluetooth_hid_device_freertos&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code changes:&lt;/P&gt;&lt;P&gt;changed the security level to&amp;nbsp;gPermissionFlagReadWithEncryption_c , should be &lt;STRONG&gt;security mode 1 level 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/89120i9B099E343448EDB8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;others are never changed, the default security mode setting in project is mode 1 level 3. this should not be the problem.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/89214i3D933ED0D5499ABB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem :&lt;/P&gt;&lt;P&gt;the NRF connect or lightblue can successfully Pairing and bond with the device, but cannot READ the&amp;nbsp;value_battery_level. the error code is &lt;STRONG&gt;GATT READ NOT PERMIT&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/89309i3CE1D6C110FD5FAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the original source code set the permission to lowest level, will not have this issue, please check this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Ziv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2019 08:06:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-Pairing-Bond-with-Link-Encryption-issue/m-p/957472#M7730</guid>
      <dc:creator>zhi_wang</dc:creator>
      <dc:date>2019-08-22T08:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: KW36 Pairing&amp;Bond with Link Encryption issue</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-Pairing-Bond-with-Link-Encryption-issue/m-p/957473#M7731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any comments?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2019 11:12:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-Pairing-Bond-with-Link-Encryption-issue/m-p/957473#M7731</guid>
      <dc:creator>zhi_wang</dc:creator>
      <dc:date>2019-08-23T11:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: KW36 Pairing&amp;Bond with Link Encryption issue</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-Pairing-Bond-with-Link-Encryption-issue/m-p/957474#M7732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ziv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to confirm, are you trying to encrypt the battery&amp;nbsp;service profile?&lt;/P&gt;&lt;P&gt;You don't wat the bonding process. am I right?&lt;/P&gt;&lt;P&gt;Is the KW36 requesting pin?&lt;/P&gt;&lt;P&gt;Could you please provide more details about your application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2019 23:58:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-Pairing-Bond-with-Link-Encryption-issue/m-p/957474#M7732</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-08-26T23:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: KW36 Pairing&amp;Bond with Link Encryption issue</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-Pairing-Bond-with-Link-Encryption-issue/m-p/957475#M7733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad to hearing from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just take the battery service for an example. actually i have defined my private services.&lt;/P&gt;&lt;P&gt;i need the Pairing and bonding process, and the Characteristic value and description (0x2902 &amp;amp; 0x2901) are must encrypted.&lt;/P&gt;&lt;P&gt;from my testing, the pair and bond process are working as expected. if not bonded, the pin will request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the issue happened only if i changed the ACCESS level of battery service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;from the log, the "gConnEvtEncryptionChanged_c" will be called and is successful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;it seems the Pairing , bonding and encryption are all ok. but the mobile app are not permitted to ACCESS the description and value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can take the HID Device as i did and have a try, the only changes from code is as i depicted above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ziv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2019 02:15:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-Pairing-Bond-with-Link-Encryption-issue/m-p/957475#M7733</guid>
      <dc:creator>zhi_wang</dc:creator>
      <dc:date>2019-08-27T02:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: KW36 Pairing&amp;Bond with Link Encryption issue</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-Pairing-Bond-with-Link-Encryption-issue/m-p/957476#M7734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any more details please feel free to let me know.&lt;/P&gt;&lt;P&gt;this issue is very critical to our new start project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ziv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2019 03:55:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-Pairing-Bond-with-Link-Encryption-issue/m-p/957476#M7734</guid>
      <dc:creator>zhi_wang</dc:creator>
      <dc:date>2019-08-29T03:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: KW36 Pairing&amp;Bond with Link Encryption issue</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-Pairing-Bond-with-Link-Encryption-issue/m-p/957477#M7735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ziv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry for my late reply. I want to confirm how you need to define the permissions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please define the code like below.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;VALUE&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;value_battery_level&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; gBleSig_BatteryLevel_d&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gPermissionFlagReadable_c&lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;gPermissionFlagReadWithEncryption_c&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x5A&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Note: The Security Level should be equal as the permissions that you defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2019 21:17:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-Pairing-Bond-with-Link-Encryption-issue/m-p/957477#M7735</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-09-12T21:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: KW36 Pairing&amp;Bond with Link Encryption issue</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-Pairing-Bond-with-Link-Encryption-issue/m-p/957478#M7736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for you reply.&lt;/P&gt;&lt;P&gt;the permissions i wanted is only xxxWithEncryption,&amp;nbsp; the link must be encrypted, as your code, if set both&amp;nbsp;&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; font-size: 14px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;gPermissionFlagReadable_c&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;|&lt;/SPAN&gt;gPermissionFlagReadWithEncryption_c&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the lowest permission requirement will take activity.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My setting is listed above, just&amp;nbsp;gPermissionFlagReadWithEncryption_c is what i need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ziv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2019 02:57:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-Pairing-Bond-with-Link-Encryption-issue/m-p/957478#M7736</guid>
      <dc:creator>zhi_wang</dc:creator>
      <dc:date>2019-10-14T02:57:11Z</dc:date>
    </item>
  </channel>
</rss>

