W406-CE User’s Manual
Application Development
Deletes an indexed SMS message.
int cellular_modem_sms_delete_message(unsigned int fd, int index);
Inputs:
<fd> the cellular modem
<index> the index to the message pool
Return Values:
0 on success, otherwise, the function fails
Remark:
Gets the SIM card status.
int cellular_modem_sim_get_sim_card_status(unsigned int fd);
Inputs:
<fd> the cellular modem
Return Values:
0 : ready, okay to use
1 : no sim card, (or loose)
2 : PIN, wait for the pin code for authentication
3 : PUK, three times of wrong pin codes
otherwise, the function fails
Remark:
When the SIM card status is set to PIN (2), this function retrieves the available PIN code attempt
count.
If the SIM card status is set to PUK (3), this function gets the available PUK code attempt count.
int cellular_modem_sim_get_pin_attempt_count(unsigned int fd);
Inputs:
<fd> the cellular modem
Return Values:
the attempted count left of PIN/PUK code authentication. otherwise, a negative value
indicates
a
failure
Remark:
When the SIM card status is set to PIN (2), this function authenticates a PIN code. If the correct
code is entered the status will be set back to ready (0).
int cellular_modem_sim_authenticate_pin_code(unsigned int fd, char *pin_code);
Inputs:
<fd> the cellular modem
<pin_code> point to the PIN code
Return Values:
0 on success, otherwise, the function fails
Remark:
B-6