CN115695236A - Method, device, equipment and medium for detecting availability of SIM card - Google Patents

Method, device, equipment and medium for detecting availability of SIM card Download PDF

Info

Publication number
CN115695236A
CN115695236A CN202211362455.9A CN202211362455A CN115695236A CN 115695236 A CN115695236 A CN 115695236A CN 202211362455 A CN202211362455 A CN 202211362455A CN 115695236 A CN115695236 A CN 115695236A
Authority
CN
China
Prior art keywords
test
sim card
tested
application program
client
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.)
Pending
Application number
CN202211362455.9A
Other languages
Chinese (zh)
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.)
Chuancheng Technology Shenzhen Co ltd
Original Assignee
Chuancheng Technology Shenzhen Co ltd
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 Chuancheng Technology Shenzhen Co ltd filed Critical Chuancheng Technology Shenzhen Co ltd
Priority to CN202211362455.9A priority Critical patent/CN115695236A/en
Publication of CN115695236A publication Critical patent/CN115695236A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The application discloses a method, a device, equipment and a medium for detecting the availability of an SIM card, which relate to the technical field of communication and comprise the following steps: creating and starting a test task for testing the SIM card, sending the virtual SIM card corresponding to each current SIM card to be tested in the test task to each test terminal device, and sending a test instruction to a client test application program after the client test application program in the test terminal device successfully registers the virtual SIM card to a corresponding operator network so that the client test application program can test the virtual SIM card and obtain a test result; obtaining a test result and judging whether the test is successful, if so, determining that the current SIM card to be tested is available; and sending the virtual SIM card corresponding to the next SIM card to be tested to the test terminal equipment, and re-executing the steps until all the SIM cards to be tested in the test task are tested. Automatic detection of the availability of a large number of SIM cards is realized.

Description

Method, device, equipment and medium for detecting availability of SIM card
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a medium for detecting availability of an SIM card.
Background
The SIM card is one of the important basic carriers for the user to use the mobile network service at present, and the availability of the SIM card is one of the necessary conditions for the user to use the mobile communication network service normally, but due to the consistency problem existing when the SIM card manufacturer produces the SIM card or the software configuration error of the network operator, the SIM card provided for the user may be actually unavailable, which directly affects the experience of the user in using the network service. Therefore, before the SIM card is delivered to the official user for use, the availability of the SIM card needs to be quickly checked and confirmed, so as to ensure that the official user can normally use the mobile network service after applying for taking the SIM card. .
The currently adopted method is to randomly extract a certain proportion of SIM cards from a SIM card pool to be detected, then check and confirm the SIM cards in a manual mode, specifically, the SIM cards are directly inserted into a card slot of a communication equipment terminal, and then start up to check whether mobile network service is normal, but the method is difficult to cover each SIM card in the SIM card pool, namely, the available condition of each SIM card cannot be mastered, and meanwhile, when the number of the SIM card pool exceeds a certain range, the manual checking method needs a large amount of manpower or time.
In summary, how to achieve automatic detection of availability of a large number of SIM cards is a problem to be solved at present.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, a device and a medium for detecting the availability of SIM cards, which can realize automatic detection of the availability of a large number of SIM cards. The specific scheme is as follows:
in a first aspect, the present application discloses a method for detecting availability of a SIM card, comprising:
creating and starting a test task for testing SIM cards, and sending virtual SIM cards corresponding to the current SIM cards to be tested in the test task to each test terminal device so that a client test application program in the test terminal device can register the virtual SIM cards to corresponding operator networks;
sending a test instruction to the client test application program after monitoring that the virtual SIM card is successfully registered to the corresponding operator network, the client test application program executes a corresponding test flow to the virtual SIM card based on the test instruction to obtain a test result;
acquiring the test result, and judging whether the test result is result information for representing that the test passes by using a preset judgment rule, if so, determining that the current SIM card to be tested is available;
and sending a virtual SIM card corresponding to the next SIM card to be tested to the test terminal equipment, and skipping to the step of sending a test instruction to the client test application program after monitoring that the virtual SIM card is successfully registered to the corresponding operator network, until the test of all the SIM cards to be tested in the test task is completed.
Optionally, the method for detecting the availability of the SIM card further includes:
reading an SIM card to be tested by SIM card reading equipment in advance to acquire the information of the SIM card to be tested, and storing the information of the SIM card to be tested into a background database;
correspondingly, the creating and starting tasks for testing the availability of the SIM card comprise:
and establishing a task for testing the availability of the SIM card based on the information of the SIM card to be tested stored in the background database, and starting the test task.
Optionally, the sending the virtual SIM card corresponding to each current SIM card to be tested in the test task to each test terminal device includes:
acquiring an SIM card application request sent by a client test application program in each test terminal device, and judging whether an account corresponding to each client test application program is a test account;
and if the test account is the test account, sending the virtual SIM cards corresponding to the current SIM cards to be tested in the test task to each test terminal device based on the SIM card application request.
Optionally, the determining, by using a preset rule, whether the test result is result information for representing that the test passes includes:
acquiring a response code carried in the test result, and judging whether the response code is consistent with a preset response code;
and if so, determining that the test result is result information for representing that the test is passed.
Optionally, the method for detecting the availability of the SIM card further includes:
if the virtual SIM card corresponding to the current SIM card to be tested is monitored to be not successfully registered to the corresponding operator network, marking the test result of the current SIM card to be tested as failure;
acquiring a card change request which is sent by the client test application program and used for reapplying an SIM card to be tested, and judging whether the SIM card to be tested which is not tested exists in the test task or not;
and if so, sending the virtual SIM card corresponding to the next SIM card to be tested to the client test application program based on the card change request.
Optionally, in the process of obtaining the test result, the method further includes:
if the test result is not obtained within the preset time limit, marking the test result of the current SIM card to be tested as failure, judging whether the SIM card to be tested which is not tested exists in the test task;
and if so, sending the virtual SIM card corresponding to the next SIM card to be tested to the client test application program.
Optionally, before the virtual SIM card corresponding to each current SIM card to be tested in the test task is sent to each test terminal device, further comprising:
acquiring a plurality of pre-registered test account numbers, determining a corresponding number of test terminal devices,
installing and starting a client test application on each of said test terminal devices, and logging in a corresponding test account in each client test application program.
In a second aspect, the present application discloses an apparatus for detecting availability of a SIM card, comprising:
the network registration module is used for creating and starting a test task for testing the SIM cards, and sending the virtual SIM cards corresponding to the current SIM cards to be tested in the test task to each test terminal device so that a client test application program in the test terminal device can register the virtual SIM cards to the corresponding operator network;
the SIM card testing module is used for sending a testing instruction to the client testing application program after monitoring that the virtual SIM card is successfully registered to the corresponding operator network, so that the client testing application program executes a corresponding testing process on the virtual SIM card based on the testing instruction to obtain a testing result;
the test result judging module is used for acquiring the test result, judging whether the test result is result information for representing test passing by using a preset judging rule, and if so, determining that the current SIM card to be tested is available;
and the next SIM card sending module is used for sending the virtual SIM card corresponding to the next SIM card to be tested to the test terminal equipment, and skipping to the step of sending the test instruction to the client test application program after the virtual SIM card is successfully registered to the corresponding operator network, until all the SIM cards to be tested in the test task are tested.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
a processor for executing said computer program for carrying out the steps of the method of detecting the availability of a SIM card as disclosed in the foregoing.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the steps of the method of detecting the availability of a SIM card as disclosed in the foregoing.
Therefore, the method and the device for testing the SIM card establish and start a test task for testing the SIM card, and send the virtual SIM card corresponding to each current SIM card to be tested in the test task to each test terminal device, so that a client test application program in the test terminal device can register the virtual SIM card to a corresponding operator network; after the virtual SIM card is successfully registered to a corresponding operator network, sending a test instruction to the client test application program so that the client test application program executes a corresponding test flow on the virtual SIM card based on the test instruction to obtain a test result; acquiring the test result, and judging whether the test result is result information for representing that the test passes by using a preset judgment rule, if so, determining that the current SIM card to be tested is available; and sending a virtual SIM card corresponding to the next SIM card to be tested to the test terminal equipment, and skipping to the step of sending a test instruction to the client test application program after monitoring that the virtual SIM card is successfully registered to the corresponding operator network, until the test of all the SIM cards to be tested in the test task is completed. Therefore, after a test task for testing the SIM card is created and started, the virtual SIM card corresponding to the current SIM card to be tested is sent to each test terminal device, a client application program in the test terminal device firstly registers the operator network after receiving the virtual SIM card, if the registration is successful, a test instruction is sent to the client application program so that the client test application program can test the virtual SIM card and obtain a test result, whether the test is passed or not is judged according to a preset judgment rule, if the test is passed, the current SIM card to be tested is available, and the next SIM card to be tested is continuously sent to the client test application program for testing until all the SIM cards to be tested are tested. By the scheme, automatic detection of availability of a large number of SIM cards is realized.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flow chart of a method for detecting the availability of a SIM card disclosed in the present application;
fig. 2 is a flowchart of a specific method for detecting the availability of a SIM card disclosed in the present application;
fig. 3 is a schematic flowchart of a specific process for detecting the availability of a SIM card disclosed in the present application;
fig. 4 is a schematic structural diagram of an apparatus for detecting availability of a SIM card according to the present disclosure;
fig. 5 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
In order to confirm the availability of the SIM card, the currently adopted method is to randomly extract a certain proportion of SIM cards from a SIM card pool to be detected, then check and confirm the SIM cards in a manual mode, specifically, the SIM cards are directly inserted into a card slot of a communication equipment terminal, then the mobile network service is started to check whether the mobile network service is normal, but the method is difficult to cover each SIM card in the SIM card pool, namely, the available condition of each SIM card cannot be mastered, and meanwhile, when the number of the SIM card pools exceeds a certain range, the manual checking method needs a large amount of manpower or time. Therefore, the embodiment of the application discloses a method, a device, equipment and a medium for detecting the availability of an SIM card, which can realize the automatic detection of the availability of a large number of SIM cards.
Referring to fig. 1, an embodiment of the present application discloses a method for detecting availability of a SIM card, where the method includes:
step S11: and creating and starting a test task for testing the SIM card, and sending the virtual SIM card corresponding to each current SIM card to be tested in the test task to each test terminal device, so that a client test application program in the test terminal device can register the virtual SIM card to a corresponding operator network.
In this embodiment, when the availability of the SIM card needs to be detected, a test task for testing the SIM card is created and started in the background server. It should be noted that, before creating the test task, the method further includes: reading the SIM card to be tested by SIM card reading equipment in advance to acquire the information of the SIM card to be tested, and storing the information of the SIM card to be tested in a background database. Namely, firstly, all the SIM cards to be detected are inserted into the SIM card reading equipment for reading, and the read information of the SIM cards to be detected is stored in the background server database for the use of the background automatic card dispatching engine server. Correspondingly, the creating and starting tasks for testing the availability of the SIM card include: and creating a task for testing the availability of the SIM card based on the information of the SIM card to be tested stored in the background database, and starting the testing task. That is, corresponding test information is created according to the SIM card information to be tested read by the SIM card reading device, so as to perform availability detection on the SIM cards to be tested.
It should be further noted that, before the sending the virtual SIM card corresponding to each current SIM card to be tested in the test task to each test terminal device, the method further includes: the method comprises the steps of obtaining a plurality of pre-registered test account numbers, determining a corresponding number of test terminal devices, installing and starting a client test application program on each test terminal device, and logging in the corresponding test account number in each client test application program. It can be understood that, in this embodiment, a plurality of pre-registered test account numbers need to be acquired, a corresponding number of test terminal devices supporting the virtual card communication technology are prepared, a corresponding client test application program is installed and started on each test terminal device, and a corresponding test account number is logged in the client test application program, so that the client test application program can be connected to a background server to apply for a to-be-tested SIM card. Further, after the test task is started, the automatic card dispatching engine server sends the virtual SIM cards corresponding to the current SIM cards to be tested in the test task to each test terminal device, after the client test application program of the test terminal device receives the virtual SIM cards, operator network registration operation is firstly required, and an operator can perform mobility, telecommunication, link and the like, that is, the virtual SIM cards are registered to the corresponding operator network.
Step S12: and after the virtual SIM card is successfully registered to the corresponding operator network, sending a test instruction to the client test application program so that the client test application program executes a corresponding test flow on the virtual SIM card based on the test instruction to obtain a test result.
In this embodiment, it can be understood that the client application test program may send a confirmation message after successfully registering the virtual SIM card in the operator network, and then the background server may determine that the virtual SIM card has been successfully registered in the corresponding operator network after monitoring the message, and at this time, the automatic card dispatching engine server further sends a test instruction to the client test application program, so that the client test application program executes a corresponding test procedure on the virtual SIM card based on the test instruction to obtain a test result. It should be noted that the test instruction is specifically an access request instruction based on the HTTP protocol.
Step S13: and acquiring the test result, judging whether the test result is result information for representing that the test passes by using a preset judgment rule, and if so, determining that the current SIM card to be tested is available.
In this embodiment, after the background server obtains the test result returned by the client test application, the preset determination rule is used to determine whether the test result is result information for representing that the test passes, that is, whether the test of the current SIM card to be tested passes is determined. If the test is passed, determining that the current SIM card to be tested is available; if the test is not passed, the SIM card to be tested is not available, and then the test result of the SIM card to be tested corresponding to the record mark is recorded and marked.
Step S14: and sending a virtual SIM card corresponding to the next SIM card to be tested to the test terminal equipment, and after the virtual SIM card is monitored to be successfully registered to the corresponding operator network, sending a test instruction to the client test application program until all the SIM cards to be tested in the test task are tested.
In this embodiment, the virtual SIM card corresponding to the next SIM card to be tested is continuously sent to the test terminal device for testing, that is, after it is monitored that the virtual SIM card is successfully registered in the corresponding operator network, the step of sending the test instruction to the client test application program is skipped again until the test of all the SIM cards to be tested in the test task is completed.
Therefore, the method and the device for testing the SIM card establish and start a test task for testing the SIM card, and send the virtual SIM card corresponding to each current SIM card to be tested in the test task to each test terminal device, so that a client test application program in the test terminal device can register the virtual SIM card to a corresponding operator network; after the virtual SIM card is successfully registered to a corresponding operator network, sending a test instruction to the client test application program so that the client test application program executes a corresponding test flow on the virtual SIM card based on the test instruction to obtain a test result; acquiring the test result, judging whether the test result is result information for representing that the test passes by using a preset judgment rule, and if so, determining that the current SIM card to be tested is available; and sending a virtual SIM card corresponding to the next SIM card to be tested to the test terminal equipment, and after the virtual SIM card is monitored to be successfully registered to the corresponding operator network, sending a test instruction to the client test application program until all the SIM cards to be tested in the test task are tested. Therefore, after a test task for testing the SIM card is created and started, the virtual SIM card corresponding to the current SIM card to be tested is sent to each test terminal device, a client application program in the test terminal device firstly registers the operator network after receiving the virtual SIM card, if the registration is successful, a test instruction is sent to the client application program so that the client test application program can test the virtual SIM card and obtain a test result, whether the test is passed or not is judged according to a preset judgment rule, if the test is passed, the current SIM card to be tested is available, and the next SIM card to be tested is continuously sent to the client test application program for testing until all the SIM cards to be tested are tested. By the scheme, automatic detection of availability of a large number of SIM cards is realized.
Referring to fig. 2 and fig. 3, the embodiment of the present application discloses a specific method for detecting the availability of a SIM card, and this embodiment further describes and optimizes the technical solution with respect to the previous embodiment. The method specifically comprises the following steps:
step S21: the method comprises the steps of creating and starting a test task for testing the SIM card, obtaining an SIM card application request sent by a client test application program in each test terminal device, and judging whether an account corresponding to each client test application program is a test account.
In this embodiment, after the test task is created, the client test application of the test terminal device is started and the corresponding test account is logged in, and then the client test application starts to apply for the SIM card to the background server for testing, that is, the background server obtains the SIM card application request sent by the client test application in each test terminal device. After receiving the SIM card application request, the background server firstly judges whether the account is a test account.
Step S22: and if the test account number is the test account number, sending the virtual SIM card corresponding to each current SIM card to be tested in the test task to each test terminal device based on the SIM card application request so that a client test application program in the test terminal device can register the virtual SIM card to a corresponding operator network.
In this embodiment, if the test account is a test account, the dial test system is called to perform a card dispatching operation, that is, based on the SIM card application request, the automatic card dispatching engine server dispatches the current SIM card to be tested to the test terminal device corresponding to the test account in the form of a virtual card to perform subsequent tests. If the account number is not tested, other non-dial testing systems are called to complete the subsequent process operation.
Step S23: and after the virtual SIM card is successfully registered to the corresponding operator network, sending a test instruction to the client test application program so that the client test application program executes a corresponding test flow on the virtual SIM card based on the test instruction to obtain a test result.
In a specific embodiment, the method further comprises: if the virtual SIM card corresponding to the current SIM card to be tested is monitored to be not successfully registered to the corresponding operator network, marking the test result of the current SIM card to be tested as failure; acquiring a card change request which is sent by the client test application program and used for reapplying an SIM card to be tested, and judging whether the SIM card to be tested which is not tested exists in the test task or not; and if so, sending the virtual SIM card corresponding to the next SIM card to be tested to the client test application program based on the card change request. That is, if the operator network registration fails, the client test application program may initiate a card change request for reapplication of the SIM card to be tested, that is, actively reapplication of the card change, at this time, the background server may directly mark the test result record of the SIM card to be tested as a failure, and determine whether there is still an untested SIM card to be tested in the test task, if so, send the virtual SIM card corresponding to the next SIM card to be tested to the client test application program, that is, continue to assign the next new SIM card to be tested to the client test application program for testing. It should be noted that all the SIM cards to be tested may be stored in a queue form, and form a SIM card queue to be tested, and when a next SIM card to be tested needs to be sent down, a new SIM card to be tested may be taken from the head of the SIM card queue to be tested and sent down to the test terminal device corresponding to the test account for testing.
Further, when the virtual SIM card corresponding to the next SIM card to be tested is sent to the client test application program based on the card change request, in order to avoid an abnormal situation, it may be determined whether the SIM card currently held by the corresponding test account is still under test, that is, whether the test is not completed. In this way, it is ensured that the received card change request is not due to an abnormal card change caused by the card change instruction pushed by the background server, and therefore, if the card changing instruction is pushed and issued by the acquired server, the SIM card which is just tested at present is directly dispatched to continue to complete the test.
Step S24: acquiring the test result, acquiring a response code carried in the test result, and then judging whether the response code is consistent with a preset response code; and if so, determining that the test result is result information for representing the passing of the test, and determining that the current SIM card to be tested is available.
In this embodiment, after the test result is obtained, a response code carried in the test result is determined, specifically, the response code may be an HTTP access request response code, and it is determined whether the response code is a preset response code 206 or 200, where if the response code is 206 or 200, the test is passed, and otherwise, the test is failed.
Further, in the process of obtaining the test result, the method further includes: if the test result is not obtained within a preset time limit, marking the test result of the current SIM card to be tested as failure, and judging whether the SIM card to be tested which is not tested exists in the test task; and if so, sending the virtual SIM card corresponding to the next SIM card to be tested to the client test application program. It can be understood that, after the background card dispatching engine server dispatches the SIM card to be tested to the test account for testing, the test start time of each SIM card to be tested is recorded, and timing is started synchronously, and the upper limit of the overall test time consumption of each card is set to a default value, that is, the preset time limit. Then, starting from the card dispatching, if the preset time limit is exceeded, the background still does not receive the test result of the HTTP access request, and the background directly marks the test result of the SIM card to be tested as a failure, where the preset time limit may be specifically set to 2 minutes. Meanwhile, the background server judges whether the SIM card to be tested which is not tested still exists in the test task, namely judges whether the SIM card queue to be tested is empty, and if not, the background server continuously sends a new SIM card to be tested to the client test application program; if the queue is empty, the testing of all the SIM cards to be tested is finished, the current testing task is automatically stopped, and each testing terminal device is informed to release the SIM card to be tested which is currently held by each testing terminal device.
Step S25: and sending a virtual SIM card corresponding to the next SIM card to be tested to the test terminal equipment, and skipping to the step of sending a test instruction to the client test application program after monitoring that the virtual SIM card is successfully registered to the corresponding operator network, until the test of all the SIM cards to be tested in the test task is completed.
In this embodiment, before issuing a new SIM card to be tested each time, it is determined whether the current SIM card queue to be tested is empty, and if not, the new SIM card to be tested is sent to perform testing until all the SIM cards to be tested in the SIM card queue to be tested are tested, the current testing task is automatically stopped, and each testing terminal device is notified to release the currently held SIM card to be tested.
For a more specific processing procedure of the step S23, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Therefore, after the test task is created in the embodiment of the application, the client test application program can apply for the SIM card to test the background server, the background server can firstly judge whether the account is the test account after receiving the SIM card application request, and if the account is the test account, the dial test system can be called to dispatch the card. In addition, if the operator network registration fails or the test result returns overtime, the background server can directly mark the test result record of the SIM card to be tested as failure, and when the SIM card queue to be tested is not empty, the next new SIM card to be tested is assigned to the client test application program for testing, so that the detection process of the availability of a large number of SIM cards is realized quickly and automatically.
Referring to fig. 4, an embodiment of the present application discloses an apparatus for detecting availability of a SIM card, where the apparatus includes:
the network registration module 11 is configured to create and start a test task for testing an SIM card, and send a virtual SIM card corresponding to each current SIM card to be tested in the test task to each test terminal device, so that a client test application in the test terminal device registers the virtual SIM card to a corresponding operator network;
the SIM card testing module 12 is configured to send a test instruction to the client test application program after monitoring that the virtual SIM card is successfully registered in the corresponding operator network, so that the client test application program executes a corresponding test procedure on the virtual SIM card based on the test instruction to obtain a test result;
the test result judging module 13 is configured to obtain the test result, judge whether the test result is result information for representing that the test passes by using a preset judging rule, and determine that the current SIM card to be tested is available if the test result is the result information;
and a next SIM card sending module 14, configured to send a virtual SIM card corresponding to the next SIM card to be tested to the test terminal device, and skip to the step of sending a test instruction to the client test application program after it is monitored that the virtual SIM card is successfully registered in the corresponding operator network, until the test of all SIM cards to be tested in the test task is completed.
Therefore, the method and the device for testing the SIM card establish and start a test task for testing the SIM card, and send the virtual SIM card corresponding to each current SIM card to be tested in the test task to each test terminal device, so that a client test application program in the test terminal device can register the virtual SIM card to a corresponding operator network; after the virtual SIM card is successfully registered to a corresponding operator network, sending a test instruction to the client test application program so that the client test application program executes a corresponding test flow on the virtual SIM card based on the test instruction to obtain a test result; acquiring the test result, judging whether the test result is result information for representing that the test passes by using a preset judgment rule, and if so, determining that the current SIM card to be tested is available; and sending a virtual SIM card corresponding to the next SIM card to be tested to the test terminal equipment, and skipping to the step of sending a test instruction to the client test application program after monitoring that the virtual SIM card is successfully registered to the corresponding operator network, until the test of all the SIM cards to be tested in the test task is completed. Therefore, after a test task for testing the SIM card is created and started, the virtual SIM card corresponding to the current SIM card to be tested is sent to each test terminal device, a client application program in the test terminal device firstly registers the operator network after receiving the virtual SIM card, if the registration is successful, a test instruction is sent to the client application program so that the client test application program can test the virtual SIM card and obtain a test result, then whether the test is passed or not is judged according to a preset judgment rule, if the test is passed, the current SIM card to be tested is available, and the next SIM card to be tested is continuously sent to the client test application program for testing until all the SIM cards to be tested are tested. By the scheme, automatic detection of availability of a large number of SIM cards is realized.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The method specifically comprises the following steps: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is used for storing a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the method for detecting the availability of a SIM card performed by an electronic device disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 21 may further include an AI (Artificial Intelligence) processor for processing a calculation operation related to machine learning.
In addition, the storage 22 is used as a carrier for storing resources, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., the resources stored thereon include an operating system 221, a computer program 222, data 223, etc., and the storage mode may be a transient storage mode or a permanent storage mode.
The operating system 221 is used for managing and controlling each hardware device on the electronic device 20 and the computer program 222, so as to implement the operation and processing of the mass data 223 in the memory 22 by the processor 21, which may be Windows, unix, linux, or the like. The computer program 222 may further comprise a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the method for detecting the availability of a SIM card performed by the electronic device 20 disclosed in any of the foregoing embodiments. The data 223 may include data received by the electronic device and transmitted from an external device, or may include data collected by the input/output interface 25 itself.
Further, an embodiment of the present application also discloses a computer-readable storage medium, in which a computer program is stored, and when the computer program is loaded and executed by a processor, the method steps executed in the process of detecting the availability of the SIM card disclosed in any of the foregoing embodiments are implemented.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The method, apparatus, device and storage medium for detecting the availability of the SIM card provided by the present invention are described in detail above, and a specific example is applied in the present document to illustrate the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for detecting SIM card availability, comprising:
creating and starting a test task for testing SIM cards, and sending virtual SIM cards corresponding to the current SIM cards to be tested in the test task to each test terminal device so that a client test application program in the test terminal device can register the virtual SIM cards to a corresponding operator network;
after the virtual SIM card is successfully registered to a corresponding operator network, sending a test instruction to the client test application program so that the client test application program executes a corresponding test flow on the virtual SIM card based on the test instruction to obtain a test result;
acquiring the test result, judging whether the test result is result information for representing that the test passes by using a preset judgment rule, and if so, determining that the current SIM card to be tested is available;
and sending a virtual SIM card corresponding to the next SIM card to be tested to the test terminal equipment, and skipping to the step of sending a test instruction to the client test application program after monitoring that the virtual SIM card is successfully registered to the corresponding operator network, until the test of all the SIM cards to be tested in the test task is completed.
2. The method for detecting the availability of a SIM card according to claim 1, further comprising:
reading an SIM card to be tested by SIM card reading equipment in advance to acquire the information of the SIM card to be tested, and storing the information of the SIM card to be tested into a background database;
correspondingly, the creating and starting tasks for testing the availability of the SIM card comprise:
and establishing a task for testing the availability of the SIM card based on the information of the SIM card to be tested stored in the background database, and starting the test task.
3. The method for detecting the availability of the SIM card according to claim 1, wherein the sending the virtual SIM card corresponding to each current SIM card to be tested in the test task to each test terminal device comprises:
acquiring an SIM card application request sent by a client test application program in each test terminal device, and judging whether an account corresponding to each client test application program is a test account;
and if the test account is the test account, sending the virtual SIM cards corresponding to the current SIM cards to be tested in the test task to each test terminal device based on the SIM card application request.
4. The method for detecting the availability of the SIM card according to claim 1, wherein the determining whether the test result is result information for representing that the test passes by using a preset rule includes:
acquiring a response code carried in the test result, and judging whether the response code is consistent with a preset response code;
and if so, determining that the test result is result information used for representing the passing of the test.
5. The method for detecting the availability of a SIM card according to claim 1, further comprising:
if the virtual SIM card corresponding to the current SIM card to be tested is monitored to be not successfully registered to the corresponding operator network, marking the test result of the current SIM card to be tested as failure;
acquiring a card change request which is sent by the client test application program and used for reapplying an SIM card to be tested, and judging whether the SIM card to be tested which is not tested exists in the test task or not;
and if so, sending the virtual SIM card corresponding to the next SIM card to be tested to the client test application program based on the card change request.
6. The method for detecting the availability of the SIM card according to claim 1, wherein the step of obtaining the test result further comprises:
if the test result is not obtained within a preset time limit, marking the test result of the current SIM card to be tested as failure, and judging whether the SIM card to be tested which is not tested exists in the test task;
and if so, sending the virtual SIM card corresponding to the next SIM card to be tested to the client test application program.
7. The method according to any one of claims 1 to 6, wherein before sending the virtual SIM card corresponding to each current SIM card to be tested in the test task to each test terminal device, the method further comprises:
acquiring a plurality of pre-registered test account numbers, determining a corresponding number of test terminal devices,
and installing and starting a client test application program on each test terminal device, and logging in a corresponding test account in each client test application program.
8. An apparatus for detecting SIM card availability, comprising:
the network registration module is used for creating and starting a test task for testing the SIM cards, and sending the virtual SIM cards corresponding to the current SIM cards to be tested in the test task to each test terminal device so that a client test application program in the test terminal device can register the virtual SIM cards to the corresponding operator network;
the SIM card testing module is used for sending a testing instruction to the client testing application program after monitoring that the virtual SIM card is successfully registered to the corresponding operator network, so that the client testing application program executes a corresponding testing process on the virtual SIM card based on the testing instruction to obtain a testing result;
the test result judging module is used for acquiring the test result, judging whether the test result is result information for representing test passing by using a preset judging rule, and if so, determining that the current SIM card to be tested is available;
and the next SIM card sending module is used for sending the virtual SIM card corresponding to the next SIM card to be tested to the test terminal equipment, and skipping to the step of sending the test instruction to the client test application program after the virtual SIM card is successfully registered to the corresponding operator network, until all the SIM cards to be tested in the test task are tested.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to carry out the steps of the method of detecting the availability of a SIM card according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program, when being executed by a processor, carries out the steps of the method of detecting the availability of a SIM card according to any one of claims 1 to 7.
CN202211362455.9A 2022-11-02 2022-11-02 Method, device, equipment and medium for detecting availability of SIM card Pending CN115695236A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211362455.9A CN115695236A (en) 2022-11-02 2022-11-02 Method, device, equipment and medium for detecting availability of SIM card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211362455.9A CN115695236A (en) 2022-11-02 2022-11-02 Method, device, equipment and medium for detecting availability of SIM card

Publications (1)

Publication Number Publication Date
CN115695236A true CN115695236A (en) 2023-02-03

Family

ID=85048305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211362455.9A Pending CN115695236A (en) 2022-11-02 2022-11-02 Method, device, equipment and medium for detecting availability of SIM card

Country Status (1)

Country Link
CN (1) CN115695236A (en)

Similar Documents

Publication Publication Date Title
JP2009528734A (en) Improved method and system for testing a subscriber identity module (SIM) application toolkit
US20150024736A1 (en) System and Method for Enhanced Diagnostics on Mobile Communication Devices
CN105607994A (en) Mobile terminal software testing method and system
CN108990047B (en) Test method, device and medium for subscription relationship management data preparation platform
CN109002457A (en) Downloading channel statistical processing methods, device and the electronic equipment of application program
CN105389263A (en) Method, system and equipment for monitoring application software permissions
CN110149298A (en) A kind of method and apparatus for kidnapping detection
KR101982504B1 (en) Vehicle to everything communication conforming device
CN104869019A (en) Feedback method and apparatus for positioning faults, and server
CN108268296A (en) Loading method, the client and server of page layout
CN108319550A (en) A kind of test system and test method
CN111124911A (en) Automatic testing method, device, equipment and readable storage medium
CN111464376A (en) Website availability monitoring method and device, storage medium and computer equipment
CN106792784B (en) A kind of method, server and system carrying out data check in server side
CN110312245A (en) A kind of business monitoring method and device of transnational roaming terminal
CN105577879A (en) Address book management method and mobile terminal
JP2006211638A (en) Scenario editing apparatus, dummy base station test simulator for wireless communication, dummy terminal test simulator for wireless communication, scenario editing method, test processing method, computer readable storage medium with program stored thereon, and program
CN109246280B (en) Address book cloud processing method and device, computer equipment and readable storage medium
CN108280024B (en) Flow distribution strategy testing method and device and electronic equipment
CN115695236A (en) Method, device, equipment and medium for detecting availability of SIM card
CN110198222A (en) A kind of distribution power automation terminal plug and play test method and test main website
CN107205241B (en) Wireless communication detection method and equipment thereof
CN106453972A (en) Automatic call testing system and method in call center
CN110087232B (en) Call processing method and device based on intelligent equipment and server
CN114124727B (en) Network management communication pressure testing method and system

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