Method for limiting downloading code number on eSIM, electronic equipment and computer storage medium
By pre-setting information in eSIM and judging based on location and access rules, restrictions on domestic users downloading foreign code numbers are achieved, and the problem of bypassing domestic network restrictions is solved, and the compatibility of standard protocols and platform is not affected.
Patent Information
- Application Number
- CN202411761399.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-03-04
AI Technical Summary
How to easily restrict domestic users from downloading foreign code numbers on eSIM to prevent the potential risks of bypassing domestic network restrictions.
By presetting relevant information in eSIM, in response to the user's operator configuration file download request, the current location information of the electronic device is obtained. If the requested code number is in a set geographical range or meets preset conditions and access rules, downloading the code number is allowed. Otherwise, block downloads.
It effectively restricts domestic users from downloading foreign code numbers, reduces the risk of bypassing domestic network restrictions, and does not require participation of DP+ platforms or compatibility modifications on the platform side.
Smart Images

Figure CN119562244A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method for restricting downloading of foreign codes on an eSIM and a computer-readable storage medium. Background Art
[0002] As an evolution of traditional SIM card technology, eSIM (embedded SIM card) has gradually replaced traditional physical SIM cards worldwide. Compared with traditional SIM cards, eSIM has advantages such as smaller size, easy remote activation, and no need to replace physical cards, which makes it one of the future development directions of mobile communication technology. Although eSIM technology brings portability and innovation, there are also some security and regulatory challenges.
[0003] One of the features of eSIM is that it can switch operators remotely. If users obtain eSIM profiles (AC) through foreign operators, they can bypass the control of domestic operators, directly connect to foreign networks and use roaming services. Given the domestic control of external network access, eSIM may be used to bypass domestic network restrictions, leading to a series of potential risks and problems. Summary of the invention
[0004] The main technical problem solved by the present invention is to provide a simpler method for restricting domestic users from downloading foreign numbers on an eSIM.
[0005] According to the first aspect, an embodiment provides a method for restricting downloading code numbers on an eSIM, the method being applied to an electronic device equipped with an eSIM, including:
[0006] In response to a user's request to download an operator configuration file, obtaining current location information of the electronic device;
[0007] If the code number in the operator configuration file requested to be downloaded by the user is within the set geographical range, allowing the eSIM to download the code number;
[0008] If the code number requested to be downloaded by the user is not within the set geographical range, it is determined whether the location information meets the preset conditions; when the location information does not meet the preset conditions, the eSIM is allowed to download the code number; when the location information meets the preset conditions and meets the access rules preset in the electronic device or eSIM and the metadata of the downloaded code number, the eSIM is allowed to download the code number.
[0009] In one embodiment, the step of obtaining the current location information of the electronic device in response to the user's operator configuration file download request includes:
[0010] The wireless communication component of the electronic device is used to scan the wireless network where the electronic device is currently located to obtain network identification information of the wireless network, and the location information is determined according to the network identification information.
[0011] In one embodiment, the step of obtaining the current location information of the electronic device in response to the download request of the operator configuration file of the user includes:
[0012] The eSIM of the electronic device is provided with a built-in code number, and the built-in code number is used to scan the wireless network where the electronic device is currently located to obtain the network identification information of the wireless network, and the location information is determined according to the network identification information.
[0013] In one embodiment, the built-in code number is a working code number stored in the eSIM of the electronic device, or is an empty code number pre-stored in the eSIM of the electronic device.
[0014] In one embodiment, the access rules include the operator and regional locations where the code numbers are allowed to be downloaded and activated.
[0015] According to the second aspect, an embodiment provides an electronic device for limiting downloading code numbers on an eSIM, wherein the electronic device is equipped with an eSIM, and includes:
[0016] The electronic device obtains the current location information of the electronic device in response to a download request of the operator configuration file of the user;
[0017] When the electronic device determines that the code number in the operator configuration file requested to be downloaded by the electronic device is within the set geographical range, the eSIM is allowed to download the code number;
[0018] If the electronic device determines that the code number requested to be downloaded by the electronic device is not within a set geographical range, it determines whether the location information meets a preset condition. When the location information does not meet the preset condition, the eSIM allows the code number to be downloaded; when the location information meets the preset condition and meets the access rules preset in the electronic device and the metadata of the downloaded code number, the eSIM allows the code number to be downloaded.
[0019] In one embodiment, the eSIM obtains the current location information of the electronic device equipped with the eSIM in response to the download request of the operator configuration file of the user;
[0020] When the eSIM determines that the code number in the operator configuration file requested by the eSIM to download is within a set geographical range, the eSIM is allowed to download the code number;
[0021] The eSIM determines that the code number requested to be downloaded by the eSIM is not within a set geographical range, then determines whether the location information meets a preset condition. When the location information does not meet the preset condition, the eSIM allows the download of the code number; when the location information meets the preset condition and meets the access rules preset in the eSIM and the metadata of the downloaded code number, the eSIM allows the download of the code number.
[0022] In one embodiment, when the electronic device allows downloading of the code number, the wireless communication component of the electronic device is used to scan the wireless network where the electronic device is currently located to obtain network identification information of the wireless network, and the location information is determined according to the network identification information;
[0023] When the eSIM allows downloading of the code number, a built-in code number is set in the eSIM, and the built-in code number is used to scan the wireless network where the electronic device is currently located to obtain network identification information of the wireless network, and the location information is determined according to the network identification information; wherein the built-in code number is a working code number stored in the eSIM of the electronic device, or an empty code number pre-stored in the eSIM of the electronic device.
[0024] In one embodiment, the access rules include the operator and regional locations where the code numbers are allowed to be downloaded and activated.
[0025] According to the third aspect, an embodiment provides a computer-readable storage medium, on which a computer program is stored. The computer program can be executed by a processor to implement the method described in any one of the above embodiments.
[0026] According to the method, electronic device, and computer storage medium for limiting the download of code numbers on eSIM in the above-mentioned embodiment, in the method, in response to the user's request to download the operator configuration file, the current location information of the electronic device is obtained. If the code number in the operator configuration file requested by the user to download is within the set geographical range, the eSIM is allowed to download the code number. If the code number requested by the user to download is not within the set geographical range, it is necessary to determine whether the location information of the electronic device meets the preset conditions, so as to determine whether the download of the code number is allowed. The present application only needs to pre-set relevant information in the eSIM or electronic device, and all subsequent judgment processes comply with the standard protocol. The entire method does not require the participation of the DP+ platform, and the platform side does not need to make any compatibility modifications, which limits unregulated behavior to a greater extent. At the same time, it can also effectively prevent users from downloading unauthorized code numbers to the eSIM and activating them in China. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1Flowchart of the method for cross-border roaming using certificates for eSIM;
[0028] Figure 2 A flowchart of a method for limiting downloading code numbers on an eSIM in an embodiment;
[0029] Figure 3 A flowchart of a method for limiting downloading of foreign numbers on an eSIM in an embodiment;
[0030] Figure 4 A schematic diagram of the structure of an electronic device for limiting downloading code numbers on an eSIM in another embodiment. DETAILED DESCRIPTION
[0031] The present invention is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments adopt associated similar element numbers. In the following embodiments, many detailed descriptions are for making the present application better understood. However, those skilled in the art can easily recognize that some features can be omitted in different situations, or can be replaced by other elements, materials, methods. In some cases, some operations related to the present application are not shown or described in the specification, this is to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations according to the description in the specification and the general technical knowledge in the art.
[0032] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementations. At the same time, the steps or actions in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a required sequence, unless otherwise specified that a certain sequence must be followed.
[0033] The serial numbers of the components in this document, such as "first", "second", etc., are only used to distinguish the objects described and do not have any order or technical meaning. The "connection" and "coupling" mentioned in this application, unless otherwise specified, include direct and indirect connections (couplings).
[0034] Please refer to Figure 1When the eSIM terminal with the eSIM card installed is in cross-border roaming, the eSIM terminal connects to the roaming operator that has a roaming agreement with its home operator. After the eSIM terminal is connected to the roaming operator, the eSIM terminal sends a request to the eSIM card to obtain the eSIM card number and certificate. The eSIM card accepts the request and sends the number information and certificate information to the eSIM terminal. After the eSIM terminal obtains the number information and certificate information, the eSIM terminal sends the number information and certificate information to the roaming operator. The roaming operator determines the number based on the number information and certificate information. When the roaming operator determines that the number is a local number, the roaming operator returns a response to the eSIM terminal that allows the local number profile to be downloaded; when the roaming operator determines that the number is a cross-border number and the user level is not lower than the security level, the roaming operator returns a response to the eSIM terminal that does not restrict the download of the roaming number profile; when the roaming operator determines that the number is a cross-border number and the user level is lower than the security level, the roaming operator returns a response to the eSIM terminal that restricts the eSIM terminal from downloading the roaming profile.
[0035] In summary, when a terminal applies to download the roaming code number during cross-border roaming, the roaming operator controls the number of times, frequency, time, etc. of the eSIM card downloading the roaming profile according to the different levels of users recorded in the eSIM card certificate information, so as to manage the use of the roaming profile download channel and protect the confidential data of the code number. In addition, in order to prevent and curb various illegal activities such as junk electronic information and communication information, when the eSIM card terminal roams internationally, the user's application to download the home code number needs to be restricted from activating and using the code number without real-name authentication. Through the above two aspects, the eSIM card terminal can reasonably and legally download and use the roaming code number when roaming across borders, as well as legally use the home code number.
[0036] In the above-mentioned technical solution for the terminal to apply for downloading the roaming location code for cross-border roaming, it is necessary to expand the certificate and other data, which has a certain impact on technical standardization. At the same time, the operator's DP+ is also required to check the certificate, and the specific implementation process is somewhat difficult.
[0037] This application provides a method and electronic device for limiting downloading code numbers on an eSIM. In this method, the data structure of the standard protocol is not affected. It only needs to pre-set relevant information on the eSIM, and the data of all subsequent processes conform to the standard protocol. At the same time, it does not require the cooperation of the DP+ platform for implementation, and the platform side of the electronic device does not need to make any compatibility modifications. The following is a detailed explanation.
[0038] Please refer to Figure 2In one embodiment, a method for limiting downloading code numbers on an eSIM is provided. The method is applied to an electronic device equipped with an eSIM and includes the following steps.
[0039] Step S100: Acquire the current location information of the electronic device.
[0040] In one embodiment, when a user requests to download a profile (operator profile, which refers to the configuration information of the code number in eSIM technology. After downloading and activating the profile, the SIM card can realize the call, SMS, Internet access and other functions.), the eSIM card uses an active command to obtain the current location information of the electronic device. The user may be a certain manufacturer's equipment batch or a sales target of an electronic device equipped with an eSIM.
[0041] It should be noted that when a user requests to download a profile, the eSIM uses an active command to obtain the current location information of the electronic device, usually to decide which operator configuration file to download based on the geographic location of the electronic device. Specifically, the profile requested to be downloaded is an operator configuration file related to the geographic location of the electronic device. In the eSIM, the operator configuration file contains information related to the network access of a specific operator, including but not limited to: operator information (such as operator name, network code, etc.), authentication information (such as IMSI, International Mobile Subscriber Identity), service configuration (including data, voice, SMS and other service parameters), encryption keys and security parameters. The purpose of obtaining location information is to ensure that the profile downloaded by the device is compatible with the operator in the area where the electronic device is located, and can provide corresponding network services.
[0042] In one embodiment, if the application in the eSIM installed in the electronic device is difficult to rewrite, then in the step S100 of obtaining the current location information of the electronic device, the electronic device may also obtain its own location information.
[0043] In one embodiment, when an electronic device is used to respond to a user's request to download an operator configuration file, the electronic device uses its own wireless communication component to scan the wireless network where the electronic device is currently located to obtain network identification information of the wireless network, and determines location information based on the network identification information.
[0044] It should be noted that wireless communication component scanning refers to the wireless communication module of the device (such as Wi-Fi module, mobile network module, etc.) directly scanning and obtaining network signal information to identify the base station or network currently connected or connectable. The purpose of scanning the wireless network is to identify the operator information of the wireless network to which the electronic device is currently connected, especially to determine the location information of the electronic device by obtaining the network identification information of the operator.
[0045] In one embodiment, the network identification information of the operator is identified by MCC, and the location information is identified by country or region. MCC is the abbreviation of Mobile Country Code, which means "mobile country code" in Chinese. It is a code consisting of 3 digits, which is used to identify the mobile communication network of a country or region. Each mobile network in a country or region has a unique MCC. MCC is mainly used in mobile communications, especially in GSM (Global System for Mobile Communications), UMTS (Universal Mobile Telecommunications System) and LTE (Long Term Evolution) networks, as a partial network identifier to identify a country or region. MCC is usually used together with MNC (Mobile Network Code), which is used to identify different mobile operators in the same country. MCC of 460 represents a mobile network in China, MCC of 310 represents a mobile network in the United States, and MCC of 440 represents a mobile network in Japan.
[0046] In one embodiment, when the eSIM installed in an electronic device is used to respond to a user's operator configuration file download request, a built-in code number is set in the eSIM of the electronic device, and the built-in code number is used to scan the wireless network where the electronic device is currently located to obtain the network identification information of the wireless network, and determine the location information based on the network identification information.
[0047] In one embodiment, a built-in code number is set when the eSIM leaves the factory. The built-in code number may be an empty code number (i.e., a fake code number). When there is no working code number in the eSIM, the electronic device uses the fake code number to perform network scanning to obtain network identification information. If there is already a working code number in the eSIM, the working code number is used to perform network scanning to obtain network identification information.
[0048] It should be noted that during the initialization phase of the eSIM, the electronic device may not have been bound to a specific operator profile or "working code number" (usually IMSI, International Mobile Subscriber Identity). At this time, the eSIM usually has a built-in fake code number (which can also be understood as a preset virtual code number). When there is no valid working number (such as IMSI or formal operator number) bound, the electronic device can still use the fake code number to scan the network and obtain basic network information such as MCC (Mobile Country Code) and MNC (Mobile Network Code). This is to ensure that the electronic device can determine its country or region by obtaining this information under any circumstances, and then select the appropriate operator profile. When the electronic device has loaded a valid working code number (such as IMSI), it can directly use the code number to scan the network and select the appropriate operator profile.
[0049] By using code scanning (whether it is a fake code or a working code), the eSIM can flexibly obtain operator information (such as MCC and MNC) according to the network environment, and then determine the country or region where it is located, and select or download the appropriate operator configuration file. This method ensures that electronic devices can successfully initialize and scan the network without a formal working code, and provide support for subsequent network access and configuration. At the same time, the use of the working code ensures that electronic devices can correctly access the network and authenticate identity based on the user's formal identity.
[0050] Step S200: judging the location information to determine whether the code number in the operator configuration file can be downloaded.
[0051] In one embodiment, if the code number in the operator configuration file requested by the user to be downloaded is within the set geographical range, the code number is allowed to be downloaded. If the code number requested by the user to be downloaded is within the set geographical range, it is judged whether the location information meets the preset conditions. When the location information does not meet the preset conditions, the code number is allowed to be downloaded. When the location information meets the preset conditions, and at the same time, it also meets the access rules preset in the electronic device or eSIM and the metadata of the downloaded code number, the code number is allowed to be downloaded.
[0052] Please refer to Figure 3In one embodiment, since the method provided by the present application is a method for restricting domestic users from downloading foreign numbers, in the above embodiment, if the number in the operator configuration file requested by the user to download is a Chinese operator, then the download of the number is allowed in the eSIM or electronic device. If the number requested by the user to download does not belong to a Chinese operator, then the current location information of the electronic device is judged. If the location information is not in China, then the download of any number is allowed in the eSIM or electronic device; if the location information is in China, then the metadata of the number to be downloaded and the built-in access rules of the eSIM or electronic device are used to determine whether the download of the number is allowed. If allowed, the download continues; if not allowed, an error is returned and the corresponding process is terminated.
[0053] It should be noted that although the method provided in this application is a method to restrict domestic users from downloading foreign codes, in actual practice, domestic is not limited to China. For customers with similar needs abroad (not limited to national / regional regulations, but can be commercial needs), the preset rules can be flexibly changed to achieve settings based on actual conditions.
[0054] In one embodiment, the access rules include the operators and regional locations where the code numbers are allowed to be downloaded and enabled. In eSIM, access rules refer to a set of rules or policies preset by device manufacturers, operators or other relevant parties to control how eSIM selects, downloads and enables operator profiles in different network environments. These rules are usually defined based on user objects (such as specific device batches, eSIM sales targets, regional restrictions, etc.) to ensure that electronic devices follow specific behavior patterns under specific conditions. The main purpose of the access rules is to ensure that the eSIM downloads and enables profiles in accordance with preset restrictions in different geographic regions, operator environments or device conditions. Specifically, these rules control whether the eSIM can download and enable profiles of foreign operators in certain circumstances, or whether it can access specific operator services.
[0055] In a specific example, the access rules pre-set in the eSIM include: Geographical restrictions (geographic location control): According to the geographical location of the electronic device (for example, whether the electronic device is located in China or abroad), the access rules can restrict the behavior of the eSIM. Domestic access rules: When the electronic device is in China, the access rules can restrict the eSIM to only allow the download and activation of the configuration files of domestic operators, and prohibit the download or activation of the configuration files of foreign operators. Foreign access rules: When the electronic device is abroad, the access rules can allow the eSIM to enable or download the configuration files of specific foreign operators, or restrict the eSIM to use only certain specific foreign operators. Restrictions on sales targets or electronic device batches: Access rules can also determine whether to allow the download of configuration files of certain operators based on the production batch, sales target or type of electronic device. Manufacturer customization: If some eSIMs belong to a batch of electronic devices of a specific manufacturer, the access rules can specify that the electronic devices in the batch can only use specific operator configuration files or only allow operators in specific regions. Sales area: The sales area of the electronic device (for example, some eSIMs are only available to users in certain regions) can also affect which operator configuration files can be enabled. For example, some electronic devices may only allow the use of domestic operators in China, while configuration files of foreign operators cannot be enabled in other regions. Operator policy control: Operators can also define access rules based on their own policies to prevent eSIM from downloading configuration files that do not meet the requirements in specific scenarios.
[0056] In one embodiment, the metadata of a code number refers to additional information, descriptive data or metadata related to a code number (such as an operator code number), which can help a device or system make a decision on whether to allow downloading or enabling the code number.
[0057] In one embodiment, the electronic device is currently located in the country (i.e., when the MCC is 460), and the electronic device needs to determine whether to allow continued downloading or activation of the configuration file of the code number based on the metadata of the code number. If the metadata indicates that the code number is only allowed to be activated under certain conditions (for example, it may only be used in a specific area, or is only valid for a specific time period), it is necessary to make a judgment based on these conditions. The access rules will decide whether to allow the code number to be downloaded or activated based on the metadata. Assuming that the access rules clearly state that certain code numbers need to follow additional restrictions when in the country, the system will use metadata to check whether the code number meets these conditions. If there is corresponding restriction information in the metadata and it does not comply with the access rules, the system will terminate the download or activation process and return an error message. If the metadata indicates that the code number is not allowed to be activated or downloaded at the current location (for example, a domestic code number cannot be activated abroad), the system will return an error based on the metadata and stop the relevant process.
[0058] It should be noted that in the above step S200, the method can be executed in the eSIM or in the electronic device. The specific execution in the eSIM or the electronic device can be set according to the convenience in the actual project.
[0059] In one embodiment, the present application can also deploy a similar access policy in DP+. If the target electronic device is found in the country, the code number will be refused to be issued. However, this method can only determine the location information of the electronic device based on the IP. However, when using the IP to determine the location information, the user can bypass it through a proxy or other means, which is not as safe as the method in the present application.
[0060] In one embodiment, the ASN.1 description of the data format of the preset access rules provided by the present application is as follows:
[0061] --Definition of policy for download international profile
[0062] DownloadPolicy::=SEQUENCE OF AllowedOperatorId
[0063] --Definition of data structure for operator
[0064] AllowedOperatorId::=SEQUENCE{mccMnc OCTET STRING(SIZE(3)),--MCC andMNC coded as defined in 3GPP TS24.008,Any of the digits of the mccMnc dataobject can be wildcard-ed by setting the appropriate nibble to'E'.}
[0065] Among them, the preset rules only preset China by default, that is, "64E0EE" (the character E is a wildcard, matching any character), and one or more groups of allowed operators can be added according to different user objects.
[0066] Please refer to Figure 4In another embodiment, an electronic device for limiting the download of code numbers on an eSIM is provided. The electronic device is equipped with an eSIM. When a method for limiting the download of code numbers on an eSIM described in any of the above embodiments is executed in the electronic device, the electronic device responds to the user's request to download the operator configuration file and obtains the current location information of the electronic device. When the electronic device determines that the code number in the operator configuration file requested to be downloaded by itself is within the set geographical range, the eSIM equipped in the electronic device is allowed to download the code number; when the electronic device determines that the code number requested to be downloaded by itself is not within the set geographical range, it determines whether the location information meets the preset conditions. When the location information does not meet the preset conditions, the eSIM equipped in the electronic device is allowed to download the code number; when the location information meets the preset conditions and meets the access rules preset in the electronic device and the metadata of the downloaded code number, the eSIM equipped in the electronic device is allowed to download the code number.
[0067] In one embodiment, when an electronic device responds to a user's request to download an operator configuration file, the electronic device uses its own wireless communication component to scan the wireless network where the electronic device is currently located to obtain network identification information of the wireless network, and determines location information based on the network identification information.
[0068] It should be noted that wireless communication component scanning refers to the wireless communication module of the device (such as Wi-Fi module, mobile network module, etc.) directly scanning and obtaining network signal information to identify the base station or network currently connected or connectable. The purpose of scanning the wireless network is to identify the operator information of the wireless network to which the electronic device is currently connected, especially to determine the location information of the electronic device by obtaining the network identification information of the operator.
[0069] In one embodiment, in addition to the electronic device itself, the eSIM installed inside the electronic device can also execute a method for restricting the download of code numbers on the eSIM as described in any of the above embodiments. Similarly, in the eSIM, in response to the user's request to download the operator configuration file, the current location information of the electronic device equipped with the eSIM is obtained. When the eSIM determines that the code number in the operator configuration file requested by the eSIM to download is within the set geographical range, the eSIM is allowed to download the code number; when the eSIM determines that the code number requested by the eSIM to download is not within the set geographical range, it determines whether the location information meets the preset conditions. When the location information does not meet the preset conditions, the eSIM allows the code number to be downloaded; when the location information meets the preset conditions and meets the access rules preset in the eSIM and the metadata of the downloaded code number, the eSIM allows the code number to be downloaded.
[0070] It should be noted that the method for restricting downloading code numbers on an eSIM provided in the present application is executed on an electronic device or an eSIM inside an electronic device, or the method is executed on both the electronic device and the eSIM inside an electronic device, and can be judged based on the difficulty of rewriting the electronic device and the eSIM inside the electronic device in engineering practice.
[0071] In one embodiment, when the eSIM installed in an electronic device is used to respond to a user's operator configuration file download request, a built-in code number is set in the eSIM of the electronic device, and the built-in code number is used to scan the wireless network where the electronic device is currently located to obtain the network identification information of the wireless network, and determine the location information based on the network identification information.
[0072] In one embodiment, a built-in code number is set when the eSIM leaves the factory. The built-in code number may be an empty code number (i.e., a fake code number). When there is no working code number in the eSIM, the electronic device uses the fake code number to perform network scanning to obtain network identification information. If there is already a working code number in the eSIM, the working code number is used to perform network scanning to obtain network identification information.
[0073] It should be noted that during the initialization phase of the eSIM, the electronic device may not have been bound to a specific operator profile or "working code number" (usually IMSI, International Mobile Subscriber Identity). At this time, the eSIM usually has a built-in fake code number (which can also be understood as a preset virtual code number). When there is no valid working number (such as IMSI or formal operator number) bound, the electronic device can still use the fake code number to scan the network and obtain basic network information such as MCC (Mobile Country Code) and MNC (Mobile Network Code). This is to ensure that the electronic device can determine its country or region by obtaining this information under any circumstances, and then select the appropriate operator profile. When the electronic device has loaded a valid working code number (such as IMSI), it can directly use the code number to scan the network and select the appropriate operator profile.
[0074] By using code scanning (whether it is a fake code or a working code), the eSIM can flexibly obtain operator information (such as MCC and MNC) according to the network environment, and then determine the country or region where it is located, and select or download the appropriate operator configuration file. This method ensures that electronic devices can successfully initialize and scan the network without a formal working code, and provide support for subsequent network access and configuration. At the same time, the use of the working code ensures that electronic devices can correctly access the network and authenticate identity based on the user's formal identity.
[0075] In one embodiment, whether it is an electronic device or an eSIM, if the code number in the operator configuration file requested by the user to download is a Chinese operator, then the eSIM or electronic device allows the download of the code number. If the code number requested by the user to download does not belong to a Chinese operator, then the current location information of the electronic device is judged. If the location information is not in China, then the eSIM or electronic device allows the download of any code number; if the location information is in China, then the metadata of the code number to be downloaded and the access rules built into the eSIM or electronic device are used to determine whether the download of the code number is allowed. If allowed, the download continues; if not allowed, an error is returned and the corresponding process is terminated.
[0076] The following specific examples are given to supplement the method and electronic device for limiting download code numbers on an eSIM provided in the present application. Specific embodiment 1:
[0078] The access rules configured for user A's eSIM do not allow him to use a foreign code. A purchased an eSIM package in China and downloaded it from a foreign website. After checking the device location, eSIM refused to install the code. Specific embodiment 2:
[0080] The access rules configured for user B's eSIM do not allow him to use overseas numbers. B travels abroad and purchases an eSIM package locally. After checking the device location, eSIM successfully installs and activates the number. When user B returns to China, he still wants to activate the eSIM package he purchased abroad. If the rules in the eSIM card do not allow the use of overseas numbers, eSIM will refuse to activate the number after checking the device location. Specific embodiment 3:
[0082] Customer C will export a batch of equipment with eSIM for IoT. The eSIM configuration provided to Customer C allows downloading the corresponding operator code in China. Customer C successfully completed the download and installation of eSIM and the networking debugging of the equipment before the equipment left the factory.
[0083] Those skilled in the art will appreciate that all or part of the functions of the various methods in the above-mentioned embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to implement the above-mentioned functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above-mentioned functions can be implemented. In addition, when all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can also be stored in a storage medium such as a server, another computer, disk, optical disk, flash disk or mobile hard disk, and can be downloaded or copied and saved in the memory of the local device, or the system of the local device is updated, and when the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be implemented.
[0084] The above specific examples are used to illustrate the present invention, which is only used to help understand the present invention and is not intended to limit the present invention. For those skilled in the art, according to the concept of the present invention, some simple deductions, modifications or substitutions can be made.
Claims
1. A method for limiting downloading codes on an eSIM, characterized in that: The method is applied to an electronic device equipped with an eSIM, including: In response to a user's request to download an operator configuration file, obtaining current location information of the electronic device; If the code number in the operator configuration file requested to be downloaded by the user is within the set geographical range, allowing the eSIM to download the code number; If the code number requested to be downloaded by the user is not within the set geographical range, it is determined whether the location information meets the preset conditions; when the location information does not meet the preset conditions, the eSIM is allowed to download the code number; when the location information meets the preset conditions and meets the access rules preset in the electronic device or eSIM and the metadata of the downloaded code number, the eSIM is allowed to download the code number.
2. The method for limiting downloading codes on an eSIM according to claim 1, characterized in that: The step of obtaining the current location information of the electronic device in response to the download request of the operator configuration file of the user includes: The wireless communication component of the electronic device is used to scan the wireless network where the electronic device is currently located to obtain network identification information of the wireless network, and the location information is determined according to the network identification information.
3. The method for limiting download code numbers on an eSIM according to claim 1, characterized in that: The step of obtaining the current location information of the electronic device in response to the download request of the operator configuration file of the user includes: The eSIM of the electronic device is provided with a built-in code number, and the built-in code number is used to scan the wireless network where the electronic device is currently located to obtain the network identification information of the wireless network, and the location information is determined according to the network identification information.
4. The method for limiting downloading codes on an eSIM according to claim 3, characterized in that: The built-in code number is a working code number stored in the eSIM of the electronic device, or is an empty code number pre-stored in the eSIM of the electronic device.
5. The method for limiting download code numbers on an eSIM according to claim 1, characterized in that: The access rules include the carriers and regional locations where codes are allowed to be downloaded and activated.
6. An electronic device for limiting downloading codes on an eSIM, characterized in that: The electronic device is equipped with an eSIM, including: The electronic device obtains the current location information of the electronic device in response to a download request of the operator configuration file of the user; When the electronic device determines that the code number in the operator configuration file requested to be downloaded by the electronic device is within the set geographical range, the eSIM is allowed to download the code number; If the electronic device determines that the code number requested to be downloaded by the electronic device is not within a set geographical range, it determines whether the location information meets a preset condition. When the location information does not meet the preset condition, the eSIM allows the code number to be downloaded; when the location information meets the preset condition and meets the access rules preset in the electronic device and the metadata of the downloaded code number, the eSIM allows the code number to be downloaded.
7. The electronic device for limiting download code numbers on an eSIM according to claim 6, characterized in that: The eSIM obtains the current location information of the electronic device equipped with the eSIM in response to the download request of the operator configuration file of the user; When the eSIM determines that the code number in the operator configuration file requested by the eSIM to download is within a set geographical range, the eSIM is allowed to download the code number; The eSIM determines that the code number requested to be downloaded by the eSIM is not within a set geographical range, then determines whether the location information meets a preset condition. When the location information does not meet the preset condition, the eSIM allows the download of the code number; when the location information meets the preset condition and meets the access rules preset in the eSIM and the metadata of the downloaded code number, the eSIM allows the download of the code number.
8. The electronic device for limiting download code numbers on an eSIM according to claim 7, characterized in that: When the electronic device allows downloading of the code number, using the wireless communication component of the electronic device to scan the wireless network where the electronic device is currently located to obtain network identification information of the wireless network, and determining the location information according to the network identification information; When the eSIM allows downloading of the code number, a built-in code number is set in the eSIM, and the built-in code number is used to scan the wireless network where the electronic device is currently located to obtain network identification information of the wireless network, and the location information is determined according to the network identification information; wherein the built-in code number is a working code number stored in the eSIM of the electronic device, or an empty code number pre-stored in the eSIM of the electronic device.
9. The electronic device for limiting download code numbers on an eSIM according to claim 7, characterized in that: The access rules include the carriers and regional locations where codes are allowed to be downloaded and activated.
10. A computer-readable storage medium, characterized in that: A computer program is stored on the medium, and the computer program can be executed by a processor to implement the method according to any one of claims 1 to 5.
Citation Information
Cited By
ESIM card management method and system and eSIM card
CN121665218A
Esim management method and related apparatus
WO2026153281A1