<?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中的主题 KW36 wireless uart demo connection issue: will disconnected immediately from the phone</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/KW36-wireless-uart-demo-connection-issue-will-disconnected/m-p/920680#M6941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;i have test the glucose demo with Android app(like nrf conenct), it works fine.&lt;/P&gt;&lt;P&gt;but with the wireless uart demo, the connection will immediately terminated when the connection established.&amp;nbsp;&lt;/P&gt;&lt;P&gt;when using the iphone, the log from lightblue shows the service are all discovered. the disconnect request is send by the kw36.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the log from kw36 uart:&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------- serial port log -----------------------------------------&lt;/P&gt;&lt;P&gt;Wireless UART starting as GAP Central, press the role switch to change it.&lt;/P&gt;&lt;P&gt;Switched role to GAP Peripheral.&lt;/P&gt;&lt;P&gt;Advertising...&lt;BR /&gt;Connected to device 0 as slave.&lt;BR /&gt;Disconnected from device 0.&lt;/P&gt;&lt;P&gt;Advertising...&lt;BR /&gt;Connected to device 0 as slave.&lt;BR /&gt;Disconnected from device 0.&lt;/P&gt;&lt;P&gt;Advertising...&lt;BR /&gt;Connected to device 0 as slave.&lt;BR /&gt;Disconnected from device 0.&lt;/P&gt;&lt;P&gt;Advertising...&lt;BR /&gt;Connected to device 0 as slave.&lt;BR /&gt;Disconnected from device 0.&lt;/P&gt;&lt;P&gt;Advertising...&lt;BR /&gt;Connected to device 0 as slave.&lt;BR /&gt;Disconnected from device 0.&lt;/P&gt;&lt;P&gt;Advertising...&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;attention: i have tested 5 times, as log shows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the problem is absolutely connection issue, not the state/button setting of the kw36.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a TI sniffer log, but it seems no use。&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/86425iA643029FCF2EA686/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;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jul 2019 11:17:59 GMT</pubDate>
    <dc:creator>zhi_wang</dc:creator>
    <dc:date>2019-07-29T11:17:59Z</dc:date>
    <item>
      <title>KW36 wireless uart demo connection issue: will disconnected immediately from the phone</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-wireless-uart-demo-connection-issue-will-disconnected/m-p/920680#M6941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;i have test the glucose demo with Android app(like nrf conenct), it works fine.&lt;/P&gt;&lt;P&gt;but with the wireless uart demo, the connection will immediately terminated when the connection established.&amp;nbsp;&lt;/P&gt;&lt;P&gt;when using the iphone, the log from lightblue shows the service are all discovered. the disconnect request is send by the kw36.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the log from kw36 uart:&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------- serial port log -----------------------------------------&lt;/P&gt;&lt;P&gt;Wireless UART starting as GAP Central, press the role switch to change it.&lt;/P&gt;&lt;P&gt;Switched role to GAP Peripheral.&lt;/P&gt;&lt;P&gt;Advertising...&lt;BR /&gt;Connected to device 0 as slave.&lt;BR /&gt;Disconnected from device 0.&lt;/P&gt;&lt;P&gt;Advertising...&lt;BR /&gt;Connected to device 0 as slave.&lt;BR /&gt;Disconnected from device 0.&lt;/P&gt;&lt;P&gt;Advertising...&lt;BR /&gt;Connected to device 0 as slave.&lt;BR /&gt;Disconnected from device 0.&lt;/P&gt;&lt;P&gt;Advertising...&lt;BR /&gt;Connected to device 0 as slave.&lt;BR /&gt;Disconnected from device 0.&lt;/P&gt;&lt;P&gt;Advertising...&lt;BR /&gt;Connected to device 0 as slave.&lt;BR /&gt;Disconnected from device 0.&lt;/P&gt;&lt;P&gt;Advertising...&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;attention: i have tested 5 times, as log shows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the problem is absolutely connection issue, not the state/button setting of the kw36.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a TI sniffer log, but it seems no use。&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/86425iA643029FCF2EA686/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;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2019 11:17:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-wireless-uart-demo-connection-issue-will-disconnected/m-p/920680#M6941</guid>
      <dc:creator>zhi_wang</dc:creator>
      <dc:date>2019-07-29T11:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: KW36 wireless uart demo connection issue: will disconnected immediately from the phone</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-wireless-uart-demo-connection-issue-will-disconnected/m-p/920681#M6942</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;We are working on this issue, could you please confirm the&amp;nbsp;gapPairingParameters_t that you have?&lt;/P&gt;&lt;P&gt;Did you set bonding and paring flag as 1?&lt;/P&gt;&lt;P&gt;Do you set&amp;nbsp;gSecurityMode_1_Level_4_c and Secure connections as TRUE?&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>Tue, 30 Jul 2019 04:41:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-wireless-uart-demo-connection-issue-will-disconnected/m-p/920681#M6942</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-07-30T04:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: KW36 wireless uart demo connection issue: will disconnected immediately from the phone</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-wireless-uart-demo-connection-issue-will-disconnected/m-p/920682#M6943</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 your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i am using is the original demo code from the 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/86792i1926EB96860706A6/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;actually i have doubted the connection parameters request from the app(iphone/ android), once i have sniffered a log that&amp;nbsp;&lt;/P&gt;&lt;P&gt;the app send the request, but have not found the accept message from slave. and then disconnected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86834iA1CD94EC7D13356F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the above code segment is from&amp;nbsp;BleConnManager_GapPeripheralEvent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;besides, there should be a problem in&amp;nbsp;function&amp;nbsp;BleConnManager_GapCentralEvent:&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/86881i5221135F7B8C0C90/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;in the central role, if the gConnUpdateAlwaysAccept_d is set to 0 and the connection interval min = 6, then the result is false. the judgement of the value logic need to check.&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, 30 Jul 2019 05:29:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-wireless-uart-demo-connection-issue-will-disconnected/m-p/920682#M6943</guid>
      <dc:creator>zhi_wang</dc:creator>
      <dc:date>2019-07-30T05:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: KW36 wireless uart demo connection issue: will disconnected immediately from the phone</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-wireless-uart-demo-connection-issue-will-disconnected/m-p/920683#M6944</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;You are using nrf connect app to connect wirelss uart app, right?&lt;/P&gt;&lt;P&gt;If yes, that is expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can see the reason in the function&amp;nbsp;void BleApp_StateMachineHandler(deviceId_t peerDeviceId, appEvent_t event) implement,&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;        &lt;SPAN class="keyword token"&gt;case&lt;/SPAN&gt; mAppExchangeMtu_c&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;event &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; mAppEvt_GattProcComplete_c&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                &lt;SPAN class="comment token"&gt;/* update stream length with minimum of maximum MTU's of connected devices */&lt;/SPAN&gt;
                &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Gatt_GetMtu&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;peerDeviceId&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;tempMtu&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
                tempMtu &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;gAttMaxWriteDataSize_d&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tempMtu&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

                mAppUartBufferSize &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; mAppUartBufferSize &lt;SPAN class="operator token"&gt;&amp;lt;=&lt;/SPAN&gt; tempMtu &lt;SPAN class="operator token"&gt;?&lt;/SPAN&gt; mAppUartBufferSize &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; tempMtu&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

                &lt;SPAN class="comment token"&gt;/* Moving to Service Discovery State*/&lt;/SPAN&gt;
                maPeerInformation&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;peerDeviceId&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;appState &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; mAppServiceDisc_c&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

                &lt;SPAN class="comment token"&gt;/* Start Service Discovery*/&lt;/SPAN&gt;
                &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;BleServDisc_FindService&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;peerDeviceId&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                                              gBleUuidType128_c&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                                              temp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;pUuidObj&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;event &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; mAppEvt_GattProcError_c&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                    &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Gap_Disconnect&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;peerDeviceId&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
                &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;}&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The board will start to find uart service from your cell phone after connect and exchange&amp;nbsp;MTU, which means you need to add a wireless uart service with proper 128 bit UUID on your phone like attached picture.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/4237iAED649BEDC66D7BD/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:23:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-wireless-uart-demo-connection-issue-will-disconnected/m-p/920683#M6944</guid>
      <dc:creator>Jingsai_Lu</dc:creator>
      <dc:date>2020-11-02T14:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: KW36 wireless uart demo connection issue: will disconnected immediately from the phone</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-wireless-uart-demo-connection-issue-will-disconnected/m-p/920684#M6945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jingsai,&lt;/P&gt;&lt;P&gt;very thanks. :smileyhappy:&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have searched the "Gap_Disconnect" and found the course. for i found the Iot toolbox (iphone version) is working fine, just others have this issue.&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, 30 Jul 2019 09:45:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-wireless-uart-demo-connection-issue-will-disconnected/m-p/920684#M6945</guid>
      <dc:creator>zhi_wang</dc:creator>
      <dc:date>2019-07-30T09:45:35Z</dc:date>
    </item>
  </channel>
</rss>

