Configuration file downloading method, electronic equipment and readable storage medium

By realizing the determination and limitation of the download conditions of configuration files in the eSIM card, the problem of the inability to limit the download of configuration files without PPR in the prior art is solved, providing more flexible download control and improving user experience.

CN119211908APending Publication Date: 2024-12-27ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310731518.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-19
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In the prior art, the configuration file download restrictions of the eSIM card are only applicable to configuration files with PPR, and the download of configuration files without PPR cannot be restricted. The RAT rule table needs to be burned into eSIM in advance, which lacks flexibility.

Method used

By sending a file download request to the server, receiving file metadata, and determining whether to download the configuration file based on the download conditions configured by the terminal. The download conditions include the integrated circuit card identification code, configuration file name, service provider name and configuration file owner, etc. Download when the conditions are met, otherwise it is prompted to limit downloading.

Benefits of technology

The usage scenarios of configuration file download restrictions have been expanded. Users can flexibly configure download conditions on the terminal side to meet user needs, improve user experience, and avoid the restrictions of burning into the RAT rule table in advance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211908A_ABST
    Figure CN119211908A_ABST
Patent Text Reader

Abstract

The invention provides a configuration file downloading method, electronic equipment and a readable storage medium. The method comprises the following steps: sending a file downloading request to a server; receiving file metadata of at least one configuration file returned by the server based on the file downloading request; acquiring a downloading condition configured by the terminal; and downloading a configuration file corresponding to the file metadata under the condition of determining that the file metadata meets the downloading condition. In this way, the usage scenario of performing downloading limitation on the configuration file can be expanded. Moreover, the downloading condition in the application does not need to be burnt into the eSIM in advance, and the user can flexibly configure the downloading condition at the terminal side as required, so that the requirements of the user are favorably met, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a configuration file downloading method, an electronic device, and a readable storage medium. Background Art

[0002] With the rapid development of communication technology, in the communication industry, based on the existing SIM card (Subscriber Identity Module), eSIM card, i.e., Embedded-SIM card, has emerged. eSIM card can be understood as an electronic SIM card, which is a data file that can be downloaded to a mobile terminal through the network.

[0003] In the application, users use mobile terminals that support eSIM cards (such as smartphones, smart watches, etc.) to request the data preparation server (i.e., SM-DP+ server) to download configuration files. The data preparation server prepares data according to the request and returns the file metadata of the configuration accessories to the mobile terminal. The mobile terminal downloads the configuration accessories according to the file metadata, and then manages the configuration files locally.

[0004] In the prior art, in order to restrict some configuration files from being downloaded into the eSIM of the mobile terminal, PPR (profile policy rules) is used to restrict some configuration files with PPR from being downloaded into the eSIM according to the RAT (Rules Authorisation Table) rule table in the eSIM.

[0005] However, this method is only applicable to the download of configuration files with PPR, and cannot restrict the download of configuration files without PPR, which limits the usage scenarios. In addition, the premise of this solution is that the RAT rule table must be burned into the eSIM when customizing the eSIM, which is not flexible enough. Summary of the invention

[0006] In order to solve the above technical problems, the present application provides a configuration file downloading method, an electronic device and a readable storage medium.

[0007] In a first aspect, an embodiment of the present application provides a configuration file downloading method, comprising:

[0008] Send a file download request to the server;

[0009] receiving file metadata of at least one configuration file returned by the server based on the file download request;

[0010] Get the download conditions of the terminal configuration;

[0011] If it is determined that the file metadata meets the download condition, a configuration file corresponding to the file metadata is downloaded.

[0012] In a possible implementation manner, the file metadata includes multiple data.

[0013] In a possible implementation manner, the plurality of data includes an integrated circuit card identification code, a configuration file name, a service provider name, and a configuration file owner.

[0014] In one possible implementation, the profile owner includes at least one of a mobile device network code, a mobile device country code, a GID1 identification parameter, and a GID2 identification parameter.

[0015] In a possible implementation manner, the download condition includes multiple first judgment conditions, and if the file metadata satisfies any of the first judgment conditions, it is determined that the file metadata satisfies the download condition.

[0016] In a possible implementation manner, each of the first judgment conditions includes at least one parameter condition, and for each first judgment condition, if the file metadata satisfies all the parameter conditions included in the first judgment condition, it is determined that the file metadata satisfies the first judgment condition;

[0017] The parameter conditions include:

[0018] The prefix of the integrated circuit card identification code is the same as the prefix of the integrated circuit card identification code configured by the terminal;

[0019] The name of the configuration file is the same as the name of the configuration file configured in the terminal;

[0020] The service provider name is the same as the service provider name configured on the terminal;

[0021] The configuration file owner is the same as the configuration file owner configured in the terminal.

[0022] In a possible implementation, the method further includes:

[0023] Obtain the condition priority corresponding to each first judgment condition;

[0024] Each first judgment condition is compared with the file metadata in descending order of priority of the corresponding condition until the file metadata meets any of the first judgment conditions, or the file metadata does not meet all of the first judgment conditions.

[0025] In a possible implementation manner, obtaining the condition priority corresponding to each first judgment condition includes:

[0026] For each first judgment condition, obtaining the number of successful matches corresponding to the first judgment condition within a preset time period;

[0027] The condition priority corresponding to the first judgment condition is determined based on the number of successful matches, wherein a greater number of successful matches leads to a higher corresponding condition priority.

[0028] In a possible implementation, the download condition includes multiple second judgment conditions, and if the file metadata satisfies any of the second judgment conditions, it is determined that the file metadata satisfies the download condition:

[0029] Wherein, the second judgment condition includes:

[0030] The prefix of the integrated circuit card identification code is the same as the prefix of the integrated circuit card identification code configured by the terminal;

[0031] The name of the configuration file is the same as the name of the configuration file configured in the terminal;

[0032] The service provider name is the same as the service provider name configured on the terminal;

[0033] The configuration file owner is the same as the configuration file owner configured in the terminal.

[0034] In a possible implementation, the method further includes:

[0035] When it is determined that the file metadata does not satisfy the download condition, a download restriction prompt message is sent, wherein the download restriction prompt message is used to prompt to restrict the download of a configuration file corresponding to the file metadata.

[0036] In a possible implementation, the method further includes:

[0037] If the download condition is not obtained, all configuration files corresponding to the file metadata are downloaded.

[0038] In a second aspect, an embodiment of the present application provides a configuration file downloading device, comprising:

[0039] A sending module, used for sending a file download request to a server;

[0040] A receiving module, configured to receive file metadata of at least one configuration file returned by the server based on the file download request;

[0041] An acquisition module, used to obtain the download conditions of the terminal configuration;

[0042] The download module is used to download a configuration file corresponding to the file metadata when determining that the file metadata meets the download condition.

[0043] In a possible implementation manner, the file metadata includes multiple data.

[0044] In a possible implementation manner, the plurality of data includes an integrated circuit card identification code, a configuration file name, a service provider name, and a configuration file owner.

[0045] In one possible implementation, the profile owner includes at least one of a mobile device network code, a mobile device country code, a GID1 identification parameter, and a GID2 identification parameter.

[0046] In a possible implementation manner, the download condition includes multiple first judgment conditions, and if the file metadata satisfies any of the first judgment conditions, it is determined that the file metadata satisfies the download condition.

[0047] In a possible implementation manner, each of the first judgment conditions includes at least one parameter condition, and for each first judgment condition, if the file metadata satisfies all the parameter conditions included in the first judgment condition, it is determined that the file metadata satisfies the first judgment condition;

[0048] The parameter conditions include:

[0049] The prefix of the integrated circuit card identification code is the same as the prefix of the integrated circuit card identification code configured by the terminal;

[0050] The name of the configuration file is the same as the name of the configuration file configured in the terminal;

[0051] The service provider name is the same as the service provider name configured on the terminal;

[0052] The configuration file owner is the same as the configuration file owner configured in the terminal.

[0053] In a possible implementation manner, the device further includes a comparison module, configured to:

[0054] Obtain the condition priority corresponding to each first judgment condition;

[0055] Each first judgment condition is compared with the file metadata in descending order of priority of the corresponding condition until the file metadata meets any of the first judgment conditions, or the file metadata does not meet all of the first judgment conditions.

[0056] In a possible implementation, the comparison module is further configured to:

[0057] For each first judgment condition, obtaining the number of successful matches corresponding to the first judgment condition within a preset time period;

[0058] The condition priority corresponding to the first judgment condition is determined based on the number of successful matches, wherein a greater number of successful matches leads to a higher corresponding condition priority.

[0059] In a possible implementation, the download condition includes multiple second judgment conditions, and if the file metadata satisfies any of the second judgment conditions, it is determined that the file metadata satisfies the download condition:

[0060] Wherein, the second judgment condition includes:

[0061] The prefix of the integrated circuit card identification code is the same as the prefix of the integrated circuit card identification code configured by the terminal;

[0062] The name of the configuration file is the same as the name of the configuration file configured in the terminal;

[0063] The service provider name is the same as the service provider name configured on the terminal;

[0064] The configuration file owner is the same as the configuration file owner configured in the terminal.

[0065] In a possible implementation manner, the device further includes a sending module, configured to:

[0066] When it is determined that the file metadata does not satisfy the download condition, a download restriction prompt message is sent, wherein the download restriction prompt message is used to prompt to restrict the download of a configuration file corresponding to the file metadata.

[0067] In a possible implementation manner, the download module is further used to:

[0068] If the download condition is not obtained, all configuration files corresponding to the file metadata are downloaded.

[0069] In a third aspect, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0070] Memory, used to store computer programs;

[0071] The processor is used to implement any method step described in the first aspect when executing a program stored in the memory.

[0072] In a fourth aspect, a computer-readable storage medium is provided, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any method step described in the first aspect is implemented.

[0073] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any of the above-mentioned configuration file downloading methods.

[0074] Beneficial effects of the embodiments of the present application:

[0075] The embodiment of the present application provides a configuration file download method, an electronic device, and a readable storage medium. In the embodiment of the present application, first, a file download request is sent to a server, and file metadata of at least one configuration file returned by the server based on the file download request is received. Then, the download conditions configured by the terminal are obtained. Finally, when it is determined that the file metadata meets the download conditions, the configuration file corresponding to the file metadata is downloaded. This implements download restrictions on configuration files. In this way, the use scenarios for download restrictions on configuration files can be expanded. In addition, the download conditions in the present application do not need to be pre-burned into the eSIM, and users can flexibly configure them on the terminal side as needed, which is conducive to meeting user needs and improving user experience.

[0076] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0078] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0079] Figure 1 A flowchart of a configuration file download method provided in an embodiment of the present application;

[0080] Figure 2 A flowchart of another configuration file downloading method provided in an embodiment of the present application;

[0081] Figure 3 A schematic diagram of the structure of a configuration file downloading device provided in an embodiment of the present application;

[0082] Figure 4A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0083] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not 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 work are within the scope of protection of this application.

[0084] The configuration file downloading method provided by the present application is explained below with reference to specific embodiments in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present application.

[0085] See also Figure 1 , is a flow chart of an embodiment of a configuration file downloading method provided in an embodiment of the present application. Figure 1 As shown, the process may include the following steps:

[0086] S101, sending a file download request to a server.

[0087] A configuration file downloading method provided in an embodiment of the present application can be applied to terminals supporting eSIM cards (such as smart phones, smart watches, etc.).

[0088] Server refers to the data preparation server, that is, the SM-DP+ server.

[0089] File download request, used to request the server to download the configuration file.

[0090] In the embodiment of the present application, the user can trigger the terminal to send a file download request to the server by scanning a QR code or manually entering an activation code.

[0091] S102: Receive file metadata of at least one configuration file returned by the server based on the file download request.

[0092] Profile Metadata refers to the data that describes the configuration file, mainly the information that describes the data properties.

[0093] In the application, after receiving the file download request, the server can find the file metadata of the corresponding configuration file based on the file download request and return the file metadata to the terminal. In the application, the server can return the file metadata through the corresponding authentication client (AuthenticateClient), or return the file metadata through the bound profile package (Bound ProfilePackage).

[0094] In one embodiment, the file metadata includes multiple data.

[0095] Specifically, the plurality of data includes an integrated circuit card identification code (ICCID), a profile name (profilename), a service provider name (Service Provider name) and a profile owner (profile owner).

[0096] The configuration file owner includes at least one of a mobile network code (Mobile Network Code, MNC), a mobile country code (Mobile Country Code, MCC), a GID1 identification parameter, and a GID2 identification parameter.

[0097] In the application, when the terminal sends a file download request to the server, it can also send an authentication request to the server. After the server and the terminal successfully authenticate each other, the authentication success response data returned by the server to the terminal will contain file metadata. In this way, the security of data transmission can be improved.

[0098] S103, obtaining the download conditions configured by the terminal.

[0099] Download conditions are conditions configured by users through terminals to restrict the download of configuration files.

[0100] In the embodiment of the present application, the download conditions pre-configured by the user can be obtained from a storage location of the terminal for storing the download conditions.

[0101] S104: When it is determined that the file metadata meets the download condition, download a configuration file corresponding to the file metadata.

[0102] In the embodiment of the present application, the file metadata is judged by the download condition configured by the terminal, and only when the file metadata meets the download condition, the terminal downloads the configuration file corresponding to the file metadata, and when the file metadata does not meet the download condition, the terminal does not download the configuration file corresponding to the file metadata. Thus, the restriction on the download of the configuration file is achieved.

[0103] As a possible implementation manner, the download condition includes multiple first judgment conditions, and if the file metadata satisfies any of the first judgment conditions, it is determined that the file metadata satisfies the download condition.

[0104] Optionally, each of the first judgment conditions includes at least one parameter condition. For each first judgment condition, if the file metadata satisfies all the parameter conditions included in the first judgment condition, it is determined that the file metadata satisfies the first judgment condition, wherein the parameter conditions include: the prefix of the integrated circuit card identification code is the same as the prefix of the integrated circuit card identification code configured for the terminal; the configuration file name is the same as the configuration file name configured for the terminal; the service provider name is the same as the service provider name configured for the terminal; the configuration file owner is the same as the configuration file owner configured for the terminal.

[0105] For example, the download condition includes a first judgment condition 1 and a first judgment condition 2. The first judgment condition 1 is:<ICCID,Value1> ,<Profile name,Vaule2> ; The first judgment condition 2 is:<ICCID,Value3> ,<Serviceprovider name,Value4> .

[0106] When judging the file metadata a based on the download condition, the file metadata a is compared with the first judgment condition 1 and the first judgment condition 2 respectively.

[0107] The process of comparing file metadata a and the first judgment condition 1 is: comparing whether the prefix of ICCID in file metadata a is consistent with Value1, and comparing whether the value of Profile name in file metadata a is consistent with Value2. If the prefix of ICCID in file metadata a is consistent with Value1, and the value of Profile name in file metadata a is consistent with Value2, it is determined that file metadata a meets the first judgment condition 1; otherwise, file metadata a does not meet the first judgment condition 1.

[0108] The process of comparing file metadata a and the first judgment condition 2 is: comparing whether the prefix of ICCID in file metadata a is consistent with Value3, and comparing whether the value of Service provider name in file metadata a is consistent with Value4. If the prefix of ICCID in file metadata a is consistent with Value3, and the value of Serviceprovider name in file metadata a is consistent with Value4, then it is determined that file metadata a meets the first judgment condition 2; otherwise, file metadata a does not meet the first judgment condition 2.

[0109] If the file metadata a satisfies the first judgment condition 1, or the file metadata a satisfies the first judgment condition 2, it is determined that the file metadata a satisfies the download condition.

[0110] As another possible implementation, the download condition includes multiple second judgment conditions, and if the file metadata satisfies any of the second judgment conditions, it is determined that the file metadata satisfies the download condition, wherein the second judgment condition includes: the prefix of the integrated circuit card identification code is the same as the prefix of the integrated circuit card identification code configured for the terminal; the configuration file name is the same as the configuration file name configured for the terminal; the service provider name is the same as the service provider name configured for the terminal; the configuration file owner is the same as the configuration file owner configured for the terminal.

[0111] For example, the downloading condition includes second judgment conditions 1-4, wherein the second judgment condition 1 is:<ICCID,Value1> ; The second judgment condition 2 is:<Profile name,Vaule2> ; The second judgment condition 3 is:<Service provider name,Value3> ; The second judgment condition 4 is:<Profile owner,Value4> .

[0112] Then, if the prefix of ICCID in file metadata b is consistent with Value1, or the value of Profile name is consistent with Value2, or the value of Service provider name is consistent with Value3, or the value of Profile owner is consistent with Value4, it is determined that file metadata b meets the download condition.

[0113] In another embodiment, the method further includes the following steps: when it is determined that the file metadata does not satisfy the download condition, sending a download restriction prompt message, wherein the download restriction prompt message is used to prompt to restrict the download of a configuration file corresponding to the file metadata.

[0114] The download restriction prompt information is used to prompt the configuration file corresponding to the file metadata to be restricted from downloading, for example, "the download of this configuration file is restricted by the terminal", "this terminal does not support the download of this configuration file", etc.

[0115] In this embodiment, when the file metadata does not meet the download conditions, a download restriction prompt message may be sent to the display module of the terminal, and the display module may display the download restriction prompt message through a UI (User Interface) to prompt the user that the current configuration file is restricted from downloading.

[0116] In the application, when it is determined that the file metadata does not meet the download conditions, the terminal may also return error information to the server to notify the server that the download of the current configuration file is restricted.

[0117] Furthermore, in another embodiment, the method further comprises the following steps: downloading configuration files corresponding to all the file metadata when the download conditions are not obtained.

[0118] In the application, if the download conditions are not obtained, it means that the user has not configured the download conditions in the terminal, that is, the terminal does not restrict the download of any configuration file. At this time, the configuration files corresponding to all file metadata can be directly downloaded.

[0119] In an embodiment of the present application, first, a file download request is sent to a server, and file metadata of at least one configuration file returned by the server based on the file download request is received. Then, the download conditions configured by the terminal are obtained. Finally, when it is determined that the file metadata meets the download conditions, the configuration file corresponding to the file metadata is downloaded. This implements download restrictions on configuration files. In this way, the use scenarios of download restrictions on configuration files can be expanded. Moreover, the download conditions in the present application do not need to be pre-burned into the eSIM, and users can flexibly configure them on the terminal side as needed, which is conducive to meeting user needs and improving user experience.

[0120] See also Figure 2 , is a flow chart of another embodiment of a configuration file downloading method provided in an embodiment of the present application. Figure 2 As shown, the process may include the following steps:

[0121] S201, obtaining the condition priority corresponding to each first judgment condition;

[0122] S202, comparing each first judgment condition with the file metadata in descending order of priority of the corresponding condition, until the file metadata meets any of the first judgment conditions, or the file metadata does not meet all of the first judgment conditions.

[0123] The following is a unified description of S201 and S202:

[0124] In the embodiment of the present application, first, the condition priority corresponding to each first judgment condition is obtained, and then, in descending order of the corresponding condition priority, each first judgment condition is compared with the file metadata in turn, until the file metadata meets any first judgment condition, or the file metadata does not meet all the first judgment conditions, and the judgment is terminated. In this way, the comparison of the file metadata and the download condition is achieved.

[0125] In one embodiment, the specific implementation of obtaining the condition priority corresponding to each first judgment condition may include: for each first judgment condition, obtaining the number of successful matches corresponding to the first judgment condition within a preset time period, and determining the condition priority corresponding to the first judgment condition based on the number of successful matches, wherein the more successful matches, the higher the corresponding condition priority.

[0126] The number of successful matches refers to the number of times that the file metadata satisfies the first judgment condition when the first judgment condition is compared with the file metadata in history.

[0127] Through this solution, the first judgment condition with a higher historical matching success rate can be used for judgment first, thereby reducing the overall judgment time and improving processing efficiency.

[0128] In another embodiment, the specific implementation of obtaining the condition priority corresponding to each first judgment condition may include: for each first judgment condition, determining the number of parameter conditions included in the first judgment condition, and determining the condition priority corresponding to the first judgment condition based on the number, wherein the smaller the number, the higher the corresponding condition priority.

[0129] In the application, the fewer the number of parameter conditions contained in the first judgment condition, the greater the probability of successful matching. In this way, the judgment condition with a higher probability of successful matching can be used first to reduce the overall judgment time and improve processing efficiency.

[0130] Optionally, the embodiment of the present application also provides a processing flow for downloading a configuration file, and the specific steps are as follows.

[0131] Step 11: The user initiates a file download request for downloading a configuration file to the server through the terminal;

[0132] Step 12, receiving file metadata of at least one configuration file returned by the server;

[0133] Step 13, read the download conditions configured by the terminal;

[0134] Step 14, determine whether the file metadata meets the download conditions, if yes, go to step 15, otherwise go to step 16;

[0135] Step 15, download the configuration file corresponding to the file metadata;

[0136] Step 16, terminating the download process of the configuration file corresponding to the file metadata, prompting the user through the user interface that the download of the configuration file is restricted by the terminal, and returning error information to the server.

[0137] Determine whether a file metadata meets the download conditions. The specific steps are as follows:

[0138] Step 21, determine whether the terminal is configured with download conditions, if configured, go to step 22, if not configured, go to step 213;

[0139] Step 22, reading a first judgment condition in the download conditions;

[0140] Step 23, determine whether there is an ICCID parameter configuration in the first determination condition, if yes, go to step 24, otherwise go to step 25 to determine the next parameter;

[0141] Step 24, determine whether the ICCID parameter configuration value is the same as the prefix of the ICCID information in the file metadata, if yes, go to step 25, otherwise go to step 211;

[0142] Step 25, determine whether there is a Profile owner parameter configuration in the first determination condition, if yes, go to step 26, otherwise go to step 27 to determine the next parameter;

[0143] Step 26, determine whether the profile owner parameter configuration value is the same as the profile owner information value in the file metadata, if yes, go to step 27, otherwise go to step S211;

[0144] Step 27, determine whether there is a Service provider parameter configuration in the first determination condition, if yes, go to step 28, otherwise go to step 29 to determine the next parameter;

[0145] Step 28, determine whether the Service provider parameter configuration value is the same as the Serviceprovider information value in the file metadata, if yes, go to step 29, otherwise go to step 211;

[0146] Step 29, determine whether there is a Profile name parameter configuration in the first determination condition, if yes, go to step 210, otherwise go to step S213;

[0147] Step 210, determine whether the Profile name parameter configuration value is the same as the Profile name information value in the file metadata, if yes, go to step S213, otherwise go to step S211;

[0148] Step 211, whether there are other first judgment conditions, if yes, go to step 22, read the first judgment condition and make a judgment, otherwise go to step 212;

[0149] Step 212, the file metadata does not meet the downloading conditions;

[0150] Step 213: The file metadata meets the downloading condition.

[0151] In an embodiment of the present application, first, a file download request is sent to a server, and file metadata of at least one configuration file returned by the server based on the file download request is received. Then, the download conditions configured by the terminal are obtained. Finally, when it is determined that the file metadata meets the download conditions, the configuration file corresponding to the file metadata is downloaded. This implements download restrictions on configuration files. In this way, the use scenarios of download restrictions on configuration files can be expanded. Moreover, the download conditions in the present application do not need to be pre-burned into the eSIM, and users can flexibly configure them on the terminal side as needed, which is conducive to meeting user needs and improving user experience.

[0152] Based on the same technical concept, the embodiment of the present application also provides a configuration file downloading device, such as Figure 3 As shown, the device comprises:

[0153] A sending module 301 is used to send a file download request to a server;

[0154] A receiving module 302, configured to receive file metadata of at least one configuration file returned by the server based on the file download request;

[0155] The acquisition module 303 is used to acquire the download conditions configured by the terminal;

[0156] The download module 304 is configured to download a configuration file corresponding to the file metadata if it is determined that the file metadata meets the download condition.

[0157] In a possible implementation manner, the file metadata includes multiple data.

[0158] In a possible implementation manner, the plurality of data includes an integrated circuit card identification code, a configuration file name, a service provider name, and a configuration file owner.

[0159] In one possible implementation, the profile owner includes at least one of a mobile device network code, a mobile device country code, a GID1 identification parameter, and a GID2 identification parameter.

[0160] In a possible implementation manner, the download condition includes multiple first judgment conditions, and if the file metadata satisfies any of the first judgment conditions, it is determined that the file metadata satisfies the download condition.

[0161] In a possible implementation manner, each of the first judgment conditions includes at least one parameter condition, and for each first judgment condition, if the file metadata satisfies all the parameter conditions included in the first judgment condition, it is determined that the file metadata satisfies the first judgment condition;

[0162] The parameter conditions include:

[0163] The prefix of the integrated circuit card identification code is the same as the prefix of the integrated circuit card identification code configured by the terminal;

[0164] The name of the configuration file is the same as the name of the configuration file configured in the terminal;

[0165] The service provider name is the same as the service provider name configured on the terminal;

[0166] The configuration file owner is the same as the configuration file owner configured in the terminal.

[0167] In a possible implementation manner, the device further includes a comparison module, configured to:

[0168] Obtain the condition priority corresponding to each first judgment condition;

[0169] Each first judgment condition is compared with the file metadata in descending order of priority of the corresponding condition until the file metadata meets any of the first judgment conditions, or the file metadata does not meet all of the first judgment conditions.

[0170] In a possible implementation, the comparison module is further configured to:

[0171] For each first judgment condition, obtaining the number of successful matches corresponding to the first judgment condition within a preset time period;

[0172] The condition priority corresponding to the first judgment condition is determined based on the number of successful matches, wherein a greater number of successful matches leads to a higher corresponding condition priority.

[0173] In a possible implementation, the download condition includes multiple second judgment conditions, and if the file metadata satisfies any of the second judgment conditions, it is determined that the file metadata satisfies the download condition:

[0174] Wherein, the second judgment condition includes:

[0175] The prefix of the integrated circuit card identification code is the same as the prefix of the integrated circuit card identification code configured by the terminal;

[0176] The name of the configuration file is the same as the name of the configuration file configured in the terminal;

[0177] The service provider name is the same as the service provider name configured on the terminal;

[0178] The configuration file owner is the same as the configuration file owner configured in the terminal.

[0179] In a possible implementation manner, the device further includes a sending module, configured to:

[0180] When it is determined that the file metadata does not satisfy the download condition, a download restriction prompt message is sent, wherein the download restriction prompt message is used to prompt to restrict the download of a configuration file corresponding to the file metadata.

[0181] In a possible implementation manner, the download module is further used to:

[0182] If the download condition is not obtained, all configuration files corresponding to the file metadata are downloaded.

[0183] In an embodiment of the present application, first, a file download request is sent to a server, and file metadata of at least one configuration file returned by the server based on the file download request is received. Then, the download conditions configured by the terminal are obtained. Finally, when it is determined that the file metadata meets the download conditions, the configuration file corresponding to the file metadata is downloaded. This implements download restrictions on configuration files. In this way, the use scenarios of download restrictions on configuration files can be expanded. Moreover, the download conditions in the present application do not need to be pre-burned into the eSIM, and users can flexibly configure them on the terminal side as needed, which is conducive to meeting user needs and improving user experience.

[0184] Based on the same technical concept, the embodiment of the present application also provides an electronic device, such as Figure 4 As shown, it includes a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.

[0185] Memory 113, used for storing computer programs;

[0186] The processor 111 is used to execute the program stored in the memory 113 to implement the following steps:

[0187] Send a file download request to the server;

[0188] receiving file metadata of at least one configuration file returned by the server based on the file download request;

[0189] Get the download conditions of the terminal configuration;

[0190] If it is determined that the file metadata meets the download condition, a configuration file corresponding to the file metadata is downloaded.

[0191] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0192] The communication interface is used for communication between the above electronic device and other devices.

[0193] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0194] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0195] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above configuration file downloading methods are implemented.

[0196] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any configuration file downloading method in the above embodiments.

[0197] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0198] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0199] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims

1. A configuration file downloading method, characterized in that: The method comprises: Send a file download request to the server; receiving file metadata of at least one configuration file returned by the server based on the file download request; Get the download conditions of the terminal configuration; If it is determined that the file metadata meets the download condition, a configuration file corresponding to the file metadata is downloaded.

2. The method according to claim 1, characterized in that: The file metadata includes multiple data.

3. The method according to claim 2, characterized in that The plurality of data includes an integrated circuit card identification code, a configuration file name, a service provider name, and a configuration file owner.

4. The method according to claim 3, characterized in that The profile owner includes at least one of a mobile device network code, a mobile device country code, a GID1 identification parameter, and a GID2 identification parameter.

5. The method according to claim 3, characterized in that: The download condition includes a plurality of first judgment conditions. If the file metadata satisfies any of the first judgment conditions, it is determined that the file metadata satisfies the download condition.

6. The method according to claim 5, characterized in that Each of the first judgment conditions includes at least one parameter condition, and for each first judgment condition, if the file metadata satisfies all the parameter conditions included in the first judgment condition, it is determined that the file metadata satisfies the first judgment condition; The parameter conditions include: The prefix of the integrated circuit card identification code is the same as the prefix of the integrated circuit card identification code configured by the terminal; The name of the configuration file is the same as the name of the configuration file configured in the terminal; The service provider name is the same as the service provider name configured on the terminal; The configuration file owner is the same as the configuration file owner configured in the terminal.

7. The method according to claim 5, characterized in that The method further comprises: Obtain the condition priority corresponding to each first judgment condition; Each first judgment condition is compared with the file metadata in descending order of priority of the corresponding condition until the file metadata meets any of the first judgment conditions, or the file metadata does not meet all of the first judgment conditions.

8. The method according to claim 7, characterized in that The obtaining the condition priority corresponding to each first judgment condition includes: For each first judgment condition, obtaining the number of successful matches corresponding to the first judgment condition within a preset time period; The condition priority corresponding to the first judgment condition is determined based on the number of successful matches, wherein a greater number of successful matches leads to a higher corresponding condition priority.

9. The method according to claim 3, characterized in that: The download condition includes multiple second judgment conditions. If the file metadata satisfies any of the second judgment conditions, it is determined that the file metadata satisfies the download condition: Wherein, the second judgment condition includes: The prefix of the integrated circuit card identification code is the same as the prefix of the integrated circuit card identification code configured by the terminal; The name of the configuration file is the same as the name of the configuration file configured in the terminal; The service provider name is the same as the service provider name configured on the terminal; The configuration file owner is the same as the configuration file owner configured in the terminal.

10. The method according to claim 1, characterized in that The method further comprises: When it is determined that the file metadata does not satisfy the download condition, a download restriction prompt message is sent, wherein the download restriction prompt message is used to prompt to restrict the download of a configuration file corresponding to the file metadata.

11. The method according to claim 1, characterized in that: The method further comprises: If the download condition is not obtained, all configuration files corresponding to the file metadata are downloaded.

12. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1-11 when executing a program stored in a memory.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 11 are implemented.