com.esf.device.modem.service
Interface IBasicCellularModemService

All Known Subinterfaces:
I3gModemService, ICellularModemService, IEvdoModemService, IF5521gwModemService, IMC572xModemService, IModemService, ISerialCellularModemService, ISierraEvdoModemService, ISierraHsdpaModemService, IUsbCellularModemService
All Known Implementing Classes:
CellularModem, UsbModem

public interface IBasicCellularModemService


Field Summary
static java.lang.String SERVICE_NAME
          service name
 
Method Summary
 void allowConnect(boolean status)
          Allows modem to establish PPP connection if status is true.
 void disable()
          disables modem
 void enable()
          enables modem
 java.lang.String getManufacturer()
          Returns modem's manufacturer identification
 java.lang.String getModel()
          Reports modem's model
 java.lang.String[] getRevisionID()
          Reports modem's revision identification
 java.lang.String getSerialNumber()
          Answers modem's serial number
 boolean isConnectAllowed()
          Reports if connection is allowed by the application.
 boolean isEnabled()
          Answers if cellular modem is enabled by application
default value is set to true
 boolean isOn()
          Answers if modem is on
 

Field Detail

SERVICE_NAME

static final java.lang.String SERVICE_NAME
service name

Method Detail

getModel

java.lang.String getModel()
Reports modem's model

Returns:
model, null if not known

getManufacturer

java.lang.String getManufacturer()
Returns modem's manufacturer identification

Returns:
manufacturer, null if not known

getSerialNumber

java.lang.String getSerialNumber()
Answers modem's serial number

Returns:
ESN, null if not known

getRevisionID

java.lang.String[] getRevisionID()
Reports modem's revision identification

Returns:
array of revision ID's, null if not known

isOn

boolean isOn()
Answers if modem is on

Returns:
true - modem is on
false - modem is off

enable

void enable()
enables modem


disable

void disable()
disables modem


isEnabled

boolean isEnabled()
Answers if cellular modem is enabled by application
default value is set to true

Returns:
true - modem is enabled
false - modem is disabled

allowConnect

void allowConnect(boolean status)
Allows modem to establish PPP connection if status is true. Otherwise modem is not allowed to establish connection and appropriate exception is generated.

Parameters:
status - - enable/disable as boolean

isConnectAllowed

boolean isConnectAllowed()
Reports if connection is allowed by the application.

Returns:
boolean