//----------------------------------------------------------------------- // // Copyright © 2012 Nils Hammar. All rights reserved. // //----------------------------------------------------------------------- /* * Software to access vehicle information via the OBD-II connector. * * Copyright © 2012 Nils Hammar * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Alternative licensing is possible, see the licensing document. * * The above text may not be removed or modified. */ namespace Protocol { using global::SharedObjects; using global::SharedObjects.GUI; using global::SharedObjects.Protocol; /// /// Protocol handler for AGV4000 and similar. /// public class Protocol_Serial_AT_AGV : Protocol_Serial_AT, IProtocolHandler, IMsgCallback { /// /// Initializes a new instance of the class. /// /// Logging interface. /// Current protocol. /// Current message handler instance. /// Source address. /// Checksum flag. /// Serial port handler. /// Callback interface for enabling the buttons when a protocol is fully initialized. public Protocol_Serial_AT_AGV( ILogging iLogging, Protocols protocol, MessageHandler messageHandler, uint srcAddr, bool checksum, SerialPortHandler serialPortHandler, IEnableButtons iEnableButtons) : base(iLogging, protocol, messageHandler, srcAddr, checksum, serialPortHandler, iEnableButtons) { this.sendExpectSequence = new string [] { "ATZ", ">", "ATH1", "OK", "01 00", "{XN}", "ATN", "{XP}" }; /* "ATZ", ">", "ATTP0", "OK", "ATH1", "OK", "01 00", "{XN}", "ATDPN", "{XP}" */ } } }