SIM card testing method, device, computer equipment and storage medium
By inserting multiple types of SIM cards and equipment under test into the test board and conducting combined tests, the problem of inefficient SIM card compatibility testing in the prior art is solved, and efficient compatibility testing is achieved.
Patent Information
- Application Number
- CN202210356313.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-06
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2042-04-06
AI Technical Summary
The prior art is difficult to efficiently test the compatibility of different types of SIM cards on mobile terminals, resulting in inefficient testing.
A SIM card testing method is provided, which improves the testing efficiency by inserting multiple types of SIM cards and equipment under test into the test board, and obtaining the labels of each card slot and connection port, and performing combined tests.
Compatibility testing for multiple types of SIM cards is realized, which improves testing efficiency, so that testers can complete the test with just one card insertion and connection operation.
Smart Images

Figure CN114814412B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a SIM card testing method, device, computer equipment, storage medium and computer program product. Background Art
[0002] IoT communications are developing rapidly, with a wide variety of products, covering every corner of life and work. Among them, IoT communications mainly use SIM card traffic for wireless transmission. There are currently three wireless communication operators on the market, and different regions have also launched different SIMs for the IoT industry. Usually, before IoT products are launched, the compatibility of different types of SIM cards needs to be tested. Among them, the compatibility test of SIM cards refers to testing the availability of SIM cards on mobile terminals. Therefore, there is an urgent need for a SIM card testing method that can test the compatibility of different types of SIM cards. Summary of the invention
[0003] Based on this, it is necessary to provide a SIM card testing method, apparatus, computer equipment, computer-readable storage medium and computer program product that can improve the test efficiency of compatibility testing of different types of SIM cards in order to address the above technical problems.
[0004] In a first aspect, the present application provides a SIM card testing method. The method is applied to a SIM card testing system, the system comprising a test board and m connection ports; the test board comprises m card slots; each card slot is used to insert a SIM card, and each card slot has a corresponding unique digital label; each connection port is used to connect a device under test, and each connection port has a corresponding unique digital label; the value range of m is 2 to 8. The method comprises:
[0005] In the case where n types of SIM cards have been inserted into the test board, the n types of SIM cards occupy n card slots, and n types of devices under test have been connected to n connection ports among the m connection ports, the numbers corresponding to the card slots into which the SIM cards have been inserted and the numbers corresponding to the connection ports connected to the devices under test are obtained, and the numbers are used as n target card slot numbers and n target connection port numbers respectively; the value of n is not greater than m;
[0006] Combining the target card slot number in the n target card slot numbers with the target connection port number in the n target connection port numbers to obtain n combination results;
[0007] According to each combination result, the compatibility test result of each SIM card under each combination result is obtained.
[0008] In one embodiment, obtaining the number corresponding to the card slot into which the SIM card has been inserted and the number corresponding to the connection port to which the device under test has been connected includes:
[0009] Read the in-position level of each card slot and the in-position level of each connection port;
[0010] Determine whether the in-position level of each card slot is a high level. If it is a high level, determine the card slot label corresponding to the card slot with the in-position level of the high level as the target card slot label. Determine whether the in-position level of each connection port is a high level. If it is a high level, determine the port label corresponding to the connection port with the in-position level of the high level as the target connection port label.
[0011] In one embodiment, each card slot and each connection port communicates with the control unit based on a serial port; reading the presence level of each card slot and the presence level of each connection port includes:
[0012] Based on the serial port, a SIM card in-place check instruction is sent to the control unit, and a tested module in-place check instruction is sent to the control unit;
[0013] The control unit obtains the analysis result of parsing the SIM card in-place check instruction and the module under test in-place check instruction, and reads the in-place level of each card slot and the in-place level of each connection port respectively according to the analysis result.
[0014] In one embodiment, a target card slot number in the n target card slot numbers is combined with a target connection port number in the n target connection port numbers to obtain n combination results, including:
[0015] Sort the n target card slot labels from small to large to obtain a first sorting result; sort the n target connection port labels from small to large to obtain a second sorting result;
[0016] Get the combined interval value, the combined interval value ranges from 0 to (n-1);
[0017] According to the combination interval value and the sorting number of each target card slot label in the first sorting result, the target connection port label that matches each target card slot label is determined in the second sorting result and combined to obtain a combination result, and the combination interval value is updated, and the above determination, combination and update process is repeated until n combination results are obtained.
[0018] In one embodiment, determining the target connection port number matched to each target slot number in the second sorting result according to the combined interval value and the sorting number of each target slot number in the first sorting result includes:
[0019] For the target card slot number with the sorting number i in the first sorting result, calculate the sum of i and the combined interval value;
[0020] If the sum is not greater than n, the target connection port number with the sorting number of the sum in the second sorting result is used as the target connection port number that matches the target card slot number with the sorting number i; if the sum is greater than n, a modulo operation is performed on the sum and n, and the target connection port number with the sorting number of the modulo result in the second sorting result is used as the target connection port number that matches the target card slot number with the sorting number i.
[0021] In one embodiment, according to each combination result, a compatibility test result of each SIM card under each combination result is obtained, including:
[0022] For any combination result, pair the n target card slot labels and the n target connection port labels according to any combination result;
[0023] Determine whether the pairing is successful, and if successful, instruct each device under test to send a piece of test data to the server;
[0024] Get the server's response result for each test data;
[0025] Based on the test data and reply results corresponding to each tested device, the compatibility test result of each SIM card under any combination of results is determined.
[0026] In a second aspect, the present application also provides a SIM card testing device. The device comprises:
[0027] A test board and m connection ports; the test board includes m card slots; each card slot is used to insert a SIM card, and each card slot has a corresponding unique digital label; each connection port is used to connect a device under test, and each connection port has a corresponding unique digital label; the value range of m is 2 to 8;
[0028] In the case where n types of SIM cards have been inserted into the test board, the n types of SIM cards occupy n card slots, and n types of devices under test have been connected to n connection ports among the m connection ports, an acquisition module is used to acquire the numbers corresponding to the card slots into which the SIM cards have been inserted and the numbers corresponding to the connection ports connected to the devices under test, as n target card slot numbers and n target connection port numbers, respectively; the value of n is not greater than m;
[0029] A combining module, used for combining a target card slot number in the n target card slot numbers with a target connection port number in the n target connection port numbers to obtain n combination results;
[0030] The determination module is used to obtain the compatibility test result of each SIM card under each combination result according to each combination result.
[0031] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0032] In the case where n types of SIM cards have been inserted into the test board, the n types of SIM cards occupy n card slots, and n types of devices under test have been connected to n connection ports among the m connection ports, the numbers corresponding to the card slots into which the SIM cards have been inserted and the numbers corresponding to the connection ports connected to the devices under test are obtained, and the numbers are used as n target card slot numbers and n target connection port numbers respectively; the value of n is not greater than m;
[0033] Combining the target card slot number in the n target card slot numbers with the target connection port number in the n target connection port numbers to obtain n combination results;
[0034] According to each combination result, the compatibility test result of each SIM card under each combination result is obtained.
[0035] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0036] In the case where n types of SIM cards have been inserted into the test board, the n types of SIM cards occupy n card slots, and n types of devices under test have been connected to n connection ports among the m connection ports, the numbers corresponding to the card slots into which the SIM cards have been inserted and the numbers corresponding to the connection ports connected to the devices under test are obtained, and the numbers are used as n target card slot numbers and n target connection port numbers respectively; the value of n is not greater than m;
[0037] Combining the target card slot number in the n target card slot numbers with the target connection port number in the n target connection port numbers to obtain n combination results;
[0038] According to each combination result, the compatibility test result of each SIM card under each combination result is obtained.
[0039] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0040] In the case where n types of SIM cards have been inserted into the test board, the n types of SIM cards occupy n card slots, and n types of devices under test have been connected to n connection ports among the m connection ports, the numbers corresponding to the card slots into which the SIM cards have been inserted and the numbers corresponding to the connection ports connected to the devices under test are obtained, and the numbers are used as n target card slot numbers and n target connection port numbers respectively; the value of n is not greater than m;
[0041] Combining the target card slot number in the n target card slot numbers with the target connection port number in the n target connection port numbers to obtain n combination results;
[0042] According to each combination result, the compatibility test result of each SIM card under each combination result is obtained.
[0043] The above-mentioned SIM card testing method, device, computer equipment, storage medium and computer program product obtain the number corresponding to the card slot of the inserted SIM card and the number corresponding to the connection port of the connected device under test as n target card slot numbers and n target connection port numbers respectively; the value of n is not greater than m; the target card slot number in the n target card slot numbers is combined with the target connection port number in the n target connection port numbers to obtain n combination results; according to each combination result, the compatibility test result of each SIM card under each combination result is obtained. Since each SIM card is not in an idle state in the process of obtaining the compatibility test result of each SIM card under each combination result according to each combination result, n types of SIM cards can be tested at the same time, thereby improving the test efficiency of SIM card testing. And since when it is necessary to determine the availability of n types of SIM cards on n types of devices under test, the tester only needs to perform one card insertion operation and one operation of connecting the device under test to the test port to complete the compatibility test of n types of SIM cards, thereby improving the test efficiency of SIM card testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A schematic diagram of a SIM card testing method according to an embodiment of the present invention;
[0045] Figure 2 A structural block diagram of a SIM card testing system in one embodiment;
[0046] Figure 3 It is a structural block diagram of a SIM card testing system in another embodiment;
[0047] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0049] IoT communications are developing rapidly, with a wide variety of products, covering every corner of life and work. Among them, IoT communications mainly use SIM card traffic for wireless transmission. There are currently three wireless communication operators on the market, and different regions have also launched different SIMs for the IoT industry. Usually, before IoT products are launched, the compatibility of different types of SIM cards needs to be tested. Among them, the compatibility test of SIM cards refers to testing the availability of SIM cards on mobile terminals. Therefore, there is an urgent need for a SIM card testing method that can test the compatibility of different types of SIM cards.
[0050] It is understood that the terms "first", "second", etc. used in this application can be used in this article to describe various professional terms, but unless otherwise specified, these professional terms are not limited by these terms. These terms are only used to distinguish one professional term from another professional term. For example, without departing from the scope of this application, the first sorting result and the second sorting result can be the same or different.
[0051] In view of the problems existing in the above-mentioned related technologies, an embodiment of the present invention provides a SIM card testing method, which can be applied to a server, a terminal, or a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Among them, the server can be implemented with an independent server or a server cluster composed of multiple servers. The terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. It should be noted that the numbers of "multiple" and the like mentioned in each embodiment of the present application all refer to the number of "at least two", for example, "multiple" refers to "at least two".
[0052] In one embodiment, Figure 1 As shown, a SIM card testing method is provided. This embodiment is illustrated by applying the method to a SIM card testing system. The system includes a testing board and m connection ports. The testing board includes m card slots. Each card slot is used to insert a SIM card, and each card slot has a corresponding unique digital label. Each connection port is used to connect a device under test, and each connection port has a corresponding unique digital label. The value range of m is 2 to 8. The method includes the following steps:
[0053] 102. When n types of SIM cards have been inserted into the test board, the n types of SIM cards occupy n card slots, and n types of devices under test have been connected to n connection ports among m connection ports, obtain the numbers corresponding to the card slots into which the SIM cards have been inserted and the numbers corresponding to the connection ports connected to the devices under test, as n target card slot numbers and n target connection port numbers, respectively; the value of n is not greater than m.
[0054] For example, the value of m is 8, and accordingly, the data numbers corresponding to the 8 card slots may be 1, 2, 3, 4, 5, 6, 7 and 8, and the data numbers corresponding to the 8 connection ports may be 1, 2, 3, 4, 5, 6, 7 and 8. It is understandable that the reason why the value of m is not greater than 8 is that the types of SIM cards of various SIM card operators are generally not greater than 8, and the test board including 8 card slots can meet the test requirements of various SIM card operators.
[0055] The connection port may adopt a DUT test interface.
[0056] 104. Combine the target card slot number among the n target card slot numbers with the target connection port number among the n target connection port numbers to obtain n combination results.
[0057] For example, the obtained four target card slot numbers are 1, 2, 3 and 4, and the obtained four target connection port numbers are 5, 6, 7 and 8. Accordingly, the target card slot numbers in the four target card slot numbers are combined with the target connection port numbers in the four target connection port numbers to obtain four combination results. The obtained four combination results can be {(1, 5), (2, 6), (3, 7), (4, 8)}, {(1, 6), (2, 7), (3, 8), (4, 5)}, {(1, 7), (2, 8), (3, 5), (4, 6)} and {(1, 8), (2, 5), (3, 6), (4, 7)}.
[0058] It should be noted that the number of obtained combination results is consistent with the number of target card slot numbers.
[0059] 106. According to each combination result, a compatibility test result of each SIM card under each combination result is obtained.
[0060] For example, a phone card, a city-specific card, b city-specific card and an Internet of Things card are inserted into card slot 1, card slot 2, card slot 3 and card slot 4 respectively, and mobile phones c, d, f and e are connected to connection port 5, connection port 6, connection port 7 and connection port 8 respectively. The four target card slots are numbered 1, 2, 3 and 4 respectively, and the four target connection ports are numbered 5, 6, 7 and 8 respectively. The combination results are {(1, 5), (2, 6), (3, 7), (4, 8)}, {(1, 6), (2, 7), (3, 8), (4, 5)}, {(1, 7), (2, 8), (3, 5), (4, 6)} and {(1, 8), (2, 5), (3, 6), (4, 7)} respectively. In the combination result {(1, 5), (2, 6), (3, 7), (4, 8)}, we can get the availability of the phone card on mobile phone c, the availability of the city a dedicated card on mobile phone d, the availability of the city b dedicated card on mobile phone f, and the availability of the Internet of Things card on mobile phone e. The compatibility test results of the phone card, the city a dedicated card, the city b dedicated card and the Internet of Things card under other combination results can be referred to in the combination result {(1, 5), (2, 6), (3, 7), (4, 8)}, which will not be repeated here.
[0061] In the above SIM card testing method, the number corresponding to the card slot in which the SIM card has been inserted and the number corresponding to the connection port connected to the device under test are obtained as n target card slot numbers and n target connection port numbers respectively; the value of n is not greater than m; the target card slot number among the n target card slot numbers and the target connection port number among the n target connection port numbers are combined to obtain n combination results; based on each combination result, the compatibility test result of each SIM card under each combination result is obtained. In the related art, when testing the availability of n types of SIM cards on n types of devices under test, the n types of SIM cards are usually inserted into a test board, the n types of SIM cards in the test board are sorted according to the identifications, and then the availability of the n types of SIM cards on one of the devices under test is tested respectively according to the sorting numbers. Specifically, for example, the n types of devices under test are respectively device under test 1 and device under test 2, and the n types of SIM cards are respectively SIM card 1 and SIM card 2. SIM card 1 and SIM card 2 are inserted into the test board, and then the availability of SIM card 1 on device under test 1 is tested first, and after obtaining the availability result of SIM card 1 on device under test 1, the availability of SIM card 2 on device under test 1 is tested, and after obtaining the availability result of SIM card 2 on device under test 1, the availability of SIM card 1 on device under test 2 is tested, and then the availability of SIM card 2 on device under test 2 is tested in sequence. That is, in the related art, the compatibility of only one SIM card can be tested at the same time, and the other SIM cards are all in an idle state, and the test efficiency is low. Compared with the related art, since each SIM card is not in an idle state in the process of obtaining the compatibility test result of each SIM card under each combination result according to each combination result, n types of SIM cards can be tested at the same time, thereby improving the test efficiency of the SIM card test. And since when it is necessary to determine the availability of n types of SIM cards on n types of tested devices, the tester only needs to perform one card insertion operation and one operation of connecting the tested device to the test port to complete the compatibility test of n types of SIM cards, thereby improving the test efficiency of the SIM card test.
[0062] In one embodiment, obtaining the number corresponding to the card slot into which the SIM card has been inserted and the number corresponding to the connection port to which the device under test has been connected includes:
[0063] Read the in-position level of each card slot and the in-position level of each connection port;
[0064] Determine whether the in-position level of each card slot is a high level. If it is a high level, determine the card slot label corresponding to the card slot with the in-position level of the high level as the target card slot label. Determine whether the in-position level of each connection port is a high level. If it is a high level, determine the port label corresponding to the connection port with the in-position level of the high level as the target connection port label.
[0065] Among them, a card slot with a high level indicates that a SIM card is inserted into the card slot, otherwise, the card slot has no SIM card inserted. A connection port with a high level indicates that the connection port is connected to a device under test, otherwise, the connection port is not connected to the device under test.
[0066] In this embodiment, by reading the in-position level of each card slot and the in-position level of each connection port; determining whether the in-position level of each card slot is a high level, if it is a high level, determining the card slot number corresponding to the card slot with the high in-position level as the target card slot number, determining whether the in-position level of each connection port is a high level, if it is a high level, determining the port number corresponding to the connection port with the high in-position level as the target connection port number.
[0067] In one embodiment, each card slot and each connection port communicate with the control unit based on a serial port; reading the presence level of each card slot and the presence level of each connection port includes:
[0068] Based on the serial port, a SIM card in-place check instruction is sent to the control unit, and a tested module in-place check instruction is sent to the control unit.
[0069] Among them, the SIM card in-place check instruction can be "at+checksim", and the tested module in-place check instruction can be "at+module", which is not specifically limited in the embodiment of the present application.
[0070] The control unit obtains the analysis result of parsing the SIM card in-place check instruction and the module under test in-place check instruction, and reads the in-place level of each card slot and the in-place level of each connection port respectively according to the analysis result.
[0071] In this embodiment, a SIM card presence check instruction is sent to the control unit based on the serial port, and a tested module presence check instruction is sent to the control unit; the analysis result of the control unit parsing the SIM card presence check instruction and the tested module presence check instruction is obtained, and the presence level of each card slot and the presence level of each connection port are read respectively according to the analysis result.
[0072] In one embodiment, the target card slot number in the n target card slot numbers is combined with the target connection port number in the n target connection port numbers to obtain n combination results, including:
[0073] The n target card slot labels are sorted from small to large to obtain a first sorting result; the n target connection port labels are sorted from small to large to obtain a second sorting result.
[0074] It should be noted that the first sorting result may also be the result obtained by sorting the n target card slot numbers from large to small, and the second sorting result may also be the result obtained by sorting the n target connection port numbers from large to small, and the embodiment of the present application does not specifically limit this. For example, n is 4, the 4 target card slot numbers are 1, 2, 3 and 4, and the 4 target connection port numbers are 5, 6, 7 and 8. The first sorting result may be 1, 2, 3, 4; the second sorting result may be 5, 6, 7 and 8. The first sorting result may also be 4, 3, 2, 1, and the second sorting result may also be 8, 7, 6, 5.
[0075] Gets the combined interval value, which ranges from 0 to (n-1).
[0076] It should be noted that the initial value of the combined interval value can be any integer from 0 to (n-1).
[0077] According to the combination interval value and the sorting number of each target card slot label in the first sorting result, the target connection port label that matches each target card slot label is determined in the second sorting result and combined to obtain a combination result, and the combination interval value is updated, and the above determination, combination and update process is repeated until n combination results are obtained.
[0078] Specifically, according to the combined interval value and the sorting number of each target card slot label in the first sorting result, determining the target connection port label that matches each target card slot label in the second sorting result may include: for the target card slot label with a sorting number i in the first sorting result, calculating the sum between i and the combined interval value, and performing a modulo operation on the sum and n; if the modulo result is not 0, using the target connection port label with a sorting number as the modulo result in the second sorting result as the target connection port label that matches the target card slot label with a sorting number i; if the modulo result is 0, using the target connection port label with a sorting number n in the second sorting result as the target connection port label that matches the target card slot label with a sorting number i.
[0079] For example, if n is 4, the first sorting result is 1, 2, 3, 4; the second sorting result is 5, 6, 7, 8, and the obtained combination interval value is 1. Correspondingly, the target slot number of the target slot number 1 in the first sorting result is 1, the target slot number 2 in the first sorting result is 2, the target slot number 3 in the first sorting result is 3, the target slot number 4 in the first sorting result is 4, the target connection port number 5 in the second sorting result is 1, the target connection port number 6 in the second sorting result is 2, the target connection port number 7 in the second sorting result is 3, the target connection port number 8 in the second sorting result is 4, the combination interval value ranges from 0 to 3, and a combination result is {(1, 6), (2, 7), (3, 8), (4, 5)}; the combination interval value is updated to 2, and a combination result is {(1, 7), (2, 8), (3, 5), (4, 6)}; Update the combination interval value to 3, and get a combination result of {(1, 8), (2, 5), (3, 6), (4, 7)}; Update the combination interval value to 0, and get a combination result of {(1, 5), (2, 6), (3, 7), (4, 8)}.
[0080] In this embodiment, the first sorting result is obtained by sorting n target card slot labels from small to large; the second sorting result is obtained by sorting n target connection port labels from small to large; the combination interval value is obtained, and the value range of the combination interval value is 0 to (n-1); according to the combination interval value and the sorting number of each target card slot label in the first sorting result, the target connection port label adapted to each target card slot label is determined in the second sorting result and combined to obtain a combination result, and the combination interval value is updated, and the above determination, combination and update process is repeated until n combination results are obtained. Since each SIM card has a corresponding device under test in each combination result, in the process of obtaining the compatibility test result of each SIM card under each combination result according to each combination result, each SIM card is not in an idle state, and n types of SIM cards can be tested at the same time, thereby improving the test efficiency of the SIM card test.
[0081] In one embodiment, according to the combined interval value and the sorting number of each target card slot number in the first sorting result, determining the target connection port number matched with each target card slot number in the second sorting result includes:
[0082] For the target card slot number with the sorting number i in the first sorting result, calculate the sum of i and the combined interval value;
[0083] If the sum is not greater than n, the target connection port number with the sorting number of the sum in the second sorting result is used as the target connection port number that matches the target card slot number with the sorting number i; if the sum is greater than n, a modulo operation is performed on the sum and n, and the target connection port number with the sorting number of the modulo result in the second sorting result is used as the target connection port number that matches the target card slot number with the sorting number i.
[0084] For example, n is 4, the first sorting result is 1, 2, 3, 4; the second sorting result is 5, 6, 7, 8, the obtained combination interval value is 2, and i is 3. Accordingly, the target card slot number with the sorting number 3 is 3, and the sum of 3 and the combination interval value 2 is calculated, and the sum is 5. 5 is greater than 4, so a modulo operation is performed on 5 and 4, and the target connection port number with the sorting number 1 in the second sorting result is used as the target connection port number adapted to the target card slot number with the sorting number 3.
[0085] In one embodiment, according to each combination result, a compatibility test result of each SIM card under each combination result is obtained, including:
[0086] For any combination result, the n target card slot labels and the n target connection port labels are paired according to the any combination result.
[0087] For example, n is 4, the four target card slots are numbered 1, 2, 3 and 4, and the four target connection ports are numbered 5, 6, 7 and 8. According to the combination result {(1, 5), (2, 6), (3, 7), (4, 8)}, the four target card slot numbers and the four target connection port numbers are paired, that is, the target card slot number 1 is paired with the target connection port number 5, the target card slot number 2 is paired with the target connection port number 6, the target card slot number 3 is paired with the target connection port number 7, and the target card slot number 4 is paired with the target connection port number 8.
[0088] Determine whether the pairing is successful. If successful, instruct each device under test to send a piece of test data to the server.
[0089] Specifically, determining whether the pairing is successful may include: judging whether the network status of the tested device corresponding to each target connection port number is normal; if they are normal, the pairing is successful; if there is a tested device with an abnormal network status, the pairing fails.
[0090] The test data may be data of any content and any format, and the test data sent by each device under test may be the same or different, which is not specifically limited in the embodiments of the present application.
[0091] Get the server's response result for each test data.
[0092] It should be noted that the response result of the server for each test data is data that is completely identical to each test data. For example, if the test data is 123, the response result is also 123.
[0093] Based on the test data and reply results corresponding to each tested device, the compatibility test result of each SIM card under any combination of results is determined.
[0094] Specifically, for any device under test, it is determined whether the test data and the reply result corresponding to any device under test are the same. If they are the same, it is determined that the compatibility test result of the SIM card paired with any device under test under any combination result is available. If they are not the same, it is determined that the compatibility test result of the SIM card paired with any device under test under any combination result is unavailable. For example, a phone card, a city dedicated card, b city dedicated card and an Internet of Things card are respectively inserted into card slot 1, card slot 2, card slot 3 and card slot 4, and mobile phones c, d, f and e are respectively connected to connection port 5, connection port 6, connection port 7 and connection port 8. According to the combination result {(1, 5), (2, 6), (3, 7), (4, 8)}, 4 target card slot numbers and 4 target connection port numbers are paired, and the pairing is successful. Mobile phone c sends test data 2022 to the server. If the response result obtained by the server for the test data 2022 sent by mobile phone c is 2022, then based on the test data 2022 and the response result 2022 corresponding to mobile phone c, it can be determined that the compatibility test result of the phone card under the combination result of {(1, 5), (2, 6), (3, 7), (4, 8)} is available. If the response result obtained by the server for the test data 2022 sent by mobile phone c is not 2022, then based on the test data 2022 and the response result corresponding to mobile phone c, it can be determined that the compatibility test result of the phone card under the combination result of {(1, 5), (2, 6), (3, 7), (4, 8)} is unavailable.
[0095] In this embodiment, for any combination result, according to any combination result, n target card slot labels and n target connection port labels are paired; determine whether the pairing is successful, if successful, instruct each device under test to send a test data to the server; obtain the server's reply result for each test data; based on the test data and reply result corresponding to each device under test, determine the compatibility test result of each SIM card under any combination result. Since each SIM card is not in an idle state in the process of obtaining the compatibility test result of each SIM card under each combination result according to each combination result, n types of SIM cards can be tested at the same time, thereby improving the test efficiency of the SIM card test.
[0096] In one embodiment, Figure 2 As shown, a SIM card test system is provided, the system comprising: a slave device, the slave device comprising a test board control unit, a test board card and 8 connection ports, wherein:
[0097] The test board includes 8 card slots; each card slot is used to insert a SIM card, and each card slot has a corresponding unique digital label;
[0098] Each connection port is used to connect a device under test, and each connection port has a corresponding unique digital label;
[0099] A test board control unit, for obtaining, when 8 types of SIM cards have been inserted into the test board, the 8 types of SIM cards occupy 8 card slots, and 8 of the 8 connection ports have been connected to 8 types of devices under test, numbers corresponding to the card slots into which the SIM cards have been inserted and numbers corresponding to the connection ports to which the devices under test have been connected, as 8 target card slot numbers and 8 target connection port numbers, respectively;
[0100] Combining the target card slot numbers in the eight target card slot numbers with the target connection port numbers in the eight target connection port numbers to obtain eight combination results;
[0101] According to each combination result, the compatibility test result of each SIM card under each combination result is obtained.
[0102] It should be noted that, for the explanations of the terms and steps involved in the above system, reference can be made to the explanations of the terms and steps in the above embodiments, which will not be repeated here.
[0103] In one embodiment, Figure 3 As shown, a SIM card test system is provided, the system comprising: a slave device and a master device, the slave device comprising a test board control unit, a test board card and 8 connection ports, wherein:
[0104] The test board includes 8 card slots; each card slot is used to insert a SIM card, and each card slot has a corresponding unique digital label;
[0105] Each connection port is used to connect a device under test, and each connection port has a corresponding unique digital label;
[0106] The main device is used to obtain the numbers corresponding to the card slots into which the SIM cards have been inserted and the numbers corresponding to the connection ports to which the devices under test have been connected, respectively as 8 target card slot numbers and 8 target connection port numbers, when 8 types of SIM cards have been inserted into the test board, the 8 types of SIM cards occupy 8 card slots, and 8 of the 8 connection ports have been connected to 8 types of devices under test, and combine the target card slot numbers in the 8 target card slot numbers with the target connection port numbers in the 8 target connection port numbers to obtain 8 combination results; and obtain the compatibility test result of each SIM card under each combination result according to each combination result.
[0107] Among them, the main device can be a host computer, and the embodiments of the present application do not make specific limitations on this.
[0108] Specifically, the process of obtaining eight target card slot numbers and eight target connection port numbers includes:
[0109] The master device sends a SIM card in-place check instruction and a tested module in-place check instruction to the test board control unit based on the serial port.
[0110] The SIM card in-place check command may be "at+checksim", and the tested module in-place check command may be "at+module".
[0111] The test board control unit is used to parse the SIM card in-place check instruction and the tested module in-place check instruction, read the in-place level of each card slot and the in-place level of each connection port respectively according to the parsing result, judge whether the in-place level of each card slot is a high level, if it is a high level, determine the card slot label corresponding to the card slot with the high in-place level as the target card slot label, judge whether the in-place level of each connection port is a high level, if it is a high level, determine the port label corresponding to the connection port with the high in-place level as the target connection port label; the in-place levels corresponding to all the card slots are combined into a first data packet, and the first data packet is sent to the main device, and the in-place levels corresponding to all the connection ports are combined into a second data packet, and the second data packet is sent to the main device.
[0112] Among them, the data format of the first data packet can be "+sim:0F". It should be noted that the bitmap is determined according to the actual test results. The "0F" in "+sim:0F" is a type of bitmap. "0F" means that the in-position levels of the card slots labeled 1, 2, 3 and 4 in the test board are all high, and the in-position levels of the card slots labeled 5, 6, 7 and 8 in the test board are all low. The data format of the second data packet can be "+module:FF". The explanation of the data format of the second data packet can refer to the first data packet, which will not be repeated here.
[0113] The main device sends any combination result to the test board control unit; the test board control unit is used to pair 8 target card slot labels and 8 target connection port labels according to any combination result. After pairing, the main device sends a test instruction to the test board control unit, and the test board control unit sends the test instruction to each device under test to instruct each device under test to check its own network status. The test board control unit obtains the network status of each device under test and sends the network status of each device under test to the main device; the main device determines whether the pairing is successful according to the network status of each device under test; if successful, a test data sending instruction is sent to the test board control unit, and the test board control unit sends the test data sending instruction to each device under test, instructing each device under test to send a test data to the server; the main device obtains the server's reply result for each test data and the test data corresponding to each device under test, and determines the compatibility test result of each SIM card under any combination result based on the test data and the reply result corresponding to each device under test.
[0114] It should be noted that, for the explanations of the terms and steps involved in the above system, reference can be made to the explanations of the terms and steps in the above embodiments, which will not be repeated here.
[0115] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0116] Based on the same inventive concept, the embodiment of the present application further provides a SIM card test device for implementing the SIM card test method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more SIM card test device embodiments provided below can refer to the limitations of the SIM card test method above, and will not be repeated here.
[0117] In one embodiment, a SIM card testing device is provided, comprising: a testing board, m connection ports, an acquisition module, a combination module and a determination module, wherein:
[0118] The test board includes m card slots; each card slot is used to insert a SIM card, and each card slot has a corresponding unique digital label; each connection port is used to connect a device under test, and each connection port has a corresponding unique digital label; the value range of m is 2 to 8;
[0119] In the case where n types of SIM cards have been inserted into the test board, the n types of SIM cards occupy n card slots, and n types of devices under test have been connected to n connection ports among the m connection ports, an acquisition module is used to acquire the numbers corresponding to the card slots into which the SIM cards have been inserted and the numbers corresponding to the connection ports connected to the devices under test, as n target card slot numbers and n target connection port numbers, respectively; the value of n is not greater than m;
[0120] A combining module, used for combining a target card slot number in the n target card slot numbers with a target connection port number in the n target connection port numbers to obtain n combination results;
[0121] The determination module is used to obtain the compatibility test result of each SIM card under each combination result according to each combination result.
[0122] In one embodiment, the acquisition module includes:
[0123] A reading unit, used for reading the in-position level of each card slot and the in-position level of each connection port;
[0124] The judging unit is used to judge whether the in-position level of each card slot is a high level. If it is a high level, the card slot number corresponding to the card slot with the in-position level of the high level is determined as the target card slot number, and to judge whether the in-position level of each connection port is a high level. If it is a high level, the port number corresponding to the connection port with the in-position level of the high level is determined as the target connection port number.
[0125] In one embodiment, each card slot and each connection port communicates with the control unit based on a serial port; the reading unit includes:
[0126] The sending subunit is used to send a SIM card in-place check instruction to the control unit based on the serial port, and send a tested module in-place check instruction to the control unit;
[0127] The acquisition subunit is used to obtain the analysis results of the control unit parsing the SIM card in-place check instruction and the tested module in-place check instruction, and read the in-place level of each card slot and the in-place level of each connection port respectively according to the analysis results.
[0128] In one embodiment, the combined module comprises:
[0129] A sorting unit is used to sort the n target card slot labels from small to large to obtain a first sorting result; and to sort the n target connection port labels from small to large to obtain a second sorting result;
[0130] A first acquisition unit is used to acquire a combination interval value, where the combination interval value ranges from 0 to (n-1);
[0131] The first determination unit is used to determine and combine the target connection port number that matches each target card slot number in the second sorting result according to the combination interval value and the sorting number of each target card slot number in the first sorting result to obtain a combination result, and update the combination interval value, and repeat the above determination, combination and update process until n combination results are obtained.
[0132] In one embodiment, the first determining unit includes:
[0133] A calculation subunit, configured to calculate, for the target card slot number with the sorting number i in the first sorting result, the sum of i and the combined interval value;
[0134] A determination subunit is used for, if the sum value is not greater than n, using the target connection port number whose sorting number is the sum value in the second sorting result as the target connection port number that matches the target card slot number whose sorting number is i; if the sum value is greater than n, performing a modulo operation on the sum value and n, and using the target connection port number whose sorting number is the modulo result in the second sorting result as the target connection port number that matches the target card slot number whose sorting number is i.
[0135] In one embodiment, the determining module includes:
[0136] A pairing unit, for pairing n target card slot numbers with n target connection port numbers according to any combination result;
[0137] A second determination unit, used to determine whether the pairing is successful, and if successful, instruct each device under test to send a piece of test data to the server;
[0138] The second acquisition unit is used to obtain the response result of the server for each test data;
[0139] The third determining unit is used to determine the compatibility test result of each SIM card under any combination of results based on the test data and the reply result corresponding to each tested device.
[0140] Each module in the above SIM card test device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0141] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store n target card slot numbers, n target connection port numbers, n combination results and compatibility test result data of each SIM card under each combination result. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a SIM card testing method is implemented.
[0142] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0143] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0144] In the case where n types of SIM cards have been inserted into the test board, the n types of SIM cards occupy n card slots, and n types of devices under test have been connected to n connection ports among the m connection ports, the numbers corresponding to the card slots into which the SIM cards have been inserted and the numbers corresponding to the connection ports connected to the devices under test are obtained, and the numbers are used as n target card slot numbers and n target connection port numbers respectively; the value of n is not greater than m;
[0145] Combining the target card slot number in the n target card slot numbers with the target connection port number in the n target connection port numbers to obtain n combination results;
[0146] According to each combination result, the compatibility test result of each SIM card under each combination result is obtained.
[0147] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0148] Read the in-position level of each card slot and the in-position level of each connection port;
[0149] Determine whether the in-position level of each card slot is a high level. If it is a high level, determine the card slot label corresponding to the card slot with the in-position level of the high level as the target card slot label. Determine whether the in-position level of each connection port is a high level. If it is a high level, determine the port label corresponding to the connection port with the in-position level of the high level as the target connection port label.
[0150] In one embodiment, each card slot and each connection port communicates with the control unit based on a serial port; when the processor executes the computer program, the following steps are also implemented:
[0151] Based on the serial port, a SIM card in-place check instruction is sent to the control unit, and a tested module in-place check instruction is sent to the control unit;
[0152] The control unit obtains the analysis result of parsing the SIM card in-place check instruction and the module under test in-place check instruction, and reads the in-place level of each card slot and the in-place level of each connection port respectively according to the analysis result.
[0153] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0154] Sort the n target card slot labels from small to large to obtain a first sorting result; sort the n target connection port labels from small to large to obtain a second sorting result;
[0155] Get the combined interval value, the combined interval value ranges from 0 to (n-1);
[0156] According to the combination interval value and the sorting number of each target card slot label in the first sorting result, the target connection port label that matches each target card slot label is determined in the second sorting result and combined to obtain a combination result, and the combination interval value is updated, and the above determination, combination and update process is repeated until n combination results are obtained.
[0157] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0158] For the target card slot number with the sorting number i in the first sorting result, calculate the sum of i and the combined interval value;
[0159] If the sum is not greater than n, the target connection port number with the sorting number of the sum in the second sorting result is used as the target connection port number that matches the target card slot number with the sorting number i; if the sum is greater than n, a modulo operation is performed on the sum and n, and the target connection port number with the sorting number of the modulo result in the second sorting result is used as the target connection port number that matches the target card slot number with the sorting number i.
[0160] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0161] For any combination result, pair the n target card slot labels and the n target connection port labels according to any combination result;
[0162] Determine whether the pairing is successful, and if successful, instruct each device under test to send a piece of test data to the server;
[0163] Get the server's response result for each test data;
[0164] Based on the test data and reply results corresponding to each tested device, the compatibility test result of each SIM card under any combination of results is determined.
[0165] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0166] In the case where n types of SIM cards have been inserted into the test board, the n types of SIM cards occupy n card slots, and n types of devices under test have been connected to n connection ports among the m connection ports, the numbers corresponding to the card slots into which the SIM cards have been inserted and the numbers corresponding to the connection ports connected to the devices under test are obtained, and the numbers are used as n target card slot numbers and n target connection port numbers respectively; the value of n is not greater than m;
[0167] Combining the target card slot number in the n target card slot numbers with the target connection port number in the n target connection port numbers to obtain n combination results;
[0168] According to each combination result, the compatibility test result of each SIM card under each combination result is obtained.
[0169] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0170] Read the in-position level of each card slot and the in-position level of each connection port;
[0171] Determine whether the in-position level of each card slot is a high level. If it is a high level, determine the card slot label corresponding to the card slot with the in-position level of the high level as the target card slot label. Determine whether the in-position level of each connection port is a high level. If it is a high level, determine the port label corresponding to the connection port with the in-position level of the high level as the target connection port label.
[0172] In one embodiment, each card slot and each connection port communicates with the control unit based on a serial port; when the computer program is executed by the processor, the following steps are also implemented:
[0173] Based on the serial port, a SIM card in-place check instruction is sent to the control unit, and a tested module in-place check instruction is sent to the control unit;
[0174] The control unit obtains the analysis result of parsing the SIM card in-place check instruction and the module under test in-place check instruction, and reads the in-place level of each card slot and the in-place level of each connection port respectively according to the analysis result.
[0175] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0176] Sort the n target card slot labels from small to large to obtain a first sorting result; sort the n target connection port labels from small to large to obtain a second sorting result;
[0177] Get the combined interval value, the combined interval value ranges from 0 to (n-1);
[0178] According to the combination interval value and the sorting number of each target card slot label in the first sorting result, the target connection port label that matches each target card slot label is determined in the second sorting result and combined to obtain a combination result, and the combination interval value is updated, and the above determination, combination and update process is repeated until n combination results are obtained.
[0179] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0180] For the target card slot number with the sorting number i in the first sorting result, calculate the sum of i and the combined interval value;
[0181] If the sum is not greater than n, the target connection port number with the sorting number of the sum in the second sorting result is used as the target connection port number that matches the target card slot number with the sorting number i; if the sum is greater than n, a modulo operation is performed on the sum and n, and the target connection port number with the sorting number of the modulo result in the second sorting result is used as the target connection port number that matches the target card slot number with the sorting number i.
[0182] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0183] For any combination result, pair the n target card slot labels and the n target connection port labels according to any combination result;
[0184] Determine whether the pairing is successful, and if successful, instruct each device under test to send a piece of test data to the server;
[0185] Get the server's response result for each test data;
[0186] Based on the test data and reply results corresponding to each tested device, the compatibility test result of each SIM card under any combination of results is determined.
[0187] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0188] In the case where n types of SIM cards have been inserted into the test board, the n types of SIM cards occupy n card slots, and n types of devices under test have been connected to n connection ports among the m connection ports, the numbers corresponding to the card slots into which the SIM cards have been inserted and the numbers corresponding to the connection ports connected to the devices under test are obtained, and the numbers are used as n target card slot numbers and n target connection port numbers respectively; the value of n is not greater than m;
[0189] Combining the target card slot number in the n target card slot numbers with the target connection port number in the n target connection port numbers to obtain n combination results;
[0190] According to each combination result, the compatibility test result of each SIM card under each combination result is obtained.
[0191] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0192] Read the in-position level of each card slot and the in-position level of each connection port;
[0193] Determine whether the in-position level of each card slot is a high level. If it is a high level, determine the card slot label corresponding to the card slot with the in-position level of the high level as the target card slot label. Determine whether the in-position level of each connection port is a high level. If it is a high level, determine the port label corresponding to the connection port with the in-position level of the high level as the target connection port label.
[0194] In one embodiment, each card slot and each connection port communicates with the control unit based on a serial port; when the computer program is executed by the processor, the following steps are also implemented:
[0195] Based on the serial port, a SIM card in-place check instruction is sent to the control unit, and a tested module in-place check instruction is sent to the control unit;
[0196] The control unit obtains the analysis result of parsing the SIM card in-place check instruction and the module under test in-place check instruction, and reads the in-place level of each card slot and the in-place level of each connection port respectively according to the analysis result.
[0197] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0198] Sort the n target card slot labels from small to large to obtain a first sorting result; sort the n target connection port labels from small to large to obtain a second sorting result;
[0199] Get the combined interval value, the combined interval value ranges from 0 to (n-1);
[0200] According to the combination interval value and the sorting number of each target card slot label in the first sorting result, the target connection port label that matches each target card slot label is determined in the second sorting result and combined to obtain a combination result, and the combination interval value is updated, and the above determination, combination and update process is repeated until n combination results are obtained.
[0201] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0202] For the target card slot number with the sorting number i in the first sorting result, calculate the sum of i and the combined interval value;
[0203] If the sum is not greater than n, the target connection port number with the sorting number of the sum in the second sorting result is used as the target connection port number that matches the target card slot number with the sorting number i; if the sum is greater than n, a modulo operation is performed on the sum and n, and the target connection port number with the sorting number of the modulo result in the second sorting result is used as the target connection port number that matches the target card slot number with the sorting number i.
[0204] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0205] For any combination result, pair the n target card slot labels and the n target connection port labels according to any combination result;
[0206] Determine whether the pairing is successful, and if successful, instruct each device under test to send a piece of test data to the server;
[0207] Get the server's response result for each test data;
[0208] Based on the test data and reply results corresponding to each tested device, the compatibility test result of each SIM card under any combination of results is determined.
[0209] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0210] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0211] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A SIM card testing method, characterized in that: The method is applied to a SIM card test system, the system comprising a test board and m connection ports; the test board comprises m card slots; each card slot is used to insert a SIM card, and each card slot has a corresponding unique digital label; each connection port is used to connect a device under test, and each connection port has a corresponding unique digital label; the value range of m is 2 to 8; the method comprises: In the case where n types of SIM cards have been inserted into the test board, the n types of SIM cards occupy n card slots, and n of the m connection ports have been connected to n types of devices under test, obtaining the numbers corresponding to the card slots into which the SIM cards have been inserted and the numbers corresponding to the connection ports connected to the devices under test, as n target card slot numbers and n target connection port numbers, respectively; the value of n is not greater than m; Combining a target card slot number in the n target card slot numbers with a target connection port number in the n target connection port numbers to obtain n combination results; According to each combination result, the compatibility test result of each SIM card under each combination result is obtained; The obtaining of the number corresponding to the card slot into which the SIM card has been inserted and the number corresponding to the connection port connected to the device under test includes: Read the in-position level of each card slot and the in-position level of each connection port; Determine whether the in-position level of each card slot is a high level. If it is a high level, determine the card slot number corresponding to the card slot with the in-position level being the high level as the target card slot number. Determine whether the in-position level of each connection port is a high level. If it is a high level, determine the port number corresponding to the connection port with the in-position level being the high level as the target connection port number. Each card slot and each connection port communicate with the control unit based on the serial port; the reading of the in-position level of each card slot and the in-position level of each connection port includes: Based on the serial port, a SIM card in-place check instruction is sent to the control unit, and a tested module in-place check instruction is sent to the control unit; Obtain the analysis result after the control unit analyzes the SIM card in-place check instruction and the tested module in-place check instruction, and read the in-place level of each card slot and the in-place level of each connection port respectively according to the analysis result.
2. The method according to claim 1, characterized in that: The combining of the target card slot number in the n target card slot numbers and the target connection port number in the n target connection port numbers to obtain n combination results includes: Sort the n target card slot numbers from small to large to obtain a first sorting result; sort the n target connection port numbers from small to large to obtain a second sorting result; Obtain a combined interval value, where the combined interval value ranges from 0 to (n-1); According to the combination interval value and the sorting number of each target card slot number in the first sorting result, the target connection port number that matches each target card slot number is determined in the second sorting result and combined to obtain a combination result, and the combination interval value is updated, and the above determination, combination and update process is repeated until n combination results are obtained.
3. The method according to claim 2, characterized in that The step of determining the target connection port number matched with each target slot number in the second sorting result according to the combined interval value and the sorting number of each target slot number in the first sorting result includes: For the target card slot number with the sorting number i in the first sorting result, calculate the sum of i and the combined interval value; If the sum is not greater than n, the target connection port number with the sorting number of the sum in the second sorting result is used as the target connection port number that matches the target card slot number with the sorting number i; if the sum is greater than n, a modulo operation is performed on the sum and n, and the target connection port number with the sorting number of the modulo result in the second sorting result is used as the target connection port number that matches the target card slot number with the sorting number i.
4. The method according to claim 1, characterized in that: The step of obtaining the compatibility test result of each SIM card under each combination result according to each combination result includes: For any combination result, pairing the n target card slot numbers with the n target connection port numbers according to the any combination result; Determine whether the pairing is successful, and if successful, instruct each device under test to send a piece of test data to the server; Get the server's response result for each test data; Based on the test data and the reply result corresponding to each tested device, the compatibility test result of each SIM card under any of the combination results is determined.
5. A SIM card testing device, characterized in that: The device comprises: A test board and m connection ports; the test board includes m card slots; each card slot is used to insert a SIM card, and each card slot has a corresponding unique digital label; each connection port is used to connect a device under test, and each connection port has a corresponding unique digital label; the value range of m is 2 to 8; In the case where n types of SIM cards have been inserted into the test board, the n types of SIM cards occupy n card slots, and n types of devices under test have been connected to n connection ports among the m connection ports, an acquisition module is used to acquire the numbers corresponding to the card slots into which the SIM cards have been inserted and the numbers corresponding to the connection ports connected to the devices under test, as n target card slot numbers and n target connection port numbers, respectively; the value of n is not greater than m; A combining module, used for combining a target card slot number in the n target card slot numbers with a target connection port number in the n target connection port numbers to obtain n combination results; A determination module, used for obtaining a compatibility test result of each SIM card under each combination result according to each combination result; The acquisition module comprises: A reading unit, used for reading the in-position level of each card slot and the in-position level of each connection port; a judging unit, used to judge whether the in-position level of each card slot is a high level, if it is a high level, determine the card slot number corresponding to the card slot with the in-position level being the high level as the target card slot number, and judge whether the in-position level of each connection port is a high level, if it is a high level, determine the port number corresponding to the connection port with the in-position level being the high level as the target connection port number; Each card slot and each connection port communicates with the control unit based on the serial port; the reading unit includes: A sending subunit, used for sending a SIM card in-place check instruction to the control unit based on the serial port, and sending a tested module in-place check instruction to the control unit; The acquisition subunit is used to obtain the analysis result after the control unit parses the SIM card in-place check instruction and the tested module in-place check instruction, and reads the in-place level of each card slot and the in-place level of each connection port respectively according to the analysis result.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Chip card carrier, running gear system with chip card carrier, and chip card access system
CN105447425A