Beispiel #1
0
        public string GetCMD()
        {
            string strTemp = string.Format("$--IPM,{0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},{12},{13},{14},{15},{16},{17}",
                                           LocalNetIP,
                                           DataSvrPort,
                                           ConfigSvrPort,
                                           LocalNetMask,
                                           LocalNetGateway,
                                           LocalNetMAC,
                                           DestIP1,
                                           DestPort1,
                                           LocalPort1,
                                           DestIP2,
                                           DestPort2,
                                           LocalPort2,
                                           DestIP3,
                                           DestPort3,
                                           LocalPort3,
                                           DestIP4,
                                           DestPort4,
                                           LocalPort4
                                           );

            strTemp += CommHelp.Get0xHH(strTemp);
            return(strTemp);
        }
Beispiel #2
0
 public string GetCMD()
 {
     try
     {
         string strCMD = string.Format("$--SPO,{0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},{12},{13}",
                                       BaseID,
                                       SelectChannel,
                                       RecvSingalStrengthVDL,
                                       FisrtSlotNumForFirstRecvMsg,
                                       TimeOfMsgArrival,
                                       SingalToNoiseRatio,
                                       PreFrameCHLoad,
                                       NumOfBadCRC,
                                       ForecastCHLoad,
                                       AverageNoiseLevel,
                                       RecvSingalStrength,
                                       ProVSISens4VDM,
                                       ProVSISens4VDO,
                                       ProFSRSens);
         strCMD += CommHelp.Get0xHH(strCMD);
         return(strCMD);
     }
     catch (Exception)
     {
         return("");
     }
 }
Beispiel #3
0
        public string GetSidCmd()
        {
            string sid = string.Format("$--SID,{0},{1},{2},{3}",
                                       UniqueID_Cur,
                                       UniqueID_New,
                                       MMSI_Cur,
                                       MMSI_New);

            sid += CommHelp.Get0xHH(sid);
            return(sid);
        }
Beispiel #4
0
        public string GetCMD()
        {
            string strCMD = string.Format("$--CAB,{0},{1},{2},{3}",
                                          Tx_A,
                                          Tx_B,
                                          Reboot,
                                          Reset);

            strCMD += CommHelp.Get0xHH(strCMD);
            return(strCMD);
        }
Beispiel #5
0
        public string GetCMD()
        {
            string strCMD = string.Format("$--BCE,{0},{1},{2},{3},{4}",
                                          BaseID,
                                          RATDMA,
                                          UTCSoure,
                                          ADSInterval,
                                          BlockControl);

            strCMD += CommHelp.Get0xHH(strCMD);
            return(strCMD);
        }
Beispiel #6
0
        internal string GetCMD()
        {
            string strTemp = string.Format("$--ECB,{0},{1},{2},{3},{4},{5},{6},{7},{8},{9}",
                                           BaseID,
                                           MsgType,
                                           ChAStartTime,
                                           ChAStartSlot,
                                           ChASlotInterval,
                                           ChASlotCounts,
                                           ChBStartTime,
                                           ChBStartSlot,
                                           ChBSlotInterval,
                                           ChBSlotCounts
                                           );

            strTemp += CommHelp.Get0xHH(strTemp);
            return(strTemp);
        }
Beispiel #7
0
 public static string GetCMD(int Seq, string Channel, List <MsgDLM> listTemp)
 {
     try
     {
         string strCMD = string.Format("$--DLM,{0},{1}", Seq, Channel);
         for (int i = 0; i < listTemp.Count; i++)
         {
             strCMD += "," + listTemp[i].Owner;
             strCMD += "," + listTemp[i].StartSlot;
             strCMD += "," + listTemp[i].SlotCounts;
             strCMD += "," + listTemp[i].Timeout;
             strCMD += "," + listTemp[i].SlotIncrement;
         }
         strCMD += CommHelp.Get0xHH(strCMD);
         return(strCMD);
     }
     catch (Exception)
     {
         return("");
     }
 }
Beispiel #8
0
 public string GetCMD_ATN()
 {
     try
     {
         string strCMD = string.Format("$--ATN,{0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},{12},{13},{14},{15},{16},{17},{18},{19},{20},{21},{22},{23}",
                                       Seq,
                                       Enable,
                                       StartSlotA,
                                       SendIntervalA,
                                       //StartSlotB,
                                       //SendIntervalB,
                                       MMSI,
                                       Type,
                                       Name,
                                       PosAccuracy,
                                       Latitude,
                                       NS,
                                       Longitude,
                                       EW,
                                       Size_A,
                                       Size_B,
                                       Size_C,
                                       Size_D,
                                       PosDeviceType,
                                       TimeStamp,
                                       OffPos_Indicator,
                                       AtoNStatus,
                                       RAIM_Flag,
                                       Virtual_AtoN_Flag,
                                       Assigned_Model_Flag,
                                       Spare
                                       );
         strCMD += CommHelp.Get0xHH(strCMD);
         return(strCMD);
     }
     catch (Exception)
     {
         return("");
     }
 }
Beispiel #9
0
        public string GetBCFCmd()
        {
            string bcf = string.Format("$--BCF,{0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},{12},{13},{14},{15}",
                                       MMSI,
                                       PositionSource,
                                       Latitude,
                                       NS,
                                       Longitude,
                                       EW,
                                       PositionAccuracy,
                                       RxA,
                                       RxB,
                                       TxA,
                                       TxB,
                                       PowerLevelA,
                                       PowerLevelB,
                                       MsgRetries,
                                       MsgRepeatIndicator,
                                       BaseTalkerID
                                       );

            bcf += CommHelp.Get0xHH(bcf);
            return(bcf);
        }