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.
Definition: GsmModem.idl:18
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.
Definition: GsmModem.idl:35
@ UNLOCKED
SIM card is unlocked.
Definition: GsmModem.idl:36
@ WAITFORPUK
PUK and new PIN must be entered to unlock the SIM card.
Definition: GsmModem.idl:38
@ WAITFORPIN
PIN must be entered to unlock the SIM card.
Definition: GsmModem.idl:37
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.
Basic IDL definitions.
Definition: Event.idl:10
Serial Ports.
Definition: AnalogModem.idl:12
Common base for all events.
Definition: Event.idl:13
Structure for holding settings of the GSM modem and its SIM card.
Definition: GsmModem.idl:46
string pin
PIN of the SIM card.
Definition: GsmModem.idl:47
string smsc
Custom SMS center number (in ITU-T E.164 format), leave empty to use number stored on SIM card.
Definition: GsmModem.idl:48
Sim pin updated event.
Definition: GsmModem.idl:82
string newPin
new PIN for SIM card after Unlock
Definition: GsmModem.idl:83
Sim card security status changed event.
Definition: GsmModem.idl:75
SimSecurityStatus newSimStatus
new SIM card security status
Definition: GsmModem.idl:76