Modem Interfaces
# Modem Interfaces
rt_port_modem_get_imei
Prototype | int rt_port_modem_get_imei(char* imei, unsigned int* len) |
Description | Get module IMEI |
Input | No output |
Output | IMEI: IMEI of the module Len: length of the returned IMEI |
Response | Success: RT_RES_SUCESS Failure: RT_RES_ERROR |
Remarks | Size of the IMEI buffer shall not be less than 15 bytes. |
rt_port_modem_usim_transimit_apdu
Prototype | int rt_port_modem_usim_transimit_apdu(const unsigned char* capdu, unsigned short capdu_len, unsigned char* rapdu, unsigned short* rapdu_len) |
Description | Send APDU command to the eSIM card |
Input | capdu: buf of the sent command capdu_len: length of the sent command Example (sending AT): capdu:0070800100 capu_len:10 Corresponding AT+CSIM command: AT+CSIM=10,"0070800100" AT+CSIM=10,"0070800100" |
Output | rapdu: buf of received command
rapdu_len: length of received command Example (sending AT): If returned AT command is: +CSIM: 4,"9000" rapdu: 9000 rapdu_len: 4 |
Response | Success: RT_RES_SUCESS Failure: RT_RES_ERROR |
Remarks | / |