<?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のトピックHow can I turn off wireless module for current consumption in jn5168?</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/How-can-I-turn-off-wireless-module-for-current-consumption-in/m-p/617928#M1922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &amp;nbsp;&lt;/P&gt;&lt;P&gt;I use JN5168 wireless module and I write codes inside it. &amp;nbsp;I read data from an accelometer &amp;nbsp;in every 100ms and I send data via wireless in every 60sec. &amp;nbsp;My wireless communication spends 2-3 sec. for current consumpiton I want to turn off radio while 50 sec. And I want to turn on before sending.&lt;/P&gt;&lt;P&gt;I write my code on AN1180_154_HomeSensorEnd .&lt;/P&gt;&lt;P&gt;16Mhz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I use below code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if ( wirelessCommInProgress == FALSE &amp;amp;&amp;amp; PowerChangeTime==TRUE ){&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if ( Power== ON ){&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;vAppApiRestoreMacSettings();&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}else {&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;vAppApiSaveMacSettings();&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;vAHI_ProtocolPower(FALSE);&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;After &amp;nbsp;ProtocolPower(FALSE) funciton current &amp;nbsp;decreases 1mA ( 3.5mA to 2.5mA) and after RestoreMacSettings I cant send datas any more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Is there any trick for using this function ?&lt;/P&gt;&lt;P&gt;2. How can I turn off and turn on radio &amp;nbsp;(not going to sleep)&lt;/P&gt;&lt;P&gt;3. Is there any apNote or demo code for JN5168 module &amp;nbsp;power consumption ?&lt;/P&gt;&lt;P&gt;4. While co-ordinator is off. my end device always scanning for co-ordinator and spends 17mA. after protocolPower(FALSE) &amp;nbsp;current reduces to 16mA.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Nov 2016 09:10:24 GMT</pubDate>
    <dc:creator>epamuk</dc:creator>
    <dc:date>2016-11-23T09:10:24Z</dc:date>
    <item>
      <title>How can I turn off wireless module for current consumption in jn5168?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-can-I-turn-off-wireless-module-for-current-consumption-in/m-p/617928#M1922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &amp;nbsp;&lt;/P&gt;&lt;P&gt;I use JN5168 wireless module and I write codes inside it. &amp;nbsp;I read data from an accelometer &amp;nbsp;in every 100ms and I send data via wireless in every 60sec. &amp;nbsp;My wireless communication spends 2-3 sec. for current consumpiton I want to turn off radio while 50 sec. And I want to turn on before sending.&lt;/P&gt;&lt;P&gt;I write my code on AN1180_154_HomeSensorEnd .&lt;/P&gt;&lt;P&gt;16Mhz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I use below code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if ( wirelessCommInProgress == FALSE &amp;amp;&amp;amp; PowerChangeTime==TRUE ){&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if ( Power== ON ){&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;vAppApiRestoreMacSettings();&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}else {&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;vAppApiSaveMacSettings();&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;vAHI_ProtocolPower(FALSE);&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;After &amp;nbsp;ProtocolPower(FALSE) funciton current &amp;nbsp;decreases 1mA ( 3.5mA to 2.5mA) and after RestoreMacSettings I cant send datas any more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Is there any trick for using this function ?&lt;/P&gt;&lt;P&gt;2. How can I turn off and turn on radio &amp;nbsp;(not going to sleep)&lt;/P&gt;&lt;P&gt;3. Is there any apNote or demo code for JN5168 module &amp;nbsp;power consumption ?&lt;/P&gt;&lt;P&gt;4. While co-ordinator is off. my end device always scanning for co-ordinator and spends 17mA. after protocolPower(FALSE) &amp;nbsp;current reduces to 16mA.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 09:10:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-can-I-turn-off-wireless-module-for-current-consumption-in/m-p/617928#M1922</guid>
      <dc:creator>epamuk</dc:creator>
      <dc:date>2016-11-23T09:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I turn off wireless module for current consumption in jn5168?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-can-I-turn-off-wireless-module-for-current-consumption-in/m-p/617929#M1923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erdem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. To turn on/off the radio, the above functions are correct (vAHI_ProtocolPower, vAppApiSaveMacSettings, vAppApiRestoreMacSettings); guidance on how to use these can be found in the JN-UG-3087 user guide, as well as, the example code attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. The attached example code is based on the AN1180_154_HomeSensor-Demo Application; it sends data every 2 seconds and turns off the radio for around 1.5s between sending data. (Tested using the JN-SW-4163 SDK v1307).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. This could be due to calling the function vAHI_ProtocolPower(FALSE) while the 802.15.4 MAC layer is active which can cause incorrect behaviour in the device (see function description in the JN-UG-3087 user guide). &amp;nbsp;In the attached application, a change in current consumption of about 15mA was observed from when the end device is in doze and the radio off (~8mA) to when the radio is on and the end device&amp;nbsp;is not in doze(~23mA).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. "after RestoreMacSettings I cant send data any more"&lt;BR /&gt;More application context may need to be restored, for example, in the AN1180_154_HomeSensor-Demo Application attached, the end device needs to re-synchronise with the coordinator after the radio is turned back on, in order to continue sending data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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>Fri, 20 Jan 2017 21:09:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-can-I-turn-off-wireless-module-for-current-consumption-in/m-p/617929#M1923</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2017-01-20T21:09:26Z</dc:date>
    </item>
  </channel>
</rss>

