6#ifndef __GSMMODEM_IDL__
7#define __GSMMODEM_IDL__
22 constant
int SUCCESS = 0;
23 constant
int ERR_INVALID_VALUE = 1;
24 constant
int ERR_WRONG_PIN = 2;
25 constant
int ERR_SMS_SEND_FAILED = 3;
26 constant
int ERR_COMMUNICATION_FAILURE = 4;
27 constant
int ERR_SIM_LOCKED = 5;
28 constant
int ERR_WRONG_SIM_STATUS = 6;
29 constant
int ERR_WRONG_PUK = 7;
30 constant
int ERR_SIM_PROBLEM = 8;
115 int sendSms(in
string recipient, in
string text);
Interface for communication with a GSM modem attached to a serial port.
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.
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.
Settings getSettings()
Get modem settings.
int sendTestSms(in string recipient, in Settings testSettings)
Send out a test SMS message.
SimSecurityStatus
Possible security states the sim card can be in at a given time.
@ 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.
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