Communication method and apparatus, and terminal and computer-readable storage medium
By detecting virtual card conflicts and randomly replacing global virtual cards based on the number of conflicts and terminal identification, the problem of business recovery delay caused by virtual SIM card conflicts is solved and the user experience is improved.
Patent Information
- Application Number
- PCT/CN2023/093803
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-24
- Filing Date
- 2023-05-12
- Publication Date
- 2024-08-29
AI Technical Summary
In mobile communications, when virtual SIM card conflicts cause multiple terminals to share the same global virtual card registration, it may trigger an endless loop of network release and re-registration, resulting in increased service recovery delays and affecting user experience.
Establish a connection between the terminal and the virtual card server, detect global virtual card conflicts, determine the waiting time based on the number of conflicts and terminal identification, randomly replace the global virtual card to obtain regional virtual cards, and reduce the possibility of multiple terminals initiating registration connections at similar times. Avoid conflict.
This alleviates conflicts among multiple terminals when obtaining regional virtual cards, reduces service recovery delays, and improves user business experience.
Smart Images

Figure CN2023093803_29082024_PF_FP_ABST
Abstract
Description
Communication method, device, terminal and computer-readable storage medium Technical Field
[0001] Embodiments of the present application relate to the field of information and communication technologies, and more specifically, to a communication method, apparatus, and computer-readable storage medium. Background Art
[0002] In mobile communications, the Subscriber Identity Module (SIM) card stores important user information and data, such as the International Mobile Subscriber Identity (IMSI) and encryption keys. Once inserted into a terminal device, the SIM card allows the network to authenticate the user and encrypt voice and data during calls.
[0003] With technological advancements, virtual SIM (vSIM) cards, also known as virtual cards, are widely used in terminal devices. A vSIM card is a method of communication that relies entirely on the communication module's own hardware and software, without a physical SIM card. The communication module with vSIM functionality, combined with underlying software specifically customized for vSIM, implements built-in encrypted storage of data (IMSI, KI, etc.). It automatically processes the corresponding logic during network login, authentication, and communication, providing a stable communication experience without the need for a physical SIM card.
[0004] When a terminal using a virtual card is powered on, it randomly selects a pre-installed global virtual card from a batch of pre-installed global virtual cards for registration. It then establishes a network connection with a regional virtual card server, retrieves the regional virtual card from the server, and downloads it to the terminal. The terminal can use the regional virtual card to connect to the network in its current region and achieve roaming. Typically, multiple terminals have the same batch of pre-installed global virtual cards.
[0005] If a regional virtual card experiences an anomaly, such as a prolonged data inability to access data services, the terminal will revert to the regional virtual card acquisition state. This involves reconnecting to the regional virtual card server using a global virtual card to obtain a replacement regional virtual card. If the network to which the regional virtual card is connected experiences a prolonged outage, terminals using the regional virtual card will revert to the regional virtual card acquisition state. Because global virtual cards and terminals are not pre-configured on a 1:1 basis, typically at a 1:100 or even higher ratio, batch rollback can cause a large number of terminals to register using the same global virtual card. Because these terminals lack information exchange, they may initiate registrations using the same global virtual card at similar times. A terminal that initiates registration later could cause the network to release the previously registered terminal, which would then continue to register, impacting the previously registered terminals. This makes it difficult for these terminals to recover quickly, leading to global virtual card conflicts and prolonged inactivity.
[0006] Summary of the Invention
[0007] To overcome the deficiencies of the above-mentioned prior art, the present invention provides a communication method, apparatus, terminal, and computer-readable storage medium, which can reduce the possibility of multiple terminals using the same global virtual card initiating registration connections at similar times when a global virtual card conflict occurs at a terminal, alleviate conflicts when multiple terminals obtain regional virtual cards, thereby reducing service recovery delays and improving the user's service experience.
[0008] In a first aspect, a communication method is provided, comprising: establishing a connection with a virtual card server on a first network using a global virtual card of a terminal to obtain a regional virtual card from the virtual card server, the regional virtual card being used for the terminal to access a second network; determining whether a conflict occurs with the global virtual card of the terminal; if a conflict occurs with the global virtual card of the terminal, updating a number of conflicts; and replacing the global virtual card of the terminal to obtain the regional virtual card after a waiting time, wherein the waiting time is determined based on the number of conflicts and an identifier of the terminal.
[0009] If the global virtual card of the terminal is replaced with a regional virtual card, the obtained regional virtual card is used to access the second network.
[0010] In a first possible implementation manner of the first aspect, determining whether a conflict occurs in the global virtual card of the terminal includes:
[0011] If the global virtual card fails to establish a connection with the virtual card server N times in a row, and the global virtual card used each time is changed, it is determined that the global virtual card of the terminal conflicts, where N is a conflict threshold.
[0012] The failure to establish a connection with the virtual card server using the current global virtual card includes: receiving a rejection message from the first network or a timeout of a response message from the first network.
[0013] The rejection message may include a rejection reason, and the rejection reason includes implicit separation rejection.
[0014] In a second possible implementation manner of the first aspect, the waiting time is: UE_NUM×registration timeout+RAND(1, the registration timeout), or (9−UE_NUM)×registration timeout+RAND(1, the registration timeout).
[0015] Among them, UE_NUM is the tail digit of the terminal identifier, which is an integer from 0 to 9, RAND(1, the registration timeout) means taking a random number between 1 and the registration timeout, and the waiting time corresponding to when the number of conflicts is an odd number is different from the waiting time corresponding to when the number of conflicts is an even number.
[0016] The identifier of the terminal is the International Mobile Equipment Identity (IMEI) or the serial number (SN) of the terminal.
[0017] In a second aspect, the present application provides a communication device having the function of implementing the method in the first aspect and any possible implementation of the first aspect. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. For example, the device includes a regional virtual card acquisition module for using the terminal's global virtual card to establish a connection with the virtual card server in the first network to obtain a regional virtual card from the virtual card service, and the regional virtual card is used for the terminal to access the second network; a conflict detection module for determining whether the terminal's global virtual card has a conflict; a number update module for updating the number of conflicts if it is determined that the terminal's global virtual card has a conflict; and a conflict handling module for replacing the terminal's global virtual card to obtain a regional virtual card after a waiting time, wherein the waiting time is determined based on the number of conflicts and the terminal's identifier.
[0018] In a possible implementation manner, the communication device in the second aspect may be a terminal.
[0019] In a third aspect, the present application provides a communication device comprising a memory and a processor, the memory being used to store a computer program, and the processor being used to call and run the computer program from the memory, so that a communication device equipped with the chip executes the method in the above-mentioned first aspect and any possible implementation thereof.
[0020] In a possible implementation manner, the communication device in the second aspect may be a terminal.
[0021] In a fourth aspect, the present application provides a terminal, comprising a transceiver and, for example, the communication device in the second aspect and any possible implementation thereof or the communication device in the third aspect and any possible implementation thereof.
[0022] In a fifth aspect, the present application provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation of the first aspect.
[0023] In a sixth aspect, the present application provides a computer program product, which includes: computer program code, which, when running on a computer, enables the computer to execute the method in the above-mentioned first aspect and any possible implementation thereof.
[0024] The communication method, apparatus, terminal, and computer-readable storage medium provided in the embodiments of the present application randomly disperse terminals to retry acquiring regional virtual cards when a global virtual card conflict occurs. This reduces the likelihood of multiple terminals using the same global virtual card initiating registration connections at similar times, thereby alleviating conflicts among multiple terminals when acquiring regional virtual cards. This reduces service recovery latency and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] FIG1 is a flow chart of a communication method according to an embodiment of the present application;
[0026] FIG2 is a schematic diagram of the structure of a communication device provided in an embodiment of the present application;
[0027] FIG3 is a schematic structural diagram of a communication device provided in an embodiment of the present application;
[0028] FIG4 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] The technical solutions of the present application will be described below in conjunction with the embodiments of the present application. It should be noted that the embodiments described are only a portion of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0030] Terms such as "first," "second," "third," and "fourth" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the quantity of the technical features indicated. Therefore, the definition of "first," "second," "third," and "fourth" may explicitly or implicitly include one or more of such features.
[0031] The communication method provided in the embodiments of the present application can be applied to terminals of various communication systems, such as: a third-generation mobile communication (3G) system, a fourth-generation mobile communication (4G) system, a fifth-generation mobile communication (5G) system, or a subsequently evolved communication system. The terminal includes, but is not limited to, user equipment (UE), a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal device, a mobile terminal device, a user terminal device, a terminal device, a wireless communication device, a user agent, a user device, a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with wireless communication capabilities, a computing device, a processing device connected to a wireless modem, an in-vehicle device, a wearable device, a terminal device in the Internet of Things, a home appliance, a virtual reality device, a terminal device in a future 5G network, or a terminal device in a future evolved public land mobile network (PLMN), etc. In the various embodiments of the present application, a terminal is used as an example, and is sometimes used interchangeably with terminal equipment, user equipment, etc.
[0032] Some terms used in the embodiments of this application are explained below.
[0033] Global virtual SIM cards, also known as global roaming local virtual SIM cards, local virtual SIM cards, local roaming virtual SIM cards, global roaming SIM cards, ignition SIM cards, and roaming virtual SIM cards, can be used for roaming on global communication networks. They are pre-stored locally on the terminal and can only be downloaded after roaming registration for local access in the current region. Multiple devices / terminals may share a batch of global virtual SIM cards.
[0034] A regional virtual card, also known as a remote virtual card, is a virtual card issued by a virtual card server that stores local information of a specified area. This virtual card allows roaming in the specified area.
[0035] As shown in FIG1 , a communication method is provided. A communication device deployed in a virtual card terminal can be used by the virtual card terminal to mitigate global virtual card conflicts, including the following steps:
[0036] Step 110: Use the global virtual card of the terminal to establish a connection with the virtual card server in the first network to obtain a regional virtual card from the virtual card server, wherein the regional virtual card is used for the terminal to access the second network.
[0037] When the terminal is powered on, it randomly selects a global virtual card as the current global virtual card and registers it on the primary network. After successful registration, it establishes a connection with the virtual card server, obtains the regional virtual card from the virtual card server, and downloads it to the terminal. This phase is called the regional virtual card acquisition phase.
[0038] The first network may be a communication network provided by a home operator or a roaming operator of the current global virtual card.
[0039] The virtual card server provides a regional virtual card that records local information of the current area according to the current area of the terminal. The terminal can use the regional virtual card to access the second network and use the voice or data services provided by the second network.
[0040] The second network may be a communication network provided by an operator in the current area, and the regional virtual card may be a virtual card belonging to the operator.
[0041] It is understandable that the first network and the second network may be communication networks provided by the same operator or communication networks provided by different operators.
[0042] If an exception occurs with the regional virtual card, and the terminal's access to the second network using the regional virtual card experiences an exception for a period exceeding a preset time, for example, if the terminal is unable to use data services for an extended period, the terminal will revert to the regional virtual card acquisition phase, using a global virtual card to reconnect to the virtual card server and replace it with a new regional virtual card.
[0043] Step 120: Determine whether a conflict occurs in the global virtual card of the terminal.
[0044] If the terminal successfully establishes a connection with the virtual card server, the regional virtual card assigned by the virtual card server can be obtained and downloaded. If the registration fails using the current global virtual card of the terminal, it is necessary to determine whether the global virtual card of the terminal conflicts.
[0045] If the network to which the regional virtual card is connected experiences a long-term failure, multiple terminals using the regional virtual card in the area will be batch-returned to the regional virtual card acquisition stage at similar time points. That is to say, at similar time points, more terminals will execute step 110. Since the global virtual card and the terminal are not preset in a 1:1 ratio, multiple terminals may share the same global virtual card for registration. Among the terminals that use the same global virtual card for registration and connection, the terminal that registers later will interrupt the registration process or connection of the terminal that registered earlier. When the terminal that registered earlier uses the data again, the data is deleted on the operator side, and thus it receives an implicit separation rejection from the first network where the operator is located. Then, due to the rejection, the terminal will try to register again, thereby interrupting the terminal that registered previously, and entering a conflicting infinite loop.
[0046] In addition, if a large number of terminals use the same global virtual card to register, the network side may also detect anomalies. After the terminal initiates a registration request, the network does not respond to the terminal, resulting in the terminal being unable to complete registration.
[0047] If the global virtual card fails to establish a connection with the virtual card server N times in a row, and the global virtual card used each time is changed, it is determined that the global virtual card of the terminal conflicts, and step 130 is executed, where N is a conflict threshold.
[0048] The failure to establish a connection with the virtual card server using the global virtual card may include: receiving a rejection message from the first network or not receiving a response message from the first network due to a timeout, wherein the rejection message includes a rejection reason, and the rejection reason includes implicit detachment.
[0049] The following example uses a conflict threshold of N = 2. For example, if a regional virtual card of the terminal experiences an anomaly, such as being unable to use data services for an extended period, the terminal will revert to the regional virtual card acquisition phase and execute step 110 to initiate registration with the first network using the currently used global virtual card to establish a connection with the virtual card server. If a rejection message is received from the first network indicating an implicit detachment reason, or if no response message is received from the first network after a timeout, the terminal will replace the currently used global virtual card and re-execute step 110 to initiate registration with the first network. If the terminal registration is accepted by the first network and a connection is successfully established with the virtual card server, the terminal can obtain and download the regional virtual card assigned by the virtual card server, indicating that no global virtual card conflict has occurred. If a rejection message is still received from the first network indicating an implicit detachment reason, or if no response message is received from the first network after a timeout, then two consecutive attempts to establish a connection with the virtual card server using the global virtual card will result in a global virtual card conflict, and step 130 will be executed. It should be understood that the above is merely an example and is not intended to be limiting. The conflict threshold N can be set to 3, 4, or more as needed.
[0050] Step 130: If it is determined that a conflict occurs in the global virtual card of the terminal, the number of conflicts is updated.
[0051] After determining that a conflict occurs in the global virtual card of the terminal, the number of conflicts may be updated, for example, by adding 1, or by performing a disturbance by random addition or subtraction.
[0052] Step 140: After a waiting time, replace the global virtual card of the terminal to obtain the regional virtual card, wherein the waiting time is determined according to the number of conflicts and the identifier of the terminal.
[0053] In order to alleviate the global virtual card conflict that occurs when multiple terminals obtain regional virtual cards, the waiting time for these terminals to re-acquire regional virtual cards can be staggered, thereby reducing the possibility of multiple terminals using the same global virtual card initiating registration connections at similar times, and avoiding synchronization conflicts caused by consistent algorithms.
[0054] The waiting time for obtaining the regional virtual card of the terminal can be determined based on the number of conflicts and the identifier of the terminal. In one possible implementation, the waiting time can be: UE_NUM×registration timeout+RAND(1, the registration timeout), or (9-UE_NUM)×registration timeout+RAND(1, the registration timeout).
[0055] Wherein, UE_NUM is the last digit of the terminal identifier, which is an integer from 0 to 9. RAND(1, the registration timeout) represents a random number between 1 and the registration timeout. The waiting time corresponding to an odd number of conflicts is different from the waiting time corresponding to an even number of conflicts. The terminal identifier is the International Mobile Equipment Identity (IMEI) or the serial number (SN) of the user equipment.
[0056] For example, when the number of terminal conflicts is an odd number, the waiting time is UE_NUM × registration timeout + RAND (1, the registration timeout). When the number of terminal conflicts is an even number, the waiting time is (9-UE_NUM) × registration timeout + RAND (1, the registration timeout). For example, if the last digit of the terminal identifier is 2, the registration timeout is 5 seconds, and the first global virtual card conflict occurs, the number of conflicts = 1, then the waiting time is 2 × 5 + RAND (1, 5) seconds. The second global virtual card conflict occurs, that is, the number of conflicts = 2, and the waiting time is 7 × 5 + RAND (1, 5) seconds. It can be seen that the waiting time is different for each conflict.
[0057] Of course, when the number of terminal conflicts is an odd number, the waiting time may be (9-UE_NUM)×registration timeout+RAND(1, the registration timeout), and when the number of terminal conflicts is an even number, the waiting time may be UE_NUM×registration timeout+RAND(1, the registration timeout). The above are examples and are not intended to be limiting.
[0058] After the waiting time, the global virtual card of the terminal is replaced to obtain the regional virtual card, that is, the process continues from step 110 until the regional virtual card is obtained or the acquisition of the regional virtual card is stopped.
[0059] Stopping the acquisition of the regional virtual card may include: shutting down the computer, or reaching the maximum number of acquisitions of the regional virtual card.
[0060] In the method provided in the above embodiment, when a global virtual card conflict occurs at a terminal, the terminals are randomly dispersed to retry obtaining regional virtual cards. This reduces the possibility of multiple terminals using the same global virtual card initiating registration connections at similar times, thus alleviating conflicts among multiple terminals when obtaining regional virtual cards. This reduces service recovery latency and improves the user experience.
[0061] FIG2 is a schematic diagram of the structure of a communication device 200 provided in an embodiment of the present application. The communication device can be used to perform the above-mentioned method embodiment. Please refer to the description of the above-mentioned method embodiment, which will not be repeated here. The communication device 200 may include:
[0062] The regional virtual card acquisition module 210 is configured to establish a connection with a virtual card server in the first network using the terminal's global virtual card to acquire a regional virtual card from the virtual card server, wherein the regional virtual card is used for the terminal to access the second network.
[0063] The conflict detection module 220 is used to determine whether a conflict occurs in the global virtual card of the terminal.
[0064] The number updating module 230 is configured to update the number of conflicts if it is determined that a conflict occurs in the global virtual card of the terminal.
[0065] The conflict handling module 240 is configured to replace the global virtual card of the terminal to obtain a regional virtual card after a waiting time has passed, wherein the waiting time is determined according to the number of conflicts and the identifier of the terminal.
[0066] The communication device provided in the embodiment of the present application can execute the above method embodiment, and its implementation principles and technical effects are similar, which will not be repeated here.
[0067] It should be noted that the communication device 200 is implemented in the form of a functional module. The term "module" here can be implemented in the form of software and / or hardware, and is not specifically limited to this.
[0068] For example, a "module" may be a software program, a hardware circuit, or a combination of the two that implements the aforementioned functionality. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a dedicated processor, or a group processor) and memory for executing one or more software or firmware programs, combined logic circuits, and / or other suitable components that support the described functionality.
[0069] Therefore, the modules of each example described in the embodiments of this application can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0070] FIG3 is a schematic diagram of the structure of a communication device provided in an embodiment of the present application. The communication device 300 shown in FIG3 includes a memory 310 and a processor 320.
[0071] The memory 310 may be a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 310 may store programs. When the program stored in the memory 310 is executed by the processor 320, the processor 320 is configured to execute the various steps of the communication method of the embodiment of the present application, for example, the various steps shown in FIG1 .
[0072] The processor 320 can be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits to execute relevant programs to implement the communication method of the embodiment of the method of the present application.
[0073] The processor 320 may also be an integrated circuit chip with signal processing capabilities. During implementation, each step of the communication method of the present application may be completed by hardware integrated logic circuits in the processor 320 or software instructions.
[0074] The processor 320 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. It may implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application may be directly implemented as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, or the like. The storage medium is located in the memory 310, and the processor 320 reads the information in the memory 310 and, in combination with its hardware, completes the functions required to be executed by the modules included in the communication device shown in FIG. 1 in the implementation of this application, or executes the communication method shown in FIG. 1 of the method embodiment of this application.
[0075] It should be noted that although the above apparatus 300 only shows a memory and a processor, during the specific implementation process, those skilled in the art will understand that the apparatus 300 may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that, depending on specific needs, the above apparatus 300 may also include hardware components that implement other additional functions. Furthermore, those skilled in the art will understand that the above apparatus 300 may only include the components necessary to implement the embodiments of the present application, and does not necessarily include all of the components shown in FIG. 3 .
[0076] Figure 4 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application. As shown in Figure 4, the terminal includes a transceiver 410 and a communication device 420, where the communication device 420 can be the communication device 200 shown in Figure 2 or the communication device 300 shown in Figure 3. The transceiver 410 is used to receive or transmit signals, and the communication device 420 is used to execute the method provided in the aforementioned embodiment.
[0077] Those skilled in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0078] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0079] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0080] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected to achieve the purpose of the present embodiment according to actual needs.
[0081] In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0082] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0083] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A communication method, comprising: Use the global virtual card of the terminal to establish a connection with the virtual card server in the first network to obtain a regional virtual card from the virtual card service, wherein the regional virtual card is used for the terminal to access the second network; Determining whether a global virtual card of the terminal conflicts; If it is determined that a conflict occurs in the global virtual card of the terminal, updating the number of conflicts; After a waiting time, the global virtual card of the terminal is replaced to obtain the regional virtual card, wherein the waiting time is determined according to the number of conflicts and the identifier of the terminal.
2. The method according to claim 1, further comprising: Use the replaced global virtual card of the terminal to establish a connection with the virtual card server on the first network; Obtain a regional virtual card from the virtual card server; The second network is accessed using the regional virtual card.
3. According to the method according to any one of claims 1 or 2, the determining whether the global virtual card of the terminal conflicts comprises: If the global virtual card fails to establish a connection with the virtual card server N times in succession, and the global virtual card used each time is changed, it is determined that the global virtual card of the terminal conflicts, wherein N is a conflict threshold.
4. The method according to claim 3, wherein the failure to establish a connection with the virtual card server using the global virtual card comprises: A rejection message from the first network is received or a response message from the first network times out. The method of claim 4 , the rejection message comprising a rejection reason, the rejection reason comprising an implicit detach rejection.
6. The method according to claim 1, wherein the waiting time is: UE_NUM×registration timeout+RAND(1, the registration timeout), or (9-UE_NUM)×registration timeout+RAND(1, the registration timeout). in, UE_NUM is the last digit of the terminal identifier, which is an integer from 0 to 9. RAND(1, the registration timeout) means taking a random number between 1 and the registration timeout. The waiting time corresponding to when the number of conflicts is an odd number is different from the waiting time corresponding to when the number of conflicts is an even number.
7. The method according to claim 1, wherein the identifier of the terminal is an International Mobile Equipment Identity (IMEI) or a serial number (SN) of the terminal.
8. The method according to claim 1, further comprising: An abnormality occurs when the terminal's regional virtual card is used to access the second network for more than a preset time.
9. A communication device, comprising: A regional virtual card acquisition module, used to establish a connection with a virtual card server on a first network using a global virtual card of a terminal, so as to acquire a regional virtual card from the virtual card server, wherein the regional virtual card is used for the terminal to access a second network; A conflict detection module, used to determine whether a conflict occurs in the global virtual card of the terminal; A number updating module, used for updating the number of conflicts if it is determined that a conflict occurs in the global virtual card of the terminal; The conflict handling module is used to replace the global virtual card of the terminal to obtain the regional virtual card after a waiting time, wherein the waiting time is determined according to the number of conflicts and the identifier of the terminal.
10. The communication device according to claim 9, wherein the regional virtual card acquisition module is further used for: Use the global virtual card of the terminal to establish a connection with the virtual card server on the first network; Obtain a regional virtual card from the virtual card server; The second network is accessed using the regional virtual card.
11. The communication device according to any one of claims 9 or 10, wherein the conflict detection module is specifically configured to: If the global virtual card fails to establish a connection with the virtual card server N times in a row, and the global virtual card used each time is changed, it is determined that the global virtual card of the terminal conflicts, wherein N is a conflict threshold.
12. The communication device according to claim 11, wherein the failure to establish a connection with the virtual card server using the global virtual card comprises: A rejection message from the first network is received or a response message from the first network times out.
13. The communication device of claim 12, the rejection message comprising a rejection reason, the rejection reason comprising an implicit detach rejection.
14. The communication device according to claim 13, wherein the waiting time is: UE_NUM×registration timeout+RAND(1, the registration timeout), or (9-UE_NUM)×registration timeout+RAND(1, the registration timeout), in, UE_NUM is the last digit of the terminal identifier, which is an integer from 0 to 9. RAND(1, the registration timeout) means taking a random number between 1 and the registration timeout. The waiting time corresponding to when the number of conflicts is an odd number is different from the waiting time corresponding to when the number of conflicts is an even number. 15 . The communication device according to claim 9 , wherein the identifier of the terminal is an International Mobile Equipment Identity (IMEI) or a serial number SN of the terminal.
16. The communication device according to claim 9, wherein the regional virtual card acquisition module is further used for: It is determined that an abnormality occurs when the terminal uses an existing regional virtual card to access the second network for more than a preset time.
17. A communication device, characterized in that: The device comprises: A processor, a memory, and a computer program stored in the memory and executable on the processor; wherein the processor implements the communication method according to any one of claims 1 to 8 when executing the computer program.
18. A terminal, characterized in that: The terminal comprises the communication device according to any one of claims 9 to 17.
19. A computer-readable storage medium, characterized in that: Executable instructions are stored thereon, and when the executable instructions are executed by a computer, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Network type setting method, user equipment and computer readable storage medium
CN113055952A
Method for selecting global roaming virtual card in terminal and terminal
CN114867002A
Communication method and device, terminal and computer readable storage medium
CN115942430A
Virtual SIM card acquisition method, subscriber terminal and server
US20210176623A1
Network connection method and device, terminal, and system
WO2017181627A1
