<?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: [Bug Report] JN-SW-4170 build 1840 - eCLD_LevelControlSetLevel(…) calculates incorrect step size</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/Bug-Report-JN-SW-4170-build-1840-eCLD-LevelControlSetLevel/m-p/1210555#M10561</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/182181"&gt;@Dadeos&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you so much for your feedback. We are checking this by our side.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mario&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jan 2021 17:57:15 GMT</pubDate>
    <dc:creator>mario_castaneda</dc:creator>
    <dc:date>2021-01-12T17:57:15Z</dc:date>
    <item>
      <title>[Bug Report] JN-SW-4170 build 1840 - eCLD_LevelControlSetLevel(…) calculates incorrect step size</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Bug-Report-JN-SW-4170-build-1840-eCLD-LevelControlSetLevel/m-p/1209899#M10560</link>
      <description>&lt;P&gt;I have observed that the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;eCLD_LevelControlSetLevel(…)&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;implementation provided in build 1840 of the JN-SW-4170 JN516x ZigBee 3.0 SDK incorrectly calculates the &lt;FONT face="courier new,courier"&gt;psCommon-&amp;gt;sTransition.iStepSize&lt;/FONT&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;This issue may be trivially observed when the "JN-SW-4170/Components/ZCL/Clusters/General/Source/LevelControl.c" sources are compiled with the&amp;nbsp;&lt;/FONT&gt;DEBUG_CLD_LEVEL_CONTROL&lt;/FONT&gt; pre-processor definition specified. An example of the resultant output is provided below:&lt;/P&gt;&lt;P&gt;--------&lt;/P&gt;&lt;P&gt;LC: Set Level=1 Time=3 Level=1 Time=3 Step*100=8433&lt;/P&gt;&lt;P&gt;LC: Updating EP:1 Target=100 Cur=25400 Step=8433 Time=3 OnOff=1&lt;/P&gt;&lt;P&gt;LC: Updating EP:1 Target=100 Cur=25400 Step=8433 Time=2 OnOff=1&lt;/P&gt;&lt;P&gt;LC: Updating EP:1 Target=100 Cur=25400 Step=8433 Time=1 OnOff=1&lt;/P&gt;&lt;P&gt;LC: Updating EP:1 Target=100 Cur=25400 Step=8433 Time=0 OnOff=1&lt;/P&gt;&lt;P&gt;--------&lt;/P&gt;&lt;P&gt;where it can be seen that the "Target" level is 100, the "Cur"rent level is 25400, and the "Step" is 8433, where the step value is subsequently &lt;EM&gt;added&lt;/EM&gt; to the current value within the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;eCLD_LevelControlUpdate(…)&lt;/FONT&gt; function:&lt;/P&gt;&lt;P&gt;--------&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;PUBLIC teZCL_Status eCLD_LevelControlUpdate(uint8 u8SourceEndPointId)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;…&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; psCommon-&amp;gt;sTransition.iCurrentLevel += psCommon-&amp;gt;sTransition.iStepSize;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;…&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;--------&lt;/P&gt;&lt;P&gt;The attached "JN-SW-4170 eCLD_LevelControlSetLevel().patch" addresses this issue by modifying the calculation of &lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;the &lt;FONT face="courier new,courier"&gt;psCommon-&amp;gt;sTransition.iStepSize&lt;/FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;value so that the current value moves &lt;EM&gt;towards&lt;/EM&gt; the target value when the step value is added iteratively.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 22:45:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Bug-Report-JN-SW-4170-build-1840-eCLD-LevelControlSetLevel/m-p/1209899#M10560</guid>
      <dc:creator>Dadeos</dc:creator>
      <dc:date>2021-01-11T22:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug Report] JN-SW-4170 build 1840 - eCLD_LevelControlSetLevel(…) calculates incorrect step size</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Bug-Report-JN-SW-4170-build-1840-eCLD-LevelControlSetLevel/m-p/1210555#M10561</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/182181"&gt;@Dadeos&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you so much for your feedback. We are checking this by our side.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mario&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 17:57:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Bug-Report-JN-SW-4170-build-1840-eCLD-LevelControlSetLevel/m-p/1210555#M10561</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2021-01-12T17:57:15Z</dc:date>
    </item>
  </channel>
</rss>

