Bug #164

dimmable light, step command

Added by Han Alink almost 6 years ago. Updated almost 6 years ago.

Status:Closed Start date:10/27/2012
Priority:Normal Due date:
Assignee:Stefano Lenzi % Done:


Category:zigbee.zcl.library Spent time: -
Target version:org.aaloa.zb4osgi.zigbee.zcl.library-1.X
Has a patch:No Has license agreement signed:No


Trying to step with the values 0 (=up), 20 (stepsize) and 100 (transition time 10 seconds) leads to an error:

==== Action:: LevelControl.step ====
[0, 20, 100]
----------- result ----------
java.lang.ArrayIndexOutOfBoundsException: 3
at it.cnr.isti.primitvetypes.util.Integers.writeShort(Integers.java:273)
at it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer.append_short(DefaultSerializer.java:155)
at it.cnr.isti.zigbee.zcl.library.impl.general.level_control.StepCommand.getPayload(StepCommand.java:62)
at it.cnr.isti.zigbee.zcl.library.impl.core.ZCLFrame.<init>(ZCLFrame.java:52)
at it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase.invoke(ZCLClusterBase.java:99)
at it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase.invoke(ZCLClusterBase.java:95)
at it.cnr.isti.zigbee.zcl.library.impl.general.LevelControlCluster.step(LevelControlCluster.java:140)
at it.cnr.isti.zigbee.ha.cluster.impl.LevelControlImpl.step(LevelControlImpl.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

Associated revisions

Revision 573
Added by Stefano Lenzi almost 6 years ago

Add Unit test for step Command
Using ByteArrayStreamSerializer instead of DefaultSerializer ( fixes #164)


#1 Updated by Stefano Lenzi almost 6 years ago

  • Category set to zigbee.zcl.library
  • Status changed from New to Resolved
  • Assignee set to Stefano Lenzi
  • Target version set to org.aaloa.zb4osgi.zigbee.zcl.library-1.X

it should be fixed with r573, if it is please close the ticket

#2 Updated by Stefano Lenzi almost 6 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100

Applied in changeset r573.

Also available in: Atom PDF