Class UsbUhlenbrock63120Adapter

  • All Implemented Interfaces:
    PortAdapter, SerialPortAdapter

    public class UsbUhlenbrock63120Adapter
    extends LocoBufferAdapter
    Extend the code in jmri.jmrix.loconet.locobuffer so that it operates correctly with the Uhlenbrock USB-adapter part no 63120. Status: EXPERIMENTAL - as added to title until confirmed by hardware users in 4.21.4 Specs: PC - LocoNet Communication (from Uhlenbrock 63120 datasheet) Communication between PC and LocoNet must be according to the following schema: - Send message over USB and then wait to receive the sent message again, before a new message is sent. Process other messages received during the waiting period. - LACK (Long Acknowledge Message) treatment: If a message can be followed by a LACK (see LocoNet documentation, for messages which can be followed by a LACK). A flag must be set by COM Port after the send and receive procedure. If this flag is set and the next message received is a LACK message then it must be processed because it is a response to the sent message. If the next message received is not a LACK then the set flag is reset. This ensures that a LACK is not assigned to a wrong message. - Evaluate and process Received messages.