Products Applications Support Partners News About Digi Where to Buy
   
 
 
Products

device servers
terminal servers
console management
USB
async
 
 
Class portio.SerialPort

All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class portio.SerialPort

java.lang.Object
   |
   +----portio.Port
           |
           +----portio.SerialPort

public class SerialPort
extends Port
This class provides basic serial port functionality using an associated PortDriver and PortPrivate object to implement the actual hardware interface.
Version:
$Revision: 2.1 $ ($Date: 1997/02/19 18:00:00 $)

Constructor Index

 o SerialPort(PortDriver, int)
Creates a new serial port.

Method Index

 o getParams()
Gets params (baud rate, character size, flow control, etc) for the port.
 o sendBreak(int)
Sends a break at the port.
 o setParams(SerialPortParams)
Sets parameters for the port.
 o setStatus(SerialPortStatus)
Sets serial status lines (modem signals RTS and DTR) for the port.

Constructors

 o SerialPort
  public SerialPort(PortDriver driver,
                    int number) throws PortIOException
Creates a new serial port. A prior call directly into the driver instance can be used to determine how many serial ports are available to select a valid port number.
Parameters:
driver - port driver providing the hardware interface
number - number of the serial port to open (zero is first)
Throws: PortIOException
problems occurred during open processing

Methods

 o setParams
  public void setParams(SerialPortParams params) throws PortIOException
Sets parameters for the port.
Parameters:
params - SerialPortParams object
Throws: PortIOException
if a problem occurs setting the requested parameters
See Also:
SerialPortParams
 o getParams
  public SerialPortParams getParams() throws PortIOException
Gets params (baud rate, character size, flow control, etc) for the port.
Returns:
SerialPortParams with current settings
Throws: PortIOException
if a problem occurs with the fetch
See Also:
SerialPortParams
 o setStatus
  public void setStatus(SerialPortStatus status) throws PortIOException
Sets serial status lines (modem signals RTS and DTR) for the port.
Parameters:
status - SerialPortStatus object
Throws: PortIOException
if a problem occurs
See Also:
SerialPortStatus
 o sendBreak
  public void sendBreak(int duration) throws PortIOException
Sends a break at the port.
Parameters:
duration - zero yields a standard 250ms break, non-zero values specify custom break durations in ms (if supported, else the standard break is substituted).
Throws: PortIOException
if a problem/event occurs during the break

All Packages  Class Hierarchy  This Package  Previous  Next  Index

products | applications | support | partners | news | about Digi | where to buy | contact us | site map

Copyright © 1996-2002 Digi International. All rights reserved.



Contact Us Site Map Product Selector Digi Homepage