<?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 RSSI value of SMAC packet in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309077#M13221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the Radio Utility GUI for &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MRB-KW0x&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab" title="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MRB-KW0x&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;MRB-KW0x: Modular Reference Boards for Kinetis KW0x Family of MCUs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to read the RSSI value of received packets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2014 14:50:35 GMT</pubDate>
    <dc:creator>mircopizzichini</dc:creator>
    <dc:date>2014-05-30T14:50:35Z</dc:date>
    <item>
      <title>RSSI value of SMAC packet</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309077#M13221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the Radio Utility GUI for &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MRB-KW0x&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab" title="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MRB-KW0x&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;MRB-KW0x: Modular Reference Boards for Kinetis KW0x Family of MCUs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to read the RSSI value of received packets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 14:50:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309077#M13221</guid>
      <dc:creator>mircopizzichini</dc:creator>
      <dc:date>2014-05-30T14:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: RSSI value of SMAC packet</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309078#M13222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mircopizzichini, &lt;/P&gt;&lt;P&gt;There are two ways to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If you are running packet handler, you can view the RSSI of each packet received by turning on the PacketLog. &lt;/P&gt;&lt;P&gt;This log contains several information about each packet, one of them is RSSI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To turn on this log (applies only for the Receiver device) refer to chapter "3.2.7 Log Window Control" of &lt;/P&gt;&lt;P&gt;the MKW01 Demonstration Application User's Guide (MKW01DAUG.pdf)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://cache.freescale.com/files/microcontrollers/doc/user_guide/MKW01DAUG.pdf?fasp=1&amp;amp;WT_TYPE=Users%20Guides&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;Parent_nodeId=1391996954113709945753&amp;amp;Parent_pageType=product"&gt;http://cache.freescale.com/files/microcontrollers/doc/user_guide/MKW01DAUG.pdf?fasp=1&amp;amp;WT_TYPE=Users%20Guides&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;Parent_nodeId=1391996954113709945753&amp;amp;Parent_pageType=product&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) You can also view the RSSI on the channel (center frequency as specified in Frf frequency on the common tab) by going to the&lt;/P&gt;&lt;P&gt;Receiver tab and selecting "Receiver" on the Operation Mode window.&lt;/P&gt;&lt;P&gt;You will see the value displayed in the RSSI window under "Value"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to chapter "2.2.3.5 RSSI Display Area" of the MKW01DAUG.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;César&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 21:57:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309078#M13222</guid>
      <dc:creator>CesarM</dc:creator>
      <dc:date>2014-05-30T21:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: RSSI value of SMAC packet</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309079#M13223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Cesar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the first way, and it works.&lt;/P&gt;&lt;P&gt;There's only a problem in reading the RSSI value of first received packet.&lt;/P&gt;&lt;P&gt;Looking the firmware, in PacketHandler.c, function PacketHandler_SendUartRxAck(), for the first packet received the RSSI value is overwritten by the payload (row 500-501).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14017931430754964" jivemacro_uid="_14017931430754964"&gt;
&lt;P&gt;uartMsg[6] = MLMELinkQuality();&lt;/P&gt;
&lt;P&gt;FLib_MemCpy(&amp;amp;(uartMsg[6]), gpSmacRxPacket-&amp;gt;smacPdu.smacPdu+4,gpSmacRxPacket-&amp;gt;u8DataLength);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that has to be &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1401793189818803" jivemacro_uid="_1401793189818803" modifiedtitle="true"&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; line-height: 1.5em;"&gt;FLib_MemCpy(&amp;amp;(uartMsg[7]), gpSmacRxPacket-&amp;gt;smacPdu.smacPdu+4,gpSmacRxPacket-&amp;gt;u8DataLength);&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you'll correct it, &lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 11:02:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309079#M13223</guid>
      <dc:creator>mircopizzichini</dc:creator>
      <dc:date>2014-06-03T11:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: RSSI value of SMAC packet</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309080#M13224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hi mircopizzichini,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks for the observation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;You are correct, in addition we need to change the following couple of lines of code as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FLib_MemCpy(&amp;amp;(uartMsg[7]), gpSmacRxPacket-&amp;gt;smacPdu.smacPdu+4,gpSmacRxPacket-&amp;gt;u8DataLength);&lt;/P&gt;&lt;P&gt;uartMsg[gpSmacRxPacket-&amp;gt;u8DataLength + 3] = 0x7F;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;uartMsg[gpSmacRxPacket-&amp;gt;u8DataLength + 4] = 0x7F;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise the last byte of the message would be overwritten by the 0x7F code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will update this on the next version of the firmware.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;César&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; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 17:42:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309080#M13224</guid>
      <dc:creator>CesarM</dc:creator>
      <dc:date>2014-06-04T17:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re: RSSI value of SMAC packet</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309081#M13225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/CesarM"&gt;CesarM&lt;/A&gt;, building the firmware for my custom board, code stops in mcg.c,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (pll_val &amp;lt; 0x100)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; while(1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because pll_val = 0x11 (in my board source of FLL reference clock is the internal reference clock, so function returns this value). &lt;/P&gt;&lt;P&gt;if I correct &lt;/P&gt;&lt;P&gt;if (pll_val &amp;lt; 0x100)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code is still right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 11:10:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309081#M13225</guid>
      <dc:creator>mircopizzichini</dc:creator>
      <dc:date>2014-06-19T11:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re: RSSI value of SMAC packet</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309082#M13226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mircopizzichini, &lt;/P&gt;&lt;P&gt;The current code for the MKW01 application demos is taking the CLKOUT from the Radio as the source clock for the MCU.&lt;/P&gt;&lt;P&gt;This external clock feeds the MCG and enables the PLL to work in the PEE mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you intend to not use this CKLOUT from the Radio as your MCU clock source?&lt;/P&gt;&lt;P&gt;If this is correct and you are planning to use the internal clock as the refernce for the MCG... you need to change &lt;/P&gt;&lt;P&gt;the MCG mode to FEI (FLL Engaged Internal)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the current code where the application calls "MCG_Setup" is no longer necessary as this line configures the MCG as PEE.&lt;/P&gt;&lt;P&gt;What you want to do is:&lt;/P&gt;&lt;P&gt;1) In sysinit.c&lt;/P&gt;&lt;P&gt;- enable the following line:&lt;/P&gt;&lt;P&gt;#define NO_PLL_INIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will set the MCG to run from internal reference (FEI mode) @ 48MHZ Sysclk. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) In main.c&lt;/P&gt;&lt;P&gt;- Platform_Init()&lt;/P&gt;&lt;P&gt;Comment out this line:&lt;/P&gt;&lt;P&gt;/*Initialize clock based on CLKOUT*/&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCG_Setup();&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answering specifically the question about pll_val=0x11:&lt;/P&gt;&lt;P&gt;This is because the IREFST flag in MCG_S Register is set to one indicating that the source of FLL reference clock is the internal reference clock, &lt;/P&gt;&lt;P&gt;instead of an external ref clock that would set this flag to zero as expected by the application demos and thus pll_val would not fall in the 0x11 case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 18:12:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309082#M13226</guid>
      <dc:creator>CesarM</dc:creator>
      <dc:date>2014-06-19T18:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: RSSI value of SMAC packet</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309083#M13227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Cesar, your explanation is very clear, as I read from data sheet, but I don't understand one thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, I use CKLOUT from the radio, so IREFST is correctly set to one, and pll_init returns 0x11.&lt;/P&gt;&lt;P&gt;But then, since pll_val = 0x11, code stays in the following while(1) and doesn't proceed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14035081510731816 jive_text_macro jive_macro_code" jivemacro_uid="_14035081510731816"&gt;
&lt;P&gt;if (pll_val &amp;lt; 0x100)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; while(1);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the if condition has to be changed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 07:29:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309083#M13227</guid>
      <dc:creator>mircopizzichini</dc:creator>
      <dc:date>2014-06-23T07:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: RSSI value of SMAC packet</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309084#M13228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now it works, maybe it was a temporary debugging problem... Thanks anyway&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 08:56:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309084#M13228</guid>
      <dc:creator>mircopizzichini</dc:creator>
      <dc:date>2014-06-23T08:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: RSSI value of SMAC packet</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309085#M13229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great!&lt;/P&gt;&lt;P&gt;You're welcome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 15:00:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RSSI-value-of-SMAC-packet/m-p/309085#M13229</guid>
      <dc:creator>CesarM</dc:creator>
      <dc:date>2014-07-08T15:00:46Z</dc:date>
    </item>
  </channel>
</rss>

