<?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 FRDMKW36-How to get RSSI value when connected with smartphone by BLE in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/FRDMKW36-How-to-get-RSSI-value-when-connected-with-smartphone-by/m-p/1316633#M11459</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I used Proximity sample code to connect with a smartphone, then here comes two value which in&amp;nbsp;&lt;SPAN&gt;IoT Toolbox app: RSSI and Tx Power. The rssi value keeps changing which seems normal, but the tx power is always zero.&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two questions to ask,&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. How do I print the rssi value on the console to monitor it?&lt;/P&gt;&lt;P&gt;Here is my code,&lt;/P&gt;&lt;P&gt;static void RssiMeasurementTimerCallback(deviceId_t peerDeviceId, gapConnectionEvent_t* pConnectionEvent)&lt;BR /&gt;{&lt;BR /&gt;(void)Gap_ReadRssi(peerDeviceId);&lt;BR /&gt;int8_t rssi_val;&lt;BR /&gt;rssi_val = pConnectionEvent-&amp;gt;eventData.rssi_dBm;&lt;BR /&gt;PRINTF("rssi: %d\n",rssi_val);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I set a timer to trigger it, but the value is 0 all the time.&lt;/P&gt;&lt;P&gt;2. Why the tx power value is always zero?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Aug 2021 10:40:43 GMT</pubDate>
    <dc:creator>Lincoln</dc:creator>
    <dc:date>2021-08-02T10:40:43Z</dc:date>
    <item>
      <title>FRDMKW36-How to get RSSI value when connected with smartphone by BLE</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/FRDMKW36-How-to-get-RSSI-value-when-connected-with-smartphone-by/m-p/1316633#M11459</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I used Proximity sample code to connect with a smartphone, then here comes two value which in&amp;nbsp;&lt;SPAN&gt;IoT Toolbox app: RSSI and Tx Power. The rssi value keeps changing which seems normal, but the tx power is always zero.&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two questions to ask,&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. How do I print the rssi value on the console to monitor it?&lt;/P&gt;&lt;P&gt;Here is my code,&lt;/P&gt;&lt;P&gt;static void RssiMeasurementTimerCallback(deviceId_t peerDeviceId, gapConnectionEvent_t* pConnectionEvent)&lt;BR /&gt;{&lt;BR /&gt;(void)Gap_ReadRssi(peerDeviceId);&lt;BR /&gt;int8_t rssi_val;&lt;BR /&gt;rssi_val = pConnectionEvent-&amp;gt;eventData.rssi_dBm;&lt;BR /&gt;PRINTF("rssi: %d\n",rssi_val);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I set a timer to trigger it, but the value is 0 all the time.&lt;/P&gt;&lt;P&gt;2. Why the tx power value is always zero?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 10:40:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/FRDMKW36-How-to-get-RSSI-value-when-connected-with-smartphone-by/m-p/1316633#M11459</guid>
      <dc:creator>Lincoln</dc:creator>
      <dc:date>2021-08-02T10:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: FRDMKW36-How to get RSSI value when connected with smartphone by BLE</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/FRDMKW36-How-to-get-RSSI-value-when-connected-with-smartphone-by/m-p/1316860#M11466</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/189642"&gt;@Lincoln&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing great.&lt;/P&gt;
&lt;P&gt;1. Be sure that the debug pins are enabled for the Print API.&lt;/P&gt;
&lt;P&gt;/* Init hardware */&lt;BR /&gt;BOARD_InitPins();&lt;BR /&gt;BOARD_BootClockRUN();&lt;BR /&gt;BOARD_InitDebugConsole();&lt;/P&gt;
&lt;P&gt;2. Please look at the next line of the code. The TX Power is not changing, it will depend on the setup that you have.&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;static txsConfig_t serviceTxPowerConfig = {(uint16_t)service_tx_power, 0x00};&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mario&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 17:47:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/FRDMKW36-How-to-get-RSSI-value-when-connected-with-smartphone-by/m-p/1316860#M11466</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2021-08-02T17:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: FRDMKW36-How to get RSSI value when connected with smartphone by BLE</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/FRDMKW36-How-to-get-RSSI-value-when-connected-with-smartphone-by/m-p/1317666#M11509</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/86938"&gt;@mario_castaneda&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your advise, but here comes another problem. After&amp;nbsp;I add the init hardware code about Print API and run it again, it shows this fault below when i connected to IoT Toolbox, then it loss of connection immediately.&lt;/P&gt;&lt;P&gt;(My code is attached below)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lincoln_Holmes_0-1628045599301.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/151690iF73B55FE54C09CEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lincoln_Holmes_0-1628045599301.png" alt="Lincoln_Holmes_0-1628045599301.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 03:02:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/FRDMKW36-How-to-get-RSSI-value-when-connected-with-smartphone-by/m-p/1317666#M11509</guid>
      <dc:creator>Lincoln</dc:creator>
      <dc:date>2021-08-04T03:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: FRDMKW36-How to get RSSI value when connected with smartphone by BLE</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/FRDMKW36-How-to-get-RSSI-value-when-connected-with-smartphone-by/m-p/1317669#M11511</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/189642"&gt;@Lincoln&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You have to initialize the clock and the UART pins. Please look at the wireless uart example or the QPPS as a reference for this setup.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mario&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 03:05:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/FRDMKW36-How-to-get-RSSI-value-when-connected-with-smartphone-by/m-p/1317669#M11511</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2021-08-04T03:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: FRDMKW36-How to get RSSI value when connected with smartphone by BLE</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/FRDMKW36-How-to-get-RSSI-value-when-connected-with-smartphone-by/m-p/1317793#M11521</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/86938"&gt;@mario_castaneda&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for the response, the fault issue is resolved and the connection is stable. As I ask previously, I want to monitor the Rssi value on the console, I checked this function:&amp;nbsp;&lt;SPAN&gt;Gap_ReadRssi(peerDeviceId) is working successfully, but it is&amp;nbsp;always printing Rssi value as zero on the console. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is the rssi value would be updated automatically or i have to trigger&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gapConnectionEventType_t&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;gConnEvtRssiRead_c to update it, if it's needed then how can I achieve it&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Lincoln&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Aug 2021 06:00:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/FRDMKW36-How-to-get-RSSI-value-when-connected-with-smartphone-by/m-p/1317793#M11521</guid>
      <dc:creator>Lincoln</dc:creator>
      <dc:date>2021-08-04T06:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: FRDMKW36-How to get RSSI value when connected with smartphone by BLE</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/FRDMKW36-How-to-get-RSSI-value-when-connected-with-smartphone-by/m-p/1318419#M11551</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/189642"&gt;@Lincoln&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please look at the next API and the comments that we provide.&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;* \remarks The result is contained in the gConnEvtRssiRead_c connection event. The RSSI
* value is a signed byte, and the unit is dBm. If the RSSI cannot be read, the gConnEvtPowerReadFailure_c
* connection event is generated.
********************************************************************************** */
#define Gap_ReadRssi(deviceId)&lt;/LI-CODE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mario&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 19:39:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/FRDMKW36-How-to-get-RSSI-value-when-connected-with-smartphone-by/m-p/1318419#M11551</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2021-08-04T19:39:09Z</dc:date>
    </item>
  </channel>
</rss>

