SMSLib 3.5.3

org.smslib.modem.athandler
Class ATHandler_SonyEricsson_GC89

java.lang.Object
  extended by org.smslib.modem.athandler.AATHandler
      extended by org.smslib.modem.athandler.ATHandler
          extended by org.smslib.modem.athandler.ATHandler_SonyEricsson
              extended by org.smslib.modem.athandler.ATHandler_SonyEricsson_GC89

public class ATHandler_SonyEricsson_GC89
extends ATHandler_SonyEricsson


Constructor Summary
ATHandler_SonyEricsson_GC89(ModemGateway myGateway)
           
 
Method Summary
 void reset()
           
 boolean setPduProtocol()
          Many SonyEricssons return different responses to CMGF command.
 
Methods inherited from class org.smslib.modem.athandler.ATHandler
deleteMessage, done, echoOff, enterPin, formatUSSDResponse, getBatteryLevel, getGprsStatus, getImsi, getIndications, getManufacturer, getMessageByIndex, getModel, getModemDriver, getNetworkOperator, getNetworkRegistration, getSerialNo, getSignalLevel, getSimStatus, getSwVersion, init, isAlive, keepLinkOpen, listMessages, processUnsolicitedEvents, readPhonebook, readPhonebookLocations, readStorageLocations, send, sendCustomATCommand, sendMessage, sendUSSDCommand, sendUSSDCommand, sendUSSDRequest, setIndications, setTextProtocol, setVerboseErrors, switchStorageLocation, switchToCmdMode, sync
 
Methods inherited from class org.smslib.modem.athandler.AATHandler
addStorageLocation, findMatchingTerminator, getDescription, getGateway, getStorageLocations, getTerminators, getUnsolicitedResponse, getUnsolicitedResponses, isUnsolicitedResponse, isUnsolicitedResponse, load, matchesTerminator, setStorageLocations
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ATHandler_SonyEricsson_GC89

public ATHandler_SonyEricsson_GC89(ModemGateway myGateway)
Method Detail

setPduProtocol

public boolean setPduProtocol()
                       throws TimeoutException,
                              GatewayException,
                              java.io.IOException,
                              java.lang.InterruptedException
Many SonyEricssons return different responses to CMGF command. Instead of a plain OK, they return "+CMGF=0\rOK\r", independently of the ECHO setting. This code bypasses the standard SMSLib checking routines and performs the check itself.

Overrides:
setPduProtocol in class ATHandler_SonyEricsson
Throws:
TimeoutException
GatewayException
java.io.IOException
java.lang.InterruptedException

reset

public void reset()
           throws TimeoutException,
                  GatewayException,
                  java.io.IOException,
                  java.lang.InterruptedException
Overrides:
reset in class ATHandler
Throws:
TimeoutException
GatewayException
java.io.IOException
java.lang.InterruptedException

SMSLib 3.5.3

(c) 2002-2011, http://smslib.org