File management method, device, electronic device and readable storage medium

By triggering a download retry operation in the file management method of the eSIM card, the problem of complex eSIM card configuration file download is solved, improving the effectiveness of file management and user experience.

CN115484586BActive Publication Date: 2024-11-01GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110668185.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-16
Publication Date
2024-11-01
Estimated Expiration
2041-06-16

AI Technical Summary

Technical Problem

Traditional SIM cards cannot meet the flexibility requirements of mobile terminals, and the process of downloading and activating eSIM card configuration files is complicated, affecting the user experience.

Method used

When the server sends an error code that matches the specified information, a download retry operation is triggered, including sending a file download request to the server to ensure the successful download of the configuration file.

Benefits of technology

It improves the effectiveness of file management, avoids unnecessary notifications from affecting users' normal use of the terminal, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115484586B_ABST
    Figure CN115484586B_ABST
Patent Text Reader

Abstract

The present application discloses a file management method, device, electronic device and readable storage medium, belonging to the field of mobile communication technology. The method is applied to a user terminal, and the method includes: sending a file download request to a server, and the server is used to send a configuration file of a user identification card of the user terminal to the user terminal based on the file download request; if the error code information received from the server is specified information, a download retry operation is triggered, and the download retry operation includes sending the file download request to the server, and the specified information is used to indicate that the server has not generated the configuration file. The present application can improve the effectiveness of obtaining the configuration file by introducing a retry operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of mobile communication technology, and more specifically, to a file management method, device, electronic device and readable storage medium. Background Art

[0002] In mobile cellular network communications, operators generally use SIM (Subscriber Identification Module) cards as carriers of user authentication information for mobile communications. With the development of the Internet of Things market, new process requirements and migration flexibility requirements have been put forward for SIM cards. Traditional SIM cards can no longer meet people's needs for mobile terminals.

[0003] In this context, the eSIM (embedded Subscriber Identification Module) technology was born. The eSIM writes the customer identification information of the mobile operator into the embedded Universal Integrated Circuit Card (eUICC) and fixes it on the embedded mobile terminal. The eSIM supports remote configuration and writing. Users can purchase operator packages online to download the eSIM profile online. It can be seen that the eSIM mainly embeds the traditional SIM card directly into the device chip instead of adding it to the device as an independent removable component. Therefore, the use of eSIM cards can save more mobile terminal usage costs for ordinary consumers and corporate users, and improve the convenience and security of mobile terminals. However, the use of eSIM cards also has some disadvantages, such as the download and activation of configuration files. Therefore, how to better manage the files corresponding to the eSIM card is a technical problem that needs to be solved urgently. Summary of the invention

[0004] The present application proposes a file management method, device, electronic device and readable storage medium to improve the above-mentioned defects.

[0005] In a first aspect, an embodiment of the present application provides a file management method, which is applied to a user terminal, and the method includes: sending a file download request to a server, and the server is used to send a configuration file of a user identification card of the user terminal to the user terminal based on the file download request; if the error code information received from the server is specified information, a download retry operation is triggered, and the download retry operation includes sending the file download request to the server, and the specified information is used to characterize that the server has not generated the configuration file.

[0006] In a second aspect, an embodiment of the present application further provides a file management device, which is applied to a user terminal, and the device includes: a sending module and a retry module. The sending module is used to send a file download request to a server, and the server is used to send a configuration file of a user identification card of the user terminal to the user terminal based on the file download request. The retry module is used to trigger a download retry operation if the error code information received from the server is specified information, and the download retry operation includes sending the file download request to the server, and the specified information is used to indicate that the server has not generated the configuration file.

[0007] In a third aspect, an embodiment of the present application also provides an electronic device, comprising one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above method.

[0008] In a fourth aspect, an embodiment of the present application further provides a computer-readable medium, wherein the computer-readable storage medium stores program code, and the program code can be called by a processor to execute the above method.

[0009] The file management method, device, electronic device and readable storage medium provided by the embodiments of the present application can improve the effectiveness of file management to a certain extent by triggering a download retry operation when the error code information received from the server is designated information. Specifically, the user terminal can send a file download request to the server, and the server is used to send a configuration file of the user identification card of the user terminal to the user terminal based on the file download request. Then, when the user terminal determines that the error code information sent by the server is designated information, it can trigger a download retry operation, wherein the download retry operation includes sending a file download request to the server, and the designated information is used to characterize that the server has not generated the configuration file. When the present application determines that the error code information is designated information, by introducing a download retry operation, it can avoid unnecessary notification information from affecting the user's normal use of the terminal to a certain extent, thereby improving the user's experience.

[0010] Other features and advantages of the embodiments of the present application will be described in the subsequent description, and partly become apparent from the description, or be understood by practicing the embodiments of the present application. The purposes and other advantages of the embodiments of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0012] Figure 1 A structural schematic diagram of a file management system is shown;

[0013] Figure 2 A method flow chart of a file management method provided by an embodiment of the present application is shown;

[0014] Figure 3 A method flow chart of a file management method provided by another embodiment of the present application is shown;

[0015] Figure 4 A method flow chart of a file management method provided by another embodiment of the present application is shown;

[0016] Figure 5 A flowchart of step S405 in a file management method provided by another embodiment of the present application is shown;

[0017] Figure 6 A structural block diagram of a file management device provided in an embodiment of the present application is shown;

[0018] Figure 7 A structural block diagram of a retry module 602 in a file management device provided in an embodiment of the present application is shown;

[0019] Figure 8 A structural block diagram of an electronic device provided in an embodiment of the present application is shown;

[0020] Fig. 9 A storage unit provided in an embodiment of the present application and used to store or carry program codes for implementing a file management method according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0021] The technical solutions 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 only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0022] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0023] At present, when handling business at the operator, the mobile terminal usually obtains an activation code, and each activation code corresponds to a configuration file (Profile), wherein the activation code is used to authenticate on the operator's corresponding server, and trigger the download of the configuration file after successful authentication. Specifically, the mobile terminal can handle eSIM-related services at the operator, and can obtain an activation code after successful handling, and then the mobile terminal can download the configuration file from the server based on the activation code. However, after the user successfully handles the relevant business at the operator, there may be a delay problem when the server generates the configuration file, that is, the configuration file cannot be generated in time, which will cause the mobile terminal to fail when downloading the configuration file. In this case, the user terminal of the prior art needs to repeatedly trigger the download process, and the delay in the generation of the configuration file may be very long, which to a certain extent affects the user's normal use of the mobile terminal.

[0024] In response to the above problems, the inventors have proposed a file management method, an electronic device, and a storage medium provided in the embodiments of the present application. When the error code information received from the server is designated information, the effectiveness of file management can be improved to a certain extent by triggering a download retry operation. Specifically, the user terminal can send a file download request to the server, and the server is used to send a configuration file of the user identification card of the user terminal to the user terminal based on the file download request. Then, when the user terminal determines that the error code information sent by the server is designated information, it can trigger a download retry operation, wherein the download retry operation includes sending a file download request to the server, and the designated information is used to characterize that the server has not generated the configuration file. When the present application determines that the error code information is designated information, by introducing a download retry operation, it can avoid unnecessary notification information from affecting the user's normal use of the terminal to a certain extent, thereby improving the user's experience. Among them, the specific file management method is described in detail in the subsequent embodiments.

[0025] Figure 1It is a structural diagram of a file management system according to an exemplary embodiment. The system includes a user terminal 101, a first server 102 and a second server 103, wherein the first server 102 and the second server 103 can be independent physical servers, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0026] In some embodiments, the first server 102 may also be referred to as an eSIM server, and the first server 102 may be an SM-DP+ server (Subscription Manager-data Preparation Plus Server), which is used to generate an eSIM configuration file and send the generated configuration file to the user terminal 101, that is, the first server 102 is used to prepare and store the configuration file package and provide the configuration file to the remote service of the device. In addition, the first server 102 may also be used for authentication, that is, when the first server 102 receives an activation code to obtain a file download request sent by the user terminal 101, it may first authenticate the activation code or the file download request, and only allow the generated configuration file to be sent to the user terminal 101 after the authentication is passed.

[0027] In other embodiments, the second server 103 may be referred to as an operator server, and the second server 103 may be a backend support system for resources (networks, devices, computer systems), which may include a professional network management system, a resource management system, a professional activation system, a service guarantee system, etc., to provide support means for reliable, secure and stable operation of the network. The second server 103 may receive the terminal information sent by the user terminal 101, and generate an activation code based on the terminal information, and finally the second server 103 may send the activation code generated by it to the user terminal 103.

[0028] In the embodiment of the present application, the user terminal 101 may be an electronic device, which may be a cellular phone, a smart phone, a smart speaker, a smart watch, a portable computer, a handheld communication device, a handheld computing device, a satellite radio device, a global positioning system, a PDA (Personal Digital Assistant) and / or any other suitable device for communicating on the wireless communication system 100, but is not limited thereto. The first server 102, the second server 103 and the user terminal 101 may be directly or indirectly connected via a wired network or a wireless network, and the present application does not limit this.

[0029] Optionally, the above-mentioned wireless network or wired network uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to any combination of local area network (LAN), metropolitan area network (MAN), wide area network (WAN), mobile, wired or wireless network, private network or virtual private network. In some embodiments, the data exchanged through the network is represented by technology and / or format including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec) can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technology can also be used to replace or supplement the above-mentioned data communication technology.

[0030] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of a file management method provided by an embodiment of the present application. In a specific embodiment, the file management method is applied to Figure 6 The file management device 600 shown in FIG. Figure 8 The electronic device 810 shown in FIG. Figure 2 The process shown is described in detail. The file management method can be specifically applied to a user terminal. The method may include steps 201 to S202.

[0031] Step S201: sending a file download request to a server, wherein the server is used to send a configuration file of a user identification card of the user terminal to the user terminal based on the file download request.

[0032] In an embodiment of the present application, a user terminal may send a file download request to a server, wherein the server is used to send a configuration file of a user identification card of the user terminal to the user terminal based on the file download request. The file download request may be generated by the user terminal after receiving a download instruction input by a user, that is, before sending the file download request to the server, the user terminal may detect whether a download instruction input by a user is received, wherein the download instruction is used to instruct the user terminal to obtain a configuration file. When the user terminal receives a download instruction input by a user, it may first detect whether the configuration file of the user identification card of the user terminal is stored in the user terminal, and if so, it may prompt the user that the configuration file has been downloaded.

[0033] In other implementations, the file download request may also be a request automatically triggered by the user terminal. Specifically, the file download request may be a request automatically triggered by the user terminal when receiving the activation code sent by the server, or may be a request automatically triggered by the user terminal after a preset time period after receiving the activation code sent by the server, or may be a request triggered when the user terminal detects the first operation instruction input by the user after receiving the activation code sent by the server. The first operation instruction may be an instruction such as click or slide.

[0034] As a method, the user identification card of the user terminal may include an embedded client identification card (eSIM card). The eSIM card is a programmable SIM card whose profile can be edited after leaving the factory. The eSIM card supports remote configuration of the eUICC card through Over-The-Air technology (OTA), and realizes the download, installation, activation, deactivation and deletion of the profile, thereby realizing flexible selection of multiple operators. It can be applied to scenarios such as batch service activation after the terminal leaves the factory, renewal of the service after expiration, change of contract, and change of operator during roaming. Among them, the profile contains user identification information, and the user identification information may include user identity, authentication parameters, operator customization parameters and service contract information. In addition, the download of the configuration file needs to comply with the SGP protocol of GSMA (Global System for Mobile Communications Association).

[0035] In some embodiments, if the user terminal does not store a configuration file of the user identification card, the embodiment of the present application may generate a file download request, send the file download request generated by the user terminal to the server, and instruct the server to send the configuration file of the user identification card of the user terminal to the user terminal based on the file download request, wherein the configuration file may be a file generated by the server after receiving the notification information sent by the operator server, and the notification information may include the eUICC chip identification (eUICC Identification, EID) of the user terminal, and may also include eSIM card data generated by the operator server, and the eSIM card data may include an integrated circuit card identification code (Integrate CircuitCard Identity, ICCID) and the like.

[0036] In some embodiments, the server may be an SM-DP+ server, which is mainly used to generate an eSIM configuration file and send the generated configuration file to the user terminal, that is, the SM-DP+ server is used to prepare, store the configuration file package and provide the configuration file to the remote service of the device. In addition, the SM-DP+ server can also be used for authentication, that is, when the user terminal sends a file download request to the SM-DP+ server, it can instruct the SM-DP+ server to first authenticate the file download request sent by the user terminal, and only allow the generated configuration file to be sent to the user terminal after the authentication is passed. Therefore, the server in the embodiment of the present application can be a contract relationship management data preparation platform, which is mainly used to provide a configuration file data download service for the communication module of the user terminal.

[0037] In a specific implementation, the user terminal may include an eSIM Local Profile Assistant (LPA) service module. LPA is an independent system application. The configuration files on the eSIM server are usually managed by LPA. Specifically, the user terminal may download, activate, and delete the configuration files through LPA.

[0038] Optionally, the embodiment of the present application can use LPA to download the configuration file to the eSIM card of the user terminal. LPA can generally include three parts, namely LDS (Local Discovery Service), LPD (Local Profile Download) and LUI (Local User Interface, LUI). Therefore, the main function of LDP is to obtain the event record about eUICC registered by the server (SM-DS+ server) from the server (SM-DS+ server). LPA acts as an agent between eUICC and the server (SM-DS+ server). It can obtain the data packet of the configuration file from the server (SM-DS+ server), and then transfer the data packet of the configuration file to the eUICC to provide the user with the function of configuration file management. Specifically, the management operation may include activation, deactivation, deletion, etc. of the configuration file.

[0039] In the embodiment of the present application, the user identification card of the user terminal may be an embedded user identification card, which may be an identification card that uses over-the-air download technology to remotely configure the embedded universal integrated circuit card of the user terminal, wherein the remote configuration may include downloading, installing, activating, deactivating, and deleting configuration files. In addition, different user terminals have different corresponding embedded universal integrated circuit card chip identifiers (eUICC Identification, EID), and the EID may also be referred to as the identity identifier of the user terminal.

[0040] In some embodiments, after the user terminal sends a file download request to the server, it can detect whether the data information sent by the server is received. If the data information sent by the server is received, it is determined whether the data information includes a configuration file. If the data information includes the configuration file, it means that the file download request is successfully responded to, that is, the configuration file is successfully downloaded. In addition, if the data information does not include the configuration file, the user terminal can determine whether the data information includes error code information. If the data information includes error code information, the embodiment of the present application can continue to determine whether the error code information is specified information. If the error code information sent by the server received by the user terminal is specified information, the download retry operation is triggered, that is, step S202 is entered.

[0041] In other implementations, if the error code information sent by the server received by the user terminal is not the specified information, the embodiment of the present application can output a third prompt information, and prompt the user that the configuration file download fails through the third prompt information, wherein the specified information is used for the standard server not to generate the configuration file. In addition, the embodiment of the present application can also prompt the user that the event or operation that caused the configuration file download failure is not the event or operation corresponding to the specified information.

[0042] In summary, when the user terminal receives the error code information sent by the server, it can first determine whether the error code information is the specified information. If it is, it triggers the download retry operation. If not, it outputs the third prompt information, which is used to prompt the user that the information received by the user terminal is the second information, and the second information can be used to indicate that the reason for the failure of the file download is the second reason. Among them, the second reason can be that the user terminal has successfully executed the configuration file download operation before, and after it obtains the configuration file, it receives the deletion operation input by the user. At this time, if the file download request is sent to the server again, the configuration file download may fail.

[0043] In addition, the second reason may also be that the identity of the user terminal does not match the preset identity, where the preset identity is the chip identifier of the user terminal bound to the configuration file, that is, when the user terminal handles the eSIM service, the identity of the user terminal will be bound to the configuration file. If the identity of the user terminal that currently triggers the download of the configuration file is inconsistent with the identity saved by the server, the configuration file download will fail.

[0044] It should be noted that the corresponding error codes are different depending on the reasons for the failure to download the configuration file, where the error code may include the main category of the error code (Subject Code), the subcategory of the error code (Reason Code), and the description of the error code (Description). For example, when the reason for the failure to download the configuration file is that the configuration file has not been generated at the server, the corresponding error code is—Subject Code: 8.2; Reason Code: 1.2; Description: Profile has not yet been released.

[0045] Step S202: If the error code information received from the server is specified information, a download retry operation is triggered.

[0046] In the embodiment of the present application, when the user terminal receives the error code information sent by the server, the embodiment of the present application can trigger a download retry operation, wherein the specified information is used to indicate that the server has not generated the configuration file, that is, the specified information can be a situation where the server has not generated the configuration file of the user identification card of the user terminal sent by the user terminal. In addition, the server has not generated the configuration file can be that the server has not started to perform the configuration file generation operation, or it can be that the operation of generating the configuration file is being performed but the operation has not been completed.

[0047] In a specific implementation, the download retry operation may include sending a file download request to a server. Specifically, after the user terminal sends the file download request to the server for the first time, it may determine whether an error code message sent by the server is received. If the error code message sent by the server is received, it may determine whether the error code message is specified information. If it is specified information, the user terminal may send a file download request to the server for a second time. If the error code message received from the server is not specified information, the user terminal may output a third prompt message, and prompt the user through the third prompt message that the configuration file download has failed, and the reason for the failure of the configuration file download does not include the situation where the error code is specified information, that is, the reason for the failure of the configuration file download is the second reason.

[0048] In other implementations, triggering a download retry operation may also be referred to as triggering a download retry mechanism, where the download retry mechanism is used to repeatedly send a file download request to the server when it is determined that the error code information sent by the server is specified information.

[0049] It should be noted that when the user terminal sends a file download request to the server, it can instruct the server to perform an authentication operation first, and when the authentication operation is passed, it can instruct the server to obtain the configuration file corresponding to the file download request. Among them, the authentication operation is mainly used to authenticate the legitimacy of the file download request, and the legitimacy authentication may include authenticating the device identification of the user terminal, authenticating the account of the user terminal, or authenticating the password sent by the user terminal.

[0050] As another way, when the download retry operation is triggered, the user terminal can send a file download request to the server again. During this process, the user terminal can instruct the server to perform an authentication operation first, and when the authentication operation passes, instruct the server to obtain the configuration file corresponding to the file download request. In the implementation mode of the present application, as long as the user terminal sends a file download request once, it can instruct the server to perform an authentication operation once, and only after the authentication operation passes can the user terminal instruct the server to obtain the configuration file, which can make the acquisition of the configuration file safer.

[0051] As another way, if the error code information received from the server is specified information, a download retry operation is triggered, and when the download retry operation is triggered, the user terminal can send a file download request to the server again. During this process, the user terminal can instruct the server to directly obtain the configuration file corresponding to the file download request. Because the server has performed an authentication operation when receiving the first file download request sent by the user terminal, when the download retry operation is triggered and the file download request is resent, the user terminal can directly instruct the server to obtain the configuration file corresponding to the file download request, thereby speeding up the acquisition of the configuration file.

[0052] As another way, if the error code information received from the server is the specified information, the download retry operation is triggered, and when the download retry operation is triggered, the user terminal can determine the difference between the current time and the time when the file download request was sent last time, and determine whether the difference is less than the preset time difference. If the difference is less than the preset time difference, the user terminal can instruct the server to directly obtain the configuration file corresponding to the file download request. If the difference between the current time and the time when the file download request was sent last time is greater than or equal to the preset time difference, the user terminal can instruct the server to perform the authentication operation first, and then instruct the server to obtain the configuration file corresponding to the file download request after the authentication operation is passed. In this way, not only can the speed of obtaining the configuration file be accelerated, but also the security of the configuration file can be guaranteed.

[0053] In some embodiments, if the error code information received from the server is specified information, the user terminal may output a second prompt information and trigger a download retry operation, wherein the second prompt information is used to prompt the user that the user terminal will resend the file download request to the server after a preset time period. In other words, when the error code information received from the server is specified information, the user terminal may output a second prompt information and may start a timer task at the same time, wherein the timer task is used to instruct the user terminal to resend the file download request to the server after a delay of a preset time period, that is, the user terminal may send a file download request to the server once every preset time period, wherein the preset time period may be fixed. For example, the user terminal may send a file download request to the server once every 30 minutes.

[0054] In addition, the preset time period may also be constantly changing, that is, the preset time period may increase as the number of times the file download request is sent increases. For example, if a file download request is sent once, the preset time period may increase by 10 minutes, the time interval between the first time the file download request is sent and the second time the file download request is sent may be 30 minutes, the time interval between the second time the file download request is sent and the third time the file download request is sent may be 40 minutes, and so on. The specific preset time period is not explicitly limited here and can be selected according to actual conditions.

[0055] A file management method proposed in an embodiment of the present application can improve the effectiveness of file management to a certain extent by triggering a download retry operation when the error code information received from the server is designated information. Specifically, the user terminal can send a file download request to the server, and the server is used to send a configuration file of the user identification card of the user terminal to the user terminal based on the file download request. Then, when the user terminal determines that the error code information sent by the server is designated information, it can trigger a download retry operation, wherein the download retry operation includes sending a file download request to the server, and the designated information is used to characterize that the server has not generated the configuration file. When the present application determines that the error code information is designated information, by introducing a download retry operation, it can avoid unnecessary notification information from affecting the user's normal use of the terminal to a certain extent, thereby improving the user's experience.

[0056] Another embodiment of the present application provides a file management method. Figure 3 The file management method may include steps S301 to S303.

[0057] Step S301: sending a file download request to a server, wherein the server is used to send a configuration file of a user identification card of the user terminal to the user terminal based on the file download request.

[0058] Step S302: If the error code information received from the server is specified information, the number of times the file download request is sent is obtained.

[0059] In some implementations, if the error code information received from the server is specified information, the embodiment of the present application can obtain the number of times the file download request is sent, and the number of times the file download request is sent can be the total number of times the user terminal sends the file download request to the server during the current file download operation. From the above introduction, it can be known that the specified information is mainly used to indicate that the server has not generated a configuration file, that is, when the error code information received by the user terminal is the error code information that the server has not generated a configuration file, the embodiment of the present application can trigger a download retry operation, wherein the specified information can be Subject Code: 8.2; Reason Code: 1.2; Description: Profile has not yet been released.

[0060] In an embodiment of the present application, after obtaining the number of times the file download request is sent, the user terminal can determine whether the number of times the file download request is sent is less than the preset number. If the number of times the file download request is sent is less than the preset number, the download retry operation is triggered and the number of times the file download request is updated until the number of times the file download request is sent is greater than or equal to the preset number, or until the configuration file sent by the server is received, then step S303 is entered.

[0061] Step S303: If the number of sending times is less than the preset number of times, the download retry operation is triggered, and the number of sending times is updated until the number of sending times is greater than or equal to the preset number of times, or until the configuration file sent by the server is received.

[0062] In an embodiment of the present application, if the number of times a file download request is sent is less than a preset number, a download retry operation can be triggered, and the number of times sent can be updated until the number of times sent is greater than or equal to the preset number, or the user terminal receives a configuration file sent by the server. As an example, after the user terminal sends a file download request to the server, if the error code information received from the server is specified information, a download retry operation is triggered, that is, the file download request is resent to the server, and the number of file download requests is updated to 2 at this time. After the user terminal sends the file download request to the server for the second time, it continues to detect whether the error code information received from the server is the specified information. If it is the specified information, the download retry operation is triggered again, that is, the file download request is sent to the server for the third time, and the number of file download requests is updated to 3 at this time, until the number of times the file download request is sent is greater than or equal to the preset number, then the sending of the file download request is stopped.

[0063] In an embodiment of the present application, the preset number of times may be pre-set by the user terminal before leaving the factory, or may be obtained according to the usage habits of the user corresponding to the user terminal, or may be obtained according to the current network information of the user terminal. As a way, when it is determined that the number of transmissions is less than the preset number of times, the embodiment of the present application may first obtain the duration of the user corresponding to the user terminal using the terminal, and determine whether the duration is less than the preset duration. If it is less than the preset duration, the default preset number of times may be increased to the target preset number of times. For example, if the user usually uses the user terminal for a short time, the preset number of times may be adjusted from 4 times to 6 times, or more. How to set the preset number of times is not explicitly limited here and can be selected according to actual conditions.

[0064] As another way, when it is determined that the number of transmissions is less than the preset number, the embodiment of the present application can first obtain the current network signal strength of the user terminal, and determine whether the network signal strength is less than the preset signal strength. If it is less, the default preset number can be increased to the target preset number. For example, the default preset number is 4 times, and the signal strength of the current environment of the user terminal is poor, and it is impossible to make a call normally, that is, it is impossible to seek help from the operator's customer normally. At this time, the default preset number can be adjusted to 6 times.

[0065] In other embodiments, if the number of transmissions is greater than or equal to the preset number of times, the user terminal may output a first prompt message, wherein the first prompt message may be used to prompt the user that the download of the configuration file has failed. In addition, when outputting the first prompt message, the user terminal may also output the reason for the download failure. Specifically, the user may output the reason for the failure to download the configuration file, which may be that the server has not generated a configuration file corresponding to the user identification card of the user terminal after multiple retries. At the same time, the embodiment of the present application may also inform the user to contact the operator through the first prompt message, so as to quickly and effectively solve the problem of download failure.

[0066] In other embodiments, if the error code received from the server is specified information, the embodiment of the present application can also obtain the number of times the file download request is sent within the specified time period, and determine whether the number of times the file download request is sent within the specified time period is less than the preset number. If it is determined that the number of times the file download request is sent within the specified time period is less than the preset number, the download retry operation is triggered, and the number of times is updated until the number of times is greater than or equal to the preset number, or exceeds the specified time period, or until the configuration file sent by the server is received, then the scheme of this embodiment is terminated. Among them, the starting time of the specified time period can be the time when the error code information sent by the server is received as the specified information, that is, when the error code information received from the server is the specified information, the user terminal can start a scheduled task, and the scheduled task can be started by the Android system interface of the user terminal, Alarm manager.

[0067] In the embodiment of the present application, the specified time period can be adjusted according to the actual test situation. When the error code information sent by the server is received as specified information, the user terminal can also determine whether the number of times the file download request is sent within the specified time period is less than the preset number. If it is less, the download retry operation is triggered and the number of times of sending is updated until the number of times of sending is greater than or equal to the preset number, or exceeds the specified time period, or until the configuration file sent by the server is received.

[0068] In addition, if the number of times the file download request is sent within the specified time period is greater than or equal to the preset number of times, or exceeds the specified time period, the embodiment of the present application can output a first prompt message, wherein the first prompt message is used to prompt the user that the configuration file download fails. In addition, when the user terminal outputs the first prompt message, it can also output the reason for the download failure. Specifically, the user can output the reason for the configuration file download failure, and the reason can be that the server has not generated the configuration file corresponding to the user identification card of the user terminal. At the same time, the embodiment of the present application can also inform the user to contact the operator through the first prompt message, so as to quickly and effectively solve the problem of download failure.

[0069] A file management method proposed in an embodiment of the present application can improve the effectiveness of file management to a certain extent by triggering a download retry operation when the error code information sent by the server is received as specified information. Specifically, the user terminal can send a file download request to the server, and the server is used to send the configuration file of the user identification card of the user terminal to the user terminal based on the file download request. Then, when the user terminal determines that the error code information sent by the server is specified information, it can trigger a download retry operation, wherein the download retry operation includes sending a file download request to the server, and the specified information is used to characterize that the server has not generated the configuration file. When determining that the error code information is specified information, the present application can avoid unnecessary notification information affecting the normal use of the user terminal to a certain extent by introducing a download retry operation, thereby improving the user's experience. In addition, the embodiment of the present application determines whether to end the repeated sending of the file download request by obtaining the number of times the file download request is sent, which can not only improve the efficiency of file acquisition, but also will not affect the normal use of the user terminal.

[0070] Another embodiment of the present application provides a file management method. Figure 4 The file management method may include steps S401 to 405.

[0071] Step S401: receiving an activation code sent by an operator server.

[0072] In the embodiment of the present application, the activation code may be a code value generated by the operator server based on the registration information when the operator server receives the registration information sent by the user terminal, wherein the registration information may include the chip identification (EID) corresponding to the user terminal and the registration request, etc. It can be known from the above introduction that the operator server is mainly used to handle different services for different users, and when receiving the user identification card, user number, etc. sent by the user terminal, an activation code may be generated accordingly. After the user terminal obtains the activation code sent by the operator server, it may store the activation code.

[0073] As a method, the activation code can be a code value generated by the operator server based on the registration information when the operator server receives the registration information sent by the user terminal, or it can be a code value generated by the operator server in combination with the identity identifier / chip identifier corresponding to the user identification card, user account, password, user number, etc.

[0074] Step S402: Generate the file download request based on the activation code, where the file download request is used to instruct the server to obtain a configuration file corresponding to the activation code.

[0075] In the embodiment of the present application, after obtaining the activation code, the user terminal can detect whether a download instruction input by the user is received, and if a download instruction input by the user is received, a file download request can be generated, and the file download request can include the activation code. The file download request is used to instruct the server to obtain a configuration file corresponding to the activation code.

[0076] Step S403: Send a file download request to a server, where the server is used to send a configuration file of a user identification card of the user terminal to the user terminal based on the file download request.

[0077] Step S404: If the error code information received from the server is designated information, the number of times the file download request is sent is obtained.

[0078] Step S405: If the number of sending times is less than the preset number of times, the download retry operation is triggered, and the number of sending times is updated until the number of sending times is greater than or equal to the preset number of times, or until the configuration file sent by the server is received.

[0079] In the embodiment of the present application, if the error code information received from the server is specified information, triggering the download retry operation may include: Figure 5 The steps shown are as follows: Figure 5 It can be seen that step S405 may include step S4051 to step S4052.

[0080] Step S4051: If the error code information received from the server is specified information, determine whether the activation code is still valid.

[0081] In the embodiment of the present application, whether the activation code is valid may include whether the activation code exists, whether the activation code remains unchanged, etc. If the activation code is not deleted and remains unchanged, the download retry operation can be triggered, and the number of sending times can be updated until the number of sending times is greater than or equal to the preset number of times, or until the configuration file sent by the server is received, that is, step S4052 is entered.

[0082] Step S4052: If the activation code is still valid, the download retry operation is triggered, and the sending times are updated until the sending times are greater than or equal to the preset times, or until the configuration file sent by the server is received.

[0083] In an embodiment of the present application, when the error code information received from the server is designated information and the activation code is determined to be valid, the embodiment of the present application can trigger the download retry operation and update the number of transmissions until the number of transmissions is greater than or equal to the preset number of times, or until the configuration file sent by the server is received, so that the configuration file finally obtained can be more accurate. In addition, if it is determined that the activation code received by the user terminal is invalid, the embodiment of the present application can cancel the download retry operation, that is, when the error code information received from the server is designated information and the activation code is deleted, the download retry operation is canceled; or when the error code information received from the server is designated information and the activation code is changed, the download retry operation is canceled. The reason for the change in the activation code may be that the user re-applies for eSIM-related services at the operator.

[0084] In other implementations, the user terminal may first determine whether the number of times the file download request is sent within a specified time period is less than a preset number of times. If it is less than the preset number of times, it may determine whether the activation code is still valid within the specified time period. If the activation code is still valid within the specified time period, a download retry operation is triggered. In addition, if the activation code is invalid within the specified time period, the download retry operation is canceled.

[0085] A file management method proposed in an embodiment of the present application can improve the effectiveness of file management to a certain extent by triggering a download retry operation when the error code information received from the server is designated information. Specifically, the user terminal can send a file download request to the server, and the server is used to send the configuration file of the user identification card of the user terminal to the user terminal based on the file download request. Then, when the user terminal determines that the error code information sent by the server is designated information, it can trigger a download retry operation, wherein the download retry operation includes sending a file download request to the server, and the designated information is used to characterize that the server has not generated the configuration file. When determining that the error code information is designated information, the present application can avoid unnecessary notification information affecting the user's normal use of the terminal to a certain extent by introducing a download retry operation, thereby improving the user's experience. In addition, the embodiment of the present application can make the download of the configuration file more accurate and effective by determining the validity of the activation code, that is, avoiding invalid download of the configuration file due to the failure of the activation code.

[0086] See also Figure 6 The present application embodiment provides a file management device 600, which can be applied to a user terminal. In a specific embodiment, the file management device 600 includes: a sending module 601 and a retry module 602.

[0087] The sending module 601 is used to send a file download request to a server, and the server is used to send a configuration file of a user identification card of the user terminal to the user terminal based on the file download request.

[0088] Furthermore, before sending a file download request to the server, the file management device 600 is also used to receive an activation code sent by the operator server, where the activation code is a code value generated by the operator server based on the registration information when the registration information sent by the user terminal is received; the file download request is generated based on the activation code, and the file download request is used to instruct the server to obtain a configuration file corresponding to the activation code.

[0089] Furthermore, the file management device 600 is also used to cancel the download retry operation if the activation code is invalid.

[0090] The retry module 602 is used to trigger a download retry operation if the error code information received from the server is specified information. The download retry operation includes sending the file download request to the server. The specified information is used to indicate that the server has not generated the configuration file.

[0091] See also Figure 7 The retry module 602 may include an acquisition unit 6021 and an update unit 6022 .

[0092] The acquisition unit 6021 is used to acquire the number of times the file download request is sent if the error code information received from the server is specified information.

[0093] The updating unit 6022 is used to trigger the download retry operation if the sending number is less than the preset number, and update the sending number until the sending number is greater than or equal to the preset number, or until the configuration file sent by the server is received.

[0094] Further, the designated information is used to indicate that the server has not generated the configuration file. The retry module 602 is also used to output a first prompt message if the number of sending times is greater than or equal to a preset number of times, and the first prompt message is used to prompt the user that the configuration file download fails.

[0095] Furthermore, the retry module 602 is also used to obtain the number of times the file download request is sent within a specified time period if the error code information received from the server is specified information; if the number of times the file download request is sent within the specified time period is less than a preset number, the download retry operation is triggered, and the number of times is updated until the number of times is greater than or equal to the preset number, or exceeds the specified time period, or until the configuration file sent by the server is received.

[0096] Furthermore, the retry module 602 is further configured to output a first prompt message if the number of times the file download request is sent within a specified time period is greater than or equal to a preset number, or exceeds the specified time period, wherein the first prompt message is configured to prompt the user that the configuration file download fails.

[0097] Furthermore, the retry module 602 is also used to output a second prompt message and trigger a download retry operation if the error code information received from the server is specified information. The second prompt message is used to prompt the user that the user terminal will resend the file download request to the server after a preset time period.

[0098] Optionally, the user identification card of the user terminal includes an embedded client identification card.

[0099] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0100] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0101] A file management device proposed in an embodiment of the present application can improve the effectiveness of file management to a certain extent by triggering a download retry operation when the error code information sent by the server is received as specified information. Specifically, the user terminal can send a file download request to the server, and the server is used to send a configuration file of the user identification card of the user terminal to the user terminal based on the file download request. Then, when the user terminal determines that the error code information sent by the server is specified information, it can trigger a download retry operation, wherein the download retry operation includes sending a file download request to the server, and the specified information is used to indicate that the server has not generated the configuration file. When the present application determines that the error code information is specified information, by introducing a download retry operation, it can avoid unnecessary notification information from affecting the user's normal use of the terminal to a certain extent, thereby improving the user's experience.

[0102] See also Figure 8, which shows a structural block diagram of an electronic device 800 provided in an embodiment of the present application. The electronic device 800 may be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, etc. The electronic device 800 in the present application may include one or more of the following components: a processor 810, a memory 820, and one or more applications, wherein the one or more applications may be stored in the memory 820 and configured to be executed by one or more processors 810, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.

[0103] The processor 810 may include one or more processing cores. The processor 810 uses various interfaces and lines to connect various parts of the entire electronic device 800, and executes various functions and processes data of the electronic device 800 by running or executing instructions, programs, code sets or instruction sets stored in the memory 820, and calling data stored in the memory 820. Optionally, the processor 810 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 810 can integrate one or a combination of a central processing unit (CPU), a voiceprint recognizer (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 810, but may be implemented separately through a communication chip.

[0104] The memory 820 may include a random access memory (RAM) or a read-only memory (ROM). The memory 820 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 820 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 800 during use.

[0105] See also Fig. 9, which shows a structural block diagram of a computer-readable storage medium 900 provided in an embodiment of the present application. The computer-readable storage medium 900 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0106] The computer-readable storage medium 900 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 900 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 900 has storage space for program code 910 that executes any method steps in the above method embodiment. These program codes can be read from or written to one or more computer program products. The program code 910 can be compressed, for example, in an appropriate form.

[0107] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A file management method, characterized in that: Applied to a user terminal, the method comprises: Sending a file download request to a server, wherein the server is used to send a configuration file of a user identification card of the user terminal to the user terminal based on the file download request; If the error code information received from the server is specified information, a download retry operation is triggered, wherein the download retry operation includes sending the file download request to the server, and the specified information is used to indicate that the server has not generated the configuration file, wherein different reasons for the failure to download the configuration file correspond to different error codes; If the error code information received from the server is not the specified information, a third prompt information is output, wherein the third prompt information is used to prompt that the configuration file download fails and the error code information is the second information, and the second information can be used to indicate that the reason for the failure to download the file is the second reason, wherein the second reason is not that the server did not generate the configuration file.

2. The method according to claim 1, characterized in that If the error code information received from the server is specified information, triggering a download retry operation includes: If the error code information received from the server is the specified information, the number of times the file download request is sent is obtained; If the number of sending times is less than the preset number of times, the download retry operation is triggered, and the number of sending times is updated until the number of sending times is greater than or equal to the preset number of times, or until the configuration file sent by the server is received.

3. The method according to claim 2, characterized in that The method further comprises: If the number of sending times is greater than or equal to the preset number of times, a first prompt message is output, where the first prompt message is used to prompt the user that the download of the configuration file has failed.

4. The method according to claim 2, characterized in that: If the error code information received from the server is specified information, triggering a download retry operation includes: If the error code information received from the server is specified information, the number of times the file download request is sent within the specified time period is obtained; If the number of times the file download request is sent within the specified time period is less than the preset number, the download retry operation is triggered and the sending number is updated until the sending number is greater than or equal to the preset number, or until the specified time period is exceeded, or until the configuration file sent by the server is received.

5. The method according to claim 4, characterized in that The method further comprises: If the number of times the file download request is sent within the specified time period is greater than or equal to the preset number, or exceeds the specified time period, a first prompt message is output, where the first prompt message is used to prompt the user that the configuration file download fails.

6. The method according to claim 1, characterized in that Before sending the file download request to the server, the method includes: Receiving an activation code sent by an operator server, wherein the activation code is a code value generated by the operator server based on the registration information when the operator server receives the registration information sent by the user terminal; The file download request is generated based on the activation code, and the file download request is used to instruct the server to obtain a configuration file corresponding to the activation code.

7. The method according to claim 6, characterized in that If the error code information received from the server is specified information, triggering a download retry operation includes: If the error code information received from the server is specified information, determining whether the activation code is still valid; If the activation code is still valid, the download retry operation is triggered.

8. The method according to claim 7, characterized in that The method further comprises: If the activation code is invalid, the download retry operation is canceled.

9. The method according to claim 1, characterized in that: The user identification card of the user terminal includes an embedded client identification card.

10. The method according to claim 1, wherein if the error code information received from the server is specified information, triggering a download retry operation comprises: If the error code information received from the server is specified information, a second prompt information is output and a download retry operation is triggered. The second prompt information is used to prompt the user that the user terminal will resend the file download request to the server after a preset time period.

11. A file management device, characterized in that: The device is applied to a user terminal, and the device includes: A sending module, used for sending a file download request to a server, wherein the server is used for sending a configuration file of a user identification card of the user terminal to the user terminal based on the file download request; A retry module is configured to trigger a download retry operation if the error code information received from the server is specified information, wherein the download retry operation includes sending the file download request to the server, and the specified information is used to indicate that the server has not generated the configuration file, wherein different reasons for failure to download the configuration file correspond to different error codes; and output a third prompt information if the error code information received from the server is not specified information, wherein the third prompt information is used to prompt that the configuration file download has failed and the error code information is second information, and the second information can be used to indicate that the reason for the failure to download the file is the second reason, wherein the second reason is not that the server has not generated the configuration file.

12. An electronic device, characterized in that: include: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the method according to any one of claims 1-10.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 10.