SMSLib 3.5.3

org.smslib.modem.athandler
Class ATHandler_SonyEricsson

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
Direct Known Subclasses:
ATHandler_SonyEricsson_GC89

public class ATHandler_SonyEricsson
extends ATHandler


Constructor Summary
ATHandler_SonyEricsson(ModemGateway myGateway)
           
 
Method Summary
 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, reset, 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

public ATHandler_SonyEricsson(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
Throws:
TimeoutException
GatewayException
java.io.IOException
java.lang.InterruptedException

SMSLib 3.5.3

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