public ZDO_ACTIVE_EP_REQ(ZToolAddress16 dstAddr, ZToolAddress16 nwkAddrOfInterest) {
    int[] framedata = new int[4];
    framedata[0] = dstAddr.getLsb();
    framedata[1] = dstAddr.getMsb();
    framedata[2] = nwkAddrOfInterest.getLsb();
    framedata[3] = nwkAddrOfInterest.getMsb();

    super.buildPacket(new DoubleByte(ZToolCMD.ZDO_ACTIVE_EP_REQ), framedata);
  }
  public ZDO_ACTIVE_EP_REQ(int nwkAddress) {
    int[] framedata = new int[4];

    framedata[0] = Integers.getByteAsInteger((short) nwkAddress, 0);
    framedata[1] = Integers.getByteAsInteger((short) nwkAddress, 1);
    framedata[2] = framedata[0];
    framedata[3] = framedata[1];

    super.buildPacket(new DoubleByte(ZToolCMD.ZDO_ACTIVE_EP_REQ), framedata);
  }
  public ZDO_MATCH_DESC_REQ(
      ZToolAddress16 num1,
      ZToolAddress16 num2,
      DoubleByte num3,
      int num4,
      DoubleByte[] numArray1,
      int num5,
      DoubleByte[] numArray2,
      int security_suite1) {
    this.DstAddr = num1;
    this.NWKAddrOfInterest = num2;
    this.ProfileID = num3;
    this.NumInClusters = num4;
    this.InClusterList = new DoubleByte[numArray1.length];
    this.InClusterList = numArray1;
    /*if (numArray1.Length > 0x10)
    {
    throw new Exception("Error creating object.");
    }
    this.InClusterList = new ushort[0x10];
    Array.Copy(numArray1, this.InClusterList, numArray1.Length);*/
    this.NumOutClusters = num5;
    this.OutClusterList = new DoubleByte[numArray1.length];
    this.OutClusterList = numArray1;
    /*if (numArray2.Length > 0x10)
    {
    throw new Exception("Error creating object.");
    }
    this.OutClusterList = new ushort[0x10];
    Array.Copy(numArray2, this.OutClusterList, numArray2.Length);*/

    int[] framedata = new int[8 + this.InClusterList.length * 2 + this.OutClusterList.length * 2];
    framedata[0] = this.DstAddr.getLsb();
    framedata[1] = this.DstAddr.getMsb();
    framedata[2] = this.NWKAddrOfInterest.getLsb();
    framedata[3] = this.NWKAddrOfInterest.getMsb();
    framedata[4] = this.ProfileID.getLsb();
    framedata[5] = this.ProfileID.getMsb();
    framedata[6] = this.NumInClusters;
    for (int i = 0; i < this.InClusterList.length; i++) {
      framedata[(i * 2) + 7] = this.InClusterList[i].getLsb();
      framedata[(i * 2) + 8] = this.InClusterList[i].getMsb();
    }
    framedata[((this.InClusterList.length) * 2) + 7] = this.NumOutClusters;
    for (int i = 0; i < this.OutClusterList.length; i++) {
      framedata[(i * 2) + ((this.InClusterList.length) * 2) + 8] = this.OutClusterList[i].getLsb();
      framedata[(i * 2) + ((this.InClusterList.length) * 2) + 9] = this.OutClusterList[i].getMsb();
    }
    super.buildPacket(new DoubleByte(ZToolCMD.ZDO_MATCH_DESC_REQ), framedata);
  }
 /// <name>TI.ZPI2.ZB_READ_CONFIGURATION_RSP</name>
 /// <summary>Constructor</summary>
 public ZB_READ_CONFIGURATION_RSP(int[] framedata) {
   this.Status = framedata[0];
   this.ConfigId = framedata[1];
   this.Len = framedata[2];
   this.Value = new int[framedata.length - 3];
   for (int i = 0; i < this.Value.length; i++) {
     this.Value[i] = framedata[i + 3];
   }
   /*if (buffer1.Length > 0xff)
   {
       throw new Exception("Error creating object.");
   }
   this.Value = new byte[0xff];
   Array.Copy(buffer1, this.Value, buffer1.Length);*/
   super.buildPacket(new DoubleByte(ZToolCMD.ZB_READ_CONFIGURATION_RSP), framedata);
 }
 public ZDO_MGMT_NWK_UPDATE_REQ_SRSP(int[] framedata) {
   this.Status = framedata[0];
   super.buildPacket(new DoubleByte(ZToolCMD.ZDO_MGMT_NWK_UPDATE_REQ_SRSP), framedata);
 }