Class Em18RfidProtocol


  • public class Em18RfidProtocol
    extends RfidProtocol
    Common routines to extract the Tag information and validate checksum for implementations that use the EM-18 protocol.
    This file is part of JMRI.

    JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

    JMRI 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.

    Since:
    4.1.2
    • Constructor Detail

      • Em18RfidProtocol

        public Em18RfidProtocol()
        Constructor for EM-18 RFID Protocol. Used when a single reader is connected directly to a port, not via a concentrator.
      • Em18RfidProtocol

        public Em18RfidProtocol​(char concentratorFirst,
                                char concentratorLast,
                                int portPosition)
        Constructor for EM-18 RFID Protocol. Supports the use of concentrators where a character range is used to determine the specific reader port.
        Parameters:
        concentratorFirst - character representing first concentrator port
        concentratorLast - character representing last concentrator port
        portPosition - position of port character in reply string