|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IModemService
Defines generic modem service
Field Summary | |
---|---|
static java.lang.String |
NEW_CONFIGURATION_TOPIC
Deprecated. Modem driver publishes EventAdmin Event on this topic after it receives and processes new configuration event from configuration manager. This event to be picked up by application (business logic) code to make a decision whether to restart modem connection. |
static java.lang.String |
SERVICE_NAME
service name of this interface for the bundle activator (com.esf.device.modem.service.IModemService) |
Method Summary | |
---|---|
void |
applyNewConfiguration(java.util.Properties prop)
service name of this interface for the bundle activator (com.arcom.zywan.device.modem.service.IModemService) |
void |
connect()
Establishes connection with service provider by starting PPP session |
void |
disconnect()
Terminates connection with service provider by stopping PPP session |
long |
getCallRxCounter()
Reports number of bytes received during a call |
long |
getCallTxCounter()
Reports number of bytes tarnsmitted during a call |
java.lang.String |
getIPaddress()
Reports IP address assigned to cellular interface |
java.lang.String |
getNetworkTechnology()
Reports network technology (e.g. |
java.lang.String |
getPeerIPaddress()
Reports IP address of the peer |
java.lang.String |
getPowerMode()
Answers modem's power mode. |
java.lang.String |
getServiceType()
Reports Service Type |
int |
getSignalStrength()
Reports signal strength in dBm |
boolean |
isConfigured()
States whether a configuration has been supplied for this modem |
boolean |
isConnected()
Answers if connection to the service provider is established |
boolean |
isConnecting()
Reports if modem connection is in progress |
boolean |
isRoaming()
Reports roaming status |
ModemConfiguration |
provideConfiguration()
Provides current modem configuration |
void |
reset()
resets the modem and tries to restore the state of the modem driver. |
void |
sendSms(java.lang.String recipientNumber,
java.lang.String smscNumber,
java.lang.String message)
Sends an SMS to the specified recipient via the specified provider SMSC number |
void |
turnOff()
Turns modem off |
void |
turnOn()
Turns modem on |
Methods inherited from interface com.esf.device.modem.service.IUsbModemService |
---|
getProductID, getUsbPortAddress, getVendorID |
Methods inherited from interface com.esf.device.modem.service.ICellularModemService |
---|
getConnectionInfo, isEnabledInConfiguration |
Methods inherited from interface com.esf.device.modem.service.IBasicCellularModemService |
---|
allowConnect, disable, enable, getManufacturer, getModel, getRevisionID, getSerialNumber, isConnectAllowed, isEnabled, isOn |
Field Detail |
---|
static final java.lang.String SERVICE_NAME
static final java.lang.String NEW_CONFIGURATION_TOPIC
Method Detail |
---|
ModemConfiguration provideConfiguration() throws java.lang.Exception
provideConfiguration
in interface ICellularModemService
ModemConfiguration
java.lang.Exception
void applyNewConfiguration(java.util.Properties prop) throws java.lang.Exception
ICellularModemService
applyNewConfiguration
in interface ICellularModemService
java.lang.Exception
java.lang.String getNetworkTechnology()
getNetworkTechnology
in interface ICellularModemService
String
void turnOn() throws java.lang.Exception
turnOn
in interface ICellularModemService
java.lang.Exception
void turnOff() throws java.lang.Exception
turnOff
in interface ICellularModemService
java.lang.Exception
void reset() throws java.lang.Exception
reset
in interface ICellularModemService
java.lang.Exception
void connect() throws java.lang.Exception
connect
in interface ICellularModemService
java.lang.Exception
void disconnect() throws java.lang.Exception
disconnect
in interface ICellularModemService
java.lang.Exception
boolean isConnected() throws java.lang.Exception
isConnected
in interface ICellularModemService
java.lang.Exception
boolean isConnecting() throws java.lang.Exception
isConnecting
in interface ICellularModemService
java.lang.Exception
java.lang.String getPowerMode() throws java.lang.Exception
getPowerMode
in interface ICellularModemService
java.lang.Exception
java.lang.String getIPaddress() throws java.lang.Exception
getIPaddress
in interface ICellularModemService
java.lang.Exception
java.lang.String getPeerIPaddress() throws java.lang.Exception
getPeerIPaddress
in interface ICellularModemService
java.lang.Exception
int getSignalStrength() throws java.lang.Exception
getSignalStrength
in interface ICellularModemService
java.lang.Exception
boolean isRoaming() throws java.lang.Exception
isRoaming
in interface ICellularModemService
java.lang.Exception
java.lang.String getServiceType() throws java.lang.Exception
getServiceType
in interface ICellularModemService
java.lang.Exception
long getCallTxCounter() throws java.lang.Exception
getCallTxCounter
in interface ICellularModemService
java.lang.Exception
long getCallRxCounter() throws java.lang.Exception
getCallRxCounter
in interface ICellularModemService
java.lang.Exception
boolean isConfigured()
void sendSms(java.lang.String recipientNumber, java.lang.String smscNumber, java.lang.String message) throws java.lang.Exception
recipientNumber
- the number to send the SMS tosmscNumber
- the SMSC number specified by the cell providermessage
- the SMS message to send to the specified recipient
java.lang.Exception
- if there was an error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |