W406-CE User’s Manual
Application Development
Diagnoses the status of a GPRS connection and the status of the SIM card.
Class Name:
GPRS
Method:
int Diagnose()
Inputs:
none
Return Values:
0 indictes no error. otherwise, a 32-bit number indicating a combination of errors
Remark:
define GPRS errors, of which each stands on one of a 32-bit number
const GPRS_ERROR_BAUDRATE_COM3
(1<<0)
const GPRS_ERROR_BAUDRATE_COM4
(1<<1)
const GPRS_ERROR_FLOWCONTROL
(1<<2)
const GPRS_ERROR_PINCODE
(1<<3)
const GPRS_ERROR_TEMPERATURE (1<<4)
const GPRS_ERROR_SIGNAL_STRENGTH (1<<5)
const GPRS_ERROR_RADIOBAND
(1<<6)
const GPRS_ERROR_MODULE
(1<<7)
If the Cellular modem temperature greater than 88 degree or less than -35 degree, the function
will return with GPRS_ERROR_TEMPERATURE.
Gets the number of stored messages allowed out of the maximum space.
Class Name:
GPRS
Method:
int GetSMSMessagesCount (ref int)
Inputs:
<fd> the cellular modem
Outputs:
<maximum> pointer to the maximum number of messages allowed
Return Values:
The number of stored messeages. otherwise, a negative value indicates a failure
Remark:
Gets the current SMS storage base.
Class Name:
GPRS
Method:
int GetSMSStorageBase ()
Inputs:
none.
Return Values:
Storage base number in “StorageBase” type.
Remark:
public enum StorageBase
{
SIMCard = 0,
CellularModule,
Both
}
B-13