<?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: QN9090-What is the most basic example design for a BLE Server in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/QN9090-What-is-the-most-basic-example-design-for-a-BLE-Server/m-p/1647249#M14942</link>
    <description>&lt;P&gt;Thank you Gavin for pointing out to those NXP documents for QN9090.&amp;nbsp;&lt;BR /&gt;I definitely take not about the example designs recommended too, although I would not consider "&lt;SPAN&gt;wireless_uart" as a basic example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you for your help!! much appreciate it&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 15:05:05 GMT</pubDate>
    <dc:creator>blas_m</dc:creator>
    <dc:date>2023-05-09T15:05:05Z</dc:date>
    <item>
      <title>QN9090-What is the most basic example design for a BLE Server</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9090-What-is-the-most-basic-example-design-for-a-BLE-Server/m-p/1645638#M14930</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;I am using as a base design the&lt;STRONG&gt; private_profile_server_bm&lt;/STRONG&gt; to understand how the BLE APIs from NXP work but the code/design is turning a nightmare.&lt;BR /&gt;it contains a loads of folders and libraries for the QN9090-DK6 board.&lt;BR /&gt;For the point of view of an Application development, the folder "source" seems to encapsulate all required files. However, inside this folder there is a "common" folder which contains some additional files. In particular:&lt;BR /&gt;- &lt;STRONG&gt;ApplMain.c&lt;/STRONG&gt; : This files seems to include the main loop of the BLE application (&lt;STRONG&gt;main_task()&lt;/STRONG&gt;), which it calls then &lt;STRONG&gt;App_Thread()&lt;/STRONG&gt;, which in turn calls &lt;STRONG&gt;App_HandleHostMessage().&amp;nbsp;&lt;/STRONG&gt;This last function has a case for BLE message:&amp;nbsp;&lt;BR /&gt;-&amp;nbsp;gAppGapGenericMsg_c&lt;BR /&gt;-&amp;nbsp;gAppGapAdvertisementMsg_c&lt;BR /&gt;-&amp;nbsp;gAppGapScanMsg_c .....&lt;BR /&gt;The ONLY messages type that seems to be received are:&amp;nbsp;&lt;STRONG&gt;gAppGapGenericMsg_c.&amp;nbsp;&lt;/STRONG&gt; Then the customer application function gets called: &lt;STRONG&gt;BleApp_GenericCallback().&lt;/STRONG&gt;&amp;nbsp;This is the first function included in what seem to be the Development files ( in this example design, private_profile_server.c)&lt;BR /&gt;This is using a bare-metal example design but the amount of calls to reach the first point where a designer can modify the code seems excessive. Plus there are some calls to events queues and other functions/variable which are not accessible from the private_profile_server.c file&lt;BR /&gt;&lt;STRONG&gt;main_task() -&amp;gt;&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;App_Thread() -&amp;gt;&amp;nbsp;App_HandleHostMessage()&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;-&amp;gt; BleApp_GenericCallback()&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blas_m_0-1683302006051.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/221993i20A7C76E1C975A53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blas_m_0-1683302006051.png" alt="blas_m_0-1683302006051.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;- is there any more basic/simplified example design showing a BLE Server stack for the QN9090 device?&lt;BR /&gt;- is there some information about how this example design: private_profile_server project works, in terms of APIs and BLE states, call-back functions?&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 12:07:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9090-What-is-the-most-basic-example-design-for-a-BLE-Server/m-p/1645638#M14930</guid>
      <dc:creator>blas_m</dc:creator>
      <dc:date>2023-05-08T12:07:03Z</dc:date>
    </item>
    <item>
      <title>回复： QN9090-What is the most basic example design for a BLE Client</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9090-What-is-the-most-basic-example-design-for-a-BLE-Server/m-p/1646082#M14933</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216343"&gt;@blas_m&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Thanks for contacting NXP support.&lt;/P&gt;
&lt;P&gt;QN9090 provided a lot of design for&amp;nbsp; BLE,&amp;nbsp; I believe these design below could be helpful :&lt;/P&gt;
&lt;P&gt;- For BLE Client, "beacon_bm" is the most basic example design, it works as BLE &lt;SPAN&gt;peripherals&lt;/SPAN&gt;, and you can connect it with "IOT ToolBox" app on your smart phone.&lt;/P&gt;
&lt;P&gt;- For BLE Server, "&lt;SPAN&gt;Alert Notification Server&lt;/SPAN&gt;" and "&lt;SPAN&gt;Location and Navigation Server&lt;/SPAN&gt;" is worth for a try.&lt;/P&gt;
&lt;P&gt;- And also, "wireless_uart" is a basic example design can work as both central role and peripheral role.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the last question, if you want to make custom modifications for your apps, please pay attention to the source/"$projectname.c" file and find the &lt;STRONG&gt;BleApp_GenericCallback() &lt;/STRONG&gt;function, the switch loop in this function contains the most cases it uses and you can custom modify or add something you need. Connect Callback and Scanning Callback are important as well.&lt;/P&gt;
&lt;P&gt;Regarding how to use these designs,you can refer to this document "&lt;EM&gt;&lt;U&gt;Bluetooth Low Energy Demo Applications User's Guide.pdf&lt;/U&gt;&lt;/EM&gt;". It is placed at this path "&lt;EM&gt;&lt;U&gt;SDK_2_6_205_QN9090DK6\docs\wireless\Bluetooth\Bluetooth Low Energy Demo Applications User's Guide.pdf".&lt;/U&gt;&lt;/EM&gt; For code, variable and function details, please refer to this document "&lt;EM&gt;&lt;U&gt;Bluetooth Low Energy Application Developer's Guide.pdf&lt;/U&gt;&lt;/EM&gt;".&lt;/P&gt;
&lt;P&gt;Hope you are doing well!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Gavin&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>Mon, 08 May 2023 03:36:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9090-What-is-the-most-basic-example-design-for-a-BLE-Server/m-p/1646082#M14933</guid>
      <dc:creator>Gavin_Jia</dc:creator>
      <dc:date>2023-05-08T03:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: QN9090-What is the most basic example design for a BLE Server</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9090-What-is-the-most-basic-example-design-for-a-BLE-Server/m-p/1647249#M14942</link>
      <description>&lt;P&gt;Thank you Gavin for pointing out to those NXP documents for QN9090.&amp;nbsp;&lt;BR /&gt;I definitely take not about the example designs recommended too, although I would not consider "&lt;SPAN&gt;wireless_uart" as a basic example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you for your help!! much appreciate it&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 15:05:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9090-What-is-the-most-basic-example-design-for-a-BLE-Server/m-p/1647249#M14942</guid>
      <dc:creator>blas_m</dc:creator>
      <dc:date>2023-05-09T15:05:05Z</dc:date>
    </item>
    <item>
      <title>回复： QN9090-What is the most basic example design for a BLE Client</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9090-What-is-the-most-basic-example-design-for-a-BLE-Server/m-p/1897603#M17876</link>
      <description>&lt;P&gt;Hi, I fully agree with blas_m and share his frustration with NXP demo examples. I find them much too structured, which is probably because the same demo is made to serve multiple devices and demo boards. However, this makes them very user-unfriendly and difficult to understand, and impedes the user to learn from them (although this should be the main purpose). The main document "Bluetooth Low Energy Demo Applications User's Guide.pdf" offers only a guide about how to make these demos functioning and is not explaining anything about the code.&lt;/P&gt;&lt;P&gt;My problem is the following: I am trying to replicate the same application (remotely controlled drive) that we already have in mass production, but was made with NXP competitor's BLE device. I tried the same method I used the first time, when I used "SPP-over-BLE example" as starting point, basically same example as "wireless_uart". But, the competitor's example code and application note were clear and simple to understand, so it was easy to integrate with the application. I was expecting similar from NXP but I see that it is not so easy.&lt;/P&gt;&lt;P&gt;Please help by providing advice, where to find simpler and straight forward demo code for QN9090, possibly not linked to an existing demo board. I already have a target application PCB, so that all the code specific to the demo platform is just disturbing.&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 15:13:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9090-What-is-the-most-basic-example-design-for-a-BLE-Server/m-p/1897603#M17876</guid>
      <dc:creator>kopeljub</dc:creator>
      <dc:date>2024-07-02T15:13:19Z</dc:date>
    </item>
  </channel>
</rss>

