Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art. Therefore, the invention aims to provide a method for rapidly and accurately identifying the SIM card type of the cloud SIM application terminal.
The technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a method for identifying a SIM card type of a cloud SIM application terminal, including:
obtaining IMSI information of a remote SIM card, and storing the IMSI information of the remote SIM card;
obtaining IMSI information of a current SIM card, and comparing the IMSI information of the current SIM card with the IMSI information of the remote SIM card;
if the IMSI information of the current SIM card is consistent with the IMSI information of the remote SIM card, judging that the type of the current SIM card is the remote SIM card, otherwise, judging that the type of the current SIM card is the physical SIM card.
Further, the acquiring IMSI information of the remote SIM card specifically includes:
and after the cloud SIM application terminal starts a remote mode, automatically acquiring IMSI information of the remote SIM card, and storing the IMSI information of the remote SIM card.
Further, the obtaining IMSI information of the current SIM card and comparing the IMSI information of the current SIM card with the IMSI information of the remote card specifically includes:
the current SIM card comprises a first SIM card or a second SIM card;
after the image file of the first SIM card is obtained, obtaining IMSI information of the first SIM card from the image file, and comparing the IMSI information of the first SIM card with the IMSI information of the remote SIM card;
or obtaining the IMSI information of the second SIM card, and comparing the IMSI information of the second SIM card with the IMSI information of the remote SIM card.
Further, after an image file of the first SIM card is acquired through a MODEM module in the cloud SIM application terminal, IMSI information of the first SIM card is acquired from the image file; or, obtaining IMSI information of the second SIM card through the MODEM module.
In a second aspect, the present invention provides an SIM card type identification apparatus for a cloud SIM application terminal, which includes:
the data information acquisition and storage module is used for acquiring and storing IMSI information of the remote SIM card;
the data information acquisition and comparison module is used for acquiring the IMSI information of the current SIM card and comparing the IMSI information with the information of the remote SIM card;
and the comparison result output module is used for outputting whether the current SIM card is the remote SIM card or not according to the result of comparing the IMSI information of the current SIM card with the information of the remote SIM card.
In a third aspect, the present invention provides a cloud SIM application terminal, which includes a MODEM module, a processor, and the SIM card type identification apparatus;
the data information acquisition and storage module is used for acquiring and storing IMSI information of the remote SIM card;
the MODEM module is used for acquiring IMSI information of the current SIM card and transmitting the IMSI information to the data information acquisition and comparison module;
the data information acquisition and comparison module compares the received IMSI information of the current SIM card with the information of the remote SIM card and sends a comparison result to the comparison result output module;
and the comparison result output module outputs whether the current SIM card is the remote SIM card to the processor according to the comparison result.
The invention has the beneficial effects that:
the SIM card type identification method of the cloud SIM application terminal comprises the steps of obtaining and storing IMSI information of a remote SIM card, obtaining IMSI information of a current SIM card, comparing the IMSI information of the current SIM card with the stored IMSI information of the remote SIM card, judging the type of the current SIM card to be the remote SIM card if the IMSI information of the current SIM card is consistent with the IMSI information of the remote SIM card, and judging the type of the current SIM card to be a physical SIM card if the IMSI information of the current SIM card is not consistent with the IMSI information of the remote SIM card; the problem that in the prior art, as the SIM card type of the cloud SIM application terminal cannot be identified in time, an accurate corresponding control instruction cannot be sent to control the current SIM card, and the cloud SIM application terminal may further fail is solved; the method for rapidly and accurately identifying the type of the SIM card of the cloud SIM application terminal is provided.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The first embodiment is as follows:
as shown in fig. 3, the cloud SIM application terminal in the present invention includes a MODEM module, a processor, and an SIM card type identification apparatus of the cloud SIM application terminal; the MODEM module is used for acquiring IMSI information of a current SIM card and transmitting the IMSI information to an SIM card type identification device of a cloud SIM application terminal, comparing the IMSI information with IMSI information of a remote SIM card stored in the cloud SIM application terminal, if the IMSI information of the current SIM card is consistent with the IMSI information of the remote SIM card stored in the SIM card type identification device (namely the SIM card type identification device of the cloud SIM application terminal, hereinafter referred to as the SIM card type identification device), outputting the information that the SIM card type used by the current cloud SIM terminal is the remote SIM card to a processor, and otherwise, outputting the information that the practical SIM card type of the current cloud SIM terminal is the physical SIM card to the processor; the technical problem that the cloud SIM application terminal in the prior art cannot quickly and accurately judge the type of the currently used SIM card is solved.
Specifically, referring to fig. 2 and 3, the SIM card type identification apparatus in this embodiment includes a data information acquisition and storage module, a data information multi-comparison module, and a comparison result output module; after the cloud SIM application terminal is started up in the remote mode, the data information acquisition and storage module acquires IMSI information of a remote SIM card from the remote SIM card distributed to the cloud SIM application terminal by a cloud SIM application system, stores the IMSI information of the remote SIM card, and after the cloud SIM application terminal is started up, the MODEM module is used for continuously acquiring the IMSI information of a current SIM card of the terminal, wherein the current SIM card comprises a first SIM card or a second SIM card.
(1) When the MODEM module acquires IMSI information that the current SIM card is the first SIM card, the details are as follows:
after the cloud SIM application terminal is started, data information acquired by the MODEM module is an image file, and the image file contains IMSI information of the first SIM card, so that the MODEM module acquires the IMSI information of the first SIM card from the image file and transmits the IMSI information to the data information acquisition and comparison module in the SIM card identification device, the data information acquisition and comparison module acquires IMSI information of the remote SIM card from the data information acquisition and storage module and compares the IMSI information with the IMSI information of the first SIM card, at the moment, the IMSI information of the first SIM card is known to be consistent with the IMSI information of the remote SIM card stored in the data acquisition and storage module, and then the information that the current SIM card is the remote SIM card is output through the comparison result output module, and a processor of the cloud SIM application terminal is informed that the type of the current SIM card is the remote SIM card.
(2) When the MODEM module acquires IMSI information that the current SIM card is the second SIM card, the details are as follows:
after the cloud SIM application terminal is started, the data information acquired by the MODEM module is IMSI data information, the IMSI data information is IMSI data information of the second SIM card, the MODEM module acquires the IMSI information of the second SIM card and transmits the IMSI information to the data information acquisition and comparison module in the SIM card identification device, the data information acquisition and comparison module acquires IMSI information of the remote SIM card from the data information acquisition and storage module and compares the IMSI information with the IMSI information of the second SIM card, at the moment, the IMSI information of the second SIM card is known to be inconsistent with the IMSI information of the remote SIM card stored in the data acquisition and storage module, the information that the current SIM card is a physical SIM card is output through the comparison result output module, and a processor of the cloud SIM application terminal is informed that the type of the current SIM card is the physical SIM card.
In summary, in the embodiment, the cloud SIM application terminal acquires IMSI information of a current SIM card by providing the MODEM module, compares the IMSI information of the current SIM card with IMSI information of a remote SIM card stored in the SIM card type identification device, and obtains a type of a SIM card currently used by the cloud SIM application terminal according to a comparison result; the technical problem that the current SIM card type cannot be judged quickly and accurately by the application terminal in the prior art is solved, and the cloud SIM application terminal capable of judging the current SIM card type quickly and effectively is provided.
Example two:
as shown in fig. 2, the present invention provides an SIM card type identification apparatus for a cloud SIM application terminal, which includes:
the data information acquisition and storage module is used for acquiring and storing IMSI information of the remote SIM card;
the data information acquisition and comparison module is used for acquiring the IMSI information of the current SIM card and comparing the IMSI information with the information of the remote SIM card;
and the comparison result output module is used for outputting whether the current SIM card is the remote SIM card or not according to the IMSI information of the current SIM card and the result of comparison with the information of the remote SIM card.
The implementation process principle may correspond to the content described in the first embodiment by referring to each other, and will not be described in detail herein.
Example three:
as shown in fig. 1, the present invention provides a method for identifying a SIM card type of a cloud SIM application terminal, which includes:
s01, obtaining IMSI information of the remote SIM card, and storing the IMSI information of the remote SIM card;
s02, obtaining IMSI information of the current SIM card, and comparing the IMSI information of the current SIM card with the IMSI information of the remote SIM card;
s03, if the IMSI information of the current SIM card is consistent with the IMSI information of the remote SIM card, judging that the type of the current SIM card is the remote SIM card, otherwise, judging that the type of the current SIM card is the physical SIM card.
Specifically, the method comprises the following steps:
the obtaining IMSI information of the remote SIM card specifically includes:
and after the cloud SIM application terminal starts a remote mode, automatically acquiring IMSI information of the remote SIM card, and storing the IMSI information of the remote SIM card.
The obtaining the IMSI information of the current SIM card and comparing the IMSI information of the current SIM card with the IMSI information of the remote card specifically includes:
the current SIM card comprises a first SIM card or a second SIM card;
after the image file of the first SIM card is obtained, obtaining IMSI information of the first SIM card from the image file, and comparing the IMSI information of the first SIM card with the IMSI information of the remote SIM card;
or obtaining the IMSI information of the second SIM card, and comparing the IMSI information of the second SIM card with the IMSI information of the remote SIM card.
After an image file of the first SIM card is obtained through a MODEM module in the cloud SIM application terminal, IMSI information of the first SIM card is obtained from the image file; or, obtaining IMSI information of the second SIM card through the MODEM module.
The process principle implemented by the method and the process principle implemented by the cloud SIM terminal in the first embodiment may correspond to each other by reference, and are not described herein again.
The SIM card type identification method of the cloud SIM application terminal in the embodiment of the invention comprises the steps of obtaining and storing IMSI information of a remote SIM card, then obtaining the current IMSI information of the SIM card, comparing the IMSI information of the current SIM card with the stored IMSI information of the remote SIM card, if the IMSI information of the current SIM card is consistent with the IMSI information of the remote SIM card, judging that the current SIM card is the remote SIM card, and if not, judging that the current SIM card is a physical SIM card; the problem that in the prior art, as the SIM card type of the cloud SIM application terminal cannot be identified in time, an accurate corresponding control instruction cannot be sent to control the current SIM card, and the cloud SIM application terminal may further fail is solved; the method for rapidly and accurately identifying the type of the SIM card of the cloud SIM application terminal is provided.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.