protected Packet getErrorPacket(int error, int head){
        Packet packet = new Packet();
        packet.addHeader((byte)head, (byte)0x2E);
        packet.addPacketHead((byte)0x00, (byte)error);
        for (int i = 0; i<95; i++)
            packet.addByte((byte)0xCC);
        return packet;
    }