<?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: BLE security pairing &amp;amp; bi-direction tx/rx in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/BLE-security-pairing-amp-bi-direction-tx-rx/m-p/1961959#M18975</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is the services that are already are&amp;nbsp;implemented for the BLE Shell and given as example, are listed on the guide SDK&amp;gt;docs&amp;gt;wireless&amp;gt;Bluethooth&amp;gt;Bluetooth® Low Energy Demo Applications User’s Guide.pdf&amp;gt;chapter 5.19:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL type="disc"&gt;
&lt;LI&gt;Heart Rate Service (UUID: 0x180D)&lt;/LI&gt;
&lt;LI&gt;Battery Service (UUID: 0x180F)&lt;/LI&gt;
&lt;LI&gt;Device Information Service (UUID: 0x180A)&lt;/LI&gt;
&lt;LI&gt;Internet Support Profile Service (0x1820)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would need to implement the service so it can work on the Wireless UART, this might also explain the reason that it might have trouble to have connection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will indeed have worked connection the ShellGap_ConnectionCallback (gConnEvtPairingComplete_c) until it has succeeded or failed the pairing procedure, on your case we do see the massage of failure for it working on the W_UART.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope the answer helps to approached other way to the BLE Shell Example, and if there's more question, come back.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Itzel.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 16:43:43 GMT</pubDate>
    <dc:creator>Itzel_UV</dc:creator>
    <dc:date>2024-09-25T16:43:43Z</dc:date>
    <item>
      <title>BLE security pairing &amp; bi-direction tx/rx</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/BLE-security-pairing-amp-bi-direction-tx-rx/m-p/1950509#M18888</link>
      <description>&lt;P&gt;==== Environment ======&lt;/P&gt;&lt;P&gt;1. frdmkw38 board&lt;/P&gt;&lt;P&gt;2. ble_shell_freertos [BLE central]&lt;/P&gt;&lt;P&gt;3. wireless_uart_freertos[BLE peripheral]&lt;/P&gt;&lt;P&gt;======================&lt;/P&gt;&lt;P&gt;I am going to make a bi-directional communication BLE system with a security pairing base.&lt;/P&gt;&lt;P&gt;The Central system is based on [ble_shell example code].&lt;/P&gt;&lt;P&gt;The Peripheral system is based on [wiereless_uart example code]. (you can recommend other simple example code).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to now how to set or control on central side. [shell commands base]&lt;/P&gt;&lt;P&gt;It I have to manipulate the code please tell me.&lt;/P&gt;&lt;P&gt;With the upper environment. I going to make a [Security Pairing Connection].&lt;/P&gt;&lt;P&gt;================&lt;/P&gt;&lt;P&gt;gatt_uuid128.h [make same]&lt;/P&gt;&lt;P&gt;gatt_db.h [all same except value_device_name]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;== app_preinclude.h =========&lt;/P&gt;&lt;P&gt;#define gAppMaxConnections_c (1U)&lt;/P&gt;&lt;P&gt;#define gAppUseBonding_d&amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;#define gAppUsePairing_d&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;#define gAppUsePrivacy_d&amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;#define gPasskeyValue_c&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;999999&lt;/P&gt;&lt;P&gt;=======================&lt;/P&gt;&lt;P&gt;&amp;lt;adv param in peripheral&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JungkyuHan1_1-1725935292908.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298041i78CF8684290018C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JungkyuHan1_1-1725935292908.png" alt="JungkyuHan1_1-1725935292908.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;gScanParams&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JungkyuHan1_0-1725935246735.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298040iDC358F297B9D46B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JungkyuHan1_0-1725935246735.png" alt="JungkyuHan1_0-1725935246735.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;gConnReqParams &amp;amp; gPairingParameters&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JungkyuHan1_2-1725935335583.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298042iED76F2927F53806C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JungkyuHan1_2-1725935335583.png" alt="JungkyuHan1_2-1725935335583.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;smpkeys &amp;amp; security params&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JungkyuHan1_3-1725935381653.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298044iDA659B4EFC019987/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JungkyuHan1_3-1725935381653.png" alt="JungkyuHan1_3-1725935381653.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JungkyuHan1_4-1725935414168.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298045i07F5DA55ED995D2B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JungkyuHan1_4-1725935414168.png" alt="JungkyuHan1_4-1725935414168.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JungkyuHan1_5-1725935429832.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298046iC43DBD91D548BB74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JungkyuHan1_5-1725935429832.png" alt="JungkyuHan1_5-1725935429832.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 02:30:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/BLE-security-pairing-amp-bi-direction-tx-rx/m-p/1950509#M18888</guid>
      <dc:creator>JungkyuHan1</dc:creator>
      <dc:date>2024-09-10T02:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: BLE security pairing &amp; bi-direction tx/rx</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/BLE-security-pairing-amp-bi-direction-tx-rx/m-p/1954524#M18915</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To have a security on the moment that you're paring the peripheral you are supposed to have configured the GAP Secure Mode and Level as Mode 1 Level 3 to have asked the authenticated encryption.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to set it you could do it from the serial port terminal with the command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;gap paircfg [-usebonding usebonding] [-seclevel seclevel] [-keyflags flags]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are also the default configurations, you could change it from the file bluetooth&amp;gt;gap_types.h on the define with name gGapDefaultSecurityRequirements_d.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understood wrongly the question, could you let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Itzel.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 21:54:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/BLE-security-pairing-amp-bi-direction-tx-rx/m-p/1954524#M18915</guid>
      <dc:creator>Itzel_UV</dc:creator>
      <dc:date>2024-09-13T21:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: BLE security pairing &amp; bi-direction tx/rx</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/BLE-security-pairing-amp-bi-direction-tx-rx/m-p/1958486#M18945</link>
      <description>&lt;P&gt;Dear Itzel&lt;/P&gt;&lt;P&gt;I test again with your guide. but still fail to pair.&lt;/P&gt;&lt;P&gt;Please check my debug message again.&lt;/P&gt;&lt;P&gt;using wireless uart code both central/periperal, pairing suceeded.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JungkyuHan1_1-1726816064826.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/300283iF074FD4358374121/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JungkyuHan1_1-1726816064826.png" alt="JungkyuHan1_1-1726816064826.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but using wireless uart peripheral mode, ble_shell base central mode.&lt;/P&gt;&lt;P&gt;ble connection/discovery has success. but secure pairing FAILED.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JungkyuHan1_2-1726816105826.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/300284i13C3B734E101CE1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JungkyuHan1_2-1726816105826.png" alt="JungkyuHan1_2-1726816105826.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you recommend to check at this moment.&lt;/P&gt;&lt;P&gt;Always thanks your efforts.&lt;/P&gt;&lt;P&gt;B.R&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 07:13:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/BLE-security-pairing-amp-bi-direction-tx-rx/m-p/1958486#M18945</guid>
      <dc:creator>JungkyuHan1</dc:creator>
      <dc:date>2024-09-20T07:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: BLE security pairing &amp; bi-direction tx/rx</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/BLE-security-pairing-amp-bi-direction-tx-rx/m-p/1961959#M18975</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is the services that are already are&amp;nbsp;implemented for the BLE Shell and given as example, are listed on the guide SDK&amp;gt;docs&amp;gt;wireless&amp;gt;Bluethooth&amp;gt;Bluetooth® Low Energy Demo Applications User’s Guide.pdf&amp;gt;chapter 5.19:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL type="disc"&gt;
&lt;LI&gt;Heart Rate Service (UUID: 0x180D)&lt;/LI&gt;
&lt;LI&gt;Battery Service (UUID: 0x180F)&lt;/LI&gt;
&lt;LI&gt;Device Information Service (UUID: 0x180A)&lt;/LI&gt;
&lt;LI&gt;Internet Support Profile Service (0x1820)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would need to implement the service so it can work on the Wireless UART, this might also explain the reason that it might have trouble to have connection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will indeed have worked connection the ShellGap_ConnectionCallback (gConnEvtPairingComplete_c) until it has succeeded or failed the pairing procedure, on your case we do see the massage of failure for it working on the W_UART.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope the answer helps to approached other way to the BLE Shell Example, and if there's more question, come back.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Itzel.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 16:43:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/BLE-security-pairing-amp-bi-direction-tx-rx/m-p/1961959#M18975</guid>
      <dc:creator>Itzel_UV</dc:creator>
      <dc:date>2024-09-25T16:43:43Z</dc:date>
    </item>
  </channel>
</rss>

