Method, device and storage medium for determining profile download failure

By obtaining the eSIM card's parsing function and error status code, and combining stack operations and key verification, the cause of the configuration file download failure is automatically determined, solving the problems of long processing time and low accuracy in existing technologies, and achieving fast and accurate troubleshooting.

CN116170792BActive Publication Date: 2026-03-27CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-10
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In existing technologies, when the eSIM card configuration file download fails, it mainly relies on manual analysis of log documents and code logic, which is time-consuming and has low accuracy.

Method used

By obtaining the eSIM card's parsing function and error status code, and combining stack operations and key verification, the reason for the configuration file download failure can be automatically determined.

Benefits of technology

It can quickly and accurately determine the cause of PE download failure, saving manual analysis time and improving troubleshooting efficiency and eSIM card compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116170792B_ABST
    Figure CN116170792B_ABST
Patent Text Reader

Abstract

The application discloses a method and device for determining configuration file download failure and a storage medium, and relates to the field of communication technology. The method comprises the following steps: in response to eSIM (embedded subscriber identity module) card failure in downloading a configuration file, acquiring a parsing function stored in the eSIM card and an error code of the configuration file download failure; the configuration file comprises a plurality of PE (configuration file element), different PEs correspond to different parsing functions, and the parsing function is used for parsing the corresponding PE; according to the parsing function stored in the eSIM card and the error code, the code of the PE parsing error is determined; and according to the code of the PE parsing error, the reason for the configuration file download failure is determined.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, and in particular to a configuration file download failure determination method and device and storage medium. BACKGROUND

[0002] With the continuous development and improvement of embedded subscriber identity module (eSIM) cards, device products configured with eSIM cards are gradually favored by operators and users. When configuring an eSIM card, the information of an operator is carried in the eSIM card in the form of profile elements (PEs), and when the PEs are correctly parsed and successfully downloaded into the eSIM card, the eSIM card can achieve the same communication function as a SIM card.

[0003] However, because the PE format is not fixed, the eSIM card will trigger an eSIM card error detection mechanism when downloading the PE, resulting in PE download failure. In the prior art, the causes of download failure are mostly analyzed by manually analyzing log documents, code logic and code flow. However, the manual method is relatively time-consuming and has a relatively low accuracy. SUMMARY

[0004] The present application provides a configuration file download failure determination method, device and storage medium for quickly and accurately determining PE download failure problems.

[0005] To achieve the above-mentioned purpose, the present application adopts the following technical solutions:

[0006] In a first aspect, a configuration file download failure determination method is provided, which includes: in response to eSIM card download failure, obtaining the parsing function stored in the eSIM card and the error state code of the configuration file download failure; the configuration file includes a plurality of PEs, and different PEs correspond to different parsing functions, and the parsing function is used to parse the corresponding PE; determining the code of the PE parsing error according to the parsing function stored in the eSIM card and the error state code; and determining the cause of the configuration file download failure according to the code of the PE parsing error.

[0007] In a possible implementation manner, the eSIM card is provided with a stack, and the stack is used to store the parsing function. The above-mentioned "obtaining the parsing function stored in the eSIM card" includes: obtaining the parsing function from the stack of the eSIM card according to a preset instruction, the preset instruction is used to trigger the eSIM to perform a pop operation, and the preset instruction includes an instruction category, an instruction code, a plurality of instruction parameters, a data bit string, a data bit string byte number, and a response data field expected maximum data byte number.

[0008] In a possible implementation, the "obtaining the parsing function from the stack of the eSIM card according to the preset instruction" includes: inputting a preset instruction to the eSIM; receiving stack-out data from the eSIM, the stack-out data including a tag value, a ciphertext, and a ciphertext length, the ciphertext including an encrypted parsing function; and decrypting the ciphertext to obtain the parsing function.

[0009] In a possible implementation, the "determining the code of the PE that fails to parse according to the parsing function and the error status code stored in the eSIM card" includes: determining an error step in the plurality of steps according to the error status code; and determining a PE that fails to parse in the error step and a code of the PE that fails to parse according to the parsing function.

[0010] In a possible implementation, the eSIM card is further configured to perform a stack-in operation on the parsing function corresponding to the PE in response to the PE that fails to parse.

[0011] In a possible implementation, the method further includes: performing key verification based on a master security domain of the eSIM card, before the "obtaining the parsing function from the stack of the eSIM card according to the preset instruction".

[0012] In a second aspect, a configuration file download failure determining apparatus is provided. The configuration file download failure determining apparatus can be a chip or a system on chip, and can also be a functional module for implementing the method of the first aspect or any possible implementation of the first aspect. The apparatus can implement the functions of the configuration file download failure determining apparatus in the above aspects or any possible implementation. The functions can be implemented by hardware or software. The hardware or software includes one or more modules corresponding to the functions. For example, the apparatus includes an obtaining unit, a determining unit, an inputting unit, a receiving unit, and a processing unit.

[0013] The obtaining unit is configured to obtain a parsing function stored in an embedded subscriber identity module (eSIM) card and an error status code of a configuration file download failure in response to a failure of the eSIM card in downloading the configuration file. The configuration file includes a plurality of configuration file elements (PEs), different PEs correspond to different parsing functions, and the parsing function is used to parse the corresponding PE.

[0014] The determining unit is configured to determine a code of a PE that fails to parse according to the parsing function stored in the eSIM card and the error status code.

[0015] The determining unit is further configured to determine a reason of the configuration file download failure according to the code of the PE that fails to parse.

[0016] In a possible implementation, the obtaining unit is specifically configured to: obtain the parsing function from the stack of the eSIM card according to a preset instruction, the preset instruction being used to trigger the eSIM to perform a pop operation, the preset instruction including an instruction category, an instruction code, a plurality of instruction parameters, a data bit string, a data bit string byte number, and a maximum data byte number expected in a response data field.

[0017] In a possible implementation, the input unit is configured to input a preset instruction to the eSIM, the receiving unit is configured to receive pop data from the eSIM, the pop data including a tag value, a ciphertext, and a ciphertext length, the ciphertext including an encrypted parsing function, and the processing unit is configured to decrypt the ciphertext to obtain the parsing function.

[0018] In a possible implementation, the determining unit is specifically configured to: determine an error step in the plurality of steps according to the error status code, and determine a PE that fails to parse in the error step and a code in which the PE fails to parse according to the parsing function.

[0019] In a possible implementation, the processing unit is further configured to: perform key verification based on a master security domain of the eSIM card.

[0020] In a third aspect, a configuration file download failure determination apparatus is provided. The apparatus can be the configuration file download failure determination apparatus or a chip or system on chip in the configuration file download failure determination apparatus. The apparatus can implement the functions of the configuration file download failure determination apparatus in the above aspects or possible designs, which can be implemented by hardware. In a possible design, the apparatus can include a processor and a communication interface. The processor can be configured to support the configuration file download failure determination apparatus to implement the functions in the first aspect or any possible design of the first aspect.

[0021] In another possible design, the configuration file download failure determination apparatus can further include a memory configured to store computer-executable instructions and data necessary for the configuration file download failure determination apparatus. When the apparatus is running, the processor executes the computer-executable instructions stored in the memory, so that the apparatus performs the configuration file download failure determination method in the first aspect or any possible design of the first aspect.

[0022] In a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium can be a readable nonvolatile storage medium, and stores computer instructions or programs. When the computer instructions or programs are run on a computer, the computer can perform the configuration file download failure determination method in the first aspect or any possible design of the first aspect.

[0023] In a fifth aspect, a computer program product including instructions, which, when executed on a computer, cause the computer to perform the profile download failure determination method of the first aspect or any possible design of the first aspect.

[0024] In a sixth aspect, a profile download failure determination apparatus is provided. The apparatus can be a profile download failure determination apparatus or a chip or system on chip in a profile download failure determination apparatus. The apparatus includes one or more processors and one or more memories. The one or more memories are coupled to the one or more processors. The one or more memories are configured to store computer program codes. The computer program codes include computer instructions. When the one or more processors execute the computer instructions, the profile download failure determination apparatus performs the profile download failure determination method of the first aspect or any possible design of the first aspect.

[0025] In a seventh aspect, a chip system is provided. The chip system includes a processor and a communication interface. The chip system can be used to implement the functions performed by the profile download failure determination apparatus of the first aspect or any possible design of the first aspect. In a possible design, the chip system further includes a memory. The memory is configured to store program instructions and / or data. The chip system can be composed of a chip or include a chip and other discrete devices, which are not limited. BRIEF DESCRIPTION OF DRAWINGS

[0026] Figure 1 A structural diagram of a profile download failure determination system provided by an embodiment of the present application;

[0027] Figure 2 A structural diagram of a profile download failure determination apparatus 200 provided by an embodiment of the present application;

[0028] Figure 3 A flow diagram of a profile download failure determination method provided by an embodiment of the present application;

[0029] Figure 4 A flow diagram of another profile download failure determination method provided by an embodiment of the present application;

[0030] Figure 5 A structural diagram of a profile download failure determination apparatus 50 provided by an embodiment of the present application;

[0031] Figure 6 A step diagram of parsing a plurality of PEs provided by an embodiment of the present application;

[0032] Figure 7 A stack structure schematic diagram provided for an embodiment of the present application;

[0033] Figure 8 A configuration file parsing process schematic diagram provided for an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order for the ordinary person in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings.

[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation described in the following exemplary embodiments does not represent all implementations consistent with the present disclosure. Rather, they are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the appended claims.

[0036] It should also be understood that the term "comprising" indicates the presence of described features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, and / or components.

[0037] When the eSIM card downloads the configuration file, the format of the configuration file is not fixed, so the configuration file cannot be successfully downloaded into the eSIM card. And the configuration file data is terminal equipment and subscription management data preparation (SM-DP)+, and is encrypted ciphertext through SCP03t, in the case of no plaintext data, analyzing the cause of download failure becomes a problem that operators urgently need to solve.

[0038] Based on the java card stack mechanism, the present application proposes a method for determining configuration file download failure, which can quickly and accurately locate the PE download failure problem by obtaining the profile analysis function and combining the log document and the profile download error status code. Thus, the time for manually analyzing the code logic and the code flow is saved, the troubleshooting efficiency is improved, and the compatibility of the eSIM card is improved.

[0039] The method for determining configuration file download failure provided by the embodiments of the present application will be described in detail below in conjunction with the drawings.

[0040] For example, Figure 1This is a schematic diagram of a system for determining configuration file download failure, provided in an embodiment of this application. The system may include a terminal, a profile server, and an eSIM card in the terminal, with the terminal connected to the profile server.

[0041] The terminal is used to install / configure the eSIM card. Specifically, the terminal can be a mobile phone, tablet computer, or computer with wireless transceiver capabilities. It can also be a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a wireless terminal in autonomous driving, a wireless terminal in telemedicine, a wireless terminal in a smart grid, a wireless terminal in a smart city, a smart home, or an in-vehicle terminal, etc.

[0042] The eSIM card is used to obtain a configuration file sent by the profile server. When operator information is carried in the eSIM card in the form of a profile configuration file, the eSIM can have the same communication functions as a SIM card.

[0043] The profile server is used to send configuration files to the terminal. In some embodiments, the server can be a single server, or a server cluster consisting of multiple servers. In some implementations, the server cluster can also be a distributed cluster. This application does not limit the specific implementation of the server.

[0044] It should be noted that the system described in the embodiments of this application is for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and does not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of systems and the emergence of other communication systems, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0045] In one example, this application embodiment also provides a device for determining when a configuration file download fails (hereinafter referred to as the determining device for ease of description), which can be used to execute the method of this application embodiment.

[0046] For example, such as Figure 2 The diagram shown is a schematic representation of the composition of a determining device 200 provided in an embodiment of this application. The determining device 200 may include a processor 201, a communication interface 202, and a communication line 203.

[0047] Furthermore, the determining device 200 may also include a memory 204. The processor 201, memory 204, and communication interface 202 can be connected via a communication line 203.

[0048] The processor 201 can be a CPU, a general-purpose processor, a network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD) or any combination thereof. The processor 201 can also be other devices with processing capability, such as a circuit, a device or a software module, without limitation.

[0049] The communication interface 202 is configured to communicate with other devices or other communication networks. The communication interface 202 can be a module, a circuit, a communication interface or any device capable of communication.

[0050] The communication line 203 is configured to transmit information between components included in the determination apparatus 200.

[0051] The memory 204 is configured to store instructions. The instructions can be a computer program.

[0052] The memory 204 can be a read-only memory (ROM) or other type of static storage device that can store static information and / or instructions, or a random access memory (RAM) or other type of dynamic storage device that can store information and / or instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, a magneto-optical disk, a magnetic disk storage or other magnetic storage devices, etc., without limitation.

[0053] It should be noted that the memory 204 can exist independently of the processor 201, or can be integrated with the processor 201. The memory 204 can be used to store instructions or program codes or some data, etc. The memory 204 can be located in the determination apparatus 200, or can be located outside the determination apparatus 200, without limitation. The processor 201 is configured to execute the instructions stored in the memory 204 to implement the configuration file download failure determination method provided in the embodiments described below.

[0054] In an example, the processor 201 can include one or more CPUs, for example, Figure 2CPU0 and CPU1 in the CPU0 and CPU1.

[0055] As an optional implementation, the determining apparatus 200 comprises a plurality of processors, for example, in addition to the processor 201 in the processor 201. Figure 2 The determining apparatus 200 can further comprise a processor 207 in addition to the processor 201 in the processor 201.

[0056] As an optional implementation, the determining apparatus 200 further comprises an output device 205 and an input device 206. Exemplarily, the input device 206 is a keyboard, a mouse, a microphone, a joystick or the like, and the output device 205 is a display screen, a speaker or the like.

[0057] It should be noted that the determining apparatus 200 can be a desktop computer, a portable computer, a network server, a mobile phone, a tablet computer, a wireless terminal, an embedded device, a chip system or a device having a similar structure in the chip system. Figure 2 The constituent structure shown in the chip system is not limited, and in addition to the components shown in the chip system, Figure 2 more or less components, or combines some components, or different component arrangements. Figure 2 Figure 2

[0058] In the embodiments of the present application, the chip system can be composed of a chip, or can comprise a chip and other discrete devices.

[0059] In addition, the actions, terms and the like involved among the embodiments of the present application can be mutually referred to, and are not limited. The message name or parameter name in the message exchanged between the devices in the embodiments of the present application is only an example, and other names can also be used in the specific implementation, and are not limited.

[0060] In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the same items or similar items having basically the same functions and effects are distinguished by using the words "first", "second" and the like. The skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily mean different.

[0061] It should be noted that in the present application, the words "exemplary" or "for example" are used to indicate an example, illustration or description. Any embodiment or design scheme described as "exemplary" or "for example" in the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the words "exemplary" or "for example" are intended to present the relevant concept in a specific manner.

[0062] ​​In this application, "at least one" means one or more, and "more" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0063] The following is combined Figure 1 The system for determining configuration file download failure shown herein describes the method for determining configuration file download failure provided in the embodiments of this application. The actions, terminology, etc., involved in the various embodiments of this application can be referred to mutually without limitation. The message names or parameter names in the messages exchanged between various devices in the embodiments of this application are merely examples; other names can be used in specific implementations without limitation. The actions involved in the various embodiments of this application are merely examples; other names can be used in specific implementations, such as "included in" in the embodiments of this application, which can also be replaced with "carried on" or "carried in," etc.

[0064] like Figure 3 As shown, this application provides a method for determining configuration file download failure, the method comprising:

[0065] S301. In response to the failure of the embedded user identification module to download the eSIM card configuration file, obtain the parsing function stored in the eSIM card and the error status code of the configuration file download failure.

[0066] The configuration file includes multiple Private Servers (PEs). For example, these PEs may include a ProfileHeader, File System, PE Authentication and Key Protocol Parameters (PE-AKAParameters), PE Personal Identification Codes (PE-PINCodes), PE PIN Unlock Codes (PE-PUKCodes), PE Security Domain, PE Application, PE Remote File Update Configuration (PE-RFM), and PE End. Figure 6 The steps for parsing multiple PEs are shown below.

[0067] The Profile Header includes profile version information, profile type, and the like. The File system is used to define the file structure of the profile. The PE-AKAParameters includes operator authentication parameters. The PE-PINCodes is used to control file reading, writing, disabling, activating, and the like. The PE-PUKCodes is used for PIN code unlocking. The PE-SecurityDomain is used for security domain configuration. The PE-Application is used for application configuration. The PE-RFM is used for remote file update configuration. The PE-End is a flag indicating the end of parsing.

[0068] In an example, in international specifications, these PEs are defined using the ASN.1 format, encoded using the TLV (tag length value) structure, and the encoded result is a hexadecimal number, similar to the following structure (the right side is the content used during downloading). As shown in Table 1, the left side is the ASN.1 format corresponding to the Profile header, and the right side is the TLV structure corresponding to the Profile header, wherein the encoding format of the obtained TLV structure is a hexadecimal number. For example, the hexadecimal number A0 is converted into the decimal number 160.

[0069] Table 1: ASN.1 format and TLV structure corresponding to the Profile header

[0070]

[0071]

[0072] Different PEs correspond to different parsing functions. The parsing functions are used to parse the corresponding PE. For example, the parsing functions include a ProfileHeader parsing function, a File system parsing function, a PE-AKAParameters parsing function, a PE-PINCodes parsing function, a PE-PUKCodes parsing function, a PE-SecurityDomain parsing function, a PE-Application parsing function, a PE-RFM parsing function, and a PE-End parsing function.

[0073] In an example, the process of parsing the PE can be as follows: the eSIM card obtains a plurality of PEs of a configuration file, and identifies the data type of the PE according to the tag length value (TLV) of the PE. According to different PEs, the corresponding parsing function of the PE is called for parsing. If the PE has an error, the position and reason of the error are obtained through parsing. If the PE does not have an error, the parsing result is empty.

[0074] The error status code can be used to indicate a specific step of the failed profile download. The profile download process can include multiple steps. Different error status codes correspond to different steps of the failed download.

[0075] The profile download process includes four steps: Initialising Secure Channel, Configuring ISDP, Storing Metadata, and Loading Profile Elements.

[0076] The first three steps are preparatory work for authentication and download of the card and server. The step of Loading Profile Elements is used to parse the downloaded profile.

[0077] In an example, the error status code corresponding to the failed Initialising Secure Channel can be 101, the error status code corresponding to the failed Configuring ISDP can be 102, the error status code corresponding to the failed Storing Metadata can be 103, and the error status code corresponding to the failed Loading Profile Elements can be 104.

[0078] In a possible implementation, the terminal can obtain the parsing function stored in the eSIM card according to a preset instruction. For details, refer to the description of S401-S403, which will not be repeated here.

[0079] S302, determining the error code of the PE according to the parsing function stored in the eSIM card and the error status code.

[0080] In a possible implementation, the terminal determines the step of the failed profile download according to the error status code, determines the error parsing function and the TLV structure corresponding to the PE in the failed step, and compares the failed TLV structure with the original code to determine the error code of the PE.

[0081] S303, determining the reason for the failed profile download according to the error code of the PE.

[0082] The reason for the failed profile download can include code writing errors, profile damage, and the like.

[0083] For example, when the Profile header is in error, the terminal can detect the specific cause of the error. For example, when the usim NULL is in error, error code 01 indicates a code writing error, and error code 02 indicates that the configuration file is damaged.

[0084] Based on Figure 3 the technical solutions, the embodiments of the present application obtain the parsing function stored in the eSIM card and the error status code of the configuration file download failure through the preset instruction, determine the code of the PE parsing error, and further determine the cause of the configuration file download failure. Compared with the manual mode, the time for manually analyzing the code logic and the code flow can be saved, and the accuracy of error troubleshooting is improved.

[0085] In some embodiments, as shown in Figure 4 , in S301, the parsing function stored in the eSIM card can specifically include S401-S402.

[0086] S401, the terminal inputs a preset instruction to the eSIM card. Correspondingly, the eSIM receives the preset instruction from the terminal.

[0087] The preset instruction includes a plurality of fields. For example, the plurality of fields can include: the instruction category CLA of the command message, the instruction code INS, the instruction parameters P1 and P2, the number of bytes Lc present in the instruction data field, the data bit string data sent by the instruction, and the maximum number of data bytes Le expected in the response data field.

[0088] For example, the preset instruction format can be as shown in Table 2:

[0089] Table 2: Preset instruction format

[0090] CLA INS P1 P2 Lc data Le 0x80 0xE2 0x91 0x00 0x02 0xDF7D 00

[0091] In Table 2, the corresponding field values under the field are different, the instructions are different, and the functions are also different. For example, when CLA is A0 and INS is A4, it indicates that the instruction is SELECT, and the function is to select a file.

[0092] It should be noted that the data in Table 2 is exemplary, and the present application does not specifically limit the data in the table.

[0093] S402, the eSIM card performs a stack out operation according to the preset instruction, and sends the stack out data to the terminal. Correspondingly, the terminal receives the stack out data from the eSIM card.

[0094] The stack out data includes a tag value, a ciphertext, and a ciphertext length, and the ciphertext includes an encrypted parsing function. The tag represents the identification of the PE, and the ciphertext includes the encrypted PE and the parsing function.

[0095] The eSIM card is provided with a stack, which is used to store the parsing function and the error PE.

[0096] The structure of the provided stack can be as shown in Figure 7 The stack operation includes push and pop, the push refers to the eSIM card storing the parsing function, and the pop refers to the terminal acquiring the stored parsing function and error PE.

[0097] It should be noted that if the PE parsing is incorrect, the data pushed in includes the parsing function and the error PE identifier, and the PE identifier is used to facilitate the staff to analyze the error cause. If the PE parsing is correct, the data pushed in is the parsing function, and after all the PEs are downloaded, the eSIM card deletes all the saved parsing functions.

[0098] In an example, when the ProfileHeader in the PE is incorrect, the data pushed in is the profile parsing function and the error ProfileHeader identifier, the ProfileHeader parsing function can be 1XXXXXXXX, and the ProfileHeader identifier is A0, 41, 80, 01, 03.

[0099] In a possible implementation, the eSIM card uses different parsing functions to parse different PEs, and the eSIM card calls the function SaveStackTop to store the profile parsing function and the error PE for each profile parsing function, as shown in Figure 8 If an error occurs in the parsing process, the error data and the corresponding function are saved, and the storage is stopped, and after the stack data is popped, the saved data is deleted. If no error occurs in the parsing process, the corresponding profile parsing function is stored, and after the download is completed, the saved stack data is deleted.

[0100] In a scenario, the terminal decrypts the ciphertext to obtain the parsing function. The terminal selects the main security domain (ISD-R) in the eSIM card to establish a secure channel with the eSIM card, and performs key verification. Through the established secure channel, the eSIM card generates a key and sends it to the terminal, and the terminal compares the key in the terminal database. If the keys are the same, it means that the key verification is successful. After the verification is successful, the eSIM card sends the ciphertext to the terminal, and the terminal decrypts the ciphertext to obtain the parsing function.

[0101] For example, the decrypted PE and the parsing function can be A0, 41, 80, 01, 03 and 1XXXXX.

[0102] In another scenario, when the key check succeeds, the eSIM card sends the stored data to the terminal in a form other than ciphertext, and the terminal does not need to perform decryption after receiving the data. The terminal can directly obtain the parsing function.

[0103] Based on the technical solution of the eSIM card, in response to a parsing PE error, the eSIM card performs stack out and stack in operations on the parsing function corresponding to the PE, and then stores the parsing function in the eSIM card, thereby facilitating the terminal to obtain the parsing function. The terminal can quickly determine the error code and the reason for the download failure according to the obtained parsing function. Figure 4

[0104] The embodiments of the present application can divide the function modules or function units of the determination apparatus according to the above-mentioned method examples. For example, each function module or function unit can be divided according to each function, or two or more functions can be integrated in one processing module. The above-mentioned integrated module can be realized in the form of hardware or software function module or function unit. In the embodiments of the present application, the division of the modules or units is illustrative, and is only a logical function division. In actual implementation, another division mode can be used.

[0105] In the case of dividing each function module according to each function, Figure 5 A structural schematic diagram of a determination apparatus 50 is shown, which can be used to execute the functions involved in the above-mentioned embodiments. Figure 5 The determination apparatus 50 shown can include an obtaining unit 501, a determining unit 502, an input unit 503, a receiving unit 504, and a processing unit 505.

[0106] The obtaining unit 501 is configured to, in response to a failure of an embedded subscriber identity module (eSIM) card to download a configuration file, obtain a parsing function stored in the eSIM card and an error state code of a failure of the configuration file to be downloaded. The configuration file includes a plurality of configuration file elements (PEs), different PEs correspond to different parsing functions, and the parsing function is used to parse the corresponding PE.

[0107] The determining unit 502 is configured to determine, according to the parsing function stored in the eSIM card and the error state code, an error code of the PE.

[0108] The determining unit 502 is further configured to determine, according to the error code of the PE, a reason for the failure of the configuration file to be downloaded.

[0109] ​In a possible implementation, the obtaining unit 501 is specifically configured to: obtain the parsing function from the stack of the eSIM card according to a preset instruction, the preset instruction being used to trigger the eSIM to perform a pop operation, and the preset instruction including an instruction category, an instruction code, a plurality of instruction parameters, a data bit string, a data bit string byte number, and a maximum data byte number expected in a response data field.

[0110] In a possible implementation, the input unit 503 is configured to input the preset instruction to the eSIM, the receiving unit 504 is configured to receive pop data from the eSIM, the pop data including a tag value, a ciphertext, and a ciphertext length, the ciphertext including the encrypted parsing function, and the processing unit 505 is configured to decrypt the ciphertext to obtain the parsing function.

[0111] In a possible implementation, the determining unit 502 is specifically configured to: determine an error step in the plurality of steps according to an error status code, and determine a PE that fails to parse in the error step and a code that causes the PE to fail to parse according to the parsing function.

[0112] In a possible implementation, the processing unit 505 is further configured to: perform key verification based on a main security domain of the eSIM card.

[0113] As another possible implementation, Figure 5 The processing unit 505 in the foregoing embodiment can be replaced by a processor, and the processor can integrate the functions of the processing unit 505.

[0114] Further, when the processing unit 505 is replaced by the processor, the determining apparatus 50 related to the embodiment of the present application can be a determining apparatus 200 as shown in Figure 2

[0115] ​The embodiments of the present application further provide a computer readable storage medium. All or part of the processes of the above method embodiments can be instructed by a computer program to relevant hardware to complete, the program can be stored in the above computer readable storage medium, and the program can include the processes of the above method embodiments when executed. The computer readable storage medium can be an internal storage unit of the communication device (including the data sending end and / or the data receiving end) of any of the above embodiments, such as a hard disk or a memory of the communication device. The above computer readable storage medium can also be an external storage device of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device. Further, the above computer readable storage medium can include both the internal storage unit and the external storage device of the communication device. The above computer readable storage medium is used to store the above computer program and other programs and data required by the communication device. The above computer readable storage medium can also be used to temporarily store data that has been output or will be output.

[0116] It should be noted that the terms "first" and "second" and the like in the specification, claims and drawings of the present application are intended to distinguish different objects, and are not intended to describe a particular order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed or can optionally include other steps or units inherent to the process, method, product or device.

[0117] From the above description of the embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is exemplified, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions.

[0118] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented by other manners. For example, the apparatus embodiments described above are merely illustrative, for example, the division of the modules or units is merely a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another apparatus, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units or components shown or discussed can be indirect coupling or communication connection through some interfaces, apparatuses or units, and can be electrical, mechanical or other forms.

[0119] The units described as separate components can or can not be physically separate, and the components shown as units can be one physical unit or a plurality of physical units, that is, can be located in one place, or can be distributed to a plurality of different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.

[0120] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0121] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application essentially or the part of the prior art that contributes to the technical solutions or the whole or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for causing an apparatus (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the method described in the embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various storage program codes.

[0122] The above is merely a specific implementation of the present application, but the protection scope of the present application is not limited thereto, and any change or replacement within the technical scope disclosed in the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for determining configuration file download failure, characterized in that, The method includes: In response to the failure of the embedded user identification module (eSIM) to download the configuration file, the parsing function stored in the eSIM and the error status code of the configuration file download failure are obtained; the configuration file includes multiple configuration file elements (PEs), different PEs correspond to different parsing functions, and the parsing function is used to parse the corresponding PE; the eSIM download of the configuration file includes multiple steps, and the error status code is used to indicate the specific steps in which the configuration file download failed; Based on the error status code, determine the erroneous step among the plurality of steps; In the error-prone step, the erroneous parsing function and the TLV structure corresponding to the erroneous PE are determined; Compare the TLV structure corresponding to the erroneous PE with the original code to determine the code that the PE parsed incorrectly. Based on the error code parsed by the PE, the reason for the failure to download the configuration file was determined.

2. The method according to claim 1, characterized in that, The eSIM card has a stack for storing parsing functions. Obtaining the parsing functions stored in the eSIM card includes: The parsing function is retrieved from the stack of the eSIM card according to a preset instruction. The preset instruction is used to trigger the eSIM to perform a pop operation. The preset instruction includes an instruction type, instruction code, multiple instruction parameters, data bit string, number of bytes in the data bit string, and the maximum expected number of data bytes in the response data field.

3. The method according to claim 2, characterized in that, The step of retrieving the parsing function from the stack of the eSIM card according to a preset instruction includes: Input the preset command into the eSIM; Receive pop data from the eSIM, the pop data including tag value, ciphertext and ciphertext length, the ciphertext including encrypted parsing function; The ciphertext is decrypted to obtain the parsing function.

4. The method according to claim 2, characterized in that, The eSIM card is also used to perform a stack operation on the parsing function corresponding to the PE in response to a parsing PE error.

5. The method according to claim 2 or 3, characterized in that, Before retrieving the parsing function from the stack of the eSIM card according to preset instructions, the method further includes: Key verification is performed based on the main security domain of the eSIM card.

6. A device for determining configuration file download failure, characterized in that, The device includes: The acquisition unit is used to acquire the parsing function stored in the eSIM card and the error status code of the configuration file download failure in response to the failure of the embedded user identification module eSIM card to download the configuration file; the configuration file includes multiple configuration file elements PE, different PEs correspond to different parsing functions, and the parsing function is used to parse the corresponding PE; the eSIM card downloading the configuration file includes multiple steps, and the error status code is used to indicate the specific steps in which the configuration file download failed; The determining unit is configured to determine the erroneous step among the plurality of steps based on the error status code; determine the erroneous parsing function and the TLV structure corresponding to the erroneous PE in the erroneous step; and compare the TLV structure corresponding to the erroneous PE with the original code to determine the code that PE parsed incorrectly. The determining unit is further configured to determine the reason for the failure to download the configuration file based on the code that caused the PE parsing error.

7. The apparatus according to claim 6, characterized in that, The acquisition unit is specifically used for: The parsing function is retrieved from the stack of the eSIM card according to a preset instruction. The preset instruction is used to trigger the eSIM to perform a pop operation. The preset instruction includes an instruction type, instruction code, multiple instruction parameters, data bit string, number of bytes in the data bit string, and the maximum expected number of data bytes in the response data field.

8. The apparatus according to claim 7, characterized in that, The device further includes: An input unit is used to input the preset command into the eSIM; The receiving unit is configured to receive popped data from the eSIM, the popped data including a tag value, ciphertext, and ciphertext length, the ciphertext including an encrypted parsing function; The processing unit is used to decrypt the ciphertext to obtain the parsing function.

9. The apparatus according to claim 7, characterized in that, The eSIM card is also used to perform a stack operation on the parsing function corresponding to the PE in response to a parsing PE error.

10. The apparatus according to claim 7 or 8, characterized in that, The device further includes a processing unit, the processing unit being used for: Key verification is performed based on the main security domain of the eSIM card.

11. A computer-readable storage medium, characterized in that, The readable storage medium stores instructions that, when executed, implement the method as described in any one of claims 1-5.

12. A device for determining configuration file download failure, characterized in that, include: A processor coupled to a memory for storing one or more programs, the one or more programs including computer-executable instructions, wherein when the device is running, the processor executes the computer-executable instructions stored in the memory to cause the device to perform the method of any one of claims 1-5.

Citation Information

Patent Citations

  • Parameter configuration code generation method and device, electronic product and storage medium

    CN111026404A

  • Online upgrading method and device of vehicle-mounted controller, vehicle and storage medium

    CN114327543A