Raritan PX2/PX3 JSON-RPC API
|
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;
75 valueobject SimSecurityStatusChangedEvent extends
idl.Event {
82 valueobject SimPinUpdatedEvent extends
idl.Event {
115 int sendSms(in
string recipient, in
string text);
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.
Serial Ports.
Definition: AnalogModem.idl:12
@ WAITFORPUK
PUK and new PIN must be entered to unlock the SIM card.
Definition: GsmModem.idl:38
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
@ WAITFORPIN
PIN must be entered to unlock the SIM card.
Definition: GsmModem.idl:37
@ UNLOCKED
SIM card is unlocked.
Definition: GsmModem.idl:36
int sendSms(in string recipient, in string text)
Send out a SMS message.
Structure for holding settings of the GSM modem and its SIM card.
Definition: GsmModem.idl:46
Basic IDL definitions.
Definition: Event.idl:10
Interface for communication with a GSM modem attached to a serial port.
Definition: GsmModem.idl:18
int sendTestSms(in string recipient, in Settings testSettings)
Send out a test SMS message.
string pin
PIN of the SIM card.
Definition: GsmModem.idl:47
int setSettings(in Settings settings)
Set modem settings.
SimSecurityStatus
Possible security states the sim card can be in at a given time.
Definition: GsmModem.idl:35
Settings getSettings()
Get modem settings.
int getSimSecurityStatus(out SimSecurityStatus simStatus)
Retrieve security status of the SIM card.
int getInformationWithPin(in string pin, out Information info)
Retrieve low-level information about the modem and the SIM card.
int getInformation(out Information info)
Retrieve low-level information about the modem and the SIM card.