Class UsbDcs240Adapter

    • Method Detail

      • setSerialPort

        protected void setSerialPort​(purejavacomm.SerialPort activeSerialPort)
                              throws purejavacomm.UnsupportedCommOperationException
        Sets up the serial port characteristics. Always uses flow control, which is not considered a user-settable option. Sets the DCS240 USB interface for the appropriate operating mode, based on the selected "command station type".
        Overrides:
        setSerialPort in class LocoBufferAdapter
        Parameters:
        activeSerialPort - the port to be configured
        Throws:
        purejavacomm.UnsupportedCommOperationException - Usually if the hardware isn't present or capable
      • configure

        public void configure()
        Set up all of the other objects to operate with a DCS240 USB interface connected to this port. This overrides the version in loconet.locobuffer, but it has to duplicate much of the functionality there, so the code is basically copied.
        Specified by:
        configure in interface PortAdapter
        Specified by:
        configure in interface SerialPortAdapter
        Overrides:
        configure in class LocoBufferAdapter
      • commandStationOptions

        public java.lang.String[] commandStationOptions()
        The DCS240 USB interface can be used as a "Standalone Programmer", or with various LocoNet command stations, or as an interface to a "Standalone LocoNet". Provide those options.
        Returns:
        an array of strings containing the various command station names and name(s) of modes without command stations