Cloud card replacement method, electronic device and computer-readable storage medium
By using the network identifier connected to the global roaming virtual card and the cloud card server in the device to identify the cross-border situation, it realizes rapid cloud card replacement, solving the problem of low efficiency in cloud card replacement when the device cross-border in the existing technology, and improving the user experience And reduce roaming costs.
Patent Information
- Application Number
- CN202411320434.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2044-09-23
AI Technical Summary
The existing cloud card communication method cannot quickly identify and replace the cloud card when the device crosses the border, resulting in users being unable to use the network for a long time, poor operating experience and high roaming costs.
Identify the mobile network country number in the network identification connected to the cloud card server through the seed card to determine whether it is cross-border, and close the original cloud card when it does not match, assign and register a new cloud card to achieve rapid cloud card replacement.
It realizes rapid identification and cloud card replacement during cross-border devices, improves user experience, reduces roaming costs, and simplifies operational processes.
Smart Images

Figure CN118890613B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile communication technology, and in particular to a cloud card replacement method, electronic device and computer-readable storage medium. Background Art
[0002] With the continuous improvement of scientific and technological development, transportation is becoming more and more convenient, and people are traveling more and more frequently between different countries and regions.
[0003] In the traditional way, users are required to replace the SIM card in the mobile device or purchase additional portable Wi-Fi (mobile hotspot) to ensure that the device can be connected to the Internet in different service areas. This usage method is very inconvenient in actual application and cannot meet the user's needs for convenient operation. When the device uses a single SIM card to roam in different service areas, a roaming agreement between operators is required because the networks of different operators need to roam with each other. In this process, higher roaming charges will be incurred, which will lead to higher telecommunications charges.
[0004] In order to solve the above problems, the prior art has proposed a cloud card communication method to provide communication services. Cloud card communication is a digital SIM card service based on cloud computing technology. It transforms the traditional physical SIM card into a virtual electronic SIM card and realizes global communication through cloud services, so that users can use it between different countries and regions without having to replace the SIM card in the device or purchase additional portable Wi-Fi when traveling between different countries and regions. At the same time, it does not incur high roaming charges.
[0005] However, the cloud card communication method still has the following defects:
[0006] Under the cloud card solution, cloud cards are generally assigned local virtual cards of the current country, that is, the operator card of the current country. If the device crosses borders, the operator card of the current country generally cannot register for roaming networks. The device takes a long time to recognize the cross-border card change, which will cause users to be unable to use the network for a long time and the operating experience is poor. Summary of the invention
[0007] In view of the above-mentioned defects of the prior art, the present invention provides a cloud card replacement method, electronic device and computer-readable storage medium that can real-time and quickly identify cross-border equipment, speed up the efficiency of replacing cloud cards during the cross-border process, and improve user experience.
[0008] In a first aspect, the present invention provides a method for replacing a cloud card, which is applied in an electronic device, wherein the electronic device includes a seed card capable of global roaming, and the method includes:
[0009] Identify a first mobile network country number, wherein the first mobile network country number is the mobile network country number in the network identifier during the connection between the seed card and the cloud card server;
[0010] Determine whether the identified first mobile network country number matches a second mobile network country number, wherein the second mobile network country number is the mobile network country number corresponding to the original cloud card used by the electronic device;
[0011] When the first mobile network country number does not match the second mobile network country number, a new cloud card of the corresponding country or region is allocated to the electronic device according to the first mobile network country number.
[0012] The seed card is a global roaming virtual card.
[0013] The identifying of the first mobile network country number includes:
[0014] The cloud card server obtains the network identifier during the connection between the seed card and the cloud card server;
[0015] The mobile network country number in the network identifier is identified to identify the first mobile network country number.
[0016] Wherein, the method further comprises:
[0017] When the first mobile network country number matches the second mobile network country number, the original cloud card in the electronic device is not replaced.
[0018] Wherein, when the first mobile network country number does not match the second mobile network country number, the method further includes:
[0019] Turn off the original cloud card used by the electronic device.
[0020] Wherein, the method further comprises:
[0021] In the initial state of the electronic device, the electronic device is connected to the cloud card server through the seed card;
[0022] Based on the first mobile network country number, allocating a cloud card corresponding to the country or region where the electronic device is located to the electronic device;
[0023] The network registration of the cloud card is performed through the network of the seed card.
[0024] Wherein, when allocating a new cloud card of a corresponding country or region to the electronic device according to the first mobile network country number, the method further includes:
[0025] The network registration of the new cloud card is performed through the network of the seed card.
[0026] Further, the network registration of the new cloud card through the network of the seed card includes:
[0027] Sending a network registration request for a new cloud card through the network of the seed card, and after receiving the network registration request for the new cloud card, obtaining authentication request information sent by the network of the seed card;
[0028] Using the data service of the seed card to send the authentication request information to the cloud card server for authentication, and obtaining the authentication result after the cloud card server authenticates;
[0029] Sending the authentication result to the network of the seed card, and when the authentication result meets the expected result in the network of the seed card, the authentication is successful, so that the network of the seed card accepts the network registration request of the new cloud card;
[0030] When the network of the seed card accepts the network registration request of the new cloud card, the network registration of the new cloud card is successful.
[0031] In a second aspect, the present invention further provides an electronic device, the electronic device comprising:
[0032] A dual-card communication module, including a seed card setting unit and a cloud card setting unit, wherein the seed card setting unit is used to set a seed card capable of global roaming;
[0033] A country number identification module, used to identify a first mobile network country number and determine whether the identified first mobile network country number matches a second mobile network country number, wherein the first mobile network country number is the mobile network country number in the network identifier during the connection between the seed card and the cloud card server, and the second mobile network country number is the mobile network country number corresponding to the original cloud card in the cloud card setting unit;
[0034] The cloud card control module is used to replace the original cloud card in the cloud card setting unit with a new cloud card of the corresponding country or region allocated according to the first mobile network country number when the identified first mobile network country number does not match the second mobile network country number.
[0035] The seed card is a global roaming virtual card.
[0036] Among them, when the first mobile network country number matches the second mobile network country number, the cloud card control module does not replace the original cloud card in the cloud card setting unit.
[0037] When the first mobile network country number does not match the second mobile network country number, the cloud card control module is further used to shut down the original cloud card used by the electronic device.
[0038] Among them, in the initial state, the dual-card communication module drives the seed card in the seed card setting unit to connect to the cloud card server, and obtains the cloud card corresponding to the country or region where the electronic device is located based on the first mobile network country number; and performs network registration of the cloud card through the network of the seed card.
[0039] Furthermore, the cloud card control module also performs network registration of the new cloud card through the network of the seed card.
[0040] In a third aspect, the present invention further provides a computer-readable storage medium having executable instructions stored thereon, wherein the executable instructions, when executed by a machine, implement the method in the first aspect.
[0041] It can be seen that the above technical solution determines the country or region where the electronic device is located by utilizing the mobile network country number in the network identifier during the connection between the seed card and the cloud card server, thereby realizing real-time, fast and accurate identification of cross-border devices, and timely replacing the cloud card in the electronic device. On the premise of ensuring operational portability, it effectively improves the user's device usage experience and achieves the purpose of saving tariffs. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The concept, specific structure and technical effects of the present invention will be further described below in conjunction with the accompanying drawings to fully understand the purpose, characteristics and effects of the present invention.
[0043] Figure 1 is a schematic flowchart of a method for replacing a cloud card according to an embodiment.
[0044] Figure 2 It is a flowchart of cloud card replacement according to one embodiment.
[0045] Figure 3 is a schematic block diagram of an electronic device according to an embodiment. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] It should be noted that, in this document, relational terms such as “first” and “second” are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.
[0048] In the prior art, in the technical solution for devices to use cloud cards to access the Internet, cloud cards are generally assigned local virtual cards of the current country, that is, operator cards of the current country. If the device crosses borders, operator cards of the current country generally cannot register for roaming networks. It takes a long time for the device to recognize that it is cross-border and change cards, which will cause users to be unable to use the network for a long time.
[0049] Under the cloud card solution in the prior art, the cloud card assigned to the device is generally a local virtual card in the country. Compared with roaming cards, local virtual cards in the country have cheaper rates, higher network priority, and better speed and experience. However, if a device equipped with a local virtual card in the country is used for cross-border travel, the local virtual card in the country may not be able to register for the roaming network, or because the domestic network is prioritized, unless it is unable to register for the domestic network, it will try to register for the roaming network. In this case, it will take a long time to register for the roaming network during the cross-border process. At the same time, in the prior art, in order to control costs, the roaming switch in the device is also turned off. Even if roaming on a cross-border network, it is still impossible to access the Internet. Therefore, there is no way to quickly identify cross-border and accurately replace cloud cards, and the cross-border experience is poor.
[0050] In the prior art, when a device with a local virtual card is used for cross-border transactions, the following method is generally used to replace the cloud card:
[0051] (1) Set a registration timeout timer. If the local virtual card is disconnected from the network after crossing the border, it needs to be monitored for 3 minutes or longer. If it cannot be registered on the network after the network disconnection timeout period, then the cloud card replacement will be triggered. Using this cloud card replacement method will cause the device to blindly wait for 3 minutes or longer, which takes a long time, resulting in a poor user experience;
[0052] (2) Modify the underlying modem (i.e., modem). During the cross-border process, the cross-border network is obtained and reported from the underlying layer. The upper layer then uses relevant policies and algorithms to identify that the cross-border network is available, and then replaces the cloud card. This has shortcomings: the underlying modem code needs to be modified, and different products and chips may need to be re-adapted and modified, which is troublesome. Even if the cross-border network is obtained, complex algorithms are still required to ensure stable replacement.
[0053] In summary, the cloud card replacement solution in the prior art cannot bring convenient and fast usage experience to users.
[0054] In view of this, the present invention provides a method, electronic device and computer-readable storage medium for cloud card replacement, which can quickly identify cross-border and, when a cross-border network is found to be available for registration, can quickly find a new cloud card that matches the current area of the device by identifying the mobile network country code (MCC), replace the cloud card in the device, and quickly replace it with a local virtual card of the cross-border country, thereby effectively optimizing the user experience.
[0055] The above technical solution will be described in detail below in conjunction with specific embodiments.
[0056] Figure 1 is a schematic flowchart of a method for replacing a cloud card according to an embodiment.
[0057] The cloud card replacement method of the embodiment of the present invention is applied in an electronic device, wherein the electronic device includes a seed card capable of global roaming. In this embodiment, a global roaming virtual card can be selected to constitute the seed card;
[0058] The method comprises:
[0059] Step 101: In the initial state of the electronic device, the electronic device is connected to the cloud card server through the seed card;
[0060] Step 102: allocating a cloud card corresponding to the country or region where the electronic device is located to the electronic device based on the first mobile network country number;
[0061] Step 103: Register the cloud card through the network of the seed card;
[0062] Step 104: Identify the first mobile network country number, wherein the first mobile network country number is the mobile network country number in the network identifier during the connection between the seed card and the cloud card server;
[0063] Step 105: Determine whether the identified first mobile network country number matches the second mobile network country number, wherein the second mobile network country number is the mobile network country number corresponding to the original cloud card used by the electronic device;
[0064] The specific step of determining whether the identified first mobile network country number matches the second mobile network country number is to determine in real time by the electronic device whether the identified first mobile network country number matches the second mobile network country number;
[0065] Step 106: When the first mobile network country number matches the second mobile network country number, the original cloud card in the electronic device is not replaced;
[0066] Step 107: When the first mobile network country number does not match the second mobile network country number, the original cloud card used by the electronic device is turned off, and a new cloud card of the corresponding country or region is allocated to the electronic device according to the first mobile network country number, and then the network registration of the new cloud card is performed through the network of the seed card.
[0067] Through the cloud card replacement method in this embodiment, whether it is cross-border is determined by comparing the mobile network country number in the network identifier during the connection between the seed card and the cloud card server and the mobile network country number corresponding to the original cloud card used by the electronic device. When the mobile network country number in the network identifier during the connection between the seed card and the cloud card server and the mobile network country number corresponding to the original cloud card used by the electronic device do not match, the original cloud card used by the electronic device is turned off, and the cloud card server allocates a new cloud card that matches the mobile network country number in the network identifier during the connection between the seed card and the cloud card server to the electronic device, so as to ensure the rapid replacement of cloud cards in electronic devices, effectively improve the cross-border recognition efficiency of devices, and effectively optimize user experience.
[0068] Among them, when the electronic device obtains the mobile network country number corresponding to the cloud card used (i.e., the second mobile network country number), the mobile network country number corresponding to the cloud card currently used by the electronic device can be stored in the electronic device to ensure that in the process of judging the first mobile network country number and the second mobile network country number identified, the first mobile network country number identified in real time can be compared with the second mobile network country number pre-stored in the electronic device. When the electronic device replaces the cloud card used, the mobile network country number corresponding to the original cloud card can be deleted from the electronic device, and the mobile network country number corresponding to the new cloud card can be stored in the electronic device to prepare for the comparison between the mobile network country numbers later. This operating mode can reduce the steps of the electronic device repeatedly identifying the second mobile network country number, simplify the identification process, and further improve the efficiency of cloud card replacement.
[0069] The process of identifying the first mobile network country number provided by the embodiment of the present invention is described in detail below:
[0070] The cloud card server obtains the network identifier during the connection between the seed card and the cloud card server;
[0071] The mobile network country number in the network identifier is identified to identify the first mobile network country number.
[0072] The following describes in detail the process of performing network registration of the new cloud card through the network of the seed card provided by the embodiment of the present invention:
[0073] Sending a network registration request for a new cloud card through the network of the seed card, and after receiving the network registration request for the new cloud card, obtaining authentication request information sent by the network of the seed card;
[0074] Using the data service of the seed card to send the authentication request information to the cloud card server for authentication, and obtaining the authentication result after the cloud card server authenticates;
[0075] Sending the authentication result to the network of the seed card, and when the authentication result meets the expected result in the network of the seed card, the authentication is successful, so that the network of the seed card accepts the network registration request of the new cloud card;
[0076] When the network of the seed card accepts the network registration request of the new cloud card, the network registration of the new cloud card is successful.
[0077] In order to enable those skilled in the art to better understand the present invention, the present invention is further described below in conjunction with an embodiment:
[0078] In this embodiment, the seed card capable of global roaming is constituted by a global roaming seed card, and the global roaming seed card is set in the electronic device. When the electronic device is running, it is also necessary to register an additional replaceable cloud card.
[0079] When the electronic device is running, the global roaming seed card is used to connect to the cloud card server. The cloud card server determines the current country of the electronic device based on the network registered by the global roaming seed card, and then allocates the local virtual card of the country (i.e., cloud card) to the device. The cloud card is then downloaded and the cloud card authentication is performed through the network of the global roaming seed card. After the cloud card registers the network and dials ok, it can access the Internet normally. The cloud card network is used for data use. When the electronic device is running, both cards (i.e., global roaming seed card and cloud card) need to be online in real time to be able to register the network normally.
[0080] During the cross-border movement of electronic devices, since the global roaming seed card can roam networks in different countries, when the electronic device moves from country a to country b, the roaming network in country a does not meet the registration requirements, while the network in country b meets the registration requirements. The roaming virtual card will register the roaming network in country b, and then successfully change the registration to the network in country b.
[0081] During the operation of the device, if it is recognized that the country code of the network registered by the global roaming seed card has changed, it will be immediately judged as cross-border. At this time, the original cloud card will be immediately closed, and the global roaming seed card will be reconnected to the server to apply for a replacement of the cloud card and the local virtual card of the country after the cross-border operation. In this way, the global roaming seed card can take advantage of the feature of the roaming country network change during the cross-border process, and promptly discover the change of the country network and replace the cloud card in time. The global roaming seed card is successfully registered and can download the cloud card, ensuring that the replacement of the cloud card can also stably register the current country network.
[0082] Combine the following Figure 2 Further explanation of the process of changing cloud cards between two countries or regions. Figure 2 This is a schematic diagram of a cloud card replacement process according to an embodiment:
[0083] If a user carries an electronic device including a global roaming seed card and wants to move between countries A and B, the relevant operation process is as follows:
[0084] Before crossing the border, when the electronic device is in country a, it registers a local virtual card of country a on the network of country a. In this process, when the network of country a meets the registration requirements, the electronic device roams and registers the network of country a through the internal global roaming seed card. The cloud card in the device is a local virtual card of country a and is registered on the network of country a.
[0085] During cross-border travel, when a user carries an electronic device and moves from country a to country b, the network in country a will not satisfy the device's network registration, while the network in country b satisfies the device's network registration. The global roaming seed card in the device is changed from the network in country a to the network in country b. During this process, the local virtual card in country a in the device loses network and cannot be registered.
[0086] When the electronic device is in country b, the local virtual card in country a will be disconnected from the network. At this time, since the global roaming seed card has successfully registered the network in country b, the country code change is obtained; during this process, you can immediately reconnect to the server to apply for a replacement of the local virtual card in country b.
[0087] After crossing the border, when the user is in country B, the electronic device successfully replaces the local virtual card of country B, and the registration is successful, and the user can access the Internet.
[0088] In this solution, a global roaming virtual card + cloud card is mainly used to realize Internet access for electronic devices. The solution uses the feature of the global roaming virtual card that can be replaced for cross-border roaming (that is, the seed card that can be globally roamed is registered in the first country PLMN (that is, public land mobile communication network) and cross-border roaming is changed to the second country PLMN, and its registered PLMN can obtain the current country code (that is, mobile network country number)) to confirm that the country has indeed been changed, and quickly notify the cloud card to replace the card with a different MCC (that is, mobile network country number). Replacing the cloud card in this way can achieve a more accurate and reliable effect.
[0089] In a second aspect, the present invention provides an electronic device, the structure of which is as follows: Figure 3 As shown, Figure 3 is a schematic block diagram of an electronic device according to an embodiment.
[0090] The electronic device comprises:
[0091] A dual-card communication module, including a seed card setting unit and a cloud card setting unit, wherein the seed card setting unit is used to set a seed card capable of global roaming;
[0092] a country number identification module, used to identify a first mobile network country number and determine whether the identified first mobile network country number matches the second mobile network country number, wherein the first mobile network country number is the mobile network country number in the network identifier during the connection between the seed card and the cloud card server, and the second mobile network country number is the mobile network country number corresponding to the original cloud card in the cloud card setting unit;
[0093] The cloud card control module is used to replace the original cloud card in the cloud card setting unit with a new cloud card of the corresponding country or region allocated according to the first mobile network country number when the identified first mobile network country number does not match the second mobile network country number.
[0094] In this embodiment, the seed card is a global roaming virtual card.
[0095] In this embodiment, when the first mobile network country number matches the second mobile network country number, the cloud card control module does not replace the original cloud card in the cloud card setting unit.
[0096] In this embodiment, when the first mobile network country number does not match the second mobile network country number, the cloud card control module is further used to shut down the original cloud card used by the electronic device.
[0097] In this embodiment, in the initial state, the dual-card communication module drives the seed card in the seed card setting unit to connect to the cloud card server, and obtains the cloud card corresponding to the country or region where the electronic device is located based on the first mobile network country number; and performs network registration of the cloud card through the network of the seed card.
[0098] In this embodiment, the cloud card control module also performs network registration of the new cloud card through the network of the seed card.
[0099] Through the electronic device in this embodiment, whether it is cross-border is determined by comparing the mobile network country number in the network identifier during the connection between the seed card and the cloud card server with the mobile network country number corresponding to the original cloud card used by the electronic device, and when the mobile network country number in the network identifier during the connection between the seed card and the cloud card server and the mobile network country number corresponding to the original cloud card used by the electronic device do not match, the original cloud card in the electronic device is turned off, and the cloud card server allocates a new cloud card that matches the mobile network country number in the network identifier during the connection between the seed card and the cloud card server to the electronic device, so as to ensure the rapid replacement of the cloud card in the electronic device, effectively improve the cross-border recognition efficiency of the device, and effectively optimize the user experience.
[0100] In a preferred embodiment, the electronic device further comprises:
[0101] The second mobile network country number storage module is used to store the mobile network country number corresponding to the cloud card currently used by the electronic device;
[0102] When the country number identification module determines whether the identified first mobile network country number matches the second mobile network country number, the mobile network country number corresponding to the cloud card currently used by the electronic device stored in the second mobile network country number storage module is used as the second mobile network country number, and is compared with the first mobile network country number identified in real time to determine whether the two match.
[0103] After the electronic device is assigned to a new cloud card, the mobile network country number corresponding to the original cloud card stored in the second mobile network country number storage module can be deleted, and the mobile network country number corresponding to the new cloud card can be used as the mobile network country number corresponding to the cloud card currently used by the electronic device and stored in the second mobile network country number storage module.
[0104] In a third aspect, the present invention further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a machine, implement the steps of the method of the second aspect of the present invention.
[0105] For example, machine-readable storage media may include, but are not limited to, various known and unknown types of non-volatile memory.
[0106] It will be appreciated by those skilled in the art that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0107] In the embodiments of the present application, the disclosed systems, devices and methods can be implemented in other ways. For example, the division of units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system. In addition, the coupling between the various units can be direct coupling or indirect coupling. In addition, the various functional units in the embodiments of the present application can be integrated into a processing unit, or can be separate physical existences, etc.
[0108] It should be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0109] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a machine-readable storage medium. Therefore, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a machine-readable storage medium, which can include several instructions to enable an electronic device to perform all or part of the technical solution described in the embodiments of the present application. The above-mentioned storage medium may include various media that can store program codes, such as ROM, RAM, removable disk, hard disk, magnetic disk or optical disk.
[0110] The present invention determines the country or region where the electronic device is located by utilizing the mobile network country number in the network identifier during the connection process between the seed card and the cloud card server, thereby realizing rapid and accurate cross-border identification of the device and timely replacement of the cloud card in the electronic device. Under the premise of ensuring operational portability, it effectively improves the user's device usage experience and achieves the purpose of saving tariffs.
[0111] The above contents are only specific implementation methods of the present application, and the protection scope of the present application is not limited thereto. Those skilled in the art may make changes or substitutions within the technical scope disclosed in the present application, and these changes or substitutions shall be within the protection scope of the present application.
Claims
1. A method for replacing a cloud card, characterized in that: The method is applied in an electronic device, wherein the electronic device includes a seed card capable of global roaming, and the method includes: Identify a first mobile network country number, wherein the first mobile network country number is the mobile network country number in the network identifier during the connection between the seed card and the cloud card server; Determine whether the identified first mobile network country number matches a second mobile network country number, wherein the second mobile network country number is the mobile network country number corresponding to the original cloud card used by the electronic device; When the first mobile network country number does not match the second mobile network country number, allocating a new cloud card of the corresponding country or region to the electronic device according to the first mobile network country number; The identifying the first mobile network country number includes: The cloud card server obtains the network identifier during the connection between the seed card and the cloud card server; The mobile network country number in the network identifier is identified to identify the first mobile network country number.
2. The method for replacing a cloud card according to claim 1, characterized in that: The seed card is a global roaming virtual card.
3. The method for replacing a cloud card according to claim 1, characterized in that: The method further comprises: When the first mobile network country number matches the second mobile network country number, the original cloud card in the electronic device is not replaced.
4. The method for replacing a cloud card according to claim 1, characterized in that: When the first mobile network country number does not match the second mobile network country number, the method further includes: Turn off the original cloud card used by the electronic device.
5. The method for replacing a cloud card according to claim 1, characterized in that: The method further comprises: In the initial state of the electronic device, the electronic device is connected to the cloud card server through the seed card; Based on the first mobile network country number, allocating a cloud card corresponding to the country or region where the electronic device is located to the electronic device; The network registration of the cloud card is performed through the network of the seed card.
6. The method for replacing a cloud card according to claim 1, characterized in that: When allocating a new cloud card of a corresponding country or region to the electronic device according to the first mobile network country number, the method further includes: The network registration of the new cloud card is performed through the network of the seed card.
7. The method for replacing a cloud card according to claim 6, characterized in that: The network registration of the new cloud card through the network of the seed card includes: Sending a network registration request for a new cloud card through the network of the seed card, and after receiving the network registration request for the new cloud card, obtaining authentication request information sent by the network of the seed card; Using the data service of the seed card to send the authentication request information to the cloud card server for authentication, and obtaining the authentication result after the cloud card server authenticates; Sending the authentication result to the network of the seed card, and when the authentication result meets the expected result in the network of the seed card, the authentication is successful, so that the network of the seed card accepts the network registration request of the new cloud card; When the network of the seed card accepts the network registration request of the new cloud card, the network registration of the new cloud card is successful.
8. An electronic device, characterized in that: The electronic device comprises: A dual-card communication module, including a seed card setting unit and a cloud card setting unit, wherein the seed card setting unit is used to set a seed card capable of global roaming; A country number identification module, used to identify a first mobile network country number and determine whether the identified first mobile network country number matches a second mobile network country number, wherein the first mobile network country number is the mobile network country number in the network identifier during the connection between the seed card and the cloud card server, and the second mobile network country number is the mobile network country number corresponding to the original cloud card in the cloud card setting unit; a cloud card control module, configured to replace the original cloud card in the cloud card setting unit with a new cloud card of a corresponding country or region allocated according to the first mobile network country number when the identified first mobile network country number does not match the second mobile network country number; The identifying the first mobile network country number includes: The cloud card server obtains the network identifier during the connection between the seed card and the cloud card server; The mobile network country number in the network identifier is identified to identify the first mobile network country number.
9. The electronic device according to claim 8, characterized in that: The seed card is a global roaming virtual card.
10. The electronic device according to claim 8, characterized in that: When the first mobile network country number matches the second mobile network country number, the cloud card control module does not replace the original cloud card in the cloud card setting unit.
11. The electronic device according to claim 8, characterized in that: When the first mobile network country number does not match the second mobile network country number, the cloud card control module is further used to shut down the original cloud card used by the electronic device.
12. The electronic device according to claim 8, characterized in that: In the initial state, the dual-card communication module drives the seed card in the seed card setting unit to connect to the cloud card server, and obtains the cloud card corresponding to the country or region where the electronic device is located based on the first mobile network country number; and performs network registration of the cloud card through the network of the seed card.
13. The electronic device according to claim 8, characterized in that: The cloud card control module also performs network registration of the new cloud card through the network of the seed card.
14. A computer-readable storage medium, characterized in that: Executable instructions are stored thereon, which, when executed by a machine, enable the method according to any one of claims 1 to 7 to be implemented.
