<?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>Wireless MCUのトピックRe: QN9030 notification problem</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/QN9030-notification-problem/m-p/1303487#M11321</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Gap_CheckNotificationStatus's result&lt;/STRONG&gt;&amp;nbsp;means that you phone doesn't enable the ccd function. What's the app do your phone use?&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jul 2021 02:24:23 GMT</pubDate>
    <dc:creator>nxf56274</dc:creator>
    <dc:date>2021-07-07T02:24:23Z</dc:date>
    <item>
      <title>QN9030 notification problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9030-notification-problem/m-p/1302714#M11319</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working on QN9030 chipset and using QN9090 proximity_bm example but I facing a problem: the board can't notification after connecting to my phone.&lt;/P&gt;&lt;P&gt;I tried to debug a see the cccd is written, the code I printed debug below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Minh_Thien_0-1625542360748.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148835i8A2D291C91A7612E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Minh_Thien_0-1625542360748.png" alt="Minh_Thien_0-1625542360748.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;static void BleApp_GattServerCallback (deviceId_t deviceId, gattServerEvent_t* pServerEvent)
{
    switch (pServerEvent-&amp;gt;eventType)
    {
        case gEvtAttributeWrittenWithoutResponse_c:
        {
        }
        break;
#if defined CPU_JN518X
        case gEvtAttributeWritten_c:
        {
        }
        break;
#endif
        case gEvtCharacteristicCccdWritten_c:
            APP_DEBUG_TRACE("--&amp;gt;Event.handle: %d\r\n", pServerEvent-&amp;gt;eventData.charCccdWrittenEvent.handle);
            switch(pServerEvent-&amp;gt;eventData.charCccdWrittenEvent.handle)
            {
                case cccd_battery_level:
                    APP_DEBUG_TRACE("--&amp;gt;new_cccd_battery: %d\r\n", pServerEvent-&amp;gt;eventData.charCccdWrittenEvent.newCccd);
            }

            break;
        default:
            ; /* For MISRA compliance */
            break;
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think cccd is 1 means the notification is enabled but in the function&amp;nbsp;&lt;STRONG&gt;Bas_SendNotifications&lt;/STRONG&gt; I print out the&amp;nbsp;&lt;STRONG&gt;Gap_CheckNotificationStatus&lt;/STRONG&gt; result: 1 (fail) and&amp;nbsp;isNotifActive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;static void Bas_SendNotifications
(
    basConfig_t *pServiceConfig,
    uint16_t     handle
)
{
    uint16_t  handleCccd;
    bool_t    isNotifActive;
    uint8_t   mClientId = 0;

    bleResult_t ret = gBleSuccess_c;

    /* Get handle of CCCD */
    if (GattDb_FindCccdHandleForCharValueHandle(handle, &amp;amp;handleCccd) == gBleSuccess_c)
    {
        for (mClientId = 0; mClientId &amp;lt; pServiceConfig-&amp;gt;validSubscriberListSize; mClientId++)
        {
            if (pServiceConfig-&amp;gt;aValidSubscriberList[mClientId])
            {
                ret = Gap_CheckNotificationStatus(mClientId, handleCccd, &amp;amp;isNotifActive);
                PRINTF("mClientId = %d,handleCccd = %d, ret = %d, isNotifActive =  %d\r\n",mClientId, handleCccd, ret, isNotifActive);
//                if (ret == gBleSuccess_c &amp;amp;&amp;amp; TRUE == isNotifActive)
//                {
//                    (void)GattServer_SendNotification(mClientId, handle);
//                }
//                PRINTF("notify_result: %d\r\n", GattServer_SendInstantValueIndication(mClientId, handle, 1, value++));
                PRINTF("notify_result: %d\r\n",GattServer_SendNotification(mClientId, handle));
            }
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Minh_Thien_0-1625542678790.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/148836iD2073BB5C13BFA25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Minh_Thien_0-1625542678790.png" alt="Minh_Thien_0-1625542678790.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand why. Can you help me explain and how to resolve this problem?&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 03:38:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9030-notification-problem/m-p/1302714#M11319</guid>
      <dc:creator>Minh_Thien</dc:creator>
      <dc:date>2021-07-06T03:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: QN9030 notification problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9030-notification-problem/m-p/1303487#M11321</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Gap_CheckNotificationStatus's result&lt;/STRONG&gt;&amp;nbsp;means that you phone doesn't enable the ccd function. What's the app do your phone use?&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 02:24:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9030-notification-problem/m-p/1303487#M11321</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2021-07-07T02:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: QN9030 notification problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9030-notification-problem/m-p/1303512#M11324</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for your feedback.&lt;/P&gt;&lt;P&gt;I'm using NRFconnect to test. I think the app is ok because when I press the notification in the app then the&amp;nbsp;&lt;EM&gt;gEvtCharacteristicCccdWritten_c&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;event is triggered you can see the picture I posted.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 02:53:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9030-notification-problem/m-p/1303512#M11324</guid>
      <dc:creator>Minh_Thien</dc:creator>
      <dc:date>2021-07-07T02:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: QN9030 notification problem</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9030-notification-problem/m-p/1303514#M11325</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please use our app 'IOT toolbox' to test the example.&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 02:56:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9030-notification-problem/m-p/1303514#M11325</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2021-07-07T02:56:45Z</dc:date>
    </item>
  </channel>
</rss>

