<?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: MKW21 RSSI and Link Quality relation?</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/MKW21-RSSI-and-Link-Quality-relation/m-p/446051#M667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here below some info that &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/AlanCollins"&gt;AlanCollins&lt;/A&gt; put together about ED vs RSSI vs LQI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Energy Detect (&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ED&lt;/STRONG&gt;) means to measure the "energy" in a specific channel (frequency). When we talk about 2.4GHz frequencies, this energy or power measurement is the sum of noise + any 802.15.4 radio transmitting + any other radio working on the same frequency like WiFi (802.11) or Bluetooth. This value is represented in dBm.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key differentiation = energy in the channel at anytime you measure it.&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Received Signal Strength Indication (&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;RSSI&lt;/STRONG&gt;) is the measurement of power present in a received radio signal. This value is represented in dBm.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key differentiation = energy in the channel while receiving a message.&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Link Quality Indicator (&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LQI&lt;/STRONG&gt;) is the quality of the real data received in a signal. This is a value from 0 to 255, being 255 the best quality.&lt;/LI&gt;&lt;/UL&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key differentiation = Quality of the modulated bits in the received signal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Quick example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;The scenario can have multiple devices sending data on the same frequencies. WiFi, BlueTooth, ZigBee, etc. Then two ZigBee nodes communicate between each other.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;ED can be high becuase of the noisy environment.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;RSSI can be similar to ED depending on the exact moment the ED measurement is taken&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;LQI can be low because the collisions OTA would degradate the signal that really means something for the modulation used by ZigBee (802.15.4).&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Hope that helps,&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Jul 2015 21:00:16 GMT</pubDate>
    <dc:creator>antonioconcio</dc:creator>
    <dc:date>2015-07-26T21:00:16Z</dc:date>
    <item>
      <title>MKW21 RSSI and Link Quality relation?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MKW21-RSSI-and-Link-Quality-relation/m-p/446050#M666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on TWR-kw21D256 development board. I had Coordinator and End device Synchronized and connected. I am trying to qualify the radio strength based on obstructions and distance between them. I have problem getting RSSI value, instead i have Link Quality when i receive message from Sender. Link Quality ranges from 0x00 to 0xFF, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what would be the ideal pass or failure for link Quality?&lt;/P&gt;&lt;P&gt;How would i get RSSI VAlue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 15:13:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MKW21-RSSI-and-Link-Quality-relation/m-p/446050#M666</guid>
      <dc:creator>vmatlapudi</dc:creator>
      <dc:date>2015-07-24T15:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: MKW21 RSSI and Link Quality relation?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MKW21-RSSI-and-Link-Quality-relation/m-p/446051#M667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here below some info that &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/AlanCollins"&gt;AlanCollins&lt;/A&gt; put together about ED vs RSSI vs LQI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Energy Detect (&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ED&lt;/STRONG&gt;) means to measure the "energy" in a specific channel (frequency). When we talk about 2.4GHz frequencies, this energy or power measurement is the sum of noise + any 802.15.4 radio transmitting + any other radio working on the same frequency like WiFi (802.11) or Bluetooth. This value is represented in dBm.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key differentiation = energy in the channel at anytime you measure it.&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Received Signal Strength Indication (&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;RSSI&lt;/STRONG&gt;) is the measurement of power present in a received radio signal. This value is represented in dBm.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key differentiation = energy in the channel while receiving a message.&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Link Quality Indicator (&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LQI&lt;/STRONG&gt;) is the quality of the real data received in a signal. This is a value from 0 to 255, being 255 the best quality.&lt;/LI&gt;&lt;/UL&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key differentiation = Quality of the modulated bits in the received signal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Quick example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;The scenario can have multiple devices sending data on the same frequencies. WiFi, BlueTooth, ZigBee, etc. Then two ZigBee nodes communicate between each other.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;ED can be high becuase of the noisy environment.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;RSSI can be similar to ED depending on the exact moment the ED measurement is taken&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;LQI can be low because the collisions OTA would degradate the signal that really means something for the modulation used by ZigBee (802.15.4).&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Hope that helps,&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jul 2015 21:00:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MKW21-RSSI-and-Link-Quality-relation/m-p/446051#M667</guid>
      <dc:creator>antonioconcio</dc:creator>
      <dc:date>2015-07-26T21:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: MKW21 RSSI and Link Quality relation?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MKW21-RSSI-and-Link-Quality-relation/m-p/446052#M668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using our latest MKW2xD release, there might be a quick work-around if you need to obtain per-packet RSSI.&lt;/P&gt;&lt;P&gt;In the PhyISR.c file you can find this function &lt;EM&gt;PhyGetLastRxRssiValue. &lt;/EM&gt;If you have the latest source files, you will notice that the implementation of this function applies some formula and you can do the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) In your app declare: extern uint8_t PhyGetLastRxRssiValue();&lt;/P&gt;&lt;P&gt;2) When a data indication is triggered, call this function and store the return value (remember that this is the absolute value, but the RSSI is negative).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function might not give an exact RSSI but it gets close (since some approximations were necessary).&lt;/P&gt;&lt;P&gt;Remember that there is no per-packet RSSI in 802.15.4 MAC. This function exists in Phy because SMAC uses it and MAC and SMAC have a common Phy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 07:03:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MKW21-RSSI-and-Link-Quality-relation/m-p/446052#M668</guid>
      <dc:creator>andrei_f</dc:creator>
      <dc:date>2015-08-06T07:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: MKW21 RSSI and Link Quality relation?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MKW21-RSSI-and-Link-Quality-relation/m-p/446053#M669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andrei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the response. &lt;/P&gt;&lt;P&gt;I couldn't find the function PhyGetLastRxRssiValue(). Looks like i don't have latest files on Latest files on BeeKit 3.0.2.&lt;/P&gt;&lt;P&gt;Please advice how to get the latest files, I am using MAC 2006&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found something like this in the the phy source code&lt;/P&gt;&lt;P&gt;mpRxParams-&amp;gt;linkQuality = MC1324xDrv_DirectAccessSPIRead((uint8_t) LQI_VALUE); &lt;/P&gt;&lt;P&gt; Can i replace LQI_VALUE(0x25) with RSSI_CCA_CONT(0x26)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 14:38:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MKW21-RSSI-and-Link-Quality-relation/m-p/446053#M669</guid>
      <dc:creator>vmatlapudi</dc:creator>
      <dc:date>2015-08-06T14:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: MKW21 RSSI and Link Quality relation?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MKW21-RSSI-and-Link-Quality-relation/m-p/446054#M670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find latest source code for both MAC and SMAC on the website as standalone installers. The current implementations use KSDK 1.2 (&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS-SDK"&gt;http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS-SDK&lt;/A&gt;) which you might find more attractive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the retrieval of RSSI out of LQI you could try the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint8_t lqi_to_rssi(uint8_t read_lqi)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t tempRSSI = read_lqi;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint8_t&amp;nbsp;&amp;nbsp; comp = &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;MC1324xDrv_&lt;/SPAN&gt;IndirectAccessSPIRead(LQI_OFFSET_COMP);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //if this condition is not met, just return the lqi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(25*(tempRSSI+comp) &amp;gt; 4360)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return read_lqi;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*liniarization&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4360 - 25* RSSI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (4360 - 25* RSSI)*7085 &amp;gt;&amp;gt; 18;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abs(rssi)=---------------&amp;nbsp; &amp;lt;=&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 37&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tempRSSI = ((4360 - 25*(tempRSSI + comp))*7085)&amp;gt;&amp;gt;18;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (uint8_t)(0x000000FF &amp;amp; tempRSSI);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;This function should return a good approximation of the absolute value of the per-packet RSSI. So, if it returns 10, that means -10dBm.&lt;/P&gt;&lt;P&gt;You need to feed this function with &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;mpRxParams-&amp;gt;linkQuality from what I see in your description.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;If you read &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;RSSI_CCA_CONT, you might not find RSSI information correlated with the most recently received packet. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Andrei&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 14:39:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MKW21-RSSI-and-Link-Quality-relation/m-p/446054#M670</guid>
      <dc:creator>andrei_f</dc:creator>
      <dc:date>2015-08-14T14:39:48Z</dc:date>
    </item>
  </channel>
</rss>

