Beispiel #1
0
        /// <summary>
        /// Get the correct object for the modem which is in bootloader mode.
        /// </summary>
        /// <param name="Session">The session.  Must not be null.</param>
        /// <returns>null if could not generate modem object</returns>
        public static RFD900APU GetObjectForModem(TSession Session)
        {
            Uploader U = new Uploader();

            U.port = Session.Port;
            Uploader.Board     Board = Uploader.Board.FAILED;
            Uploader.Frequency Freq  = Uploader.Frequency.FAILED;

            U.getDevice(ref Board, ref Freq);
            switch (Board)
            {
            case Uploader.Board.DEVICE_ID_RFD900A:
                return(new RFD900a(Session));

            case Uploader.Board.DEVICE_ID_RFD900P:
                return(new RFD900p(Session));

            case Uploader.Board.DEVICE_ID_RFD900U:
                return(new RFD900u(Session));

            case Uploader.Board.DEVICE_ID_RFD900:
                return(new RFD900old(Session));

            case Uploader.Board.DEVICE_ID_HM_TRP:
                return(new HM_TRP(Session));

            default:
                return(null);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Get the correct object for the modem which is in bootloader mode.
        /// </summary>
        /// <param name="Session">The session.  Must not be null.</param>
        /// <returns>null if could not generate modem object</returns>
        public static RFD900xux GetObjectForModem(TSession Session)
        {
            Session.Port.Write("\r\n");
            Thread.Sleep(200);
            Session.Port.DiscardInBuffer();
            Session.Port.Write("CHIPID\r\n");
            int TokenIndex = Session.WaitForAnyOfTheseTokens(new string[] { "RFD900x", "RFD900ux" }, 200);

            switch (TokenIndex)
            {
            case 0:
                return(new RFD900x(Session));

            case 1:
                return(new RFD900ux(Session));

            default:
                return(null);
            }
        }
Beispiel #3
0
 public RFD900old(TSession Session)
     : base(Session)
 {
 }
Beispiel #4
0
 public RFD900APU(TSession Session)
     : base(Session)
 {
 }
Beispiel #5
0
 public RFD900(TSession Session)
 {
     _Session = Session;
 }
Beispiel #6
0
 public RFD900ux(TSession Session)
     : base(Session)
 {
 }
Beispiel #7
0
 public HM_TRP(TSession Session)
     : base(Session)
 {
 }
Beispiel #8
0
 public HB1060(TSession Session) : base(Session)
 {
 }