Moxa W406-CE [70/74] W315a 325a linux user s manual programmer s guide

Moxa W406-CE [70/74] W315a 325a linux user s manual programmer s guide
W315A/325A Linux User's Manual Programmer's Guide
6-11
int cellular_modem_sim_unlock_pin_code(unsigned int fd, char *passwd, char *new_pin_code);
Description: When the SIM card status is PUK (3), this function changes the status to PIN (2). If this fails,
the SIM card will be locked.
Input: <fd> the cellular modem
<passwd> pointer to the PUK passwd code
<new_pin_code> pointer to a new PIN code
Return Value: 0 if successful; other numbers indicate that the function failed
int cellular_modem_sim_get_pin_enable_status (unsigned int fd);
Description: Gets the PIN code enable status of the SIM card.
Input: <fd> the cellular modem
Return Value: 0: PIN code disabled
1: PIN code enabled
other numbers: indicates that the function has failed
int cellular_modem_sim_assign_pin_code(unsigned int fd, char *old_pin_code, char
*new_pin_code);
Description: When the SIM card status is ready (0) and the PIN code is enabled, this function assigns a PIN
code to the SIM card.
Input: <fd> the cellular modem
<old_pin_code> pointer to the old PIN code
<new_pin_code> pointer to the new PIN code
Return Value: 0 if successful; other numbers indicate that the function failed
int cellular_modem_sim_enable_pin_code(unsigned int fd, char *pin_code, int enable);
Description: When the SIM card status is ready (0), this function enables or disables PIN code
authentication.
Input: <fd> the cellular modem
<pin_code> pointer to the PIN code password
<enable> 1: enable PIN code; 0: disable PIN code
Return Value: 0 if successful; other numbers indicate that the function failed
int cellular_modem_gprs_get_module_temperature(unsigned int fd)
Description: Gets the modem module temperature.
Input: <fd> the cellular modem
Return Value: the temperature of the GPRS module

Содержание

Скачать