serialPort
Class SerialPortBeanUtils

java.lang.Object
  extended by serialPort.SerialPortBeanUtils

public final class SerialPortBeanUtils
extends java.lang.Object


Method Summary
 void close()
           
 void dial(java.lang.String number, DialBean db)
           
 void echoResult()
           
 void englishResultCodes()
           
 CommPortOwnershipBean getCommPortOwnershipAdapter()
           
static SerialPortBeanUtils getSerialPortUtils(SerialPortBean spb)
           
 void listPorts()
           
 void loud()
           
static void main(java.lang.String[] args)
           
 void numericResultCodes()
           
 void printLightStatus()
           
 void resetModem()
           
 void sendLine(java.lang.String line)
          Sends a line (with a carrage return) to the serial port
 void sendString(java.lang.String s)
           
 void setDtmfSpeed(int s11)
          The s11 register should be between 65 and 255 ms.
 void setLocalEchoOn()
           
 void setNumberOfRingsBeforeAnswer(int nor)
           
 void setUp()
           
 void startPrintThread()
          This prints the return from the serial port.
static void testSerialPortBeanUtils()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

printLightStatus

public void printLightStatus()

getSerialPortUtils

public static SerialPortBeanUtils getSerialPortUtils(SerialPortBean spb)
                                              throws UnsupportedCommOperationException,
                                                     NoSuchPortException,
                                                     java.io.IOException,
                                                     PortInUseException
Throws:
UnsupportedCommOperationException
NoSuchPortException
java.io.IOException
PortInUseException

dial

public void dial(java.lang.String number,
                 DialBean db)

startPrintThread

public void startPrintThread()
                      throws java.io.IOException
This prints the return from the serial port.

Throws:
java.io.IOException - if unable to get an input stream from the serial port

setUp

public void setUp()

loud

public void loud()

resetModem

public void resetModem()

setLocalEchoOn

public void setLocalEchoOn()

setDtmfSpeed

public void setDtmfSpeed(int s11)
The s11 register should be between 65 and 255 ms. It is the rate of dial. Default is 95 ms.

Parameters:
s11 - in ms (65..255) default 95.

echoResult

public void echoResult()

englishResultCodes

public void englishResultCodes()

setNumberOfRingsBeforeAnswer

public void setNumberOfRingsBeforeAnswer(int nor)

numericResultCodes

public void numericResultCodes()

sendString

public void sendString(java.lang.String s)
                throws java.io.IOException
Throws:
java.io.IOException

listPorts

public void listPorts()

close

public void close()

getCommPortOwnershipAdapter

public CommPortOwnershipBean getCommPortOwnershipAdapter()

testSerialPortBeanUtils

public static void testSerialPortBeanUtils()
                                    throws UnsupportedCommOperationException,
                                           java.io.IOException,
                                           NoSuchPortException,
                                           PortInUseException
Throws:
UnsupportedCommOperationException
java.io.IOException
NoSuchPortException
PortInUseException

sendLine

public void sendLine(java.lang.String line)
Sends a line (with a carrage return) to the serial port

Parameters:
line - a string to send.

main

public static void main(java.lang.String[] args)
                 throws UnsupportedCommOperationException,
                        java.io.IOException,
                        NoSuchPortException,
                        PortInUseException
Throws:
UnsupportedCommOperationException
java.io.IOException
NoSuchPortException
PortInUseException