A terminal testing method, device and computer readable storage medium

By setting up a simulated blank card in the terminal and a test card in the device, remote testing is achieved using a remote agent for the card. This solves the resource consumption problem caused by the actual built-in card in the existing technology, and realizes remote testing and resource sharing of the terminal.

CN115802400BActive Publication Date: 2026-03-20CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-09
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

Existing terminal testing methods require the card to be physically embedded in the test terminal, occupying a one-to-one code resource, which cannot meet the remote testing needs of the test terminal.

Method used

Test SMS messages are generated using the target test card, and then encapsulated into a data packet along with card information and network access information and sent to the card's remote agent. Remote testing is performed by simulating a blank card, which does not have code resources loaded, thus enabling remote testing.

Benefits of technology

No hardware or software modifications are required for testing terminals, meeting remote testing needs and enabling flexible allocation and sharing of code resources, thus promoting the testing and network access of SIM card terminals, especially IoT terminals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115802400B_ABST
    Figure CN115802400B_ABST
Patent Text Reader

Abstract

The application provides a terminal testing method, device and computer readable storage medium, the method comprising: informing a target test card to generate a test short message; encapsulating the test short message, card information and network access information of the target test card into a first data packet and sending the first data packet to a card remote agent; receiving a reply short message sent by the test terminal for the test short message, the reply short message being obtained by processing the test short message according to the network access information and according to preset test requirements by the target simulation white card. The method, device and computer readable storage medium can solve the problem that the existing terminal testing method needs to have a real card built in the test terminal and occupies one-to-one code number resources, and cannot meet the remote testing requirements of the test terminal.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of terminal testing, in particular to a terminal testing method, device and computer readable storage medium. BACKGROUND

[0002] Currently, the testing of card terminals, such as SIM (Subscriber Identity Module) card terminals, mainly uses test cards and real network cards, both of which need to be actually built-in in the test terminal and occupy one-to-one code number resources. With the growth of user volume, especially the rapid development of Internet of Things terminals, the code number resources required for card terminal testing greatly increase, and at the same time, the geographical attribution of physical test cards cannot meet the remote testing needs of widely distributed Internet of Things terminals, which brings resistance to testing work. SUMMARY

[0003] The present application aims to solve the above problems in the prior art, and provides a terminal testing method, device and computer readable storage medium, so as to solve the problem that the existing terminal testing method needs to actually build-in cards in the test terminal and occupies one-to-one code number resources, and cannot meet the remote testing needs of test terminals.

[0004] In a first aspect, the present application provides a terminal testing method applied to a test device, wherein the test device is provided with a target test card loaded with code number resources, and the method comprises the following steps:

[0005] informing the target test card to generate a test short message;

[0006] encapsulating the test short message, card information and network access information of the target test card into a first data packet and sending the first data packet to a card remote agent, so that the card remote agent routes and forwards the first data packet to a test terminal where a target simulated white card corresponding to the target test card is located according to the card information of the target test card and a pre-stored correspondence between test cards and simulated white cards, wherein the target simulated white card is a communication card without loading code number resources;

[0007] receiving a reply short message for the test short message sent by the test terminal, wherein the reply short message is obtained by processing the test short message according to pre-set testing requirements by the target simulated white card.

[0008] Further, before the step of informing the target test card to generate a test short message, the method further comprises the following steps:

[0009] receiving a network access request application protocol data unit (APDU) instruction for the target simulated white card routed and sent by the test terminal through the card remote agent;

[0010] obtaining the target test card corresponding to the target white card according to the on-network request APDU instruction;

[0011] sending the on-network request APDU instruction to the target test card, and generating an on-network response APDU instruction corresponding to the on-network request APDU instruction through the target test card;

[0012] sending the on-network response APDU instruction to the card remote agent, so that the card remote agent routes and forwards the on-network response APDU instruction to the test terminal, and the test terminal forwards the on-network response APDU instruction to the target white card, to complete the simulation of the target white card on the network.

[0013] Further, the on-network request APDU instruction carries card information of the target white card, and the obtaining the target test card corresponding to the target white card according to the on-network request APDU instruction specifically comprises:

[0014] obtaining the target test card corresponding to the target white card according to the card information of the target white card and a pre-stored correspondence between test cards and white cards.

[0015] Further, before the receiving the on-network request application protocol data unit (APDU) instruction for the target white card routed and sent by the test terminal through the card remote agent, the method further comprises:

[0016] receiving a test demand uploaded by the test terminal;

[0017] selecting a corresponding test card for the test terminal from a preset number card resource pool as the target test card according to the test demand;

[0018] loading an adaptive corresponding code number resource for the target test card;

[0019] sending test resource configuration information to the test terminal, so that the test terminal configures the target white card corresponding to the target test card according to the test resource configuration information;

[0020] saving the correspondence between the target test card and the target white card.

[0021] Further, after the saving the correspondence between the target test card and the target white card, the method further comprises:

[0022] sending the correspondence between the target test card and the target white card, a routing address of the target test card, and a routing address of the target white card to the card remote agent.

[0023] Further, before the receiving the test requirement uploaded by the test terminal, the method further comprises:

[0024] receiving registration information uploaded by the test terminal;

[0025] registering the test terminal according to the registration information.

[0026] In a second aspect, the application provides a test method of a terminal, applied to a test terminal, the test terminal being provided with a target simulation white card, the target simulation white card being a communication card without loading of a code number resource, and the method comprising:

[0027] receiving a first data packet routed and forwarded by a card remote agent according to card information of a target test card and a corresponding relationship between a test card and a simulation white card pre-stored locally, the first data packet being obtained after the test equipment informs the target test card to generate a test short message, and encapsulates the test short message and the card information and network access information of the target test card, wherein the target test card loads a code number resource;

[0028] obtaining a reply short message obtained after the target simulation white card processes the test short message according to the network access information according to a preset test requirement;

[0029] sending the reply short message to the test equipment.

[0030] Further, before the receiving the first data packet routed and forwarded by the card remote agent according to the card information of the target test card and the corresponding relationship between the test card and the simulation white card pre-stored locally, the method further comprises:

[0031] routing and sending, by the card remote agent, a network access request application protocol data unit (APDU) instruction for the target simulation white card to the test equipment, so that the test equipment acquires the target test card corresponding to the target simulation white card according to the network access request APDU instruction, and sends the network access request APDU instruction to the target test card, so as to generate a network access response APDU instruction corresponding to the network access request APDU instruction through the target test card;

[0032] receiving the network access response APDU instruction routed and forwarded by the card remote agent;

[0033] forwarding the network access response APDU instruction to the target simulation white card, so as to complete simulation network access of the target simulation white card.

[0034] Further, before the routing, by the card remote agent, an application protocol data unit (APDU) instruction for a network access request of the target white card to the test device, the method further comprises:

[0035] uploading test requirements to the test device, so that the test device selects a corresponding test card for the test terminal and loads the corresponding code number resource for the target test card according to the test requirements in a preset number card resource pool;

[0036] receiving test resource configuration information sent by the test device;

[0037] configuring the target white card corresponding to the target test card according to the test resource configuration information.

[0038] Further, before the uploading of the test requirements to the test device, the method further comprises:

[0039] uploading registration information to the test device, so that the test device registers the test terminal according to the registration information.

[0040] In a third aspect, the present application provides a terminal testing device, which is arranged in a test device, the test device is provided with a target test card, the target test card is loaded with a code number resource, and the device comprises:

[0041] a generation notification module, configured to notify the target test card to generate a test short message;

[0042] a data packet sending module, connected with the generation notification module, configured to encapsulate the test short message, card information and network access information of the target test card into a first data packet and send the first data packet to a card remote agent, so that the card remote agent routes and forwards the first data packet to a test terminal where a target white card corresponding to the target test card is located according to the card information of the target test card and a pre-stored correspondence between test cards and white cards, wherein the target white card is a communication card without a code number resource;

[0043] a reply short message receiving module, connected with the data packet sending module, configured to receive a reply short message for the test short message sent by the test terminal, the reply short message is obtained by processing the test short message according to a preset test requirement by the target white card according to the network access information.

[0044] In a fourth aspect, the present application provides a terminal testing device, which is arranged in a test terminal, the test terminal is provided with a target white card, the target white card is a communication card without a code number resource, and the device comprises:

[0045] The data packet receiving module is configured to receive a first data packet routed and forwarded by a card remote agent according to card information of a target test card and a pre-stored correspondence relationship between the test card and a simulated white card, the first data packet being obtained after the test device encapsulates a test short message and the card information and network access information of the target test card after the target test card generates the test short message, wherein the target test card is loaded with a code number resource.

[0046] The reply short message obtaining module is connected with the data packet receiving module and configured to obtain a reply short message obtained after a target simulated white card processes the test short message according to the network access information according to a preset test requirement.

[0047] The reply short message sending module is connected with the reply short message obtaining module and configured to send the reply short message to the test device.

[0048] In a fifth aspect, the present application provides a terminal testing device, which comprises a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to realize the terminal testing method in the first aspect or the second aspect.

[0049] In a sixth aspect, the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the terminal testing method in the first aspect or the second aspect.

[0050] The application provides a terminal testing method, device and computer readable storage medium. First, a test device informs a target test card to generate a test message, and then encapsulates the test message, card information and network access information of the target test card into a first data packet and sends the first data packet to a card remote agent, so that the card remote agent routes and forwards the first data packet to a test terminal where a target simulation white card corresponding to the target test card is located according to the card information of the target test card and a correspondence between a test card and the target simulation white card pre-stored locally, wherein the target simulation white card is a communication card without loading a code number resource; and then the test of the test terminal is completed by receiving a reply message sent by the test terminal and directed to the test message, wherein the reply message is obtained by processing the test message according to the network access information according to a preset test requirement by the target simulation white card. The application sets a simulation white card in a test terminal and sets a test card in a test device, and since the simulation white card does not occupy a code number resource, the test terminal does not need to be reformed in software and hardware, the remote test requirement of the terminal can be met, the flexible allocation of the code number resource and the resource sharing can be realized, and the test and network access use of a card terminal, especially an Internet of Things terminal, can be accelerated. The existing terminal testing method needs a card to be actually built-in the test terminal and occupies one-to-one code number resources, and the remote test requirement of the test terminal cannot be met. BRIEF DESCRIPTION OF DRAWINGS

[0051] Figure 1 A scene diagram of a terminal testing method according to an embodiment of the application;

[0052] Figure 2 A flowchart of a terminal testing method according to Embodiment 1 of the application;

[0053] Figure 3 A flowchart of a terminal testing method according to Embodiment 2 of the application;

[0054] Figure 4 A structural schematic diagram of a terminal testing device according to Embodiment 3 of the application;

[0055] Figure 5 A structural schematic diagram of a terminal testing device according to Embodiment 4 of the application;

[0056] Figure 6 A structural schematic diagram of a terminal testing device according to Embodiment 5 of the application. DETAILED DESCRIPTION

[0057] In order for those skilled in the art to better understand the technical solutions of the application, the embodiments of the application will be further described in detail below with reference to the drawings.

[0058] It can be understood that the specific embodiments and drawings described herein are only used to explain the present application, but not to limit the present application.

[0059] It can be understood that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0060] It can be understood that, for the convenience of description, only parts related to the present application are shown in the drawings of the present application, and parts unrelated to the present application are not shown in the drawings.

[0061] It can be understood that each unit and module involved in the embodiments of the present application can only correspond to one entity structure, or can be composed of multiple entity structures, or multiple units and modules can be integrated into one entity structure.

[0062] It can be understood that the functions and steps marked in the flowcharts and block diagrams of the present application can occur in an order different from that marked in the drawings without conflict.

[0063] It can be understood that in the flowcharts and block diagrams of the present application, the architecture, functions and operations of possible implementations of the system, device, equipment and method according to the embodiments of the present application are shown. Each block in the flowchart or block diagram can represent a unit, module, program segment, code, which contains executable instructions for realizing the specified function. Moreover, each block or combination of blocks in the block diagram and flowchart can be realized by a hardware-based system for realizing the specified function, or by a combination of hardware and computer instructions.

[0064] It can be understood that the units and modules involved in the embodiments of the present application can be realized by software or by hardware, for example, the units and modules can be located in a processor.

[0065] It should be noted that the scenario diagram described in the embodiments of the present application is used to more clearly explain the technical solutions of the embodiments of the present application, and does not constitute a limitation on the technical solutions provided by the embodiments of the present application. It can be known by those skilled in the art that with the evolution of network architecture and the appearance of new business scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

[0066] As shown in FIG. 1, a scenario diagram of a terminal test method provided by an embodiment of the present application is shown, and each part is described as follows: Figure 1

[0067] (1) Test terminal: refers to a card terminal that needs to be tested, such as a test terminal with a built-in SIM card, which has communication capability, data processing and computing capability, and is commonly seen in mobile phones, modules and other Internet of Things terminals.

[0068] ​(2) Simulated white card: refers to a test card without loading a code number resource, usually a full-function test card without a code number, the physical entity of which is consistent with the test card, but it is not actually loaded or occupies a code number resource. The card can perform data agreement packaging and processing while being physically connected, and can also be implemented by using an eSIM (Embedded-SIM) or a software scheme according to terminal design and test requirements.

[0069] (3) Card remote agent: responsible for routing and forwarding test data of the test card, and routing and returning data on the terminal side.

[0070] (4) Test device: refers to a test tool or a card reading device stationed at a test site.

[0071] (5) Test card: refers to a test card loaded with a real network code number resource, which is built-in in the test device, and the code number resource loaded in the test card is mainly used for testing.

[0072] Based on Figure 1 The scene diagram shown in the figure, the following describes the related embodiments of the test method of the terminal involved in the present application.

[0073] Embodiment 1:

[0074] The embodiment provides a test method of a terminal, applied to a test device, the test device is provided with a target test card, the target test card is loaded with a code number resource, as shown in the figure, the method comprises the following steps. Figure 2

[0075] Step S101: notify the target test card to generate a test short message.

[0076] In this embodiment, the target test card refers to a test card corresponding to the target simulated white card in the current test terminal, and the target test card and the target simulated white card have completed network camping. The test device notifies the target test card to generate and send a pp-download (a special short message for testing) test short message.

[0077] Optionally, before the step of notifying the target test card to generate a test short message, the method further comprises the following steps.

[0078] Receiving a network camping request APDU (Application Protocol Data Unit) instruction for the target simulated white card sent by the test terminal through the card remote agent;

[0079] According to the network camping request APDU instruction, the target test card corresponding to the target simulated white card is obtained;

[0080] ​send the on-network request APDU instruction to the target test card, and generate an on-network response APDU instruction corresponding to the on-network request APDU instruction through the target test card;

[0081] send the on-network response APDU instruction to the card remote agent, so that the card remote agent routes and forwards the on-network response APDU instruction to the test terminal, and the test terminal forwards the on-network response APDU instruction to the target simulated white card, to complete the simulated on-network of the target simulated white card.

[0082] In the embodiment, the test task can be initiated by the test terminal or the test device. When the test terminal needs to initiate a test request, the target simulated white card on-network request APDU instruction is assembled according to the agreement, and the on-network request APDU instruction is sent to the card remote agent to initiate the on-network request, and the card information and terminal information of the target simulated white card are carried in the request. The card remote agent looks up the local binding relationship, obtains the information of the target test card bound to the target simulated white card, further looks up the local data list, obtains the target address of the test device, and calculates the routing relationship, and sends the on-network request APDU instruction to the test device according to the routing. After receiving the on-network request APDU instruction, the test device obtains the target test card corresponding to the target simulated white card according to the card information of the target simulated white card and the corresponding relationship between the test card and the simulated white card pre-stored by itself, and forwards the on-network request APDU instruction to the associated target test card. After receiving the on-network request APDU instruction, the card inside generates an on-network response APDU instruction, and returns the on-network response APDU instruction to the test device. The test device sends the on-network response APDU instruction to the card remote agent, and the card remote agent routes and forwards the on-network response APDU instruction to the target simulated white card in the test terminal. Thus, the target simulated white card completes the simulated on-network, the target test card completes the remote on-network, and the remote test condition is met.

[0083] Optionally, before receiving the on-network request application protocol data unit (APDU) instruction for the target simulated white card sent by the test terminal through the card remote agent, the method further comprises:

[0084] receiving the test demand uploaded by the test terminal;

[0085] selecting a corresponding test card as the target test card for the test terminal in a preset number card resource pool according to the test demand;

[0086] loading the corresponding code number resource for the target test card;

[0087] sending test resource configuration information to the test terminal, so that the test terminal configures the target test card corresponding to the target simulation white card according to the test resource configuration information;

[0088] saving the correspondence between the target test card and the target simulation white card.

[0089] In this embodiment, the test terminal can first upload registration information to the test device, and the registration information includes the device name, model, ID, software version, etc. of the test terminal. After the test device receives the registration information uploaded by the test terminal, the test terminal is registered according to the registration information. After the test terminal completes the registration, the test requirement is uploaded, which can include the card type, test content, test area, network environment, test requirement, etc. For example, the card type is a 5G NFC (Near Field Communication) card, the test content is to perform network access test, the test area is a certain test area, the network environment is 5G network access, etc. The test device selects appropriate test cards as target test cards in the local card resource pool according to the test requirement uploaded by the test terminal and the information of the test terminal, and loads the corresponding code number resource (such as 3G function test, 5G network access test, etc. which needs to adapt to different cards and code number resources), and completes the local test resource configuration; at the same time, the test device provides the terminal side with a suitable simulation white card, and the target simulation white card needs to be consistent with the target test card in physical entity, interface protocol, etc., but does not need to load the code number resource. Specifically, the test device sends test resource configuration information to the test terminal, and the test terminal configures the target test card corresponding to the target simulation white card according to the test resource configuration information, so as to complete the configuration of the terminal side test resource. The test device saves the correspondence between the target test card and the target simulation white card.

[0090] In this embodiment, the test device can select the appropriate test card in the local card resource pool according to the card type (size, function, etc.), and allocate test resources (network access test tool, function test script, etc.) according to the test requirement (function, performance, network access requirement, etc.).

[0091] Optionally, after saving the correspondence between the target test card and the target simulation white card, the method further includes:

[0092] sending the correspondence between the target test card and the target simulation white card, the routing address of the target test card, and the routing address of the target simulation white card to the card remote agent.

[0093] In this embodiment, the test device synchronizes the correspondence between the target test card and the target simulation white card to the card remote agent together with the routing addresses of the two ends, and the card remote agent saves the information.

[0094] Step S102: encapsulate the test short message, card information and network access information of the target test card into a first data packet, and send the first data packet to the card remote agent, so that the card remote agent routes and forwards the first data packet to a target test terminal where a target simulation white card corresponding to the target test card is located according to the card information of the target test card and a pre-stored correspondence between test cards and simulation white cards, wherein the target simulation white card is a communication card without loading a code number resource.

[0095] In the embodiment, the test device encapsulates and forwards the test short message together with the card information and the network access information to the card remote agent. After receiving the information, the card remote agent routes and forwards the information to the test terminal according to the card information in the information, a pre-stored correspondence between test cards and simulation white cards, and routing information. The card information includes a card identifier such as a card ID, an access number, code number information, and the like. The network access information is network access information generated by a network side for the target test card after the target test card completes network access, and can be obtained through the network side.

[0096] Step S103: receive a reply short message for the test short message sent by the test terminal, wherein the reply short message is obtained by processing the test short message according to a preset test requirement by the target simulation white card according to the network access information.

[0097] In the embodiment, after receiving the encapsulated first data packet, the test terminal analyzes the first data packet to obtain the pp-download test short message, forwards the test short message to the target simulation white card (one or more simulation white cards can be built in the test terminal), and processes the test short message according to a test requirement according to the network access information in the test short message after the target simulation white card receives the test short message, for example, performs 5G function test and performance test, obtains a reply short message, and returns the reply short message to the test terminal. The test terminal sends the reply short message according to the network access information, and the process is repeated to complete remote test or local test.

[0098] In one specific embodiment, the test method of the terminal can include the following steps:

[0099] (1) Test terminal registration and resource configuration

[0100] Specifically, the test terminal first needs to complete registration or registration in the test device, and the test terminal uploads the registration information to the test device, including the device name, model, ID, software version, etc. of the test terminal. After completing the registration, upload the test requirements of remote test, including card type, test content, test area, network environment, test requirements, etc. The test device selects appropriate test cards in the local card resource pool according to the test requirements uploaded by the test terminal and the information of the test terminal, and loads the corresponding code number resources (such as 3G function test, 5G network access test, etc. Different cards and code number resources need to be adapted), complete the local test resource configuration; At the same time, the terminal side is equipped with a suitable simulation white card, which needs to be consistent with the test card physical entity, interface protocol, etc., but does not need to load the code number resource. After the test terminal completes the registration, the test terminal is placed in the test terminal, and the test resource configuration on the terminal side is completed. The test device saves the binding relationship of the test card and the simulation white card, and synchronizes the information to the card remote agent together with the routing address of both ends. The card remote agent saves the information.

[0101] (2) Card remote network

[0102] Specifically, the test task can be initiated by the test terminal or by the test device. Take the former as an example. The test terminal assembles the simulation white card network request APDU instruction according to the agreement, and sends the APDU instruction to the card remote agent to initiate the network request, which carries the card information and terminal information. The card remote agent looks up the local binding relationship to obtain the test card information bound to the simulation white card, further looks up the local data list to obtain the target address of the test device, and calculates the routing relationship. According to the routing, the network request APDU instruction is sent to the test device. The test device receives the network request APDU instruction, obtains the associated test card according to the card binding relationship, and forwards the network request APDU instruction to the associated test card. After receiving the network request APDU instruction, the card generates a network response APDU instruction internally, and returns the network response APDU instruction to the test device. The test device sends the network response APDU instruction to the card remote agent, and the card remote agent routes and forwards the network response APDU instruction to the simulation white card in the test terminal. The simulation white card completes the simulation network, and the test card completes the remote network, and has the remote test condition.

[0103] (3) Terminal remote test

[0104] The test equipment informs the test card to generate and send a pp-download test message, and the test equipment encapsulates and forwards the message to the card remote agent together with the card information and the network access information. After receiving the information, the card remote agent routes and forwards the information to the test terminal according to the card information in the information and the local binding relationship and routing information. After receiving the information, the test terminal parses the pp-download test message and forwards the message to the corresponding simulation white card. After receiving the pp-download test message, the simulation white card processes the test message according to the network access information in the forwarding information according to the test requirements, obtains a reply message and returns it to the test terminal. The test terminal sends the reply message out according to the network access information of the test card, and the process is repeated to complete the remote test.

[0105] The test method of the terminal provided by the embodiment of the application first informs the target test card to generate a test message by the test equipment, then encapsulates the test message and the card information and network access information of the target test card into a first data packet and sends the first data packet to the card remote agent, so that the card remote agent routes and forwards the first data packet to the test terminal where the target simulation white card corresponding to the target test card is located according to the card information of the target test card and the corresponding relationship between the test card and the simulation white card pre-stored locally, wherein the target simulation white card is a communication card without loading code number resources; and then the test of the test terminal is completed by receiving a reply message for the test message sent by the test terminal, wherein the reply message is obtained by processing the test message according to the network access information by the target simulation white card according to preset test requirements. The application sets the simulation white card in the test terminal and sets the test card in the test equipment. Since the simulation white card does not occupy code number resources, the test terminal does not need to be reformed in software and hardware, the remote test requirement of the terminal can be met, the flexible allocation of code number resources and resource sharing can be realized, and the test and network access use of the terminal with a card, especially the terminal of the Internet of Things, can be accelerated. The problem that the existing test method of the terminal needs the card to be actually built-in the test terminal and occupies one-to-one code number resources, and cannot meet the remote test requirement of the test terminal, is solved.

[0106] Embodiment 2

[0107] As shown in Figure 3 The embodiment provides a test method of a terminal, which is applied to a test terminal, the test terminal is provided with a target simulation white card, the target simulation white card is a communication card without loading code number resources, and the method comprises the following steps:

[0108] Step S201: The receiving card remote agent forwards a first data packet according to card information of a target test card and a locally pre-stored correspondence between test cards and simulated white cards, the first data packet being obtained by encapsulating a test short message and the card information and network access information of the target test card after the test device notifies the target test card to generate the test short message, wherein the target test card is loaded with a code number resource.

[0109] Optionally, before the receiving card remote agent forwards the first data packet according to the card information of the target test card and the locally pre-stored correspondence between test cards and simulated white cards, the method further comprises:

[0110] routing and sending, by the card remote agent, a network access request application protocol data unit (APDU) instruction for the target simulated white card to the test device, so that the test device acquires the target test card corresponding to the target simulated white card according to the network access request APDU instruction, and sends the network access request APDU instruction to the target test card, so as to generate a network access response APDU instruction corresponding to the network access request APDU instruction through the target test card;

[0111] receiving the network access response APDU instruction routed and forwarded by the card remote agent;

[0112] forwarding the network access response APDU instruction to the target simulated white card to complete the simulation of network access of the target simulated white card.

[0113] Optionally, before the card remote agent routes and sends the network access request application protocol data unit (APDU) instruction for the target simulated white card to the test device, the method further comprises:

[0114] uploading test requirements to the test device, so that the test device selects a corresponding test card as the target test card from a preset number card resource pool according to the test requirements, and loads a corresponding code number resource for the target test card;

[0115] receiving test resource configuration information sent by the test device;

[0116] configuring the target simulated white card corresponding to the target test card according to the test resource configuration information.

[0117] Optionally, before the test requirements are uploaded to the test device, the method further comprises:

[0118] uploading registration information to the test device, so that the test device registers the test terminal according to the registration information.

[0119] In the embodiment, the test terminal can first upload registration information to the test device, and the registration information includes the device name, model, ID, software version, and the like of the test terminal. After the test device receives the registration information uploaded by the test terminal, the test terminal is registered according to the registration information. After the test terminal completes the registration, the test requirement is uploaded. The test requirement can include the card type, test content, test area, network environment, test requirement, and the like. For example, the card type is a 5G NFC (Near Field Communication) card, the test content is to perform network access test, the test area is a certain test area, the network environment is 5G network access, and the like. The test device selects a suitable test card as a target test card in the local card resource pool according to the test requirement uploaded by the test terminal and the information of the test terminal, and loads the corresponding code number resource (such as 3G function test, 5G network access test, and the like, which needs to adapt to different cards and code number resources), to complete the local test resource configuration. At the same time, the test device is equipped with a suitable simulation white card. The target simulation white card needs to be consistent with the target test card in physical entity, interface protocol, and the like, but does not need to load the code number resource. Specifically, the test device sends test resource configuration information to the test terminal, and the test terminal configures the target simulation white card corresponding to the target test card according to the test resource configuration information, so as to complete the configuration of the test resource at the terminal side. The test device saves the correspondence between the target test card and the target simulation white card.

[0120] Step S202: obtaining a reply short message obtained by processing the test short message according to the network access information by the target simulation white card according to the preset test requirement;

[0121] Step S203: sending the reply short message to the test device.

[0122] In the embodiment, after the target test card and the target simulation white card complete the network access, the test device notifies the target test card to generate and send a pp-download (a special short message for test) test short message. The test device encapsulates and forwards the test short message together with the card information and the network access information to the card remote agent. After receiving the information, the card remote agent routes and forwards the information to the test terminal according to the card information in the information, the correspondence between the test card and the simulation white card pre-stored locally, and the routing information. After receiving the encapsulated first data packet, the test terminal analyzes the first data packet to obtain the pp-download test short message, and forwards the test short message to the target simulation white card (one or more simulation white cards can be built-in in the test terminal). After receiving the pp-download test short message, the target simulation white card processes the test short message according to the network access information in the test short message according to the test requirement, for example, performs 5G function test and performance test, obtains a reply short message, and returns the reply short message to the test terminal. The test terminal sends the reply short message out according to the network access information, and the like, to complete the remote test or the local test.

[0123] Embodiment 3:

[0124] As Figure 4 shown, the embodiment provides a testing device of a terminal, used for executing the testing method of the terminal in Embodiment 1, arranged in a testing equipment, wherein the testing equipment is arranged with a target testing card loaded with a code number resource, and the device comprises:

[0125] a generating notification module 11, used for notifying the target testing card to generate a testing short message;

[0126] a data packet sending module 12, connected with the generating notification module 11, used for encapsulating the testing short message, card information and network access information of the target testing card into a first data packet, and sending the first data packet to a card remote agent, so that the card remote agent routes and forwards the first data packet to a target testing terminal where a target simulation white card corresponding to the target testing card is located according to the card information of the target testing card and a pre-stored corresponding relationship between testing cards and simulation white cards, wherein the target simulation white card is a communication card without loading code number resource.

[0127] a reply short message receiving module 13, connected with the data packet sending module 12, used for receiving a reply short message sent by the testing terminal for the testing short message, wherein the reply short message is obtained by processing the testing short message according to the network access information by the target simulation white card according to pre-set testing requirements.

[0128] Optionally, the device further comprises:

[0129] a first receiving module, used for receiving a network staying request application protocol data unit (APDU) instruction for the target simulation white card routed and sent by the testing terminal through the card remote agent;

[0130] a first obtaining module, used for obtaining the target testing card corresponding to the target simulation white card according to the network staying request APDU instruction;

[0131] a first sending module, used for sending the network staying request APDU instruction to the target testing card, and generating a network staying response APDU instruction corresponding to the network staying request APDU instruction through the target testing card;

[0132] a second sending module, used for sending the network staying response APDU instruction to the card remote agent, so that the card remote agent routes and forwards the network staying response APDU instruction to the testing terminal, and the testing terminal forwards the network staying response APDU instruction to the target simulation white card, so as to complete the simulation network staying of the target simulation white card.

[0133] Optionally, the on-network request APDU instruction carries card information of the target analog white card, and the first obtaining module is specifically configured to:

[0134] obtain the target test card corresponding to the target analog white card according to the card information of the target analog white card and a pre-stored correspondence between test cards and analog white cards.

[0135] Optionally, the device further comprises:

[0136] The second receiving module is configured to receive test demand uploaded by the test terminal.

[0137] The selection module is configured to select a corresponding test card for the test terminal from a preset number card resource pool as the target test card according to the test demand.

[0138] The adaptation module is configured to load an adaptation corresponding code number resource for the target test card.

[0139] The third sending module is configured to send test resource configuration information to the test terminal, so that the test terminal configures the target analog white card corresponding to the target test card according to the test resource configuration information.

[0140] The saving module is configured to save the correspondence between the target test card and the target analog white card.

[0141] Optionally, the device further comprises:

[0142] The fourth sending module is configured to send the correspondence between the target test card and the target analog white card, a routing address of the target test card, and a routing address of the target analog white card to the card remote agent.

[0143] Optionally, the device further comprises:

[0144] The third receiving module is configured to receive registration information uploaded by the test terminal.

[0145] The registration module is configured to register the test terminal according to the registration information.

[0146] Embodiment 4:

[0147] As shown in Figure 5 The embodiment provides a test device of a terminal, which is used for executing the test method of the terminal in the above embodiment 2, is arranged in a test terminal, the test terminal is provided with a target analog white card, the target analog white card is a communication card without loading code number resource, and the device comprises:

[0148] The data packet receiving module 21 is configured to receive a first data packet routed and forwarded by a card remote agent according to card information of a target test card and a pre-stored correspondence relationship between the test card and a simulated white card, the first data packet being obtained after the test equipment encapsulates the test short message and the card information and network access information of the target test card after the target test card generates the test short message, wherein the target test card is loaded with a code number resource;

[0149] The reply short message obtaining module 22 is connected with the data packet receiving module 21 and configured to obtain a reply short message obtained by a target simulated white card by processing the test short message according to preset test requirements;

[0150] The reply short message sending module 23 is connected with the reply short message obtaining module 22 and configured to send the reply short message to the test equipment.

[0151] Optionally, the apparatus further comprises:

[0152] The fifth sending module is configured to send, through the card remote agent, a network access request application protocol data unit (APDU) instruction for the target simulated white card to the test equipment, so that the test equipment acquires the target test card corresponding to the target simulated white card according to the network access request APDU instruction and sends the network access request APDU instruction to the target test card, so that the target test card generates a network access response APDU instruction corresponding to the network access request APDU instruction;

[0153] The fourth receiving module is configured to receive the network access response APDU instruction routed and forwarded by the card remote agent;

[0154] The sixth sending module is configured to forward the network access response APDU instruction to the target simulated white card, so as to complete the simulation of network access of the target simulated white card.

[0155] Optionally, the apparatus further comprises:

[0156] The seventh sending module is configured to upload test requirements to the test equipment, so that the test equipment selects a corresponding test card as the target test card from a preset number card resource pool according to the test requirements and loads the corresponding code number resource for the target test card;

[0157] The fifth receiving module is configured to receive test resource configuration information sent by the test equipment;

[0158] The configuration module is configured to configure the target simulated white card corresponding to the target test card according to the test resource configuration information.

[0159] Optionally, the apparatus further comprises:

[0160] an eighth sending module configured to upload registration information to the test device, so that the test device registers the test terminal according to the registration information.

[0161] Embodiment 5:

[0162] Reference Figure 6 The embodiment provides a test device of a terminal, which comprises a memory 31 and a processor 32, the memory 31 stores a computer program, and the processor 32 is configured to execute the computer program to perform the test method of the terminal in Embodiment 1 or Embodiment 2.

[0163] The memory 31 is connected with the processor 32, the memory 31 can adopt a flash memory or a read-only memory or other memories, and the processor 32 can adopt a central processing unit or a single-chip microcomputer.

[0164] Embodiment 6:

[0165] The embodiment provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the test method of the terminal in Embodiment 1 or Embodiment 2.

[0166] The computer readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information such as computer readable instructions, data structures, computer program modules or other data. The computer readable storage medium includes but is not limited to RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technologies, CD-ROM (Compact Disc Read-Only Memory), digital versatile disc (DVD) or other optical disc storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer.

[0167] The test method, device and computer readable storage medium of the terminal provided in embodiments 2 to 6 first inform the target test card to generate a test short message by a test device, then encapsulate the test short message and card information and network access information of the target test card into a first data packet and send to a card remote agent, so that the card remote agent routes and forwards the first data packet to a test terminal where a target simulation white card corresponding to the target test card is located according to the card information of the target test card and a corresponding relationship between a test card and a simulation white card pre-stored locally, wherein the target simulation white card is a communication card without loading code number resources; then the test of the test terminal is completed by receiving a reply short message for the test short message sent by the test terminal, wherein the reply short message is obtained by the target simulation white card according to the network access information by processing the test short message according to preset test requirements. The simulation white card is arranged in the test terminal and the test card is arranged in the test device in the application, since the simulation white card does not occupy code number resources, the test terminal does not need to be reformed in software and hardware, both the remote test requirement of the terminal and the flexible allocation and resource sharing of the code number resources can be met, and the test and network access use of the terminal with a card, especially the Internet of Things terminal, can be accelerated. The problem that the existing terminal test method needs the card to be actually built-in the test terminal and occupies one-to-one code number resources, and cannot meet the remote test requirement of the test terminal, is solved.

[0168] It can be understood that the above embodiments are only exemplary embodiments for illustrating the principles of the present application, and the present application is not limited thereto. Various modifications and improvements can be made by those skilled in the art without departing from the spirit and essence of the present application, and these modifications and improvements are also considered to be within the protection scope of the present application.

Claims

1. A method for testing a terminal, characterized in that, Applied to a testing device, the testing device being equipped with a target test card, the target test card being loaded with code resources, the method includes: Receive test requests uploaded by the test terminal; According to the test requirements, select the corresponding test card for the test terminal from the preset SIM card resource pool and use it as the target test card; Load the corresponding code number resources for the target test card, complete the local test resource configuration, and equip the terminal side with a suitable simulated white card. The simulated white card and the test card have the same physical entity and interface protocol, but do not occupy code number resources. Send test resource configuration information to the test terminal so that the test terminal can configure the target simulated white card corresponding to the target test card according to the test resource configuration information, thereby completing the configuration of test resources on the terminal side; Save the correspondence between the target test card and the target simulated white card; Notify the target test card to generate a test SMS message; The test SMS message, along with the card information and network access information of the target test card, are encapsulated into a first data packet and sent to the card remote agent. The card remote agent then routes and forwards the first data packet to the test terminal where the target simulated white card corresponding to the target test card is located, based on the card information of the target test card and the correspondence between the test card and the simulated white card stored locally. The target simulated white card is a communication card without loaded code resources. The system receives a reply SMS from the test terminal in response to the test SMS. The reply SMS is obtained by the target simulated white card after processing the test SMS according to the network access information and preset test requirements.

2. The method according to claim 1, characterized in that, Before the test SMS is generated by the target test card, the method further includes: Receive the Application Protocol Data Unit (APDU) instruction for the target simulated white card sent by the test terminal through the card remote proxy routing; The target test card corresponding to the target simulated white card is obtained according to the APDU command requested by the network administrator; The APDU command for requesting network access is sent to the target test card, and the target test card generates an APDU command for response to the APDU command for requesting network access. The APDU instruction for network registration is sent to the card remote agent, so that the card remote agent routes and forwards the APDU instruction to the test terminal, and the test terminal forwards the APDU instruction to the target simulated white card, thereby completing the simulated network registration of the target simulated white card.

3. The method according to claim 2, characterized in that, The APDU command for network access requests carries the card information of the target simulated white card. The step of obtaining the target test card corresponding to the target simulated white card based on the APDU command for network access requests specifically includes: Based on the card information of the target simulated white card and the correspondence between the pre-stored test cards and simulated white cards, obtain the target test card corresponding to the target simulated white card.

4. The method according to claim 1, characterized in that, After saving the correspondence between the target test card and the target simulated white card, the method further includes: The correspondence between the target test card and the target simulated white card, the routing address of the target test card, and the routing address of the target simulated white card are sent to the card remote agent.

5. The method according to claim 1, characterized in that, Before receiving the test requirements uploaded by the test terminal, the method further includes: Receive the registration information uploaded by the test terminal; The test terminal is registered according to the registration information.

6. A method for testing a terminal, characterized in that, The method is applied to a test terminal, which is equipped with a target simulated white card, which is a communication card without loaded code resources. The test requirements are uploaded to the test equipment so that the test equipment can select the corresponding test card for the test terminal from the preset number card resource pool according to the test requirements and use it as the target test card. The test equipment also loads the corresponding code number resources for the target test card, completes the local test resource configuration, and equips the terminal with a suitable simulated white card. The simulated white card and the test card have the same physical entity and interface protocol, but do not occupy code number resources. The test resource configuration information is sent to the test terminal, and the correspondence between the target test card and the target simulated white card is saved. Receive test resource configuration information sent by the test equipment; Configure the target simulated white card corresponding to the target test card according to the test resource configuration information to complete the configuration of terminal-side test resources; The receiving card remote agent routes and forwards the first data packet according to the card information of the target test card and the correspondence between the test card and the simulated blank card stored locally. The first data packet is obtained by encapsulating the test SMS, the card information and network access information of the target test card after the test device notifies the target test card to generate a test SMS. The target test card is loaded with code number resources. The target simulated white card obtains a reply SMS after processing the test SMS according to the network access information and preset test requirements; Send the reply SMS to the test device.

7. The method according to claim 6, characterized in that, Before the receiving card remote agent routes and forwards the first data packet based on the card information of the target test card and the locally pre-stored correspondence between test cards and simulated blank cards, the method further includes: The card remote agent routes and sends a Network Request Application Protocol Data Unit (APDU) instruction for the target simulated white card to the test device, so that the test device can obtain the target test card corresponding to the target simulated white card according to the Network Request APDU instruction, and send the Network Request APDU instruction to the target test card, so that the target test card can generate a Network Response APDU instruction corresponding to the Network Request APDU instruction. Receive the APDU command, which is remotely routed and forwarded by the card's remote agent; The APDU command for network registration is forwarded to the target simulated white card to complete the simulated network registration of the target simulated white card.

8. The method according to claim 6, characterized in that, Before uploading the test requirements to the test equipment, the method further includes: The registration information is uploaded to the testing device so that the testing device can register the testing terminal based on the registration information.

9. A testing device for a terminal, characterized in that, The device is configured in a testing device, the testing device being equipped with a target test card, the target test card being loaded with code resources, and the device comprising: The notification generation module is used to notify the target test card to generate a test SMS message; A data packet sending module, connected to the notification generation module, is used to encapsulate the test SMS and the card information and network access information of the target test card into a first data packet and send it to the card remote agent, so that the card remote agent routes and forwards the first data packet to the test terminal where the target simulated white card corresponding to the target test card is located, according to the card information of the target test card and the correspondence between the test card and the simulated white card stored locally. The target simulated white card is a communication card without loaded code resources. A reply SMS receiving module, connected to the data packet sending module, is used to receive a reply SMS sent by the test terminal in response to the test SMS. The reply SMS is obtained by the target simulated white card after processing the test SMS according to the network access information and preset test requirements. A receiving module is used to receive test requirements uploaded by the test terminal; The selection module is used to select a corresponding test card for the test terminal from a preset SIM card resource pool according to the test requirements and use it as the target test card; The adaptation module is used to load the corresponding code number resources for the target test card, complete the local test resource configuration, and equip the end side with a suitable simulated white card. The simulated white card and the test card have the same physical entity and interface protocol, but do not occupy code number resources. The sending module is used to send test resource configuration information to the test terminal, so that the test terminal can configure the target simulated white card corresponding to the target test card according to the test resource configuration information, and complete the configuration of test resources on the terminal side. The storage module is used to store the correspondence between the target test card and the target simulated white card.

10. A testing device for a terminal, characterized in that, The device is configured in a test terminal, which is equipped with a target simulated white card, which is a communication card without loaded code resources. The device includes: The data packet receiving module is used to receive the first data packet forwarded by the card remote agent according to the card information of the target test card and the correspondence between the test card and the simulated white card stored locally. The first data packet is obtained by encapsulating the test SMS, the card information and network access information of the target test card after the test device notifies the target test card to generate a test SMS. The target test card is loaded with code number resources. The reply SMS acquisition module is connected to the data packet receiving module and is used to acquire the reply SMS obtained after the target simulated white card processes the test SMS according to the network access information and preset test requirements. A reply SMS sending module, connected to the reply SMS acquisition module, is used to send the reply SMS to the test device; The sending module is used to upload test requirements to the test equipment, so that the test equipment can select a corresponding test card for the test terminal from a preset number card resource pool according to the test requirements and use it as the target test card, load the corresponding code number resources for the target test card, complete the local test resource configuration, and equip the terminal with a suitable simulated white card. The simulated white card and the test card have the same physical entity and interface protocol, but do not occupy code number resources. The module sends test resource configuration information to the test terminal and saves the correspondence between the target test card and the target simulated white card. The receiving module is used to receive test resource configuration information sent by the test equipment; The configuration module is used to configure the target simulated white card corresponding to the target test card according to the test resource configuration information, thereby completing the configuration of the terminal-side test resources.

11. A testing device for a terminal, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the testing method for the terminal as described in any one of claims 1-5, or to implement the testing method for the terminal as described in any one of claims 6-8.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the testing method for the terminal as described in any one of claims 1-5, or implements the testing method for the terminal as described in any one of claims 6-8.

Citation Information

Patent Citations

  • Internet of things eSIM terminal code number downloading process consistency test system and method

    CN111372249A

  • Operator network test system and method based on eSIM

    CN112105025A