Beispiel #1
0
        public byte[]  UpdateEndRequest(string TrackerID = "")
        {
            TrackerID = "4562402706";
            List <byte> RspnStream       = new List <byte>();
            string      DevIDCombination = "";

            RspnStream.Add(0x83);
            byte[] Lnth = CommonOperation.StringToByteArray(Convert.ToString(ClntDevIDLth));
            RspnStream.Add(Lnth[0]);

            byte[] IMEIArr = CommonOperation.StringToByteArray(TrackerID);

            foreach (byte bte in IMEIArr)
            {
                RspnStream.Add(bte);
            }

            RspnStream.Add(0x01);
            RspnStream.Add(0x01);

            RspnStream.Add(0x01);
            RspnStream.Add(0x06);
            //Sequence
            RspnStream.Add(0x00);
            RspnStream.Add(0x00);

            return(new Byte[2]);
        }
Beispiel #2
0
        public byte[]  TrackOnDemand(string TrackerID = "")
        {
            TrackerID = "4562402706";
            List <byte> RspnStream = new List <byte>();

            RspnStream.Add(0x83);
            // RspnStream.Add(0x05);
            byte[] Lnth = CommonOperation.StringToByteArray(Convert.ToString(ClntDevIDLth));
            RspnStream.Add(Lnth[0]);

            byte[] IMEIArr = CommonOperation.StringToByteArray(TrackerID);

            foreach (byte bte in IMEIArr)
            {
                RspnStream.Add(bte);
            }


            //Device ID
            //RspnStream.Add(0x45);
            //RspnStream.Add(0x62);
            //RspnStream.Add(0x40);
            //RspnStream.Add(0x27);
            //RspnStream.Add(0x06);

            //
            RspnStream.Add(0x01);
            RspnStream.Add(0x01);
            RspnStream.Add(0x01);

            //
            RspnStream.Add(0x07);

            //
            RspnStream.Add(0x00);
            RspnStream.Add(0x00);

            //
            RspnStream.Add(0x0A);
            //Data 8
            RspnStream.Add(0x00);
            //Data 16
            RspnStream.Add(0x00);
            RspnStream.Add(0x00);

            //Data32
            RspnStream.Add(0x00);
            RspnStream.Add(0x00);
            RspnStream.Add(0x00);
            RspnStream.Add(0x00);

            return(RspnStream.ToArray());
        }