How do we read/write the preferred carrier lists on the SIM card with the nRF9160? Most modems provide the at+cpol command but this doesn't seem to be implemented on the nRF9160
How do we read/write the preferred carrier lists on the SIM card with the nRF9160? Most modems provide the at+cpol command but this doesn't seem to be implemented on the nRF9160
Hi Scott,
AT+CRSM command can be used for updating any file in UICC: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Faccess_uicc%2Fcrsm_set.html
Before sending the command the user must be familiar with the structure of EF_PLMNwAcT (User controlled PLMN selector with Access Technology) which is specified in 3GPP TS 31.102
Example command to read EF-PLMNwAcT. The parameters are:
AT+CRSM=176,28512,0,0,0
+CRSM: 144,0,"42148040004234804000423400400042840040004204104000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
OK
The response contains status bytes (sw1, sw2) and response data returned by SIM card. Response data is the file content presented as a string of hexadecimal characters (2 characters per 1 byte), 40 bytes in this case. This means there are 8 "PLMN entries" in the file, each consisting of 5 bytes, 3 bytes for PLMN ID and 2 bytes for access technology identifier. The last 3 entries are empty, i.e. filled by 'FF', and as an example the first entry contains the following:
PLMN ID: "421480" - MCC 244, MNC 081
Access technology: "4000" - E-UTRAN, note: nRF9160 uses only entries with E-UTRAN, or undefined AcT "0000".
Example command to write the same content to SIM card. The parameters are:
AT+CRSM=214,28512,0,0,40,"42148040004234804000423400400042840040004204104000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
+CRSM: 144,0,""
OK
Hope this helps.
Best Regards,
Swathy
Hi Scott,
AT+CRSM command can be used for updating any file in UICC: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Faccess_uicc%2Fcrsm_set.html
Before sending the command the user must be familiar with the structure of EF_PLMNwAcT (User controlled PLMN selector with Access Technology) which is specified in 3GPP TS 31.102
Example command to read EF-PLMNwAcT. The parameters are:
AT+CRSM=176,28512,0,0,0
+CRSM: 144,0,"42148040004234804000423400400042840040004204104000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
OK
The response contains status bytes (sw1, sw2) and response data returned by SIM card. Response data is the file content presented as a string of hexadecimal characters (2 characters per 1 byte), 40 bytes in this case. This means there are 8 "PLMN entries" in the file, each consisting of 5 bytes, 3 bytes for PLMN ID and 2 bytes for access technology identifier. The last 3 entries are empty, i.e. filled by 'FF', and as an example the first entry contains the following:
PLMN ID: "421480" - MCC 244, MNC 081
Access technology: "4000" - E-UTRAN, note: nRF9160 uses only entries with E-UTRAN, or undefined AcT "0000".
Example command to write the same content to SIM card. The parameters are:
AT+CRSM=214,28512,0,0,40,"42148040004234804000423400400042840040004204104000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
+CRSM: 144,0,""
OK
Hope this helps.
Best Regards,
Swathy