serialPort
Class Utils

java.lang.Object
  extended by serialPort.Utils

public final class Utils
extends java.lang.Object


Method Summary
 void close()
           
 void dial(java.lang.String number, DialBean db)
           
 void echoResult()
           
 void englishResultCodes()
           
 CommPortOwnershipBean getCommPortOwnershipAdapter()
           
static Utils getSerialPortUtils(SerialPortBean spb)
           
 void listPorts()
           
 void loud()
           
static void main(java.lang.String[] args)
           
 void numericResultCodes()
           
 void printLightStatus()
           
 void resetModem()
           
 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()
           
 
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 Utils getSerialPortUtils(SerialPortBean spb)

dial

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

startPrintThread

public void startPrintThread()
                      throws java.io.IOException
Throws:
java.io.IOException

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 -

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()

main

public static void main(java.lang.String[] args)

getCommPortOwnershipAdapter

public CommPortOwnershipBean getCommPortOwnershipAdapter()