W406-CE User’s Manual
Application Development
When the SIM card status is ready (0) and the PIN code is enabled, this function assigns a PIN
code to the SIM card.
Class Name:
GPRS
Method:
int ChangePINCode(string old_pin_code, string new_pin_code);
Inputs:
<old_pin_code> the old PIN code string
<new_pin_code> the new PIN code string
Return Values:
0 on success, otherwise, the function fails
Remark:
Gets the modem module temperature.
Class Name:
GPRS
Method:
int GetGPRSModuleTemperature();
Inputs:
none
Return Values:
the tempture of GPRS module
Remark:
UART
Sets the UART interface.
Class Name:
SerialInterface
Method:
void
SetComPortInterface(string port,
SerialMode mode
);
Inputs:
<port> serial port name string, e.g.
COM1:, COM2:, $device\COM12
<
mode
>
the interface number of serial port
Return Values:
none
Remark:
public enum SerialMode : byte
{
RS232_MODE = 0x0,
RS485_2WIRE_MODE = 0x1,
RS422_MODE = 0x2,
RS485_4WIRE_MODE = 0x3
}
B-18