CN117014860B - Method and device for downloading configuration file, ESIM card and storage medium - Google Patents
Method and device for downloading configuration file, ESIM card and storage medium Download PDFInfo
- Publication number
- CN117014860B CN117014860B CN202311261610.2A CN202311261610A CN117014860B CN 117014860 B CN117014860 B CN 117014860B CN 202311261610 A CN202311261610 A CN 202311261610A CN 117014860 B CN117014860 B CN 117014860B
- Authority
- CN
- China
- Prior art keywords
- profile
- downloaded
- file
- information
- independent data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000003860 storage Methods 0.000 title claims abstract description 41
- 238000004458 analytical method Methods 0.000 claims description 24
- 238000005457 optimization Methods 0.000 abstract description 7
- 238000013507 mapping Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 13
- 238000004891 communication Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 238000013500 data storage Methods 0.000 description 6
- 238000004590 computer program Methods 0.000 description 4
- 238000007726 management method Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000013075 data extraction Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/20—Transfer of user or subscriber data
- H04W8/205—Transfer to or from user equipment or user record carrier
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application relates to the technical field of the Internet of things and discloses a method for downloading configuration files, which comprises the following steps: and acquiring version information of the Profile to be downloaded and independent data template information. And determining attribute information and downloading type of the Profile to be downloaded according to the version information. And under the condition that the attribute information is master-slave Profile and the download type is download from the Profile, acquiring an independent data template corresponding to the independent data template information. And extracting data of the Profile to be downloaded according to the independent data template. Thus, the shared data in the Profile to be downloaded can be ignored, and only the independent data can be extracted. Therefore, the file storage space in the ESIM card is saved, and the optimization of the file storage space of the ESIM card is realized. The application also discloses a device for downloading the configuration file, an ESIM card and a storage medium.
Description
Technical Field
The present application relates to the technical field of the internet of things, for example, to a method and an apparatus for downloading a configuration file, an ESIM card, and a storage medium.
Background
As more and more smart cards are applied to electronic devices such as vehicle-mounted devices, security inspection devices and wearable devices, the higher the requirement on the file storage space of the smart card is. ESIM (Embedded Subscriber Identity Module), embedded subscriber identity module) technology is also increasingly being used in a variety of electronic products. Each Profile in the ESIM card is a card resource, and the resource of each Profile is stored independently. In the case where the card resources in Profile are the same operator, the structure and data of Profile are substantially the same, with only personalized data being different.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art:
in the related art, because the file storage space in the ESIM card is limited, and each Profile exists and is used independently in the downloading process of the Profile. This results in the same data in each Profile occupying file storage space in the ESIM card, thereby resulting in wasted resources in the file storage space.
It should be noted that the information disclosed in the foregoing background section is only for enhancing understanding of the background of the present application and thus may include information that does not form the prior art that is already known to those of ordinary skill in the art.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview, and is intended to neither identify key/critical elements nor delineate the scope of such embodiments, but is intended as a prelude to the more detailed description that follows.
The embodiment of the disclosure provides a method and a device for downloading configuration files, an ESIM card and a storage medium, so that the optimization of file storage space in the ESIM card can be realized.
In some embodiments, a method for downloading a configuration file includes: and acquiring version information of the Profile configuration file to be downloaded and independent data template information. And determining attribute information and download type of the Profile to be downloaded according to the version information. The attribute information comprises master-slave Profile or general Profile; the download type includes a master Profile download or a slave Profile download. The master Profile is used for bearing shared data and independent data of all profiles in the same master-slave relationship, and the slave Profile is used for bearing a data starting address of the master Profile and an index of the slave Profile; the shared data are the same data in different ESIM embedded subscriber identity module cards of the same operator, and the independent data are different data in different ESIM cards of the same operator. And under the condition that the attribute information is master-slave Profile and the download type is download from the Profile, acquiring an independent data template corresponding to the independent data template information. And extracting data of the Profile to be downloaded according to the independent data template.
In some embodiments, obtaining version information and independent data template information of a Profile configuration file to be downloaded includes: and searching the publication information and the independent data template information from preset fields of a data structure of the Profile to be downloaded.
In some embodiments, determining attribute information of the Profile to be downloaded according to the version information includes: and under the condition that the version information is a preset version value or null, determining the attribute information of the Profile to be downloaded as a general Profile. And/or determining the attribute information of the Profile to be downloaded as master-slave Profile under the condition that the version information is not a preset version value and the version information is not empty.
In some embodiments, determining the download type of the Profile to be downloaded according to the version information includes: and judging whether the version information exists in the ESIM card or not, and obtaining a judging result. And determining the download type as downloading from the Profile when the judgment result is that the version information exists in the ESIM card. And/or determining that the download type is the main Profile download under the condition that the version information does not exist in the ESIM card as a judgment result.
In some embodiments, extracting data from the Profile to be downloaded according to an independent data template includes: and analyzing the Profile to be downloaded to obtain an analysis file. It is determined whether the same file exists in the independent data template as the parsed file. And under the condition that the same file as the analysis file exists in the independent data template, determining the analysis file as independent data, and storing the analysis file.
In some embodiments, after determining the attribute information and the download type of the Profile to be downloaded according to the version information, the method further includes: and under the condition that the attribute information is master-slave Profile and the download type is master Profile download, completely downloading the Profile to be downloaded.
In some embodiments, after determining the attribute information and the download type of the Profile to be downloaded according to the version information, the method further includes: and under the condition that the attribute information is the universal Profile, the Profile to be downloaded is completely downloaded.
In some embodiments, the apparatus for downloading a configuration file includes a processor and a memory storing program instructions, the processor being configured to perform the method for downloading a configuration file described above when the program instructions are executed.
In some embodiments, the ESIM card includes an ESIM card body; the device for downloading configuration files is installed on the ESIM card body.
In some embodiments, the storage medium stores program instructions that, when executed, perform the method for downloading a configuration file described above.
The method and device for downloading the configuration file, the ESIM card and the storage medium provided by the embodiment of the disclosure can realize the following technical effects: and obtaining version information of the Profile to be downloaded and independent data template information. And determining attribute information and downloading type of the Profile to be downloaded according to the version information. And under the condition that the attribute information is master-slave Profile and the download type is download from the Profile, acquiring an independent data template corresponding to the independent data template information. And extracting data of the Profile to be downloaded according to the independent data template. In this way, when the attribute information of the Profile to be downloaded is master-slave Profile and the download type is from Profile, the Profile to be downloaded of the same version information is considered to be non-first download, and the shared data is already stored in the ESIM card. And extracting data from the Profile to be downloaded according to the independent data template, so that the shared data in the Profile to be downloaded can be ignored, and only the independent data can be extracted. Therefore, the file storage space in the ESIM card is saved, and the optimization of the file storage space of the ESIM card is realized.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which like reference numerals refer to similar elements, and in which:
FIG. 1 is a schematic diagram of a method for downloading a configuration file provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of another method for downloading a configuration file provided by an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a data storage structure of a master Profile;
FIG. 4 is a schematic diagram of a data store structure from Profile;
fig. 5 is a schematic diagram of a data structure of an EF header according to an embodiment of the present disclosure.
Reference numerals:
1: master Profile header information; 2: a file system; 3: PIN (Personal identification number ) related data; 4: PUK (Personal ldentification NumberUnlock Key, pin code unlock code) related data; 5: AKA (Authenticationand Key Agreement ) authentication data; 6: RFM (Remote File Management ) related parameters; 7: application package data; 8: from Profile header information; 9: master-slave file header mapping tables; 10: a file ID;11: file type and status; 12: a file attribute; 13: file size; 14: a short file ID;15: a file mapping path; 16: a file rights reference; 17: a main file body index; 18: indexed from the file body.
Detailed Description
So that the manner in which the features and techniques of the disclosed embodiments can be understood in more detail, a more particular description of the embodiments of the disclosure, briefly summarized below, may be had by reference to the appended drawings, which are not intended to be limiting of the embodiments of the disclosure. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may still be practiced without these details. In other instances, well-known structures and devices may be shown simplified in order to simplify the drawing.
The terms first, second and the like in the description and in the claims of the embodiments of the disclosure and in the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe embodiments of the present disclosure. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
The term "plurality" means two or more, unless otherwise indicated.
In the embodiment of the present disclosure, the character "/" indicates that the front and rear objects are an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes an object, meaning that there may be three relationships. For example, a and/or B, represent: a or B, or, A and B.
The term "corresponding" may refer to an association or binding relationship, and the correspondence between a and B refers to an association or binding relationship between a and B.
In the embodiment of the disclosure, the ESIM card is arranged in the electronic equipment, and is connected with the Internet through the electronic equipment, so that the ESIM card is in communication connection with the cloud server, and further, the downloading of Profile is realized. In the case where the profiles downloaded to the ESIM card are of the same operator, the shared data in the profiles are the same, and only the personalized data and the user data are different. In some embodiments, the electronic device is, for example, a mobile device, a computer, a smart key camera, or an in-vehicle device, or the like, or any combination thereof. The mobile device may include, for example, a cell phone, smart home device, wearable device, smart mobile device, virtual reality device, etc., or any combination thereof, wherein the wearable device includes, for example: smart watches, smart bracelets, pedometers, etc.
Referring to fig. 1, an embodiment of the present disclosure provides a method for downloading a configuration file, the method including:
step S101, the ESIM card acquires version information of a Profile configuration file to be downloaded and independent data template information.
Step S102, the ESIM card determines attribute information and download type of the Profile to be downloaded according to the version information. The attribute information includes master Profile or general Profile, and the download type includes master Profile download or slave Profile download. The master Profile is used for bearing shared data and independent data of all profiles in the same master-slave relationship, and the slave Profile is used for bearing a data starting address of the master Profile and an index of the slave Profile; the shared data are the same data in different ESIM embedded subscriber identity module cards of the same operator, and the independent data are different data in different ESIM cards of the same operator.
Step S103, the ESIM card acquires the independent data template corresponding to the independent data template information under the condition that the attribute information is master-slave Profile and the download type is download from the Profile.
And step S104, the ESIM card extracts data of the Profile to be downloaded according to the independent data template.
By adopting the method for downloading the configuration file, which is provided by the embodiment of the disclosure, the version information of the Profile to be downloaded and the independent data template information are obtained. And determining attribute information and downloading type of the Profile to be downloaded according to the version information. And under the condition that the attribute information is master-slave Profile and the download type is download from the Profile, acquiring an independent data template corresponding to the independent data template information. And extracting data of the Profile to be downloaded according to the independent data template. In this way, when the attribute information of the Profile to be downloaded is master-slave Profile and the download type is from Profile, the Profile to be downloaded of the same version information is considered to be non-first download, and the shared data is already stored in the ESIM card. And extracting data from the Profile to be downloaded according to the independent data template, so that the shared data in the Profile to be downloaded can be ignored, and only the independent data can be extracted. Therefore, the file storage space in the ESIM card is saved, and the optimization of the file storage space of the ESIM card is realized.
Further, the ESIM card obtains version information of the Profile to be downloaded and independent data template information, including: the ESIM card searches the publication information and the independent data template information from preset fields of a data structure of the Profile to be downloaded.
In some embodiments, the ESIM card obtains the encapsulated Profile data from the cloud server by the electronic device, parses the encapsulated Profile data, and searches the publication information and the independent data template information from a preset field of Profile header information.
In some embodiments, the preset field is a "profileType attribute" field of "profileHeader PE portability executable Profile header information" in the data structure of the Profile to be downloaded. The contents of the "profileType" field include: "version information" + "independent data template information". The version information is MNO-Profile (Mobile Network Operator-Profile ) version. The MNO-Profile version is used to characterize the relative version number of the ESIM product published by the operator. The independent data template information is a profile independent data template ID (Identity document, identification number).
Further, the ESIM card determines attribute information of the Profile to be downloaded according to the version information, including: and the ESIM card determines the attribute information of the Profile to be downloaded as the general Profile under the condition that the version information is a preset version value or null. And/or determining the attribute information of the Profile to be downloaded as master-slave Profile under the condition that the version information is not a preset version value and the version information is not null.
Further, the ESIM card determines the download type of the Profile to be downloaded according to the version information, including: the ESIM card judges whether the version information exists in the ESIM card or not, and a judging result is obtained. And determining the download type as downloading from the Profile when the judgment result is that the version information exists in the ESIM card. And/or determining that the download type is the main Profile download if the version information does not exist in the ESIM card as a judgment result. In this way, if the version information exists in the ESIM card as a result of the judgment, the Profile which is the same as the version information is already downloaded in the ESIM card, that is, the Profile to be downloaded of the version information is not downloaded for the first time. And if the judgment result is that the version information does not exist in the ESIM card, the same Profile as the version information is not downloaded in the ESIM card, namely the Profile to be downloaded of the version information is considered to be downloaded for the first time.
In some embodiments, the ESIM card includes a Profile of the first version number, a Profile of the second version number, and a Profile of the third version number, and version information found by the ESIM card from a preset field of a data structure of the Profile to be downloaded is the first version number. The first version number is present in the ESIM card and the download type is determined to be a download from Profile.
In some embodiments, the ESIM card includes a Profile of the first version number, a Profile of the second version number, and a Profile of the third version number, and version information found by the ESIM card from a preset field of a data structure of the Profile to be downloaded is a fourth version number. The fourth version number does not exist in the ESIM card and the download type is determined to be the master Profile download.
In some embodiments, the master Profile downloads a Profile for characterizing the same version information as a first download, and the slave Profile downloads a Profile for characterizing the same version information as a non-first download. When the download type of the Profile to be downloaded is the main Profile download, the COS (Card operating system, smart card operating system) of the ESIM card completely downloads and installs the shared data and the independent data in the Profile to be downloaded. When the download type of the Profile to be downloaded is from the Profile, then the COS (Card operating system, smart card operating system) of the ESIM card will only download and install the independent data in the Profile to be downloaded. Therefore, when the profiles of the same operator are downloaded, a large amount of resources can be saved by a master-slave downloading mode.
Further, the master Profile is used for bearing shared data and independent data of all profiles in the same master-slave relationship, and the slave Profile is used for bearing a data starting address of the master Profile and an index of the slave Profile; the shared data are the same data in different ESIM embedded subscriber identity module cards of the same operator, and the independent data are different data in different ESIM cards of the same operator. In some embodiments, the shared data is common data among different ESIM cards of the same operator, which can be updated synchronously without affecting the functionality of each ESIM card. For example, shared data includes file system data, applications, and data packets thereof. The independent data includes personalized data or user data. The independent data includes, for example, data such as ICCID (Integrate circuit card identity, integrated circuit card identification code), IMSI (International Mobile Subscriber Identity, international mobile subscriber identification code), OPC (Originating Party Code, code data issued by an operator for identifying an enterprise or individual initiating communication), key, and the like. The data structures of the generic Profile and the main Profile differ only in the value of the "profileType" field in the "profileHeader PE". The slave Profile has more "master-slave file header mapping tables" than the data storage structures of the generic Profile and the master Profile. The master-slave file header mapping table is used for storing the address of the master Profile and the index of the slave Profile. The index of the slave Profile is used to find the data body address of the current slave Profile.
Further, after determining the attribute information and the download type of the Profile to be downloaded according to the version information, the ESIM card further includes: and the ESIM card completely downloads the Profile to be downloaded under the condition that the attribute information is master-slave Profile and the download type is master Profile download. And/or, in the case that the attribute information is the universal Profile, completely downloading the Profile to be downloaded.
In some embodiments, when the Profile to be downloaded is a slave Profile, a separate data template will be used.
Further, the ESIM card obtains an independent data template corresponding to the independent data template information, including: the ESIM card matches the independent data template corresponding to the independent data template information from a preset storage area. The corresponding relation between the independent data template information and the independent data template is stored in the preset storage area.
In some embodiments, a list of file IDs (Identity document, identification numbers) for a set of independent data is included in the independent data template.
Further, the ESIM card performs data extraction on the Profile to be downloaded according to the independent data template, including: the ESIM card analyzes the Profile to be downloaded to obtain an analysis file. It is determined whether the same file exists in the independent data template as the parsed file. And under the condition that the same file as the analysis file exists in the independent data template, determining the analysis file as independent data, and storing the analysis file.
Further, the independent data template includes a file ID list of the independent data. The ESIM card determines whether the file which is the same as the analysis file exists in the independent data template, and comprises the following steps: the ESIM card obtains the file ID of the analysis file, and determines the analysis file as independent data when the file ID of the independent data identical to the file ID of the analysis file exists in the independent data template. And/or, in the case that the file ID of the independent data identical to the file ID of the analysis file does not exist in the independent data template, determining that the analysis file is shared data.
As shown in conjunction with fig. 2, an embodiment of the present disclosure provides a method for downloading a configuration file, the method comprising:
step S201, the ESIM card acquires version information of the Profile configuration file to be downloaded and independent data template information.
Step S202, the ESIM card determines attribute information and download type of the Profile to be downloaded according to the version information. The attribute information includes master Profile or general Profile, and the download type includes master Profile download or slave Profile download. The master Profile is used for bearing shared data and independent data of all profiles in the same master-slave relationship, and the slave Profile is used for bearing a data starting address of the master Profile and an index of the slave Profile; the shared data are the same data in different ESIM embedded subscriber identity module cards of the same operator, and the independent data are different data in different ESIM cards of the same operator.
In step S203, the ESIM card obtains the independent data template corresponding to the independent data template information when the attribute information is master-slave Profile and the download type is download from the Profile.
And step S204, the ESIM card analyzes the Profile to be downloaded to obtain an analysis file.
In step S205, the ESIM card determines whether the same file as the parsed file exists in the independent data template.
In step S206, if the file same as the analysis file exists in the independent data template, the ESIM card determines that the analysis file is independent data, and stores the analysis file.
By adopting the method for downloading the configuration file provided by the embodiment of the disclosure, when the attribute information of the Profile to be downloaded is master-slave Profile and the download type is slave-Profile, the Profile to be downloaded of the same version information is considered to be non-first-time download, and the master Profile of the Profile to be downloaded is stored in the ESIM card. And extracting data from the Profile to be downloaded according to the independent data template, so that the shared data in the Profile to be downloaded can be ignored, and only the independent data can be extracted. Therefore, the file storage space in the ESIM card is saved, and the optimization of the file storage space of the ESIM card is realized.
Referring to fig. 3 and fig. 4, fig. 3 is a schematic diagram of a data storage structure of a main Profile according to an embodiment of the present disclosure. Fig. 4 is a schematic diagram of a data storage structure of a slave Profile according to an embodiment of the present disclosure.
In fig. 3, the data storage structure of the parsed master Profile includes master Profile header information 1, a file system 2, PIN (Personal identification number, PIN (PIN number) related data 3, PUK (Personal ldentification NumberUnlock Key, PIN number unlock number) related data 4, AKA (Authenticationand Key Agreement ) authentication data 5, RFM (Remote File Management, remote file management) related parameters 6, and application package data 7. In some embodiments, the master Profile header information includes master Profile flags, version information, and independent data template information.
Wherein the file system 1 comprises a file header and a file body.
In fig. 4, the parsed data storage structure of the slave Profile includes slave Profile header information 8, master-slave Profile header mapping table 9, PIN (Personal identification number, PIN) related data 3, PUK (Personal ldentification NumberUnlock Key, PIN unlock code) related data 4, and AKA (Authenticationand Key Agreement ) authentication data 5.
In some embodiments, the slave Profile header information includes slave Profile flags, version information, and independent data template information. The master-slave file header mapping table stores the address of the master Profile and the index of the slave Profile. The index from Profile is used to characterize the mapping between file header to file data address.
In some embodiments, the shared data is the same data in different ESIM embedded subscriber identity module cards of the same operator, and the independent data is different data in different ESIM cards of the same operator.
In some embodiments, the shared data includes PIN (Personal identification number, PIN) related data 3, PUK (Personal ldentification NumberUnlock Key, PIN unlock) related data 4, AKA (Authenticationand Key Agreement ) authentication data 5, etc. as shown in fig. 3 and 4, as independent data. And independently storing in the Profile analysis process.
In some embodiments, the independent data includes, for example, RFM (Remote File Management ) related parameters 6 and application package data 7 in fig. 3 as Profile shared data for the operator.
Further, after extracting the data of the Profile to be downloaded according to the independent data template, the ESIM card further includes: and the ESIM card receives the access instruction and determines the Profile to be accessed corresponding to the access instruction from the profiles stored in the ESIM card. And operating the Profile to be accessed according to the attribute information of the Profile to be accessed. Wherein, the access instruction comprises an access file system instruction or an authentication instruction and the like. Thus, the resource sharing of the master-slave Profile is facilitated by operating according to the master-slave file header mapping table.
In some embodiments, the Profile to be accessed is a Profile already downloaded and activated in the ESIM card.
Further, the ESIM card determines the Profile to be accessed corresponding to the access instruction in the ESIM card, including: the ESIM card matches the Profile to be accessed corresponding to the access instruction from a preset storage area. The corresponding relation between the access instruction and the Profile to be accessed is stored in the preset storage area.
Optionally, the ESIM card operates the Profile to be accessed according to attribute information of the Profile to be accessed, including: and the ESIM card judges whether the Profile to be accessed is the master Profile or the slave Profile under the condition that the attribute information of the Profile to be accessed is the master Profile and the slave Profile, and obtains a judging result. And determining a target file body corresponding to the access instruction from the Profile to be accessed according to the judging result. And accessing the target file body.
Optionally, the ESIM card operates the Profile to be accessed according to attribute information of the Profile to be accessed, including: and the ESIM card accesses according to a preset default access mode under the condition that the attribute information of the Profile to be accessed is the general Profile.
In some embodiments, the default access manner is to start access from the start address of the main profile, and find the corresponding file according to the file ID in the access instruction. Access is initiated from the primary file body index in the file.
Further, the access instruction includes the target file ID. The ESIM card determines a target file body corresponding to the access instruction from the Profile to be accessed according to the judging result, and comprises the following steps: and under the condition that the to-be-accessed Profile is the slave Profile, the ESIM card acquires a master-slave file header mapping table of the slave Profile, wherein the master-slave file header mapping table stores a starting address of the master Profile and an index of the slave Profile. Traversing from the starting address of the main Profile according to the target file ID, and searching out a file header corresponding to the target file ID. And finding a corresponding file body index from the index of the Profile in the file header, and determining a file body corresponding to the file body index as a target file body.
In some embodiments, the file body index records an offset of the file body data area in which the current file is located.
In some embodiments, a master-slave file header mapping table is used to store the address of the master Profile and the index of the slave Profile. The index of the slave Profile is used to find the data body address of the current slave Profile.
Referring to fig. 5, fig. 5 is a schematic diagram of a data structure of an EF (Elementary File) header provided in an embodiment of the present disclosure. The data structure of the EF file header includes a file ID10, a file type and status 11, a file attribute 12, a file size 13, a short file ID14, a file mapping path 15, a file authority reference 16, a master file body index 17, and a slave file body index 18. Wherein the slave file body index includes a plurality of, for example: the slave file body index includes a first slave file body index and a second slave file body index. In some embodiments, in file A, there is a mapping relationship between the master file body index and file body A1. There is a mapping relationship between the first slave file body index and the file body A2. There is a mapping relationship between the second slave file body index and the file body A3.
In some embodiments, an embodiment of the present disclosure provides an apparatus for downloading a configuration file, the apparatus including a processor (processor) and a memory (memory). Optionally, the apparatus may further comprise a communication interface (Communication Interface) and a bus. The processor, the communication interface and the memory can complete communication with each other through the bus. The communication interface may be used for information transfer. The processor may invoke logic instructions in the memory to perform the method for downloading a configuration file of the above-described embodiments.
By adopting the device for downloading the configuration file provided by the embodiment of the disclosure, when the attribute information of the Profile to be downloaded is master-slave Profile and the download type is slave-Profile, the Profile to be downloaded of the same version information is considered to be non-first-time download, and the master Profile of the Profile to be downloaded is stored in the ESIM card. And extracting data from the Profile to be downloaded according to the independent data template, so that the shared data in the Profile to be downloaded can be ignored, and only the independent data can be extracted. Therefore, the file storage space in the ESIM card is saved, and the optimization of the file storage space of the ESIM card is realized.
Further, the logic instructions in the memory described above may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product.
The memory is used as a computer readable storage medium for storing a software program, a computer executable program, and program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor executes the functional applications and data processing by running the program instructions/modules stored in the memory, i.e. implements the method for downloading configuration files in the above embodiments.
The memory may include a memory program area and a memory data area, wherein the memory program area may store an application program required to operate at least one function; the storage data area may store data created according to the use of the terminal device, etc. Further, the memory may include a high-speed random access memory, and may also include a nonvolatile memory.
The embodiment of the disclosure provides an ESIM card, comprising: an ESIM card body and the device for downloading the configuration file. The means for downloading the configuration file is mounted to the ESIM card body. The mounting relationships described herein are not limited to placement within an ESIM card body, but include mounting connections with other components of the ESIM card body, including but not limited to physical, electrical, or signaling connections, etc. Those skilled in the art will appreciate that the means for downloading the configuration file may be adapted to the available ESIM card body to implement other possible embodiments.
By adopting the ESIM card provided by the embodiment of the disclosure, when the attribute information of the Profile to be downloaded is master-slave Profile and the download type is slave-Profile download, the Profile to be downloaded of the same version information is considered to be non-first download, and the master Profile of the Profile to be downloaded is stored in the ESIM card. And extracting data from the Profile to be downloaded according to the independent data template, so that the shared data in the Profile to be downloaded can be ignored, and only the independent data can be extracted. Therefore, the file storage space in the ESIM card is saved, and the optimization of the file storage space of the ESIM card is realized.
The embodiment of the disclosure provides a storage medium storing program instructions which, when executed, perform the method for downloading a configuration file.
The disclosed embodiments provide a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the above-described method for downloading a configuration file.
The computer readable storage medium may be a transitory computer readable storage medium or a non-transitory computer readable storage medium.
Embodiments of the present disclosure may be embodied in a software product stored on a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of a method according to embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium including: a plurality of media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or a transitory storage medium.
The above description and the drawings illustrate embodiments of the disclosure sufficiently to enable those skilled in the art to practice them. Other embodiments may involve structural, logical, electrical, process, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in, or substituted for, those of others. Moreover, the terminology used in the present application is for the purpose of describing embodiments only and is not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a," "an," and "the" (the) are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, when used in this application, the terms "comprises," "comprising," and/or "includes," and variations thereof, mean that the stated features, integers, steps, operations, elements, and/or components are present, but that the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof is not precluded. Without further limitation, an element defined by the phrase "comprising one …" does not exclude the presence of other like elements in a process, method or apparatus comprising such elements. In this context, each embodiment may be described with emphasis on the differences from the other embodiments, and the same similar parts between the various embodiments may be referred to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method sections disclosed in the embodiments, the description of the method sections may be referred to for relevance.
Those of skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. The skilled artisan may use different methods for each particular application to achieve the described functionality, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and unit described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In the embodiments disclosed herein, the disclosed methods, articles of manufacture (including but not limited to devices, apparatuses, etc.) may be practiced in other ways. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units may be merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form. The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to implement the present embodiment. In addition, each functional unit in the embodiments of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than that disclosed in the description, and sometimes no specific order exists between different operations or steps. For example, two consecutive operations or steps may actually be performed substantially in parallel, they may sometimes be performed in reverse order, which may be dependent on the functions involved. Each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Claims (10)
1. A method for downloading a configuration file, comprising:
the method comprises the steps of obtaining version information of a Profile configuration file to be downloaded and independent data template information;
determining attribute information and downloading type of Profile to be downloaded according to the version information; the attribute information comprises master-slave Profile or general Profile; the download type comprises a master Profile download or a slave Profile download; the master Profile is used for bearing shared data and independent data of all profiles in the same master-slave relationship, and the slave Profile is used for bearing a data starting address of the master Profile and an index of the slave Profile; the shared data are the same data in different ESIM embedded user identification module cards of the same operator, and the independent data are different data in different ESIM cards of the same operator;
under the condition that the attribute information is master-slave Profile and the download type is download from the Profile, acquiring an independent data template corresponding to the independent data template information;
and extracting data of the Profile to be downloaded according to the independent data template.
2. The method according to claim 1, wherein obtaining version information of the Profile configuration file to be downloaded and independent data template information comprises:
and searching the publication information and the independent data template information from preset fields of a data structure of the Profile to be downloaded.
3. The method according to claim 1, wherein determining attribute information of Profile to be downloaded from the version information comprises:
under the condition that the version information is a preset version value or null, determining that the attribute information of the Profile to be downloaded is a general Profile; and/or the number of the groups of groups,
and under the condition that the version information is not a preset version value and the version information is not empty, determining the attribute information of the Profile to be downloaded as master-slave Profile.
4. The method of claim 1, wherein determining the download type of the Profile to be downloaded based on the version information comprises:
judging whether the version information exists in the ESIM card or not, and obtaining a judging result;
under the condition that the judgment result is that the version information exists in the ESIM card, determining the downloading type as downloading from Profile; and/or the number of the groups of groups,
and determining that the download type is main Profile download under the condition that the version information does not exist in the ESIM card as a judgment result.
5. The method of claim 1, wherein extracting data for the Profile to be downloaded according to the independent data template comprises:
analyzing the Profile to be downloaded to obtain an analysis file;
determining whether the independent data template has the same file as the analysis file;
and under the condition that the same file as the analysis file exists in the independent data template, determining the analysis file as independent data, and storing the analysis file.
6. The method according to claim 1, wherein after determining the attribute information and the download type of the Profile to be downloaded according to the version information, further comprising:
and under the condition that the attribute information is master-slave Profile and the download type is master Profile download, completely downloading the Profile to be downloaded.
7. The method according to claim 1, wherein after determining the attribute information and the download type of the Profile to be downloaded according to the version information, further comprising:
and under the condition that the attribute information is the universal Profile, the Profile to be downloaded is completely downloaded.
8. An apparatus for downloading a configuration file, comprising a processor and a memory storing program instructions, wherein the processor is configured to perform the method for downloading a configuration file according to any of claims 1 to 7 when the program instructions are executed.
9. An ESIM card, comprising:
an ESIM card body;
the apparatus for downloading a configuration file as recited in claim 8, being installed on the ESIM card body.
10. A storage medium storing program instructions which, when executed, perform the method for downloading a configuration file as claimed in any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311261610.2A CN117014860B (en) | 2023-09-27 | 2023-09-27 | Method and device for downloading configuration file, ESIM card and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311261610.2A CN117014860B (en) | 2023-09-27 | 2023-09-27 | Method and device for downloading configuration file, ESIM card and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117014860A CN117014860A (en) | 2023-11-07 |
CN117014860B true CN117014860B (en) | 2024-01-05 |
Family
ID=88574720
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311261610.2A Active CN117014860B (en) | 2023-09-27 | 2023-09-27 | Method and device for downloading configuration file, ESIM card and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117014860B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019015793A1 (en) * | 2017-07-20 | 2019-01-24 | Telefonaktiebolaget Lm Ericsson (Publ) | Technique for remote sim provisioning |
CN114513787A (en) * | 2021-12-29 | 2022-05-17 | 博鼎实华(北京)技术有限公司 | Method and device for testing consistency of code number downloading process of eSIM (embedded subscriber identity Module) terminal |
WO2023274582A1 (en) * | 2021-07-01 | 2023-01-05 | Giesecke+Devrient Mobile Security Gmbh | Flexible remote sim provisioning |
WO2023284650A1 (en) * | 2021-07-15 | 2023-01-19 | 华为技术有限公司 | Communication method and electronic device |
CN116709267A (en) * | 2023-05-30 | 2023-09-05 | 锐迪科创微电子(北京)有限公司 | Profile distribution method and device, storage medium, terminal and server |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114124930B (en) * | 2018-04-25 | 2023-01-13 | 华为技术有限公司 | Configuration file transmission method, terminal, server and storage medium |
-
2023
- 2023-09-27 CN CN202311261610.2A patent/CN117014860B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019015793A1 (en) * | 2017-07-20 | 2019-01-24 | Telefonaktiebolaget Lm Ericsson (Publ) | Technique for remote sim provisioning |
WO2023274582A1 (en) * | 2021-07-01 | 2023-01-05 | Giesecke+Devrient Mobile Security Gmbh | Flexible remote sim provisioning |
WO2023284650A1 (en) * | 2021-07-15 | 2023-01-19 | 华为技术有限公司 | Communication method and electronic device |
CN114513787A (en) * | 2021-12-29 | 2022-05-17 | 博鼎实华(北京)技术有限公司 | Method and device for testing consistency of code number downloading process of eSIM (embedded subscriber identity Module) terminal |
CN116709267A (en) * | 2023-05-30 | 2023-09-05 | 锐迪科创微电子(北京)有限公司 | Profile distribution method and device, storage medium, terminal and server |
Also Published As
Publication number | Publication date |
---|---|
CN117014860A (en) | 2023-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109474578B (en) | Message checking method, device, computer equipment and storage medium | |
CN107809383B (en) | MVC-based path mapping method and device | |
CN110135129B (en) | Code segment protection method and device, computer equipment and storage medium | |
US11129013B2 (en) | Instant eSIM test profile generator | |
CN112887451A (en) | Domain name resolution method and device and computer equipment | |
CN117014860B (en) | Method and device for downloading configuration file, ESIM card and storage medium | |
CN113486060A (en) | Data access processing method and device, storage medium and electronic equipment | |
CN101873580B (en) | Download method of business application and business application management platform system | |
CN109842482B (en) | Information synchronization method, system and terminal equipment | |
CN104918244A (en) | Terminal and terminal communication method | |
CN103561035A (en) | Mobile subscriber safety protection method and system | |
CN116069802A (en) | Method, device, electronic equipment and storage medium for accessing database | |
CN107977313B (en) | Debugging interface calling method and device | |
CN107506386B (en) | Data aggregation method and device based on NAS, terminal equipment and storage medium | |
CN111510318B (en) | Positioning information configuration method, device, communication equipment and storage medium | |
CN107181715B (en) | Service checking method and device | |
CN110138890B (en) | Method, device, computer equipment and storage medium for acquiring IP address | |
CN109840080B (en) | Character attribute comparison method and device, storage medium and electronic equipment | |
CN108182127B (en) | Method for extracting deleted file fragments, terminal equipment and storage medium | |
CN106789315B (en) | System configuration method and device | |
CN110119337B (en) | Data analysis method and device and server | |
CN115687223A (en) | Method and device for serial port communication of embedded equipment, embedded equipment and storage medium | |
CN112714438B (en) | Method and device for distributing Host equipment ID and electronic equipment | |
CN110933661B (en) | Mobile terminal addressing method, device, mobile terminal and medium with one card and multiple numbers | |
CN116781687A (en) | Method and device for downloading file, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |