6#ifndef __GSMMODEM_IDL__
7#define __GSMMODEM_IDL__
115 int sendSms(in
string recipient, in
string text);
Interface for communication with a GSM modem attached to a serial port.
constant int SUCCESS
Error codes.
int sendSms(in string recipient, in string text)
Send out a SMS message.
int getInformation(out Information info)
Retrieve low-level information about the modem and the SIM card.
constant int ERR_WRONG_PUK
The PUK is incorrect or missing.
constant int ERR_INVALID_VALUE
Invalid argument.
int unlockSimCard(in string puk, in string newPin)
Unlock SIM card with PUK and set new PIN if the SIM card is in security status WAITFORPUK.
constant int ERR_WRONG_SIM_STATUS
The SIM card doesn't wait for the PUK.
Settings getSettings()
Get modem settings.
constant int ERR_SIM_LOCKED
The SIM card is locked and waits for the PUK.
int sendTestSms(in string recipient, in Settings testSettings)
Send out a test SMS message.
constant int ERR_SIM_PROBLEM
There is a problem with the SIM or service subscription.
SimSecurityStatus
Possible security states the sim card can be in at a given time.
@ UNKNOWN
Unkown security status.
@ UNLOCKED
SIM card is unlocked.
@ WAITFORPUK
PUK and new PIN must be entered to unlock the SIM card.
@ WAITFORPIN
PIN must be entered to unlock the SIM card.
constant int ERR_SMS_SEND_FAILED
SMS delivery failed.
constant int ERR_COMMUNICATION_FAILURE
Communication with the modem failed.
constant int ERR_WRONG_PIN
The PIN is incorrect or missing.
int setSettings(in Settings settings)
Set modem settings.
int getInformationWithPin(in string pin, out Information info)
Retrieve low-level information about the modem and the SIM card.
int getSimSecurityStatus(out SimSecurityStatus simStatus)
Retrieve security status of the SIM card.
Common base for all events.
Structure for holding settings of the GSM modem and its SIM card.
string pin
PIN of the SIM card.
string smsc
Custom SMS center number (in ITU-T E.164 format), leave empty to use number stored on SIM card.
string newPin
new PIN for SIM card after Unlock
Sim card security status changed event.
SimSecurityStatus newSimStatus
new SIM card security status