CN117354211A - System testing method, device and chip of virtual SIM card - Google Patents

System testing method, device and chip of virtual SIM card Download PDF

Info

Publication number
CN117354211A
CN117354211A CN202311507365.9A CN202311507365A CN117354211A CN 117354211 A CN117354211 A CN 117354211A CN 202311507365 A CN202311507365 A CN 202311507365A CN 117354211 A CN117354211 A CN 117354211A
Authority
CN
China
Prior art keywords
sim card
card
receiving
entity
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311507365.9A
Other languages
Chinese (zh)
Inventor
潘枫春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202311507365.9A priority Critical patent/CN117354211A/en
Publication of CN117354211A publication Critical patent/CN117354211A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/20Arrangements for monitoring or testing data switching networks the monitoring system or the monitored elements being virtualised, abstracted or software-defined entities, e.g. SDN or NFV
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data

Abstract

The invention provides a system testing method, device and chip of a virtual SIM card. The method comprises the following steps: receiving an authentication request sent to a virtual SIM card by a network side, wherein the information of the virtual SIM card is the same as the card opening information of a second entity SIM card; the authentication request is sent to a second entity SIM card, and network loopback data is sent through a data path of a first entity SIM card; receiving an authentication response sent by a second entity SIM card, and receiving network loopback data through a data path of a first entity SIM card; and sending an authentication response to the virtual SIM card. The invention can carry out complete system level verification on the communication protocol function of the virtual SIM card (comprising the double-card combination of the physical SIM card and the virtual SIM card) under the condition of not needing actual matched software of a terminal manufacturer.

Description

System testing method, device and chip of virtual SIM card
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a chip for testing a system of a virtual SIM card.
Background
The virtual SIM card is widely applied to a universal terminal manufacturer (such as MIFI product) at present, and the basic principle is as follows: the terminal has two SIM cards at the same time: one is a physical card and one is a virtual card. When the terminal is started, the entity card is started first, an available data channel is established, and normal functions of network residence, registration, business and the like can be performed. The virtual card is restarted (card information is mastered and provided by each terminal manufacturer and is not a conventional carrier card, but Cheng Mou specific available carrier cards are mapped at the server side according to actual conditions and certain algorithm conditions), network residence is carried out, and registration is carried out after the network residence is completed.
The virtual card information is not registered in the operator and the related authentication operation is not carried out by the entity SIM, so that the virtual card information cannot be directly registered, but the wireless resource of the entity card is borrowed, the authentication parameters issued by the network are firstly transmitted to the server of the terminal manufacturer, the authentication is carried out by the server, the authentication result is transmitted to the virtual card of the terminal, and the virtual card is fed back to the network end, thereby completing the authentication flow. The service can be carried out as a normal SIM card.
For the virtual SIM card, a terminal manufacturer provides a corresponding application APP and a server, and a chip manufacturer provides a communication protocol function, so that the terminal manufacturer and the chip manufacturer are combined to realize the complete requirement. The lack of two components at the front end makes it difficult for the chip manufacturer to perform a separate system level test when testing the communication protocol functions of the virtual SIM card.
Disclosure of Invention
The system testing method, the device, the chip and the computer readable storage medium of the virtual SIM card can perform complete system level test on the communication protocol function of the virtual SIM card under the condition that the actual matched software of a terminal manufacturer is not needed.
In a first aspect, the present invention provides a system testing method for a virtual SIM card, the method including:
receiving an authentication request sent to a virtual SIM card by a network terminal;
the authentication request is sent to a second entity SIM card, and network loopback data is sent through a data path of a first entity SIM card;
receiving an authentication response sent by a second entity SIM card, and receiving network loopback data through a data path of a first entity SIM card;
and sending an authentication response to the virtual SIM card.
Optionally, the receiving the authentication response sent by the second physical SIM card, and receiving the network loopback data through the data path of the first physical SIM card includes:
firstly, receiving network loop-back data through a data path of a first entity SIM card, and then receiving an authentication response sent by a second entity SIM card; or,
firstly receiving an authentication response sent by a second entity SIM card, and then receiving network loopback data through a data path of a first entity SIM card; or,
and receiving network loopback data through a data path of the first entity SIM card while receiving the authentication response sent by the second entity SIM card.
Optionally, the information of the virtual SIM card is the same as the card opening information of the second physical SIM card.
Optionally, before the receiving network side sends the authentication request to the virtual SIM card, the method further includes:
receiving a card opening request of a second entity SIM card, wherein the card opening request carries card opening information of the second entity SIM card;
storing the card opening information of the second entity SIM card as the information of the virtual SIM card;
and after the second entity SIM card is successfully opened, opening a protocol stack corresponding to the virtual SIM card according to the opening information of the second entity SIM card.
In a second aspect, the present invention provides a system testing device for a virtual SIM card, the device comprising:
the first receiving unit is used for receiving an authentication request sent to the virtual SIM card by the network side, wherein the information of the virtual SIM card is the same as the card opening information of the second entity SIM card;
the first sending unit is used for sending the authentication request to the second entity SIM card and sending network loopback data through a data path of the first entity SIM card;
the second receiving unit is used for receiving the authentication response sent by the second entity SIM card and receiving network loopback data through a data path of the first entity SIM card;
and the second sending unit is used for sending an authentication response to the virtual SIM card.
Optionally, the second receiving unit is configured to receive network loopback data through a data path of the first entity SIM card, and then receive an authentication response sent by the second entity SIM card; or firstly receiving an authentication response sent by the second entity SIM card, and then receiving network loopback data through a data path of the first entity SIM card; or receiving network loop-back data through the data path of the first entity SIM card while receiving the authentication response sent by the second entity SIM card.
Optionally, the information of the virtual SIM card is the same as the card opening information of the second physical SIM card.
Optionally, the apparatus further comprises:
the third receiving unit is used for receiving a card opening request of the second entity SIM card before the first receiving unit receives the authentication request sent to the virtual SIM card by the network end, wherein the card opening request carries card opening information of the second entity SIM card;
the storage unit is used for storing the card opening information of the second physical SIM card as the information of the virtual SIM card;
and the opening unit is used for opening the protocol stack corresponding to the virtual SIM card according to the card opening information of the second physical SIM card after the second physical SIM card is successfully opened.
In a third aspect, the present invention provides a chip comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the system test method of the virtual SIM card described above.
In a fourth aspect, the present invention provides a computer readable storage medium, where the computer readable storage medium stores computer instructions that, when executed by a processor, implement the system testing method of a virtual SIM card described above.
The system testing method, the device, the chip and the computer readable storage medium of the virtual SIM card provided by the embodiment of the invention simulate the realization of the server and the application program by means of the physical SIM card, so that the communication protocol function of the virtual SIM card (comprising the double-card combination of the physical SIM card and the virtual SIM card) can be tested in a more complete system level under the condition that the actual matched software of a terminal manufacturer is not needed.
Drawings
FIG. 1 is a flow chart of a system test method for a virtual SIM card according to an embodiment of the present invention;
fig. 2 is a flowchart of starting a virtual SIM card according to an embodiment of the present invention;
fig. 3 is a system test flow chart of a virtual SIM card according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a system testing device for a virtual SIM card according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a system testing device for a virtual SIM card according to another embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention provides a system testing method of a virtual SIM card, as shown in figure 1, comprising the following steps:
s11, receiving an authentication request sent to the virtual SIM card by the network side.
And S12, sending the authentication request to a second entity SIM card, and sending network loopback data through a data path of the first entity SIM card.
S13, receiving an authentication response sent by the second entity SIM card, and receiving network loopback data through a data path of the first entity SIM card.
S14, sending an authentication response to the virtual SIM card.
According to the system testing method for the virtual SIM card, provided by the embodiment of the invention, the server and the application program are simulated by means of the physical SIM card, so that the communication protocol function of the virtual SIM card (comprising the double-card combination of the physical SIM card and the virtual SIM card) can be tested in a relatively complete system level under the condition that the actual matched software of a terminal manufacturer is not needed.
The system test method of the virtual SIM card of the invention is described in detail below with reference to specific embodiments.
Before the system test of the virtual SIM card is carried out, the virtual SIM card is started, and the information of the virtual SIM card is simulated by using the card opening information of the physical SIM card 2.
As shown in fig. 2, the starting process of the virtual SIM card specifically includes:
firstly, an entity card SIM2 sends out a card opening request, wherein the card opening request carries card opening information of the entity card SIM 2.
Then, when the Modem (protocol stack module) receives the card opening request of the physical card SIM2 through the RIL (Radio Interface Layer, wireless interface layer), a flag is marked, the card opening information of the physical card SIM2 is set as a specific processing identifier, and the specific processing identifier is stored and processed as information of the virtual SIM card.
Then, after receiving the card opening request sent by the network side, the virtual SIM card sends out an instruction for reading the information of the SIM card, and the physical SIM card 2 returns a message that the SIM card opening is successful.
And finally, when the protocol stack is opened, opening the protocol stack corresponding to the virtual SIM card according to the stored opening information of the physical SIM card 2.
The first step of simulating the virtual SIM card by the physical card SIM2 and its information is thus basically completed, and the construction and simulation of the virtual SIM card authentication process will be continued based on this mechanism.
As shown in fig. 3, the authentication process of the virtual SIM card specifically includes:
first, the protocol stack receives an authentication request for the virtual SIM card.
Then, the protocol stack sends the authentication request to the entity card SIM2 through the RIL, and sends the network loopback data through the data path of the entity card SIM 1.
Because the test object protocol stack needs to cover the authentication process of sending the virtual SIM card through the data path of the entity card SIM1, after receiving the network authentication request of the virtual SIM card, in the protocol stack, the protocol stack also triggers a function of sending a network loopback data through the data path of the entity card SIM1 while sending the authentication request to the entity card SIM2 so as to simulate the interaction process of the authentication data between the VSIM APP of the terminal and the server.
Then, after the entity card SIM2 performs authentication, an authentication response is sent to the protocol stack, and the protocol stack receives network loopback data through the data path of the entity card SIM 1.
Because the card information corresponding to the virtual SIM card is originally from the entity card SIM2, the authentication request of the network can be directly processed by using the entity card SIM2 without remote processing to a server side.
Optionally, the protocol stack may receive the network loopback data through the data path of the entity card SIM1, and then receive the authentication response sent by the entity card SIM 2; or firstly receiving authentication response sent by the entity card SIM2, and then receiving network loop-back data through a data path of the entity card SIM 1; or, the network loop-back data is received through the data path of the entity card SIM1 while receiving the authentication response sent by the entity card SIM 2.
And finally, sending an authentication response to the virtual SIM card.
Since it is impossible to determine which of the authentication response result from the physical card SIM2 and the network loop-back data based on the data path of the physical card SIM1 comes back first, and at the same time, in order to simulate the actual scenario as much as possible, it is required that the protocol stack replies the authentication response result to the virtual SIM card only after receiving the authentication response result of the physical card SIM2 and the network loop-back data based on the data path of the physical card SIM 1.
According to the system testing method of the virtual SIM card, provided by the embodiment of the invention, the APP function of the virtual card is simulated through the command sequence, so that information interaction with a communication protocol stack is realized; in addition, another entity card slot in the dual-card terminal is used for carrying out localization operation on authentication of the virtual SIM card, and meanwhile, a data packet with the same size as the authentication data packet is triggered to carry out data loop-back operation so as to simulate the process that the authentication data of the virtual SIM card is sent to a server of a terminal manufacturer and returned to the virtual card by the server. Furthermore, through the simulation construction of the two main functional points, the simulation of various basic flows and scenes of a communication protocol stack can be basically realized, so that the test simulation environment of a chip manufacturer independent of a terminal manufacturer is realized.
The embodiment of the invention also provides a system testing device of the virtual SIM card, as shown in figure 4, which comprises:
the first receiving unit 11 is configured to receive an authentication request sent by a network side to a virtual SIM card, where information of the virtual SIM card is the same as card opening information of a second physical SIM card;
a first sending unit 12, configured to send the authentication request to a second physical SIM card, and send network loopback data through a data path of the first physical SIM card;
a second receiving unit 13, configured to receive an authentication response sent by the second physical SIM card, and receive network loopback data through a data path of the first physical SIM card;
and a second sending unit 14, configured to send an authentication response to the virtual SIM card.
The system testing device of the virtual SIM card provided by the embodiment of the invention realizes the server and the application program by simulating the physical SIM card, so that the communication protocol function of the virtual SIM card (comprising the double-card combination of the physical SIM card and the virtual SIM card) can be tested in a more complete system level under the condition that the actual matched software of a terminal manufacturer is not needed.
Optionally, the second receiving unit 13 is configured to receive network loopback data through a data path of the first entity SIM card, and then receive an authentication response sent by the second entity SIM card; or firstly receiving an authentication response sent by the second entity SIM card, and then receiving network loopback data through a data path of the first entity SIM card; or receiving network loop-back data through the data path of the first entity SIM card while receiving the authentication response sent by the second entity SIM card.
Optionally, the information of the virtual SIM card is the same as the card opening information of the second physical SIM card.
Optionally, as shown in fig. 5, the apparatus further includes:
the third receiving unit 15 is configured to receive a card opening request of the second physical SIM card before the first receiving unit 11 receives an authentication request sent by the network end to the virtual SIM card, where the card opening request carries card opening information of the second physical SIM card;
a storage unit 16, configured to store card opening information of the second physical SIM card as information of the virtual SIM card;
and the opening unit 17 is configured to, after the second physical SIM card is successfully opened, open a protocol stack corresponding to the virtual SIM card according to the opening information of the second physical SIM card.
The device of the present embodiment may be used to execute the technical solution of the foregoing method embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
The embodiment of the invention also provides a chip, which comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the system test method of the virtual SIM card described above.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores computer instructions, and the computer instructions realize the system testing method of the virtual SIM card when being executed by a processor.
Those skilled in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by way of computer programs, which may be stored on a computer readable storage medium, which when executed may comprise the steps of the method embodiments described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present invention should be included in the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (10)

1. A system testing method for a virtual SIM card, the method comprising:
receiving an authentication request sent to a virtual SIM card by a network terminal;
the authentication request is sent to a second entity SIM card, and network loopback data is sent through a data path of a first entity SIM card;
receiving an authentication response sent by a second entity SIM card, and receiving network loopback data through a data path of a first entity SIM card;
and sending an authentication response to the virtual SIM card.
2. The method of claim 1, wherein receiving the authentication response sent by the second physical SIM card and receiving the network loopback data through the data path of the first physical SIM card comprises:
firstly, receiving network loop-back data through a data path of a first entity SIM card, and then receiving an authentication response sent by a second entity SIM card; or,
firstly receiving an authentication response sent by a second entity SIM card, and then receiving network loopback data through a data path of a first entity SIM card; or,
and receiving network loopback data through a data path of the first entity SIM card while receiving the authentication response sent by the second entity SIM card.
3. A method according to claim 1 or 2, characterized in that the information of the virtual SIM card is the same as the opening information of the second physical SIM card.
4. A method according to claim 3, wherein before the receiving network sends the authentication request to the virtual SIM card, the method further comprises:
receiving a card opening request of a second entity SIM card, wherein the card opening request carries card opening information of the second entity SIM card;
storing the card opening information of the second entity SIM card as the information of the virtual SIM card;
and after the second entity SIM card is successfully opened, opening a protocol stack corresponding to the virtual SIM card according to the opening information of the second entity SIM card.
5. A system testing apparatus for a virtual SIM card, the apparatus comprising:
the first receiving unit is used for receiving an authentication request sent to the virtual SIM card by the network side, wherein the information of the virtual SIM card is the same as the card opening information of the second entity SIM card;
the first sending unit is used for sending the authentication request to the second entity SIM card and sending network loopback data through a data path of the first entity SIM card;
the second receiving unit is used for receiving the authentication response sent by the second entity SIM card and receiving network loopback data through a data path of the first entity SIM card;
and the second sending unit is used for sending an authentication response to the virtual SIM card.
6. The apparatus of claim 5, wherein the second receiving unit is configured to receive network loopback data through a data path of the first physical SIM card, and then receive an authentication response sent by the second physical SIM card; or firstly receiving an authentication response sent by the second entity SIM card, and then receiving network loopback data through a data path of the first entity SIM card; or receiving network loop-back data through the data path of the first entity SIM card while receiving the authentication response sent by the second entity SIM card.
7. The apparatus according to claim 5 or 6, wherein the information of the virtual SIM card is the same as the opening information of the second physical SIM card.
8. The apparatus according to claim 5 or 6, characterized in that the apparatus further comprises:
the third receiving unit is used for receiving a card opening request of the second entity SIM card before the first receiving unit receives the authentication request sent to the virtual SIM card by the network end, wherein the card opening request carries card opening information of the second entity SIM card;
the storage unit is used for storing the card opening information of the second physical SIM card as the information of the virtual SIM card;
and the opening unit is used for opening the protocol stack corresponding to the virtual SIM card according to the card opening information of the second physical SIM card after the second physical SIM card is successfully opened.
9. A chip, the chip comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 4.
10. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the method of any one of claims 1 to 4.
CN202311507365.9A 2023-11-13 2023-11-13 System testing method, device and chip of virtual SIM card Pending CN117354211A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311507365.9A CN117354211A (en) 2023-11-13 2023-11-13 System testing method, device and chip of virtual SIM card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311507365.9A CN117354211A (en) 2023-11-13 2023-11-13 System testing method, device and chip of virtual SIM card

Publications (1)

Publication Number Publication Date
CN117354211A true CN117354211A (en) 2024-01-05

Family

ID=89357613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311507365.9A Pending CN117354211A (en) 2023-11-13 2023-11-13 System testing method, device and chip of virtual SIM card

Country Status (1)

Country Link
CN (1) CN117354211A (en)

Similar Documents

Publication Publication Date Title
JP5112340B2 (en) Improved method and system for testing a subscriber identity module (SIM) application toolkit
CN105933888B (en) A kind of eSIM card method for burn-recording and device based on NFC
EP3337219B1 (en) Carrier configuration processing method, device and system, and computer storage medium
US20090124251A1 (en) Method of Assessing Compatibility Between Applications and Processor Devices
CN110351346A (en) A kind of eSIM changes chucking method and relevant device
CN104641673A (en) A method and a test system for automatically configuring a tester
CN112202639B (en) Performance test method for realizing Internet of vehicles remote control service through LoadRunner tool
CN103455349A (en) Method and device for accessing intelligent card by application program
US7623856B2 (en) Method for testing communication protocol having collection of internal information of a mobile communication terminal by an external module
CN109462601A (en) Multi-platform access method and device based on eSIM
CN111479259A (en) SIM card configuration distribution method and system
CN109525542A (en) Data reconstruction method, transmitting/receiving means and computer readable storage medium
CN110022536A (en) Verification information processing method, communication equipment, business platform and storage medium
CN105898735A (en) Method for obtaining SIM information and equipment
CN104053145A (en) Method for downloading subscription information and third party platform
CN113852639A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN117354211A (en) System testing method, device and chip of virtual SIM card
CN114071391B (en) Content charging test method, management device, terminal device and storage medium
EP3486827A1 (en) "window-of-time" encryption session key transference
CN112187561B (en) Communication module testing method, device, computer equipment and storage medium
CN112752258A (en) eSIM card opening method, mobile phone terminal and service acceptance system
US9332374B2 (en) Communication interface method for SE equipped on mobile terminal and SE using the same
CN102547611B (en) Method and device for sending multimedia message and gateway server
CN112469068B (en) Test method and device
CN108111468A (en) A kind of business performs method and device

Legal Events

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