Ivsr: Invalid SIM recovery: When the registration network fails to "invalid SIM" state, the system checks whether the invalid SIM state is a network exception through logic. If it is determined that a network exception is caused, then the AP tries to refind the modem to exit the invalid SIM state without restarting the boot ------- at present, the mobile network in some places is wrong and regards its normal card as invalid SIM, therefore, we recommend that you enable ivsr.
Spec specifies that only the SIM card can be removed after the invalid SIM state is restarted or plugged in or out. Therefore, ivsr is a spec-violating feature introduced by MTK to solve operator network problems, however, common tests such as CMCC warehouse receiving, CTA, and FTA do not test this function. Therefore, the failure of these tests will not be caused by the opening of ivsr. Therefore, at present, MTK enables ivsr by default.
1. Disable ivsr (enabled by default ):
If you need to disable the ivsr function in special cases, use the following method:
In gsmservicestatetracker. Java, oninvalidsiminforeceived () starts with return;
2. Working principle:
(1)
Modem sort y RIL by AT command URC
+ Eind: 16, <plmn_id>, <cs_invalid>, <ps_invalid>, <cause>
E.g. + eind: 16, "46002", 13
<Plmn_id>: String
<Cs_invalid>, <ps_invalid>: integer
0: not invalid
1: Invalid
<Cause>: integer
(2)
RIL will then policy framework layer by the event event_invalid_sim_info
We handle event_invalid_sim_info in gsmservicestatetracker. Java: oninvalidsiminforeceived ()
Please refer the sample code in this function
If you want to adjust the invalid SIM state judgment logic and processing method, please customize this function
3. Conditions for trigger ivsr:
(1) After the mobile phone is turned on and SIM refresh, it must have been successfully registered (make sure that the combination of the mobile phone/Sim can actually get the normal service, otherwise, the service life of the SIM card may be damaged because the recovery will power on the SIM card)
CS domain invalid. Check that the CS domain has been successfully registered.
PS domain invalid. Check that PS domain has been successfully registered.
(2) serving plmn when invalid SIM occurs (plmn for reject cause) it must be the same as plmn that was successfully renewed for the last time (confirm that the plmn mobile phone/Sim can be successfully renewed)
(3) In the test mode state or the inserted card must be normal SIM (not test SIM)
Ivsr --- invalid SIM recovery