Package gda.device

Interface SerialReaderWriter


public interface SerialReaderWriter
Class to communicate with a Serial device
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    Handles commands which do not need a reply.
    Sends a command to the hardware and reads back a data reply.
  • Method Details

    • close

      void close()
    • handleCommand

      void handleCommand(String command)
      Handles commands which do not need a reply.
      Parameters:
      command - the command to send
    • sendCommandAndGetReply

      String sendCommandAndGetReply(String command) throws DeviceException
      Sends a command to the hardware and reads back a data reply.
      Parameters:
      command - the command sent to the hardware
      Returns:
      the reply
      Throws:
      DeviceException