CN112261640B - Method and device for eliminating SIM card firmware miscwitch, electronic equipment and storage medium - Google Patents

Method and device for eliminating SIM card firmware miscwitch, electronic equipment and storage medium Download PDF

Info

Publication number
CN112261640B
CN112261640B CN202011051397.9A CN202011051397A CN112261640B CN 112261640 B CN112261640 B CN 112261640B CN 202011051397 A CN202011051397 A CN 202011051397A CN 112261640 B CN112261640 B CN 112261640B
Authority
CN
China
Prior art keywords
sim card
firmware
electronic equipment
access
imsi
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011051397.9A
Other languages
Chinese (zh)
Other versions
CN112261640A (en
Inventor
杨惠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fibocom Wireless Inc
Original Assignee
Fibocom Wireless Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fibocom Wireless Inc filed Critical Fibocom Wireless Inc
Priority to CN202011051397.9A priority Critical patent/CN112261640B/en
Publication of CN112261640A publication Critical patent/CN112261640A/en
Application granted granted Critical
Publication of CN112261640B publication Critical patent/CN112261640B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/34Reselection control
    • H04W36/36Reselection control by user or terminal equipment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The application relates to a method and a device for eliminating the false switching of SIM card firmware, electronic equipment and a storage medium, which are used for detecting whether the IMSI of an access network in the SIM card is switched or not, and judging whether the access state of the SIM card is changed or not if the IMSI of the access network is switched. And if the access state of the SIM card is not changed, controlling not to trigger the SIM card firmware switching flow. After detecting that the IMSI of the access network in the SIM card is switched, the step of judging whether the access state of the SIM card is changed or not is added, so that when the access state of the SIM card is not changed, the SIM card firmware switching flow is controlled not to be triggered. When the access state of the SIM card is not changed, the operation of triggering the SIM card firmware switching flow to frequently and wrongly switch the SIM card firmware is avoided, so that the stability of the system is improved.

Description

Method and device for eliminating SIM card firmware miscwitch, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for eliminating miscwitching of SIM card firmware, an electronic device, and a storage medium.
Background
SIM (Subscriber Identity Module subscriber identity module) cards, also known as smart cards, subscriber identity cards, which must be equipped with communication functions for the electronic device. Each SIM card is internally provided with an IMSI (International Mobile subscriber identity) identification code which stores information of the country, the operator and the like to which the SIM card belongs. IMSI (International Mobile SubscriberIdentity ), which is a key to identify mobile subscribers, has a total length of not more than 15 digits, and uses digits of 0 to 9.
With the continuous development of network technologies, to meet the international roaming requirement of users, some operators have introduced one-card-multiple-number service, i.e. one SIM card corresponds to multiple IMSIs. A roaming IMSI list is preset in the SIM card, so that IMSI switching can be performed in the list during international roaming to complete the network selection procedure.
However, in the conventional method, for a SIM card with one card and multiple numbers, if the IMSI of the access network is switched, the operation of switching the firmware of the SIM card is triggered. Therefore, when the network is selected in international roaming, because IMSI switching is required, frequent error switching of the firmware of the SIM card is triggered, and the stability of the system is greatly reduced.
Disclosure of Invention
The embodiment of the application provides a method and a device for eliminating the error switching of SIM card firmware, electronic equipment and a storage medium, which can reduce system resources occupied by the electronic equipment in the process of uploading data.
A method of eliminating a SIM card firmware miscwitch, the method comprising:
detecting whether the IMSI of the access network in the SIM card is switched or not through a firmware switching service;
if the IMSI of the access network is switched, judging whether the access state of the SIM card and the electronic equipment is changed or not through the firmware switching service;
and if the access states of the SIM card and the electronic equipment are not changed, the SIM card firmware switching flow is not triggered by the firmware switching service control.
In one embodiment, after the determining, by the firmware switching service, whether the access state of the SIM card and the electronic device changes, the method includes:
if the access states of the SIM card and the electronic equipment are changed, judging whether the SIM card accessed to the network after switching can share the same SIM card firmware with the SIM card before switching;
if not, triggering the SIM card firmware switching flow through the firmware switching service.
In one embodiment, the determining, by the firmware switching service, whether the access state of the SIM card and the electronic device changes includes:
Reading ICCID of the SIM card currently in an access state with the electronic equipment through the firmware switching service;
judging whether the ICCID of the SIM card currently in an access state with the electronic equipment is consistent with the original ICCID prestored on the electronic equipment;
if the access states of the SIM card and the electronic equipment are consistent, the access states of the SIM card and the electronic equipment are unchanged;
if the access states of the SIM card and the electronic equipment are inconsistent, the access states of the SIM card and the electronic equipment are changed.
In one embodiment, the method further comprises:
when the electronic equipment is started, acquiring ICCID of a SIM card which is currently in an access state with the electronic equipment as an original ICCID;
after the firmware connected with the SIM card is switched through the firmware switching service control, updating the original ICCID based on the ICCID of the SIM card which is currently in an access state with the electronic equipment.
In one embodiment, the determining, by the firmware switching service, whether the access state of the SIM card and the electronic device changes includes:
reading the current SIM card power-on signal or the current SIM card power-off signal through the firmware switching service;
judging whether the current SIM card upper electric signal or the current SIM card lower electric signal is consistent with the original SIM card upper electric signal or the SIM card lower electric signal stored in the electronic equipment in advance;
If the access states of the SIM card and the electronic equipment are consistent, the access states of the SIM card and the electronic equipment are unchanged;
if the access states of the SIM card and the electronic equipment are inconsistent, the access states of the SIM card and the electronic equipment are changed.
In one embodiment, the method further comprises;
when the electronic equipment is started, acquiring the current SIM card upper electric signal or the current SIM card lower electric signal as the original SIM card upper electric signal or the original SIM card lower electric signal;
after the firmware connected with the SIM card is switched through the firmware switching service control, the original SIM card power-on signal or the SIM card power-off signal is updated according to the SIM card which is currently in an access state with the electronic equipment.
In one embodiment, the detecting, by the firmware switching service, whether the IMSI of the access network in the SIM card is switched includes:
acquiring MCC or MNC corresponding to IMSI of the access network from the SIM card through a firmware switching service;
judging whether the MCC or MNC corresponding to the IMSI of the access network is consistent with the MCC or MNC corresponding to the IMSI of the access network at the moment before a preset time period;
if the IMSI of the access network in the SIM card is consistent, detecting that the IMSI of the access network in the SIM card is not switched;
if the IMSI of the access network in the SIM card is inconsistent, the IMSI of the access network in the SIM card is detected to be switched.
An apparatus for eliminating a SIM card firmware miscwitch, the apparatus comprising:
the IMSI switching detection module is used for detecting whether the IMSI of the access network in the SIM card is switched or not through the firmware switching service;
the SIM card access state judging module is used for judging whether the access state of the SIM card and the electronic equipment is changed or not through the firmware switching service if the IMSI of the access network is switched;
and the control module is used for controlling not to trigger the SIM card firmware switching flow through the firmware switching service if the access state of the SIM card and the electronic equipment is not changed.
An electronic device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of the method of eliminating a SIM card firmware miscwitch as described above.
A computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of a method of eliminating a SIM card firmware miscorrection as described above.
The method and device for eliminating the false switching of the SIM card firmware, the electronic equipment and the storage medium detect whether the IMSI of the access network in the SIM card is switched, and if the IMSI of the access network is switched, judge whether the access state of the SIM card is changed. And if the access state of the SIM card is not changed, controlling not to trigger the SIM card firmware switching flow.
Because in an electronic device, a switch of firmware connected to a SIM card is required only when a SIM card switch occurs. However, if the default in the electronic device is that the IMSI of the access network in the SIM card is switched, the SIM card is considered to be switched, and the firmware connected to the SIM card is switched. Therefore, in the traditional method, if the IMSI of the access network is switched for one-card multi-number SIM card, the operation of switching the firmware of the SIM card is triggered, so that the firmware of the SIM card is frequently switched by mistake, and the stability of the system is reduced. After detecting that the IMSI of the access network in the SIM card is switched, the step of judging whether the access state of the SIM card is changed or not is added, so that when the access state of the SIM card is not changed, the SIM card firmware switching flow is controlled not to be triggered. When the access state of the SIM card is not changed, the operation of triggering the SIM card firmware switching flow to frequently and wrongly switch the SIM card firmware is avoided, so that the stability of the system is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is an application environment diagram of a method for eliminating SIM card firmware miscorrection in one embodiment;
FIG. 2 is a flow chart of a method for eliminating a SIM card firmware miscwitch in one embodiment;
FIG. 3 is a flowchart of a method for eliminating a SIM card firmware miscwitch in another embodiment;
FIG. 4 is a flowchart of a method for determining whether the access status of the SIM card and the electronic device is changed by the firmware switching service in FIG. 2;
FIG. 5 is a flowchart of a method for determining whether the access status of the SIM card and the electronic device is changed by the firmware switching service in FIG. 2;
fig. 6 is a flowchart of a method for detecting whether an IMSI of an access network in a SIM card is switched by a firmware switching service in fig. 2;
FIG. 7 is a flowchart of a method for eliminating a SIM card firmware miscwitch in one embodiment;
FIG. 8 is a block diagram of an apparatus for eliminating SIM card firmware miscwitch in one embodiment;
fig. 9 is a schematic diagram of an internal structure of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It will be understood that the terms "first," "second," and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element. For example, a first memory cell may be referred to as a second memory cell, and similarly, a second memory cell may be referred to as a first memory cell, without departing from the scope of the present application. Both the first memory cell and the second memory cell are memory cells, but they are not the same memory cell.
Fig. 1 is an application scenario diagram of a method for eliminating a SIM card firmware miscwitch in one embodiment. As shown in fig. 1, the application environment includes an electronic device 120 and a base station 140, and a communication connection is established between the electronic device 120 and the base station 140. The electronic equipment detects whether the IMSI of the access network in the SIM card is switched or not through a firmware switching service; if the IMSI of the access network is switched, judging whether the access state of the SIM card and the electronic equipment is changed or not through the firmware switching service; if the access state of the SIM card and the electronic equipment is not changed, the SIM card firmware switching flow is not triggered by the firmware switching service control. It is to be understood that the electronic device 140 may not be limited to various mobile phones, computers, portable devices, etc.
FIG. 2 is a flow chart of a method for eliminating a SIM card firmware miscorrection in one embodiment. The method for eliminating the miscwitch of the SIM card firmware in this embodiment is described by taking the electronic device in fig. 1 as an example. As shown in fig. 2, the method for eliminating the miscwitch of the SIM card firmware includes steps 220 to 260. Wherein,
step 220, detecting whether the IMSI of the access network in the SIM card is switched or not through the firmware switching service;
specifically, with the continuous development of network technologies, to meet the international roaming requirement of users, some operators have introduced one-card-multiple-number service, i.e. one SIM card corresponds to multiple IMSIs. The roaming IMSI list is preset in the SIM card, and the SIM card can judge whether to switch the IMSI according to the current position information of the electronic equipment, thereby completing the startup network selection flow.
However, for a SIM card with one card and multiple numbers, when roaming internationally, especially when the current network is unstable, frequent switching of the SIM card between different operator networks, i.e. frequent switching of the IMSI of the access network in the SIM card, will occur. If the default in the electronic device is that the IMSI of the access network in the SIM card is switched, it is considered that the SIM card is switched (for the electronic device supporting dual-card dual-standby or multi-card multi-standby), and the SIM card firmware switching process is triggered. Therefore, an unexpected SIM card firmware miscwitch event occurs, which seriously affects the stability of the system. In general, a type of SIM card corresponds to a firmware, for example, when a SIM1 belonging to a first operator accesses a network, the firmware corresponding to the first operator needs to be used; when the SIM2 belonging to the second operator accesses the network, firmware corresponding to the second operator needs to be used. Therefore, when the SIM card of the access network is switched, it is also required to switch to the firmware corresponding to the SIM card of the current access network.
Therefore, the application provides a method for eliminating the false switching of the SIM card firmware, and the electronic equipment detects whether the IMSI of the access network in the SIM card is switched or not through the firmware switching service. Among other things, firmware (FW) handover service (FW switch service) may be used to detect if a handover of IMSI of an access network in a SIM card occurs. Here, the access network refers to that the electronic device establishes a network connection with the base station through the SIM card.
Step 240, if the IMSI of the access network is switched, determining, by the firmware switching service, whether the access states of the SIM card and the electronic device are changed;
if the electronic equipment detects that the IMSI of the access network in the SIM card is not switched through the firmware switching service, the process of switching the firmware of the SIM card is not triggered at all. If the electronic device detects that the IMSI of the access network in the SIM card is switched through the firmware switching service, the access states of the SIM card and the electronic device may be changed at this time. Therefore, it is further required to determine whether the access state of the SIM card and the electronic device is changed by determining whether the access state of the SIM card and the electronic device is changed through the firmware switching service. Here, the firmware switching service may obtain the change information of the access states of the SIM card and the electronic device, so as to determine whether the access states of the SIM card and the electronic device are changed.
Step 260, if the access states of the SIM card and the electronic device are unchanged, the firmware switching process of the SIM card is not triggered by the firmware switching service control.
If the access state of the SIM card and the electronic equipment is not changed, the IMSI of the access network is switched, but the IMSI is switched only in the SIM card, and the access state of the SIM card and the electronic equipment is not really changed. I.e. the SIM card is still connected to the electronic device at this time, and then the firmware switching process of the SIM card is not triggered by the firmware switching service control. The method and the device avoid frequent misoperation of the SIM card firmware when the IMSI of the access network in the SIM card is only switched and the access state of the SIM card is not changed, thereby improving the stability of the system.
In the embodiment of the application, because in the electronic device, the SIM card firmware may need to be switched only when the SIM card switch occurs. However, if the default in the electronic device is that the IMSI of the access network in the SIM card is switched, the SIM card is considered to be switched, and the SIM card firmware switching process is triggered. Therefore, in the traditional method, if the IMSI of the access network is switched for one-card multi-number SIM card, the SIM card firmware switching flow is triggered, so that the SIM card firmware is frequently switched by mistake, and the stability of the system is reduced. After detecting that the IMSI of the access network in the SIM card is switched, the step of judging whether the access state of the SIM card is changed or not is added, so that when the access state of the SIM card is not changed, the SIM card firmware switching flow is controlled not to be triggered. When the access state of the SIM card is not changed, the frequent misoperation of the SIM card firmware is avoided, so that the stability of the system is improved.
In one embodiment, as shown in fig. 3, after determining whether the access state of the SIM card and the electronic device is changed by the firmware switching service, the method includes:
step 270, if the access states of the SIM card and the electronic device change, determining whether the SIM card accessed to the network after the switching can share the same SIM card firmware with the SIM card before the switching;
step 280, if not, triggering the SIM card firmware switching process through the firmware switching service.
Specifically, in the electronic device, the SIM card firmware needs to be switched only when the SIM card is switched and the switched SIM card and the SIM card before the switching cannot be used for one SIM card firmware. Therefore, after judging that the access states of the SIM card and the electronic equipment are changed, the step of judging whether the SIM card of the access network after switching can share the same SIM card firmware with the SIM card before switching is added, and if not, the SIM card firmware switching flow is triggered by the firmware switching service. Because some SIM cards belonging to different operators can share the same SIM card firmware, while some operators cannot share the same SIM card firmware.
In the embodiment of the present application, after detecting that the IMSI of the access network in the SIM card is switched, a step of determining whether the access state of the SIM card is changed is added, if the access state of the SIM card and the electronic device is changed, a step of determining whether the SIM card of the access network after the switching can share the same SIM card firmware with the SIM card before the switching is added, and if not, the SIM card firmware switching process is triggered by the firmware switching service. Therefore, the SIM card firmware is ensured to be switched only when the SIM card is switched and the switched SIM card and the SIM card before the switching cannot be used for the same SIM card firmware. The operation of frequently carrying out error switching on the SIM card firmware is avoided, so that the stability of the system is improved.
In one embodiment, as shown in fig. 4, determining, by the firmware switching service, whether the access state of the SIM card and the electronic device is changed includes:
step 420, reading ICCID of SIM card in access state with the electronic device through firmware switching service;
step 440, judging whether the ICCID of the SIM card currently in an access state with the electronic equipment is consistent with the original ICCID prestored on the electronic equipment;
step 460, if the access states of the SIM card and the electronic device are consistent, the access states of the SIM card and the electronic device are unchanged;
if the access states of the SIM card and the electronic device are inconsistent, step 480.
Wherein each SIM card has a unique ICCID (Integrate circuit card identity, integrated circuit card identification code) that is cured in the SIM card, by means of which a different SIM card can be identified. And storing the ICCID of the SIM card which is currently in an access state with the electronic equipment in the electronic equipment as an original ICCID, and periodically updating the original ICCID.
Therefore, whether the IMSI of the access network in the SIM card is switched or not can be detected through the firmware switching service, and if the IMSI of the access network is switched, the ICCID of the SIM card which is in an access state with the electronic equipment currently is read through the firmware switching service. Judging whether the ICCID of the SIM card in the access state with the electronic equipment is consistent with the original ICCID stored in the electronic equipment.
If the access states of the SIM card and the electronic equipment are not changed, the SIM card firmware switching flow is not triggered through the firmware switching service control.
If the access states of the SIM card and the electronic equipment are inconsistent, the access states of the SIM card and the electronic equipment are changed. Judging whether the SIM card accessed to the network after switching can share the same SIM card firmware with the SIM card before switching; if not, triggering the SIM card firmware switching flow through the firmware switching service.
In the embodiment of the application, the ICCID of the SIM card currently in an access state with the electronic equipment is read through the firmware switching service, and whether the ICCID of the SIM card currently in the access state with the electronic equipment is consistent with the original ICCID prestored on the electronic equipment or not is judged; to determine whether the access state of the SIM card and the electronic device is changed. Therefore, whether the access state of the SIM card and the electronic equipment is changed can be accurately judged by comparing ICCIDs. Furthermore, when the access state of the SIM card is not changed, frequent misoperation of the SIM card firmware is avoided, and therefore stability of the system is improved.
In one embodiment, a method for eliminating a miscwitch of SIM card firmware is provided, further including:
When the electronic equipment is started, acquiring the ICCID of a SIM card which is currently in an access state with the electronic equipment as an original ICCID;
after the firmware connected to the SIM card is switched by the firmware switching service control, the original ICCID is updated based on the ICCID of the SIM card currently in an access state with the electronic device.
Specifically, when the electronic device is plugged with the SIM card and is powered on, the electronic device reads the ICCID of the SIM card currently in an access state with the electronic device and stores the ICCID as an original ICCID. And when the access states of the SIM card and the electronic equipment are changed and the fact that the SIM card of the access network after switching cannot share the same SIM card firmware with the SIM card before switching is judged, triggering the SIM card firmware switching flow through the firmware switching service. After the firmware connected to the SIM card is switched by the firmware switching service control, the original ICCID is updated based on the ICCID of the SIM card currently in an access state with the electronic device. In this way, regular updates of the original ICCID stored in the electronic device can be guaranteed.
In the embodiment of the application, when the electronic equipment is started, the ICCID of the SIM card which is in an access state with the electronic equipment at present is obtained as the original ICCID. After the firmware connected to the SIM card is switched by the firmware switching service control, the original ICCID is updated based on the ICCID of the SIM card currently in an access state with the electronic device. In this way, regular updates of the original ICCID stored in the electronic device can be guaranteed. And whether the access states of the SIM card and the electronic equipment are changed can be accurately judged by comparing ICCIDs. Furthermore, when the access state of the SIM card is not changed, frequent misoperation of the SIM card firmware is avoided, and therefore stability of the system is improved.
In one embodiment, as shown in fig. 5, determining, by the firmware switching service, whether the access state of the SIM card and the electronic device is changed includes:
step 520, reading the current SIM card up signal or SIM card down signal through the firmware switching service;
step 540, judging whether the current SIM card power-on signal or SIM card power-off signal is consistent with the original SIM card power-on signal or SIM card power-off signal stored in the electronic equipment in advance;
step 560, if the access states of the SIM card and the electronic equipment are not changed;
if the access states of the SIM card and the electronic device are inconsistent, step 580 is performed.
Specifically, when judging whether the access state of the SIM card and the electronic equipment is changed or not through the firmware switching service, the current SIM card power-on signal or the current SIM card power-off signal can be read through the firmware switching service; and judging whether the current SIM card upper electric signal or the current SIM card lower electric signal is consistent with the original SIM card upper electric signal or the SIM card lower electric signal stored in the electronic equipment.
The electronic equipment can detect whether the SIM card is powered on or powered off, and generates an SIM card power-on signal when the SIM card is powered on, wherein the SIM card power-on signal comprises an identification of the SIM card. And generating an SIM card down signal when the SIM is powered up, wherein the SIM card down signal comprises the identification of the SIM card. And the SIM card up signal and the SIM card down signal may be stored in the electronic device so that the firmware switching service may read the signals.
Therefore, the currently generated SIM card up-signal or SIM card down-signal is read through the firmware switching service; judging whether the current generated SIM card upper electric signal or SIM card lower electric signal is consistent with the original SIM card upper electric signal or SIM card lower electric signal stored in the electronic equipment in advance; and further judging whether the access state of the SIM card and the electronic equipment is changed.
In the embodiment of the application, whether the access state of the SIM card and the electronic equipment is changed can be accurately judged by comparing the currently generated SIM card upper electric signal or the currently generated SIM card lower electric signal with the original SIM card upper electric signal or the SIM card lower electric signal stored in the electronic equipment. Furthermore, when the access state of the SIM card is not changed, frequent misoperation of the SIM card firmware is avoided, and therefore stability of the system is improved.
In one embodiment, a method for eliminating a false switch of the SIM card firmware is provided, and the method further comprises the following steps of;
when the electronic equipment is started, acquiring the current SIM card upper electric signal or the current SIM card lower electric signal as the original SIM card upper electric signal or the original SIM card lower electric signal;
after the firmware connected with the SIM card is switched through the firmware switching service control, the original SIM card power-on signal or the SIM card power-off signal is updated according to the SIM card which is in an access state with the electronic equipment currently.
Specifically, when the electronic device inserts the SIM card and starts up, the electronic device reads the current generated SIM card up signal or SIM card down signal as the original SIM card up signal or SIM card down signal. And when the access states of the SIM card and the electronic equipment are changed and the fact that the SIM card of the access network after switching cannot share the same SIM card firmware with the SIM card before switching is judged, triggering the SIM card firmware switching flow through the firmware switching service. After the firmware connected with the SIM card is switched through the firmware switching service control, the original SIM card power-on signal or the SIM card power-off signal is updated according to the SIM card which is in an access state with the electronic equipment currently. Therefore, the original SIM card up-signal or SIM card down-signal stored in the electronic equipment can be updated regularly.
In the embodiment of the application, when the electronic device is started, the current SIM card upper electric signal or the current SIM card lower electric signal is obtained as the original SIM card upper electric signal or the original SIM card lower electric signal. After the firmware connected with the SIM card is switched through the firmware switching service control, the original SIM card power-on signal or the SIM card power-off signal is updated according to the SIM card which is in an access state with the electronic equipment currently. Therefore, the original SIM card up-signal or SIM card down-signal stored in the electronic equipment can be updated regularly. Therefore, whether the access state of the SIM card and the electronic equipment is changed can be accurately judged by comparing the current generated SIM card upper electric signal or the SIM card lower electric signal with the original SIM card upper electric signal or the SIM card lower electric signal stored in the electronic equipment. Furthermore, when the access state of the SIM card is not changed, frequent misoperation of the SIM card firmware is avoided, and therefore stability of the system is improved.
In one embodiment, as shown in fig. 6, step 220 of detecting, by the firmware switching service, whether the IMSI of the access network in the SIM card is switched, includes:
step 222, obtaining MCC or MNC corresponding to IMSI of the access network from the SIM card through the firmware switching service;
step 224, determining whether the MCC or MNC corresponding to the IMSI of the access network is consistent with the MCC or MNC corresponding to the IMSI of the access network at a time before the interval of the preset time period;
step 226, if the IMSI of the access network in the SIM card is detected to be not switched;
step 228, if the IMSIs in the access network in the SIM card are not consistent, it is detected that the IMSIs in the access network in the SIM card are switched.
Specifically, each SIM card has an IMSI identity therein, where the IMSI identity stores information such as country, operator, etc. to which the SIM card belongs. IMSI (International Mobile SubscriberIdentity ), which is a key to identify mobile subscribers, has a total length of not more than 15 digits, and uses digits of 0 to 9. IMSI consists of mcc+mnc+msin. MCC (Mobile Country Code) is the code number of the country to which the mobile phone number belongs, and occupies 3 places. The resources of MCC are uniformly allocated and managed by the international electrotechnical union, and chinese MCC is specified as 460. With MCC it is possible to distinguish from which country the user comes, so international roaming can be achieved. MNC (Mobile Network Code, mobile network number) for identifying the mobile network to which the mobile client belongs. MNC is generally composed of two digits, chinese mobile system using 00, 02, 07, chinese communication using 01, chinese messenger using 03. MSIN (Mobile Subscriber Identification Number) is used to identify a mobile number in a mobile communication network. Such as 460017500428184, its MCC is 460 and the country represented is china. MNC is 01, representing chinese Unicom, so this is a SIM card from chinese, telecom operators are chinese Unicom.
And acquiring MCC or MNC corresponding to the IMSI of the access network from the SIM card by the firmware switching service, and judging whether the MCC or MNC corresponding to the IMSI of the access network is consistent with the MCC or MNC corresponding to the IMSI of the access network at the moment before the interval of the preset time period. If the IMSI of the access network in the SIM card is consistent, detecting that the IMSI of the access network in the SIM card is not switched; if the IMSI of the access network in the SIM card is inconsistent, the IMSI of the access network in the SIM card is detected to be switched.
The interval period may be customized, for example, 5min or 10min, which is not limited in this application. Of course, in general, for a SIM card with one card and multiple numbers, when roaming internationally, especially when the current network is unstable, the SIM card will be frequently switched between different operator networks, that is, the IMSI of the access network in the SIM card will be frequently switched. Therefore, when the electronic device is detected to have international roaming, a determination process of acquiring the MCC or MNC corresponding to the IMSI of the access network from the SIM card through the firmware switching service and determining whether the MCC or MNC corresponding to the IMSI of the access network is consistent with the MCC or MNC corresponding to the IMSI of the access network at a time before the interval of the preset time period can be started. And when the electronic equipment is not detected to generate international roaming, the judgment flow is not performed.
In the embodiment of the application, when the firmware switching service detects whether the IMSI of the access network in the SIM card is switched, the firmware switching service can be used for acquiring the MCC or MNC corresponding to the IMSI of the access network from the SIM card; and judging whether the MCC or MNC corresponding to the IMSI of the access network is consistent with the MCC or MNC corresponding to the IMSI of the access network at the moment before the preset time period to detect whether the IMSI of the access network in the SIM card is switched. Therefore, whether the IMSI of the access network in the SIM card is switched or not can be accurately detected. Furthermore, for judging whether the access state of the SIM card and the electronic equipment is changed or not through the firmware switching service, if the access state of the SIM card and the electronic equipment is not changed, the firmware switching process of the SIM card is not triggered through the firmware switching service control to make a bedding. The operation of frequently carrying out error switching on the SIM card firmware is avoided, so that the stability of the system is improved.
In a specific embodiment, as shown in fig. 7, a method for eliminating a miscwitch of SIM card firmware is provided, including:
step 702, acquiring MCC or MNC corresponding to IMSI of access network from SIM card through firmware switching service;
Step 704, judging whether the MCC or MNC corresponding to the IMSI of the access network is consistent with the MCC or MNC corresponding to the IMSI of the access network at the moment before the interval of the preset time period; if so, go to step 712; if not, go to step 706;
step 706, judging whether the SIM card accessed to the network after switching can share the same SIM card firmware with the SIM card before switching; if yes, go to step 712; if not, go to step 708;
step 708, comparing whether the ICCID or the power-on/power-off signal is changed; if yes, go to step 710; if not, go to step 712;
step 710, triggering a SIM card firmware switching process by a firmware switching service;
step 712, the SIM card firmware switching process is not triggered by the firmware switching service control.
In the embodiment of the application, when the SIM card is switched, and the switched SIM card and the SIM card before the switching cannot be used for universal one SIM card firmware, whether the access state of the SIM card and the electronic equipment is changed can be accurately judged by comparing whether the ICCID or the power-on/power-off signal is changed. Furthermore, when the access state of the SIM card is not changed, frequent misoperation of the SIM card firmware is avoided, and therefore stability of the system is improved.
In one embodiment, as shown in fig. 8, an apparatus 800 for eliminating a SIM card firmware miscwitch includes:
the IMSI switch detection module 820 is configured to detect whether an IMSI of an access network in a SIM card is switched through a firmware switch service;
the SIM card access status determining module 840 is configured to determine whether the access status of the SIM card and the electronic device changes through the firmware switching service if the IMSI of the access network is switched;
and the control module 860 is configured to, if the access states of the SIM card and the electronic device are unchanged, not trigger the SIM card firmware switching process through firmware switching service control.
In one embodiment, an apparatus 800 for eliminating a SIM card firmware miscwitch is provided, further including:
the firmware switching module is used for judging whether the SIM card of the switched access network can share the same SIM card firmware with the SIM card before switching if the access states of the SIM card and the electronic equipment change; if not, triggering the SIM card firmware switching flow through the firmware switching service.
In one embodiment, the SIM card access status determining module is further configured to read, through a firmware switching service, an ICCID of a SIM card currently in an access status with the electronic device; judging whether the ICCID of the SIM card in an access state with the electronic equipment is consistent with the original ICCID stored in the electronic equipment in advance; if the access states of the SIM card and the electronic equipment are consistent, the access states of the SIM card and the electronic equipment are unchanged; if the access states of the SIM card and the electronic equipment are inconsistent, the access states of the SIM card and the electronic equipment are changed.
In one embodiment, an apparatus 800 for eliminating a SIM card firmware miscwitch is provided, further including: the original ICCID acquisition and updating module is used for acquiring the ICCID of the SIM card which is currently in an access state with the electronic equipment as the original ICCID when the electronic equipment is started; after the firmware connected to the SIM card is switched by the firmware switching service control, the original ICCID is updated based on the ICCID of the SIM card currently in an access state with the electronic device.
In one embodiment, the SIM card access status determining module is further configured to read a current SIM card up signal or a SIM card down signal through a firmware switching service; judging whether the current SIM card upper electric signal or the current SIM card lower electric signal is consistent with the original SIM card upper electric signal or the SIM card lower electric signal stored in the electronic equipment in advance; if the access states of the SIM card and the electronic equipment are consistent, the access states of the SIM card and the electronic equipment are unchanged; if the access states of the SIM card and the electronic equipment are inconsistent, the access states of the SIM card and the electronic equipment are changed.
In one embodiment, an apparatus 800 for eliminating a SIM card firmware miscwitch is provided, further including: the SIM card power-on signal or SIM card power-off signal acquisition and updating module is used for acquiring the current SIM card power-on signal or SIM card power-off signal as the original SIM card power-on signal or SIM card power-off signal when the electronic equipment is started; after the firmware connected with the SIM card is switched through the firmware switching service control, the original SIM card power-on signal or the SIM card power-off signal is updated according to the SIM card which is in an access state with the electronic equipment currently.
In one embodiment, the IMSI switch detection module 820 is further configured to obtain, from the SIM card, an MCC or MNC corresponding to the IMSI of the access network through the firmware switch service; judging whether the MCC or MNC corresponding to the IMSI of the access network is consistent with the MCC or MNC corresponding to the IMSI of the access network at the moment before the interval of the preset time period; if the IMSI of the access network in the SIM card is consistent, detecting that the IMSI of the access network in the SIM card is not switched; if the IMSI of the access network in the SIM card is inconsistent, the IMSI of the access network in the SIM card is detected to be switched.
The division of each module in the device for eliminating the SIM card firmware miscwitch is only used for illustration, and in other embodiments, the device for eliminating the SIM card firmware miscwitch may be divided into different modules according to the need, so as to complete all or part of the functions of the device for eliminating the SIM card firmware miscwitch.
For specific limitations on the device for eliminating the SIM card firmware misconvergence, reference is made to the above limitation on the method for eliminating the SIM card firmware misconvergence, and the details are not repeated here. The above-mentioned device for eliminating the miscwitch of the SIM card firmware can be implemented by all or part of software, hardware and their combination. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
Fig. 9 is a schematic diagram of an internal structure of an electronic device in one embodiment. As shown in fig. 9, the electronic device includes a processor and a memory connected through a system bus. Wherein the processor is configured to provide computing and control capabilities to support operation of the entire electronic device. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program is executable by a processor for implementing a method for eliminating SIM card firmware misconnection provided in the following embodiments. The internal memory provides a cached operating environment for operating system computer programs in the non-volatile storage medium. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant ), a POS (Point of Sales), a car-mounted computer, and a wearable device.
The implementation of each module in the device for eliminating the miscwitch of the SIM card firmware provided in the embodiments of the present application may be in the form of a computer program. The computer program may be run on an electronic device. Program modules of the computer program may be stored in the memory of the electronic device. Which when executed by a processor, performs the steps of the methods described in the embodiments of the present application.
Embodiments of the present application also provide a computer-readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of a method of eliminating SIM card firmware miscorrection.
A computer program product comprising instructions that, when run on a computer, cause the computer to perform a method of eliminating SIM card firmware misconnection.
Any reference to memory, storage, database, or other medium used in embodiments of the present application may include non-volatile and/or volatile memory. Suitable nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The foregoing examples represent only a few embodiments of the present application, which are described in more detail and are not thereby to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A method for eliminating a false handoff of SIM card firmware, the method comprising:
detecting whether the IMSI of the access network in the SIM card is switched or not through a firmware switching service;
if the IMSI of the access network is switched, judging whether the access state of the SIM card and the electronic equipment is changed or not through the firmware switching service;
if the access state of the SIM card and the electronic equipment is not changed, the SIM card firmware switching flow is not triggered by the firmware switching service control;
the determining, by the firmware switching service, whether the access states of the SIM card and the electronic device change includes:
reading the current SIM card power-on signal or the current SIM card power-off signal through the firmware switching service;
And judging whether the current SIM card upper electric signal or the current SIM card lower electric signal is consistent with the original SIM card upper electric signal or the SIM card lower electric signal stored in the electronic equipment, and determining whether the access state of the SIM card and the electronic equipment is changed according to a judging result.
2. The method according to claim 1, wherein after said determining, by said firmware switching service, whether an access state of said SIM card and an electronic device has changed, comprising:
if the access states of the SIM card and the electronic equipment are changed, judging whether the SIM card accessed to the network after switching can share the same SIM card firmware with the SIM card before switching;
if not, triggering the SIM card firmware switching flow through the firmware switching service.
3. The method according to claim 2, wherein the determining, by the firmware switching service, whether the access state of the SIM card and the electronic device has changed includes:
reading ICCID of the SIM card currently in an access state with the electronic equipment through the firmware switching service;
judging whether the ICCID of the SIM card currently in an access state with the electronic equipment is consistent with the original ICCID prestored on the electronic equipment;
If the access states of the SIM card and the electronic equipment are consistent, the access states of the SIM card and the electronic equipment are unchanged;
if the access states of the SIM card and the electronic equipment are inconsistent, the access states of the SIM card and the electronic equipment are changed.
4. A method according to claim 3, characterized in that the method further comprises:
when the electronic equipment is started, acquiring ICCID of a SIM card which is currently in an access state with the electronic equipment as an original ICCID;
after the firmware connected with the SIM card is switched through the firmware switching service control, updating the original ICCID based on the ICCID of the SIM card which is currently in an access state with the electronic equipment.
5. The method according to claim 2, wherein the determining whether the access state of the SIM card and the electronic device changes according to the determination result includes:
if the judging result is consistent, the access states of the SIM card and the electronic equipment are unchanged;
if the judging result is inconsistent, the access states of the SIM card and the electronic equipment are changed.
6. The method of claim 5, further comprising;
when the electronic equipment is started, acquiring the current SIM card upper electric signal or the current SIM card lower electric signal as the original SIM card upper electric signal or the original SIM card lower electric signal;
After the firmware connected with the SIM card is switched through the firmware switching service control, the original SIM card power-on signal or the SIM card power-off signal is updated according to the SIM card which is currently in an access state with the electronic equipment.
7. The method according to claim 1, wherein the detecting whether the IMSI of the access network in the SIM card is switched by the firmware switching service includes:
acquiring MCC or MNC corresponding to IMSI of the access network from the SIM card through a firmware switching service;
judging whether the MCC or MNC corresponding to the IMSI of the access network is consistent with the MCC or MNC corresponding to the IMSI of the access network at the moment before a preset time period;
if the IMSI of the access network in the SIM card is consistent, detecting that the IMSI of the access network in the SIM card is not switched;
if the IMSI of the access network in the SIM card is inconsistent, the IMSI of the access network in the SIM card is detected to be switched.
8. An apparatus for eliminating a SIM card firmware miscwitch, the apparatus comprising:
the IMSI switching detection module is used for detecting whether the IMSI of the access network in the SIM card is switched or not through the firmware switching service;
the SIM card access state judging module is used for judging whether the access state of the SIM card and the electronic equipment is changed or not through the firmware switching service if the IMSI of the access network is switched;
The control module is used for controlling not to trigger the SIM card firmware switching flow through the firmware switching service if the access state of the SIM card and the electronic equipment is not changed;
the SIM card access state judging module is specifically used for:
reading the current SIM card power-on signal or the current SIM card power-off signal through the firmware switching service;
and judging whether the current SIM card upper electric signal or the current SIM card lower electric signal is consistent with the original SIM card upper electric signal or the SIM card lower electric signal stored in the electronic equipment, and determining whether the access state of the SIM card and the electronic equipment is changed according to a judging result.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein the computer program, when executed by the processor, causes the processor to perform the steps of the method for eliminating a SIM card firmware miscorrection as defined in any one of claims 1 to 7.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor performs the steps of the method of eliminating a SIM card firmware miscorrection as defined in any one of claims 1 to 7.
CN202011051397.9A 2020-09-29 2020-09-29 Method and device for eliminating SIM card firmware miscwitch, electronic equipment and storage medium Active CN112261640B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011051397.9A CN112261640B (en) 2020-09-29 2020-09-29 Method and device for eliminating SIM card firmware miscwitch, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011051397.9A CN112261640B (en) 2020-09-29 2020-09-29 Method and device for eliminating SIM card firmware miscwitch, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112261640A CN112261640A (en) 2021-01-22
CN112261640B true CN112261640B (en) 2024-03-15

Family

ID=74233798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011051397.9A Active CN112261640B (en) 2020-09-29 2020-09-29 Method and device for eliminating SIM card firmware miscwitch, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112261640B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634791A (en) * 2012-08-27 2014-03-12 华为终端有限公司 Method for provider network switching, user equipment and remote management platform
CN104507070A (en) * 2014-12-31 2015-04-08 宇龙计算机通信科技(深圳)有限公司 Method, device and terminal for loading information
CN106105362A (en) * 2014-05-21 2016-11-09 柏思科技有限公司 For configuring the method and system of radio-frequency module
WO2017132936A1 (en) * 2016-02-04 2017-08-10 Taisys Rongda Technologies Co., Ltd. System for providing multiple services over mobile network using multiple imsis
CN107734495A (en) * 2017-09-30 2018-02-23 广东欧珀移动通信有限公司 Information processing method, device, storage medium and terminal
CN108901018A (en) * 2018-07-27 2018-11-27 中国电子科技集团公司第三十研究所 A kind of mobile communication system user identity hiding method that terminal is initiated
CN109842877A (en) * 2019-04-09 2019-06-04 中国电子科技集团公司第三十研究所 A method of realizing that IMSI changes function in SIM card
CN110856225A (en) * 2018-08-20 2020-02-28 中兴通讯股份有限公司 Network switching method, device, terminal and storage medium
CN111510909A (en) * 2020-03-10 2020-08-07 深圳市广和通无线股份有限公司 Communication module configuration processing method and device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160295544A1 (en) * 2015-03-31 2016-10-06 Globetouch, Inc. Enhanced cloud sim

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634791A (en) * 2012-08-27 2014-03-12 华为终端有限公司 Method for provider network switching, user equipment and remote management platform
CN106105362A (en) * 2014-05-21 2016-11-09 柏思科技有限公司 For configuring the method and system of radio-frequency module
CN104507070A (en) * 2014-12-31 2015-04-08 宇龙计算机通信科技(深圳)有限公司 Method, device and terminal for loading information
WO2017132936A1 (en) * 2016-02-04 2017-08-10 Taisys Rongda Technologies Co., Ltd. System for providing multiple services over mobile network using multiple imsis
CN107734495A (en) * 2017-09-30 2018-02-23 广东欧珀移动通信有限公司 Information processing method, device, storage medium and terminal
CN108901018A (en) * 2018-07-27 2018-11-27 中国电子科技集团公司第三十研究所 A kind of mobile communication system user identity hiding method that terminal is initiated
CN110856225A (en) * 2018-08-20 2020-02-28 中兴通讯股份有限公司 Network switching method, device, terminal and storage medium
CN109842877A (en) * 2019-04-09 2019-06-04 中国电子科技集团公司第三十研究所 A method of realizing that IMSI changes function in SIM card
CN111510909A (en) * 2020-03-10 2020-08-07 深圳市广和通无线股份有限公司 Communication module configuration processing method and device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
S. Chitroub ; et al.SIM Card of the Next-Generation Wireless Networks: Security, Potential Vulnerabilities and Solutions.《2018 2nd European Conference on Electrical Engineering and Computer Science (EECS)》.2018,全文. *
嵌入式UICC及其远程管理技术;杜志敏;《信息通信技术》;全文 *

Also Published As

Publication number Publication date
CN112261640A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
US9391836B2 (en) Method and terminal for loading operator configuration information
CN106937273B (en) HD icon display control method and device
WO2020057400A1 (en) Multi-card roaming network registration method and apparatus, computer device and storage medium
US8060140B2 (en) Method and apparatus for increasing data read speed from subscriber identity module
CN108616979B (en) Dual-card network system control method and device, computer equipment and storage medium
US10609649B2 (en) Method and device for reducing power consumption of terminal, and smart card
CN110809255B (en) Card information activation method and device and storage medium
CN105101135A (en) Method and device for processing emergency call of communication terminal
CN109996315B (en) Network searching method and device of multi-card multi-standby terminal, storage medium and electronic equipment
CN109803252B (en) Secondary eSIM card logout method, eSIM server, terminal and system
CN108718457B (en) Network reselection method, device, chip and storage medium
US20210306974A1 (en) Network search method, computer device, and computer-readable storage medium
US11805397B2 (en) IMEI binding and dynamic IMEI provisioning for wireless devices
CN109379779B (en) Dialing networking method and device, computer equipment and storage medium
CN110831077A (en) Mobile data service switching method, terminal and computer storage medium
CN103118365B (en) The implementation method of the one many nets of card and multi-mode communication terminal
CN103813439A (en) Method for terminal register and terminal
CN112469092A (en) Multi-card mobile terminal optimal network selection method and device, computer equipment and storage medium
CN113242542B (en) Network searching control method and device of mobile terminal and mobile terminal
CN106304205B (en) Method and device for managing network mode
CN112261640B (en) Method and device for eliminating SIM card firmware miscwitch, electronic equipment and storage medium
CN105979552B (en) Method and system for using manual PLMN selection mode
CN103458394A (en) Mobile terminal, processing method and processing device for internal information of mobile terminal
CN112423288B (en) Dialing analysis method, device, computer equipment and storage medium
CN112019995A (en) Data processing method and device, terminal card and data management platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant