Applet application function configuration method and device, electronic equipment and storage medium
By receiving function configuration instructions during the installation, personalization and use of Applet applications, updating the configuration parameter array, and configuring Applet application function items, the problem of changes in Applet application function requirements in the existing technology requires redevelopment and upgrading, and the flexibility and efficiency of function configuration are improved.
Patent Information
- Application Number
- CN202411890284.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-04-15
AI Technical Summary
When functional requirements change, existing Applet applications need to return to the development stage for upgrade and redeployment, which is inefficient and increases development costs.
Provides an Applet application function configuration method, which receives function configuration instructions during the installation, personalization and use stages, loads configuration parameters into the initial array, updates the array, and configures the functional items of the Applet application based on the updated array.
It improves the flexibility and efficiency of Applet application function configuration, allowing the function configuration to be adjusted according to actual needs at different stages without redevelopment and upgrading, reducing the cost of function requirements adjustment.
Smart Images

Figure CN119829119A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to an Applet application function configuration method, device, electronic device and storage medium. Background Art
[0002] After the development of the Applet application based on JavaCard is completed according to the functional requirements determined in the design phase, the application is later installed in the SE process or customized after installation or officially put into use. If the functional requirements change and the functional parameters of the Applet application need to be modified, it is necessary to return to the development phase to develop and upgrade the Applet application, provide a new version, re-release, deploy and install it. This method of modifying the functions of the Applet application is single and inefficient, which increases the development cost. Summary of the invention
[0003] In view of this, an object of the present invention is to provide an Applet application function configuration method, device, electronic device and storage medium to improve the flexibility and efficiency of Applet application function configuration.
[0004] In a first aspect, a method for configuring the function of an Applet application is provided, which is applied to the installation stage, personalization stage and use stage after the development of the Applet application is completed. The installation stage is used to install the Applet application into the SE; the personalization stage is used to personalize the functions of the Applet application after installation; the use stage is the normal use stage after the personalization stage is completed; the method comprises:
[0005] In response to a function configuration instruction received by the Applet application at any stage after development, the configuration parameters of each function item in the function configuration instruction are loaded into the initial array of the stage to obtain an updated array; the array is used to store the configuration parameters of each function item; wherein, the function configuration instruction received at the installation stage is generated according to the function definition of the preset installation parameters; the function configuration instruction received at the personalization stage is generated according to the function definition of the preset personalization parameters; the function configuration instruction received at the use stage is generated according to the preset instruction definition of modifying the function configuration parameters;
[0006] Based on the updated array, configure the function items of the Applet application.
[0007] Optionally, in response to a function configuration instruction received by the Applet application at any stage after development, the configuration parameters of each function item in the function configuration instruction are loaded into the initial array of the stage, and the updated array includes:
[0008] Receive function configuration instructions during the installation phase;
[0009] Parsing the function configuration instructions of the installation phase to obtain the installation parameters of each function item in the function configuration instructions of the installation phase;
[0010] The installation parameters of each function item are loaded into the initial array of the installation phase to obtain an updated array; the initial array of the installation phase is a preset array.
[0011] Optionally, in response to a function configuration instruction received by the Applet application at any stage after development, the configuration parameters of each function item in the function configuration instruction are loaded into the initial array of the stage, and the updated array includes:
[0012] Receiving function configuration instructions in the personalization phase;
[0013] Parsing the function configuration instruction of the personalization stage to obtain the personalized parameters of each function item in the function configuration instruction of the personalization stage;
[0014] The personalized parameters of each function item are loaded into the initial array of the personalized stage to obtain an updated array; the initial array of the personalized stage is the array updated in the installation stage.
[0015] Optionally, in response to a function configuration instruction received by the Applet application at any stage after development, the configuration parameters of each function item in the function configuration instruction are loaded into the initial array of the stage, and the updated array includes:
[0016] Receive function configuration instructions during the use phase;
[0017] Parsing the function configuration instructions of the use phase to obtain the configuration parameters of each function item in the function configuration instructions of the use phase;
[0018] The configuration parameters of each function item are loaded into the initial array of the use phase to obtain an updated array; the initial array of the use phase is the array updated in the personalization phase.
[0019] Optionally, the function items include debug mode setting function items and debug cache space configuration function items. The function configuration instructions in the use phase are used to indicate whether to turn the debug mode on or off. When the debug mode is turned on, the debug cache space configuration function item can cache test data.
[0020] Optionally, the method further comprises:
[0021] Receiving a read instruction for the Applet application, the read instruction is used to instruct to read the test data cached by the Applet application during the use phase test;
[0022] Find the cause of test failure based on cached test data.
[0023] Optionally, the Applet application is a digital key application, which is used at least to control the opening and closing of vehicle doors, windows, air conditioning, trunk and engine.
[0024] In a second aspect, an Applet application function configuration device is provided, which is applied to the installation stage, personalization stage and use stage after the development of the Applet application is completed. The installation stage is used to fill the Applet application into the SE; the personalization stage is used to personalize the functions of the Applet application after installation; the use stage is the normal use stage after the personalization stage is completed; the device includes:
[0025] A loading unit, for responding to a function configuration instruction received at any stage after the development of the Applet application, loading the configuration parameters of each function item in the function configuration instruction into the initial array of the stage, and obtaining an updated array; the array is used to store the configuration parameters of each function item; wherein the function configuration instruction received at the installation stage is generated according to the function definition of the preset installation parameters; the function configuration instruction received at the personalization stage is generated according to the function definition of the preset personalization parameters; the function configuration instruction received at the use stage is generated according to the preset instruction definition of modifying the function configuration parameters;
[0026] The configuration unit is used to configure the function items of the Applet application based on the updated array.
[0027] In a third aspect, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0028] Memory, used to store computer programs;
[0029] The processor is used to implement any method step described in the first aspect when executing the program stored in the memory.
[0030] According to a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any method step described in the first aspect is implemented.
[0031] The present invention provides an Applet application function configuration method, device, electronic device and storage medium. By responding to the function configuration instruction received by the Applet application at any stage after development, the configuration parameters of each function item in the function configuration instruction are loaded into the initial array of the stage to obtain an updated array, and the function items of the Applet application are configured based on the updated array. In the installation stage and the personalization stage of the Applet application, the present invention can adjust the function configuration parameters according to the actual function requirements, and generate corresponding function configuration instructions to instruct the configuration of the function of the Applet application according to the adjusted function configuration parameters. After the installation stage and the personalization stage are completed, when entering the use stage, the instruction to modify the function configuration parameters can still be generated through the preset instruction definition to modify the function configuration parameters. The requirement of modifying the application configuration function is met by sending the instruction, thereby meeting the requirement changes at different stages, and no re-development and upgrading is required, which greatly improves the efficiency of function configuration and reduces the cost of adjusting function requirements.
[0032] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0034] Figure 1 A flowchart of an Applet application function configuration method provided by an embodiment of the present invention is shown;
[0035] Figure 2 A schematic diagram showing the structure of an Applet application function configuration device provided by an embodiment of the present invention;
[0036] Figure 3 A schematic structural diagram of an electronic device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present invention.
[0038] Considering that when the functional requirements of the current Applet application change, it is necessary to return to the development stage to develop and upgrade the Applet application, provide a new version, re-release, deploy and re-install. This method is not only inefficient, but also increases the development cost. Based on this, the embodiment of the present invention provides an Applet application function configuration method and device, which is described below through an embodiment.
[0039] The embodiment of the present invention provides an Applet application function configuration method, which is applied to the installation stage, personalization stage and use stage after the Applet application is developed. The installation stage is used to install the Applet application into SE (Secure Element, security chip); the personalization stage is used to personalize the functions of the Applet application after installation; the use stage is the normal use stage after the personalization stage is completed.
[0040] like Figure 1 As shown, the Applet application function configuration method includes the following steps:
[0041] Step S101: In response to a function configuration instruction received by the Applet application at any stage after development, the configuration parameters of each function item in the function configuration instruction are loaded into the initial array of the stage to obtain an updated array.
[0042] In this step, the function requirements are first obtained, and the function configuration instructions are generated according to the function requirements and the function definition or instruction definition preset at the current stage. In a specific example, assuming that the Applet application is installed in the SE of the car, then during the installation stage, the car manufacturer proposes new function requirements, and the configuration parameters of the function can be adjusted according to the function defined in the development stage and the new function requirements, and the corresponding function configuration instructions can be generated and sent to the Applet application, and the Applet application can configure the function items according to the instructions.
[0043] Among them, the function configuration instructions received in the installation phase are generated according to the function definition of the preset installation parameters; the function configuration instructions received in the personalization phase are generated according to the function definition of the preset personalization parameters; the function configuration instructions received in the use phase are generated according to the preset instruction definition of modifying the function configuration parameters.
[0044] Among them, the function definition of installation parameters, the function definition of personalization parameters and the instruction definition for modifying function configuration parameters are all set during the development and design stage of the Applet application. During the development and design stage, all the functional items that need to be used should be defined in advance as much as possible, so as to meet the adjustment of most of the functional requirements of the Applet application in the later stage.
[0045] Taking the digital key application as an example, the digital key application is used to control at least the doors, windows, air conditioning, trunk, and engine opening and closing. The function definition of the installation parameters preset in the development and design stage is as follows in Table 1:
[0046] Table 1: Application installation parameter function definition
[0047]
[0048] In Table 1, C9 represents the tag of the installation phase. In this phase, 10 function items are defined. The tags corresponding to each function item are from D0 to D9. The Length in the fourth column represents the byte length of each function item, and the Value represents the specific value of each function item. In the design phase, an initial value will be set, and it can be adjusted according to the acquired functional requirements in the actual installation phase. Taking D0 as an example, the initial value of Value is 00. The acquired functional requirement is to use virtual data mock, so the mock data is set to 01, and the configuration parameters of the function item are modified to "C903D00101". For example, assuming that the initial value of the number of keys and the number of blacklists defined above is 30, in the actual installation phase, it needs to be adjusted to 50, then the configuration parameters of the function can be modified to "C906D20132D30132", and the modified configuration parameters are generated into functional configuration instructions in the installation phase to configure the functions of the Applet application.
[0049] Among them, the required functional items can be selected according to the functional requirements and combined to generate the functional configuration instructions in the installation stage.
[0050] During the development and design phase, the functions of the preset personalized parameters are defined as shown in Table 2:
[0051] Table 2: Personalization parameter function definition
[0052]
[0053]
[0054] In Table 2, 9F50 represents the tag of the personalization stage, and 10 functional items are also defined in this stage. The others are the same as in Table 1 above and will not be repeated here. It should be noted that Tables 1 and 2 only give examples of 10 functional items. In actual use, other functional items can be defined according to actual functional requirements. The more functional items defined in the design stage, the easier it is to adjust the subsequent functional requirements.
[0055] By configuring the function items of the maximum length of account information in Table 1 and Table 2, the Applet application can be compatible with the account lengths of different device manufacturers. Since the account length rules of each device manufacturer are not uniform, some manufacturers use the SHA1 algorithm to calculate the account Hash, and some manufacturers use the SHA256 algorithm to calculate the account Hash. Different manufacturers use different algorithms, and the length of the account Hash is different. Therefore, by modifying the parameters of this function item, it can be compatible with different device manufacturers, increasing the scalability of the function configuration.
[0056] In the use phase, the command definition for modifying the function configuration parameters is preset, as shown in Table 3 below:
[0057] Table 3: Command definition for modifying function configuration
[0058]
[0059] In Table 3, it is a custom instruction. If it is modified to mock data, DATA is represented by D00101, plus the previous field, the function configuration instruction is represented by "80D6000003D00101"; if the size of the personalized data space is modified, DATA is represented by D1020100, and the function configuration instruction is represented by "80D6000004D1020100" and the same applies to other functions.
[0060] In addition, the array is used to store the configuration parameters of each function item; by storing the configuration parameters of the function items of the Applet application in the array, it is convenient to find and update specific functions.
[0061] Step S102: Based on the updated array, configure the function items of the Applet application.
[0062] In the embodiment of the present invention, after the array is updated, it takes effect immediately. Once the array is updated, the new function configuration parameters will be immediately applied to the behavior of the Applet application. The Applet application can flexibly adjust its functions according to needs at different stages.
[0063] In the embodiment of the present invention, the configuration of some function items can also support offline scenarios, such as the management of the number of keys. It can be modified in three ways: in the installation stage, the installation parameters in Table 1 can be modified to C903D60101 and written into the data segment of the standard instruction; in the personalization stage, the parameter configuration of the personalized TAG9F50 can be modified to 9F5003D60101 and written into the data segment of the standard instruction; in the use stage, the instruction 80D6000003D60101 can be sent.
[0064] The embodiments of the present invention not only meet the functional configuration requirements at different stages, but also meet the functional configuration requirements in different scenarios. Different stages use different methods to perform functional configuration, thereby improving the flexibility and scalability of the functional configuration.
[0065] The present invention can adjust the function configuration parameters according to the actual function requirements during the installation stage and the personalization stage of the Applet application, and generate corresponding function configuration instructions to instruct the configuration of the functions of the Applet application according to the adjusted function configuration parameters. After the installation stage and the personalization stage are completed, when entering the use stage, the instruction for modifying the function configuration parameters can still be generated through the preset instruction definition for modifying the function configuration parameters. The requirement of modifying the application configuration function is met by sending the instruction, thereby meeting the requirement changes at different stages without the need for redevelopment and upgrading, which greatly improves the efficiency of function configuration and reduces the cost of adjusting function requirements.
[0066] Based on the above embodiment, in response to the instruction received by the Applet application in the target stage after development, the configuration parameters of each function item in the instruction are loaded into the initial array of the target stage, and the updated array includes:
[0067] The following is a detailed description of the functional configuration process at each stage. The first is the installation stage, which includes the following steps:
[0068] Step S101A1: Receive function configuration instructions in the installation phase.
[0069] In this step, the function configuration instructions in the installation phase use standard instructions implemented in accordance with JavaCard API. The standard instructions at least include an instruction header and a data segment, and the configuration parameters of each function item are written into the data segment.
[0070] Step S101A2: parsing the function configuration instruction of the installation phase, and obtaining the installation parameters of each function item in the function configuration instruction of the installation phase.
[0071] In this step, it is only necessary to parse the data in the data domain of the function configuration instruction, because the configuration parameters of the function are located in the data domain field.
[0072] Step S101A3: Load the installation parameters of each function item into the initial array of the installation phase to obtain an updated array.
[0073] The initial array in the installation phase is a preset array. The initial array is also defined in the development and design phase. In one example, the preset array may be an array named config, and the initial value of the array is set according to the preset function definition. For example, the array is represented as byte[]config = { (byte) 0x00, (byte)0x05, (byte) 0x00, (byte) 0x1E, (byte) 0x1E, (byte)0x03, (byte)0x0A, (byte)0x00, (byte)0x20, (byte)0x00, (byte)0x01, (byte)0x00}, and its meaning is as follows:
[0074] (1) The first byte 0x00 indicates non-mock data;
[0075] (2) The second and third bytes are 0x0500, indicating that the personalized data space is 0x0500;
[0076] (3) The fourth byte 0x1E indicates that the number of keys is 30;
[0077] (4) The fifth byte 0x1E indicates that the number of keys in the blacklist is 30;
[0078] (5) The sixth byte 0x03 indicates support for three logical channels;
[0079] (6) The seventh byte 0x0A indicates that there are 10 operation management result records;
[0080] (7) The eighth byte 0x00 indicates that the oldest operation management result is not automatically removed;
[0081] (8) The ninth byte is 0x20, indicating that the maximum length of the account information is 32 bytes;
[0082] (9) The 10th byte is 0x00, indicating that debug mode is not enabled;
[0083] (10) The two bytes 11 and 12 are 0x0100, indicating that the debug cache space is 0x0100.
[0084] If the function configuration instruction in the installation phase includes TagC9, the value of the byte corresponding to the function item in the instruction is updated to the configuration parameter of the function item in the instruction, otherwise the initial value remains unchanged.
[0085] Specifically, if D0 exists in the function configuration instruction in the installation phase, the first byte of the config array is updated to the value of D0 in the instruction; if D1 exists, the second and third bytes of the config array are updated to the values of D1; and so on.
[0086] In a specific example, for example, the data segment in the function configuration instruction in the installation phase is C906D00101D80101, indicating that mock data needs to be used and debug mode needs to be enabled. Then, the first byte of the config array needs to be updated to 0x01; the tenth byte of the config array needs to be updated to 0x01.
[0087] Step S101A4: Use the array updated in the installation phase to complete the functional configuration of the Applet application.
[0088] The second is the function configuration process in the personalization stage, which includes the following steps:
[0089] Step S101B1: receiving a function configuration instruction in the personalization stage.
[0090] The functional configuration instructions at this stage may also adopt standard instructions implemented in accordance with the JavaCard API.
[0091] Step S101B2: parsing the function configuration instruction in the personalization stage to obtain the personalized parameters of each function item in the function configuration instruction in the personalization stage.
[0092] In this step, it is only necessary to parse the data in the data domain of the function configuration instruction, because the configuration parameters of the function are located in the data domain field.
[0093] Step S101B3: Load the personalized parameters of each function item into the initial array of the personalized stage to obtain an updated array.
[0094] If TAG9F50 exists in the functional instructions of this stage, the parameters of the config array are updated according to the same rules as the installation stage.
[0095] Specifically, if D0 exists in the function configuration instruction in the personalization stage, the first byte of the config array is updated to the value of D0 in the instruction; if D1 exists, the second and third bytes of the config array are updated to the values of D1; and so on.
[0096] In an example, if the personalization data needs to add a certificate data, the size of the data space needs to be modified. The data in the data segment in the personalization instruction can be modified to 9F5004D1020500.
[0097] Step S101B4: Use the array updated in the personalization phase to complete the functional configuration of the Applet application.
[0098] After completing the configuration in the personalization stage, you can enter the formal use stage, in which you can still adjust the configuration parameters of the function items by sending instructions. The function configuration method in the use stage includes the following steps:
[0099] Step S101C1: receiving a function configuration instruction in the use phase.
[0100] The function configuration instructions of the use stage indicate the adjustment of the function items of the Applet application. The function configuration instructions of this stage generate specific instructions according to the instruction definition in Table 3, in which the configuration parameters of the function items to be adjusted are written into the DATA field in Table 3.
[0101] Function configuration instructions in the use phase can be modified by sending instructions through SDK (Software Development Kit), or by sending instructions through OTA (Over-The-Air) from the server side. Sending instructions to modify functions in different ways increases flexibility.
[0102] Step S101C2: parsing the function configuration instruction of the use phase, and obtaining the configuration parameters of each function item in the function configuration instruction of the use phase.
[0103] Step S101C3: Load the configuration parameters of each function item into the initial array of the use phase to obtain an updated array; the initial array of the use phase is the array updated in the personalization phase.
[0104] In an example, if the instruction received in the use phase is 80D6000003D00101, the first byte of the config array is updated to 0x01. If the instruction received is 80D6000003D30132, the fifth byte of the config array is updated to 0132, indicating that the number of blacklist items is updated to 50. The adjustment of other function items is similar.
[0105] Step S101C4: Based on the array updated in the utilization phase, update the functional configuration of the Applet application.
[0106] Optionally, the function items include debug mode setting function items and debug cache space configuration function items. The function configuration instructions in the use phase are used to indicate whether to turn the debug mode on or off. When the debug mode is turned on, the debug cache space configuration function item can cache test data.
[0107] Optionally, the method further comprises:
[0108] Step S103: receiving a read instruction for the Applet application.
[0109] The read instruction is used to instruct to read the test data cached by the Applet application during the use phase test.
[0110] The read instruction is generated according to the preset read debug cache data instruction definition in the Applet application development and design phase. The read debug cache data instruction definition is shown in Table 4 below:
[0111] Table 4: Read debug cache data instruction definition
[0112] CLA INS P1P2 Lc DATA Le 80 B0 Offset, default is 0000 - - var
[0113] In an example, the debug cache data is read through the 80B0000010 instruction, and the read data length is 0x10.
[0114] You can also define the size of the debug cache data space based on the transaction conditions of the test process to adapt to different instructions and save process data of different lengths.
[0115] The modifications at different stages are as follows:
[0116] 1. During the installation phase, modify the installation parameter to C904D9020050 and write the parameter into the data field of the standard instruction;
[0117] 2. In the personalization stage, modify the parameter configuration of the personalized TAG9F50 to 9F5004D9020050, and write the parameter into the data field of the standard instruction;
[0118] 3. During the use phase, directly send the instruction 80D6000004D9020050.
[0119] Step S104: Find the cause of the test failure according to the cached test data.
[0120] In an embodiment of the present invention, after the personalization stage is completed, the Applet application can be tested. During the test, if the debug mode is turned on, the cache data during the test can be recorded. Once a problem occurs during the test, the test cache data can be read to help quickly locate the cause of the error without returning to the development stage and checking the code one by one to find the problem, which greatly improves the efficiency of finding errors.
[0121] Based on the same inventive concept, an Applet application function configuration device is provided, which is applied to the installation stage, personalization stage and use stage after the development of the Applet application is completed. The installation stage is used to fill the Applet application into the SE; the personalization stage is used to personalize the functions of the Applet application after installation; the use stage is the normal use stage after the personalization stage is completed; Figure 2 As shown, the device comprises:
[0122] The loading unit 201 is used to respond to the function configuration instruction received by the Applet application at any stage after development, load the configuration parameters of each function item in the function configuration instruction into the initial array of the stage, and obtain an updated array; the array is used to store the configuration parameters of each function item; wherein, the function configuration instruction received in the installation stage is generated according to the function definition of the preset installation parameters; the function configuration instruction received in the personalization stage is generated according to the function definition of the preset personalization parameters; the function configuration instruction received in the use stage is generated according to the preset instruction definition of modifying the function configuration parameters.
[0123] The configuration unit 202 is used to configure the function items of the Applet application based on the updated array.
[0124] Based on the same technical concept, an embodiment of the present invention further provides an electronic device, such as Figure 3 As shown, it includes a processor 301 , a communication interface 302 , a memory 303 and a communication bus 304 , wherein the processor 301 , the communication interface 302 , and the memory 303 communicate with each other via the communication bus 304 .
[0125] Memory 303, used for storing computer programs;
[0126] The processor 301 is used to implement the steps of the Applet application function configuration method when executing the program stored in the memory 303.
[0127] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0128] The communication interface is used for communication between the above electronic device and other devices.
[0129] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0130] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0131] The computer program product for the method for configuring Applet application functions provided in the embodiment of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment and will not be repeated here.
[0132] The device for configuring the Applet application function provided in the embodiment of the present invention can be specific hardware on the device or software or firmware installed on the device. The implementation principle and technical effects of the device provided in the embodiment of the present invention are the same as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference can be made to the corresponding contents in the aforementioned method embodiment. Technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can all refer to the corresponding processes in the aforementioned method embodiment, and will not be repeated here.
[0133] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0134] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0135] In addition, each functional unit in the embodiment provided by the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0136] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0137] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0138] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions described in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or perform equivalent replacements on some of the technical features thereof; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. They should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for configuring an Applet application function, characterized in that: Applicable to the installation stage, personalization stage and use stage after the development of the Applet application is completed. The installation stage is used to install the Applet application into the SE; The personalization stage is used to personalize the functions of the Applet application after installation; The use phase is a normal use phase after the personalization phase is completed; the method includes: In response to a function configuration instruction received by the Applet application at any stage after development, the configuration parameters of each function item in the function configuration instruction are loaded into the initial array of the stage to obtain an updated array; the array is used to store the configuration parameters of each function item; wherein the function configuration instruction received at the installation stage is generated according to the function definition of the preset installation parameters; the function configuration instruction received at the personalization stage is generated according to the function definition of the preset personalization parameters; the function configuration instruction received at the use stage is generated according to the preset instruction definition of modifying the function configuration parameters; Based on the updated array, the function items of the Applet application are configured.
2. The method according to claim 1, characterized in that In response to the function configuration instruction received by the Applet application at any stage after development, the configuration parameters of each function item in the function configuration instruction are loaded into the initial array of the stage, and the updated array includes: Receive function configuration instructions during the installation phase; Parsing the function configuration instructions of the installation phase to obtain installation parameters of each function item in the function configuration instructions of the installation phase; The installation parameters of each function item are loaded into the initial array of the installation phase to obtain an updated array; the initial array of the installation phase is a preset array.
3. The method according to claim 1, characterized in that In response to the function configuration instruction received by the Applet application at any stage after development, the configuration parameters of each function item in the function configuration instruction are loaded into the initial array of the stage, and the updated array includes: Receiving function configuration instructions in the personalization phase; Parsing the function configuration instruction of the personalization stage to obtain the personalized parameters of each function item in the function configuration instruction of the personalization stage; The personalized parameters of each function item are loaded into the initial array of the personalized stage to obtain an updated array; the initial array of the personalized stage is the array updated in the installation stage.
4. The method according to claim 1, characterized in that: In response to the function configuration instruction received by the Applet application at any stage after development, the configuration parameters of each function item in the function configuration instruction are loaded into the initial array of the stage, and the updated array includes: Receive function configuration instructions during the use phase; Parsing the function configuration instruction of the use phase to obtain the configuration parameters of each function item in the function configuration instruction of the use phase; The configuration parameters of each function item are loaded into the initial array of the use phase to obtain an updated array; the initial array of the use phase is the array updated in the personalization phase.
5. The method according to claim 4, characterized in that The function items include a debug mode setting function item and a debug cache space configuration function item. The function configuration instructions in the use phase are used to instruct to turn the debug mode on or off. When the debug mode is turned on, the debug cache space configuration function item can cache test data.
6. The method according to claim 5, characterized in that The method further comprises: Receiving a read instruction for an Applet application, wherein the read instruction is used to instruct to read the test data cached by the Applet application during the use phase test; The cause of the test failure is found based on the cached test data.
7. The method according to claim 1, characterized in that The Applet application is a digital key application, and the digital key application is at least used to control the opening and closing of vehicle doors, windows, air conditioning, trunk and engine.
8. An Applet application function configuration device, characterized in that: Applicable to the installation stage, personalization stage and use stage after the development of the Applet application is completed. The installation stage is used to install the Applet application into the SE; The personalization stage is used to personalize the functions of the Applet application after installation; The use phase is a normal use phase after the personalization phase is completed; the device includes: A loading unit, for responding to a function configuration instruction received at any stage after the development of the Applet application, loading the configuration parameters of each function item in the function configuration instruction into the initial array of the stage, and obtaining an updated array; the array is used to store the configuration parameters of each function item; wherein the function configuration instruction received at the installation stage is generated according to the function definition of the preset installation parameters; the function configuration instruction received at the personalization stage is generated according to the function definition of the preset personalization parameters; the function configuration instruction received at the use stage is generated according to the preset instruction definition of modifying the function configuration parameters; The configuration unit is used to configure the function items of the Applet application based on the updated array.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 7 when executing a program stored in a memory.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 7 are implemented.