Chip issuing detection system and method and chip issuing system

Through middleware, the software framework program is connected with the proprietary functions of chip issuance detection, which solves the problems of high software complexity and maintenance costs of chip issuance detection system in the existing technology, and realizes automatic issuance and detection of multiple chips, reducing the Maintenance cost and development difficulty.

CN118963857APending Publication Date: 2024-11-15BEIJING SMARTCHIP MICROELECTRONICS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411024313.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The existing chip issuance and detection systems require software transformation based on different types of chips, resulting in high software complexity, strong coupling, high maintenance costs, and difficult to adapt to the automatic issuance and detection of multiple chips.

Method used

Through middleware as a bridge, the software framework program is connected with the proprietary functions of chip issuance detection to realize chip issuance detection, avoiding continuous changes in the software framework program, reducing the internal complexity and coupling of the software, and simplifying the development and maintenance process.

Benefits of technology

It realizes automatic issuance and detection of multiple chips, reduces software maintenance costs, simplifies the development process, and improves the development efficiency and convenience of error detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118963857A_ABST
    Figure CN118963857A_ABST
Patent Text Reader

Abstract

The invention provides a chip issuing detection system and method and a chip issuing system, and belongs to the technical field of chip issuing. The chip issuing detection system comprises middleware and a software framework program, the software framework program comprises a basic function program, and a plurality of chip issuing detection special function programs used for realizing issuing detection tasks are mounted in the middleware; the middleware is used for acquiring a configuration file and loading a corresponding chip issuing detection special function program based on the configuration file; the software framework program is used for executing the equipment control action based on the basic function program, and calling the middleware when the equipment control action is executed to chip issuing detection so as to realize chip issuing detection on the to-be-detected chip. According to the method, the software framework program is effectively prevented from being continuously changed, the upgrading and reconstruction of the software framework program do not need to be concerned, the internal complexity of the whole software is reduced, the coupling is reduced, error checking in the development process is facilitated, and the maintenance cost of the software is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of chip issuance technology, and in particular to a chip issuance detection system, a chip issuance detection method, a chip issuance system, a machine-readable storage medium and an electronic device. Background Art

[0002] The basic process of issuance testing is that the chip issuance system cooperates with the issuance equipment to write information such as file structure and security keys into the chip. After that, the chip function needs to be tested to determine whether information such as file structure and security keys are correctly written into the chip to realize chip production automation.

[0003] The issuance detection software running in the existing chip issuance system is only for the issuance detection of a certain type of chip. If other types of chip issuance and detection are encountered, the chip issuance detection software needs to be appropriately adjusted according to the different types of chips. Therefore, the issuance detection software needs to be overall modified and adjusted for different types of chips. As a result, for each additional chip issuance detection, the issuance detection software must expand the functions of file structure establishment, information import and subsequent integrity detection. This leads to the continuous increase of the software, the internal complexity of the software, the strong coupling and the high maintenance cost. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a chip issuance detection system, a chip issuance detection method, a chip issuance system, a machine-readable storage medium and an electronic device. The chip issuance detection system can connect the software framework program with the chip issuance detection proprietary function through the middleware as a bridge without modifying the software main framework, thereby effectively avoiding the continuous modification of the software framework program, eliminating the need to pay attention to the upgrade and modification of the software framework program, reducing the internal complexity of the entire software, reducing coupling, facilitating error troubleshooting in the development process, and reducing the software maintenance cost.

[0005] In order to achieve the above-mentioned purpose, the first aspect of the present application provides a chip issuance detection system, including: middleware and a software framework program, the software framework program includes a basic function program, and the middleware is mounted with a plurality of chip issuance detection proprietary function programs for implementing issuance detection tasks;

[0006] The middleware is used to obtain a configuration file, and based on the configuration file, load a corresponding chip release detection proprietary function program;

[0007] The software framework program is used to execute device control actions based on the basic function program, and when the device control action is executed to the chip release detection, the middleware is called to implement chip release detection for the chip to be detected.

[0008] In the embodiment of the present application, the middleware includes a mounting middleware and a plurality of adapter middlewares, each of which is mounted on the mounting middleware, and each adapter middleware is encapsulated with a chip issuance detection proprietary function program for implementing issuance detection tasks;

[0009] The mounting middleware is used to obtain a configuration file and load the corresponding adapter middleware based on the configuration file;

[0010] The software framework program is used to execute device control actions based on the basic function program, and when the device control action is executed to chip release detection, the mounting middleware is called to implement chip release detection for the chip to be detected.

[0011] In the embodiment of the present application, the mounting middleware includes a matching module and a loading module;

[0012] The matching module is used to match the corresponding adapter middleware name to be selected based on the configuration file, and display the corresponding adapter middleware name to be selected to the user;

[0013] The loading module is used for loading the corresponding adapter middleware in response to the name of the adapter middleware to be selected by the user.

[0014] In an embodiment of the present application, the mounting middleware is provided with an interface function, and the software framework program is used to execute device control actions based on the basic function program, and when the device control action is executed to the chip release detection, based on the interface function, the mounting middleware is called in a static loading manner to realize chip release detection for the chip to be detected.

[0015] In an embodiment of the present application, the software framework program is provided with multiple threads, each thread corresponds to a release detection task of a track, and the number of the corresponding adapter middleware is multiple;

[0016] The software framework program is used to call the mounting middleware through each thread respectively, so as to implement chip release detection for the chip to be detected.

[0017] In the embodiment of the present application, the mounting middleware is used to call the corresponding adapter middleware in a dynamic calling manner based on the configuration file to load the corresponding adapter middleware.

[0018] A second aspect of the present application provides a chip issuance detection method, comprising:

[0019] Obtaining a configuration file, and based on the configuration file, loading a corresponding chip release detection proprietary function program;

[0020] The device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the corresponding chip release detection dedicated function program is called to realize the chip release detection for the chip to be detected.

[0021] In the embodiment of the present application, the chip issuance detection proprietary function program is encapsulated in the adapter middleware, and the adapter middleware is mounted on the mounting middleware;

[0022] The step of obtaining a configuration file and loading a corresponding chip release detection proprietary function program based on the configuration file includes:

[0023] The mounting middleware obtains a configuration file, and based on the configuration file, loads the corresponding adapter middleware;

[0024] The device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the corresponding chip release detection dedicated function program is called to implement chip release detection for the chip to be detected, including:

[0025] The device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the mounting middleware is called to realize the chip release detection for the chip to be detected.

[0026] In the embodiment of the present application, the mounting middleware loads the corresponding adapter middleware based on the configuration file, including:

[0027] The mounting middleware matches the corresponding adapter middleware name to be selected based on the configuration file, and displays the corresponding adapter middleware name to be selected to the user;

[0028] The mounting middleware loads the corresponding adapter middleware in response to the name of the adapter middleware to be selected by the user.

[0029] In the embodiment of the present application, the mounting middleware is provided with an interface function;

[0030] The device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the middleware is called to implement the chip release detection for the chip to be detected, including:

[0031] The device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the mounting middleware is called in a static loading manner based on the interface function to realize the chip release detection for the chip to be detected.

[0032] In the embodiment of the present application, the number of the corresponding adapter middleware is multiple;

[0033] The calling of the mounting middleware to implement chip release detection on the chip to be detected includes:

[0034] Create multiple threads, each thread corresponds to the release detection task of a track;

[0035] The mounting middleware is called respectively through each thread to implement chip release detection for the chip to be detected.

[0036] In the embodiment of the present application, the mounting middleware loads the corresponding adapter middleware based on the configuration file, including:

[0037] The mounting middleware calls the corresponding adapter middleware in a dynamic calling manner based on the configuration file to load the corresponding adapter middleware.

[0038] The third aspect of the present application provides a chip issuance system, comprising: a host computer and a slave computer, wherein the host computer is provided with the above-mentioned chip issuance detection system, and the host computer is used to control the slave computer to issue chips.

[0039] A fourth aspect of the present application provides an electronic device, the electronic device comprising:

[0040] at least one processor;

[0041] a memory connected to the at least one processor;

[0042] The memory stores instructions that can be executed by the at least one processor, and the at least one processor implements the above-mentioned chip release detection method by executing the instructions stored in the memory.

[0043] A fifth aspect of the present application provides a machine-readable storage medium, on which instructions are stored. When the instructions are executed by a processor, the processor is configured to execute the above-mentioned chip release detection method.

[0044] Through the above technical solution, by setting up middleware and software framework program, the software framework program includes a basic function program, and the middleware is mounted with multiple chip issuance detection proprietary function programs for realizing issuance detection tasks; the middleware is used to obtain configuration files, and based on the configuration files, load the corresponding chip issuance detection proprietary function programs; the software framework program is used to execute device control actions based on the basic function program, and when the device control action is executed to the chip issuance detection, the middleware is called to realize the chip issuance detection for the chip to be detected. By setting up the middleware, the software framework program is separated from the chip issuance detection proprietary function for realizing the issuance detection task, which can not only ensure the stability of the basic software function, but also realize the independence and adaptability of the issuance of different types of chips. By separating the software framework program from the chip issuance detection proprietary function, the software framework program can be connected with the chip issuance detection proprietary function through the middleware as a bridge without modifying the main software framework, so that it can be applicable to the automatic issuance and detection of multiple chips. During the development process, you only need to focus on the development of proprietary functions for chip release detection of different chips and the acquisition of configuration files. You do not need to focus on the development of software framework programs, which reduces the difficulty of development and effectively avoids constant changes to software framework programs. You do not need to focus on upgrading and modifying software framework programs, which reduces the internal complexity of the entire software, reduces coupling, facilitates error troubleshooting during the development process, and reduces software maintenance costs.

[0045] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0047] Figure 1 The following schematically shows a structural diagram of a security chip issuance detection system according to an embodiment of the present application;

[0048] Figure 2 A schematic diagram of a chip issuance detection method according to an embodiment of the present application is shown;

[0049] Figure 3 The internal structure diagram of a computer device according to an embodiment of the present application is schematically shown.

[0050] Description of Reference Numerals

[0051] A01-processor; A02-network interface; A03-internal memory; A04-display screen; A05-input device; A06-non-volatile storage medium; B01-operating system; B02-computer program. DETAILED DESCRIPTION

[0052] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.

[0053] It should be noted that the loading mentioned in this embodiment refers to the process of loading program code and data from a disk or other storage device into the computer's memory for execution. Mounting is a process by which the operating system makes the middleware program files on a storage device available for other middleware program files to call and access. In order to facilitate the description of the solution, this embodiment mainly takes the security chip as an example to illustrate the chip issuance detection.

[0054] This embodiment provides a chip release detection system, including: middleware and a software framework program, the software framework program includes a basic function program, and the middleware is mounted with a plurality of chip release detection-specific function programs for implementing release detection tasks;

[0055] The middleware is used to obtain a configuration file, and based on the configuration file, load a corresponding chip release detection proprietary function program;

[0056] The software framework program is used to execute device control actions based on the basic function program, and when the device control action is executed to the chip release detection, the middleware is called to implement chip release detection for the chip to be detected.

[0057] In this embodiment, the above-mentioned middleware refers to a dynamic link library, which can be designed to provide a unified interface function to the outside world for easy calling. The above-mentioned chip issuance detection proprietary function program for implementing the issuance detection task can be pre-designed, and different proprietary function programs can be set according to different chips. These proprietary function programs are used to implement the issuance detection task. The above-mentioned basic function program includes function programs such as issuance device management, login management, and parameter setting management. It should be noted that these functions are the same or similar for different chips, and there are few changes in the software framework, that is, they can be used as general functions. The above-mentioned configuration file may include information such as chip type and corresponding chip manufacturer. The above-mentioned middleware can find the chip issuance detection proprietary function program corresponding to the chip according to the information in the configuration file, and load it into the middleware. The software framework program performs device control actions by executing the basic function program. When the device control action proceeds to the chip issuance inspection step, the software framework program calls the middleware to implement chip issuance detection for the chip to be detected.

[0058] In the above implementation process, by setting up middleware and software framework program, the software framework program includes a basic function program, and the middleware is mounted with multiple chip issuance detection proprietary function programs for implementing issuance detection tasks; the middleware is used to obtain a configuration file, and based on the configuration file, load the corresponding chip issuance detection proprietary function program; the software framework program is used to execute device control actions based on the basic function program, and when the device control action is executed to the chip issuance detection, the middleware is called to implement chip issuance detection for the chip to be detected. By setting up the middleware, the software framework program is separated from the chip issuance detection proprietary function for implementing the issuance detection task, which can not only ensure the stability of the basic software function, but also realize the independence and adaptability of the issuance of different types of chips. By separating the software framework program from the chip issuance detection proprietary function, the software framework program can be connected with the chip issuance detection proprietary function through the middleware as a bridge without modifying the main software framework, so that it can be applied to the automatic issuance and detection of multiple chips. During the development process, you only need to focus on the development of proprietary functions for chip release detection of different chips and the acquisition of configuration files. You do not need to focus on the development of software framework programs, which reduces the difficulty of development and effectively avoids constant changes to software framework programs. You do not need to focus on upgrading and modifying software framework programs, which reduces the internal complexity of the entire software, reduces coupling, facilitates error troubleshooting during the development process, and reduces software maintenance costs.

[0059] In some embodiments, in order to quickly and accurately connect to the chip issuance detection proprietary function program for implementing the issuance detection task, the middleware includes a mounting middleware and a plurality of adapter middlewares, each of which is mounted on the mounting middleware, and each adapter middleware is encapsulated with a chip issuance detection proprietary function program for implementing the issuance detection task;

[0060] The mounting middleware is used to obtain a configuration file and load the corresponding adapter middleware based on the configuration file;

[0061] The software framework program is used to execute device control actions based on the basic function program, and when the device control action is executed to chip release detection, the mounting middleware is called to implement chip release detection for the chip to be detected.

[0062] In this embodiment, the adapter middleware can be a dynamic link library with different names created according to different types of chips. The dynamic link library encapsulates a chip issuance detection proprietary function program for implementing the issuance detection task. The chip issuance detection proprietary function program can be an issuance detection script pre-written by the chip manufacturer to implement the chip issuance detection proprietary function. Taking the security chip as an example, the chip issuance detection proprietary function includes file structure creation, data initialization, and key import. For different types of chips, there are different proprietary functions. Therefore, there are different chip issuance detection proprietary function programs. Multiple adapter middleware can be defined and implemented according to different chip types. Each mounted middleware can load multiple adapter middlewares of different types of chip issuance detection proprietary function programs. It is also possible to load adapter middleware of different manufacturers according to different chip manufacturers.

[0063] The mounting middleware is a universal middleware, which defines the general function definition of issuance and inspection. The adapter middleware needs to complete the issuance and inspection process of different manufacturers according to the general definition, and then load the adapter middleware configuration of different manufacturers into the mounting middleware to complete the issuance and inspection of different manufacturers.

[0064] The above-mentioned mounting middleware can be a dynamic link library, and the mounting middleware mounts multiple adapter middlewares, that is, the mounting middleware is associated with multiple adapter middlewares for selection by the detection task. Different adapter middlewares can be set with different names or numbers to distinguish them. Accordingly, the name or number is written in the configuration file of the mounting middleware to facilitate the loading of the corresponding adapter middleware. Specifically, when implementing, the name of the adapter middleware with different names can be written into the configuration file, and then the configuration file is loaded inside the mounting middleware to load the adapter middleware with different names in the configuration file into the mounting middleware program, and finally the call of the adapter middleware of different chips is completed inside the mounting middleware, that is, the adapter middleware of different chips is called inside the mounting middleware to complete the loading of the proprietary function of the release detection of different types of chips. Its role is to establish a bridge between the software framework program and the adapter middleware, and complete the docking of the software framework program and the adapter middleware. When the device control action is executed to the chip release detection, the software framework program calls the mounting middleware to realize the chip release detection of the chip to be detected.

[0065] During the above implementation process, a mounting middleware and multiple adapter middlewares are set up, and each adapter middleware is mounted on the mounting middleware respectively, and each adapter middleware encapsulates a chip issuance detection proprietary function program for implementing the issuance detection task; the mounting middleware is used as a bridge, and the middleware loading strategy is used to connect the software framework with the adapter middleware, so as to quickly and accurately connect the chip issuance detection proprietary function program for implementing the issuance detection task. During the development process, it is only necessary to pay attention to the development of different chip issuance detection proprietary functions and enter the adapter middleware name in the configuration file of the mounting middleware. There is no need to pay attention to the development of the overall software framework, which reduces the difficulty of development.

[0066] The following uses the security chip as an example for explanation. Figure 1 , Figure 1 The schematic diagram of the structure of a security chip issuance detection system according to an embodiment of the present application is shown. The overall software framework loads the mounting component through the mounting component loading strategy, and the mounting component loads each chip adapter component through the adapter component loading strategy. The overall software framework here is the software framework program, which contains the basic function program, and the mounting component and the adapter component correspond to the mounting middleware and the adapter middleware respectively. The mounting component loading strategy refers to calling the mounting component when the basic function program executes the chip issuance detection. The adapter component loading strategy refers to loading the corresponding adapter component based on the configuration file.

[0067] In some embodiments, the mounting middleware includes a matching module and a loading module;

[0068] The matching module is used to match the corresponding adapter middleware name to be selected based on the configuration file, and display the corresponding adapter middleware name to be selected to the user;

[0069] In this embodiment, there may be multiple chip manufacturers for a type of chip. Accordingly, there will be adapter middleware from different chip manufacturers. The name of the adapter middleware is specified in the configuration file in the mounted middleware. The adapter middleware name may be the chip type. By loading the configuration file, adapter middleware from multiple chip manufacturers can be obtained. It should be noted that there may be other corresponding relationships between the adapter middleware and the chip. For example, a chip number may correspond to multiple adapter middleware. After the chip number is written into the configuration file in the mounted middleware, multiple adapter middleware may be matched. This will not be described in detail here. The corresponding name of the selected adapter middleware is displayed to the user, so that the user can make a selection.

[0070] The loading module is used for loading the corresponding adapter middleware in response to the name of the adapter middleware to be selected by the user.

[0071] In this embodiment, the user can select the corresponding adapter middleware name to be selected according to actual needs, and accordingly, the corresponding adapter middleware can be loaded.

[0072] In the above implementation process, the matching module matches the corresponding adapter middleware name based on the configuration file and displays the corresponding adapter middleware name to the user, and the loading module loads the corresponding adapter middleware in response to the adapter middleware name selected by the user. This can meet different user needs and make chip issuance detection more flexible.

[0073] In some embodiments, the mounting middleware is provided with an interface function, and the software framework program is used to execute device control actions based on the basic function program, and when the device control action is executed to the chip release detection, based on the interface function, the mounting middleware is called in a static loading manner to realize chip release detection for the chip to be detected.

[0074] In this embodiment, the mounted middleware is a dynamic link library that can provide a unified interface function. Through the interface function, it is provided to the internal call of the software framework program in a static loading manner to implement chip release detection for the chip to be detected.

[0075] Through static loading, the dynamic link library is loaded into the memory at compile time, and does not need to be loaded at runtime, which can improve the performance of the program. At the same time, the path or name of the dynamic link library can be directly specified in the code, which is convenient for management and maintenance.

[0076] In some embodiments, the software framework program is provided with a plurality of threads, each thread corresponds to a release detection task of a track, and the number of the corresponding adapter middleware is multiple;

[0077] The software framework program is used to call the mounting middleware through each thread respectively, so as to implement chip release detection for the chip to be detected.

[0078] In this embodiment, in order to match the multi-track release of release detection, multiple threads can be created in the software framework program, and each thread corresponds to a track release detection task. The release detection task does not need to be implemented in the overall software framework. Instead, the release detection task is encapsulated into an adapter middleware. The software framework program completes the release detection function as a whole by calling the mounting middleware and connecting to the adapter interface.

[0079] During the above implementation process, in a multi-threaded environment, the dynamic link library can be accessed concurrently by multiple threads without the need for additional synchronization operations, thereby realizing multi-track release detection. This can improve the performance and concurrency of the program and avoid performance degradation or thread safety issues due to competition for resource access.

[0080] In some embodiments, the mounting middleware is used to call the corresponding adapter middleware in a dynamic calling manner based on the configuration file to load the corresponding adapter middleware.

[0081] In this embodiment, the calling of different chip adapter middleware dynamic link libraries is completed in the mounting middleware by dynamic calling, that is, the adapter middleware of different chips is called in the mounting middleware to complete the loading of the release detection function of different types of chips.

[0082] In the above implementation process, dynamic calling allows different adapter middleware to be called as needed at runtime, making the program more flexible and extensible. It also allows the program to be extended without modifying the source code. By dynamically loading additional functions or resources, new functions can be quickly implemented without affecting the original code structure and logic.

[0083] Please see Figure 2 , Figure 2 The following is a schematic diagram of a chip issuance detection method according to an embodiment of the present application. This embodiment provides a chip issuance detection method, comprising the following steps:

[0084] Step 210: Obtain a configuration file, and based on the configuration file, load a corresponding chip release detection proprietary function program;

[0085] In this embodiment, the chip issuance detection proprietary function program may be pre-designed, and different proprietary function programs may be set according to different chips, and these proprietary function programs are used to implement the issuance detection task. The configuration file may include information such as chip type and corresponding chip manufacturer. The chip issuance detection proprietary function program corresponding to the chip may be found according to the information in the configuration file and loaded into the middleware.

[0086] Step 220: Execute the device control action based on the basic function program, and when the device control action is executed to the chip release detection, call the corresponding chip release detection dedicated function program to implement chip release detection for the chip to be detected.

[0087] In this embodiment, the basic function programs include function programs such as issuing device management, login management, and parameter setting management. It should be noted that these functions are the same or similar for different chips, and there are few changes in the software framework, that is, they can be used as general functions. The software framework program performs device control actions by executing basic function programs. When the device control action reaches the chip issuance inspection step, the software framework program calls the corresponding chip issuance detection proprietary function program to perform the issuance detection task, thereby realizing chip issuance detection for the chip to be detected.

[0088] In the above implementation process, by obtaining the configuration file, and based on the configuration file, the corresponding chip release detection proprietary function program is loaded; the device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the corresponding chip release detection proprietary function program is called to realize the chip release detection of the chip to be detected. By separating the software framework program from the chip release detection proprietary function used to realize the release detection task, the stability of the basic software function can be guaranteed, and the independence and adaptability of the release of different types of chips can be realized. By separating the software framework program from the chip release detection proprietary function, the software framework program can be connected with the chip release detection proprietary function through the middleware as a bridge without modifying the main software framework, so that the automatic release and detection of multiple chips can be applied. In the development process, only the development of the chip release detection proprietary function of different chips and the acquisition of the configuration file need to be paid attention to, and the development of the software framework program is reduced, which reduces the difficulty of development, effectively avoids the continuous modification of the software framework program, and does not need to pay attention to the upgrading and transformation of the software framework program, which reduces the internal complexity of the entire software, reduces coupling, facilitates error troubleshooting in the development process, and reduces the maintenance cost of the software.

[0089] In some embodiments, in order to quickly and accurately connect the chip issuance detection proprietary function program for implementing the issuance detection task, the chip issuance detection proprietary function program is encapsulated in the adapter middleware, and the adapter middleware is mounted on the mounting middleware;

[0090] Correspondingly, the middleware obtains the configuration file, and based on the configuration file, loads the corresponding chip release detection proprietary function program, including: the mounting middleware obtains the configuration file, and based on the configuration file, loads the corresponding adapter middleware;

[0091] Correspondingly, the device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the middleware is called to realize the chip release detection of the chip to be detected, including: the device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the mounted middleware is called to realize the chip release detection of the chip to be detected.

[0092] In this embodiment, the adapter middleware can be a dynamic link library with different names created according to different types of chips. The dynamic link library encapsulates a chip issuance detection proprietary function program for implementing the issuance detection task. The chip issuance detection proprietary function program can be an issuance detection script pre-written by the chip manufacturer to implement the chip issuance detection proprietary function. Taking the security chip as an example, the chip issuance detection proprietary function includes file structure creation, data initialization, and key import. For different types of chips, there are different proprietary functions. Therefore, there are different chip issuance detection proprietary function programs. Multiple adapter middleware can be defined and implemented according to different chip types. Each mounted middleware can load multiple adapter middlewares of different types of chip issuance detection proprietary function programs. It is also possible to load adapter middleware of different manufacturers according to different chip manufacturers.

[0093] The mounting middleware is a universal middleware, which defines the general function definition of issuance and inspection. The adapter middleware needs to complete the issuance and inspection process of different manufacturers according to the general definition, and then load the adapter middleware configuration of different manufacturers into the mounting middleware to complete the issuance and inspection of different manufacturers.

[0094] The above-mentioned mounting middleware can be a dynamic link library, and the mounting middleware mounts multiple adapter middlewares, that is, the mounting middleware is associated with multiple adapter middlewares for selection by the detection task. Different adapter middlewares can be set with different names or numbers to distinguish them. Accordingly, the names or numbers are written in the configuration file to facilitate the loading of the corresponding adapter middleware. Specifically, when implementing, the names of adapter middlewares with different names can be written into the configuration file, and then the configuration file is loaded inside the mounting middleware to load the adapter middlewares with different names in the configuration file into the mounting middleware program, and finally the call of different chip adapter middlewares is completed inside the mounting middleware, that is, the adapter middlewares of different chips are called inside the mounting middleware to complete the loading of the proprietary functions of different types of chip issuance detection. Its role is to establish a bridge between the software framework program and the adapter middleware, and complete the docking of the software framework program and the adapter middleware. When the device control action is executed to the chip issuance detection, the software framework program calls the mounting middleware to realize the chip issuance detection of the chip to be detected.

[0095] During the above implementation process, a mounting middleware and multiple adapter middlewares are set up, and each adapter middleware is mounted on the mounting middleware respectively, and each adapter middleware encapsulates a chip issuance detection proprietary function program for implementing the issuance detection task; the mounting middleware is used as a bridge, and the middleware loading strategy is used to connect the software framework with the adapter middleware, so as to quickly and accurately connect the chip issuance detection proprietary function program for implementing the issuance detection task. During the development process, it is only necessary to pay attention to the development of different chip issuance detection proprietary functions and enter the adapter middleware name in the configuration file of the mounting middleware. There is no need to pay attention to the development of the overall software framework, which reduces the difficulty of development.

[0096] In some embodiments, the mounting middleware loads the corresponding adapter middleware based on the configuration file, including the following steps:

[0097] First, the mounting middleware matches the corresponding adapter middleware name to be selected based on the configuration file, and displays the corresponding adapter middleware name to be selected to the user;

[0098] In this embodiment, there may be multiple chip manufacturers for a type of chip. Accordingly, there will be adapter middleware from different chip manufacturers. The name of the adapter middleware is specified in the configuration file. The adapter middleware name can be the chip type. By loading the configuration file, adapter middleware from multiple chip manufacturers can be obtained. It should be noted that there can be other corresponding relationships between the adapter middleware and the chip. For example, a chip number can correspond to multiple adapter middleware. After the chip number is written into the configuration file, multiple adapter middleware can be matched. It will not be repeated here. The corresponding name of the selected adapter middleware is displayed to the user, so that the user can make a selection.

[0099] Then, the mounting middleware loads the corresponding adapter middleware in response to the name of the adapter middleware to be selected by the user.

[0100] In this embodiment, the user can select the corresponding adapter middleware name to be selected according to actual needs, and accordingly, the corresponding adapter middleware can be loaded.

[0101] In the above implementation process, the corresponding adapter middleware name to be selected is matched based on the configuration file, and the corresponding adapter middleware name to be selected is displayed to the user, and the corresponding adapter middleware is loaded in response to the adapter middleware name to be selected by the user. This can meet different user needs and make chip issuance detection more flexible.

[0102] In some embodiments, the mounting middleware is provided with an interface function;

[0103] The device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the middleware is called to implement the chip release detection for the chip to be detected, including:

[0104] The device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the mounting middleware is called in a static loading manner based on the interface function to realize the chip release detection for the chip to be detected.

[0105] In this embodiment, the mounted middleware is a dynamic link library that can provide a unified interface function. Through the interface function, it is provided to the internal call of the software framework program in a static loading manner to implement chip release detection for the chip to be detected.

[0106] Through static loading, the dynamic link library is loaded into the memory at compile time, and does not need to be loaded at runtime, which can improve the performance of the program. At the same time, the path or name of the dynamic link library can be directly specified in the code, which is convenient for management and maintenance.

[0107] In some embodiments, the number of the corresponding adapter middleware is multiple;

[0108] The calling of the mounting middleware to implement chip release detection on the chip to be detected includes:

[0109] First, create multiple threads, each thread corresponding to the release detection task of a track;

[0110] Then, the mounting middleware is called respectively through each thread to implement chip release detection for the chip to be detected.

[0111] In this embodiment, in order to match the multi-track release of release detection, multiple threads can be created in the software framework program, and each thread corresponds to a track release detection task. The release detection task does not need to be implemented in the overall software framework. Instead, the release detection task is encapsulated into an adapter middleware. The software framework program completes the release detection function as a whole by calling the mounting middleware and connecting to the adapter interface.

[0112] During the above implementation process, in a multi-threaded environment, the dynamic link library can be accessed concurrently by multiple threads without the need for additional synchronization operations, thereby realizing multi-track release detection. This can improve the performance and concurrency of the program and avoid performance degradation or thread safety issues due to competition for resource access.

[0113] In some embodiments, the mounting middleware loads the corresponding adapter middleware based on the configuration file, including:

[0114] The mounting middleware calls the corresponding adapter middleware in a dynamic calling manner based on the configuration file to load the corresponding adapter middleware.

[0115] In this embodiment, the calling of different chip adapter middleware dynamic link libraries is completed in the mounting middleware by dynamic calling, that is, the adapter middleware of different chips is called in the mounting middleware to complete the loading of the release detection function of different types of chips.

[0116] In the above implementation process, dynamic calling allows different adapter middleware to be called as needed at runtime, making the program more flexible and extensible. It also allows the program to be extended without modifying the source code. By dynamically loading additional functions or resources, new functions can be quickly implemented without affecting the original code structure and logic.

[0117] This embodiment provides a chip issuance system, including: a host computer and a slave computer, wherein the host computer is provided with the above-mentioned chip issuance detection system, and the host computer is used to control the slave computer to perform chip issuance.

[0118] In this embodiment, taking the security chip issuance system as an example, the above-mentioned lower computer includes a security issuance device and other peripheral devices (crypto machine, reader / writer, etc.). The upper computer can be a computer or other equipment. The security chip issuance system in the upper computer cooperates with the security issuance device to write the file structure and security key into the chip. After that, the chip security function needs to be tested to determine whether the file structure and key are correctly written into the security chip, so as to realize the automation of security chip production.

[0119] In the above implementation process, by separating the software framework program from the chip issuance detection proprietary function used to implement the issuance detection task, the stability of the basic software functions can be guaranteed, and the independence and adaptability of the issuance of different types of chips can be achieved, so as to realize the automation of chip production. By separating the software framework program from the chip issuance detection proprietary function, the software framework program can be connected with the chip issuance detection proprietary function through the middleware as a bridge without modifying the main software framework, so that it can be applied to the automatic issuance and detection of a variety of chips. During the development process, it is only necessary to pay attention to the development of the chip issuance detection proprietary function of different chips and the acquisition of configuration files, without paying attention to the development of the software framework program, which reduces the difficulty of development, effectively avoids the continuous modification of the software framework program, and does not need to pay attention to the upgrade and transformation of the software framework program, which reduces the internal complexity of the entire software, reduces coupling, facilitates error troubleshooting during the development process, and reduces the maintenance cost of the software.

[0120] An embodiment of the present invention provides a machine-readable storage medium on which a program is stored. When the program is executed by a processor, the chip issuance detection method is implemented.

[0121] An embodiment of the present invention provides a processor, which is used to run a program, wherein the chip release detection method is executed when the program is running.

[0122] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 3As shown. The computer device includes a processor A01, a network interface A02, a display screen A04, an input device A05 and a memory (not shown in the figure) connected through a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A06. The non-volatile storage medium A06 stores an operating system B01 and a computer program B02. The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A06. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor A01, a chip issuance detection method is implemented. The display screen A04 of the computer device can be a liquid crystal display or an electronic ink display, and the input device A05 of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0123] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0124] The embodiment of the present application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented:

[0125] Obtaining a configuration file, and based on the configuration file, loading a corresponding chip release detection proprietary function program;

[0126] The device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the corresponding chip release detection dedicated function program is called to realize the chip release detection for the chip to be detected.

[0127] In one embodiment, the chip release detection proprietary function program is encapsulated in an adapter middleware, and the adapter middleware is mounted on the mounting middleware;

[0128] The step of obtaining a configuration file and loading a corresponding chip release detection proprietary function program based on the configuration file includes:

[0129] The mounting middleware obtains a configuration file, and based on the configuration file, loads the corresponding adapter middleware;

[0130] The device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the corresponding chip release detection dedicated function program is called to implement chip release detection for the chip to be detected, including:

[0131] The device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the mounting middleware is called to realize the chip release detection for the chip to be detected.

[0132] In one embodiment, the mounting middleware loads the corresponding adapter middleware based on the configuration file, including:

[0133] The mounting middleware matches the corresponding adapter middleware name to be selected based on the configuration file, and displays the corresponding adapter middleware name to be selected to the user;

[0134] The mounting middleware loads the corresponding adapter middleware in response to the name of the adapter middleware to be selected by the user.

[0135] In one embodiment, the mounting middleware is provided with an interface function;

[0136] The device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the middleware is called to implement the chip release detection for the chip to be detected, including:

[0137] The device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the mounting middleware is called in a static loading manner based on the interface function to realize the chip release detection for the chip to be detected.

[0138] In one embodiment, the number of the corresponding adapter middleware is multiple;

[0139] The calling of the mounting middleware to implement chip release detection on the chip to be detected includes:

[0140] Create multiple threads, each thread corresponds to the release detection task of a track;

[0141] The mounting middleware is called respectively through each thread to implement chip release detection for the chip to be detected.

[0142] In one embodiment, the mounting middleware loads the corresponding adapter middleware based on the configuration file, including:

[0143] The mounting middleware calls the corresponding adapter middleware in a dynamic calling manner based on the configuration file to load the corresponding adapter middleware.

[0144] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0145] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0146] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0147] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0148] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0149] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0150] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0151] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0152] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A chip issuance detection system, characterized in that: include: Middleware and software framework program, the software framework program includes basic function program, and the middleware is loaded with multiple chip release detection proprietary function programs for realizing release detection tasks; The middleware is used to obtain a configuration file, and based on the configuration file, load a corresponding chip release detection proprietary function program; The software framework program is used to execute device control actions based on the basic function program, and when the device control action is executed to the chip release detection, the middleware is called to implement chip release detection for the chip to be detected.

2. The chip issuance detection system according to claim 1, characterized in that: The middleware includes a mounting middleware and a plurality of adapter middlewares, each of which is mounted on the mounting middleware, and each adapter middleware is encapsulated with a chip issuance detection proprietary function program for realizing issuance detection tasks; The mounting middleware is used to obtain a configuration file and load the corresponding adapter middleware based on the configuration file; The software framework program is used to execute device control actions based on the basic function program, and when the device control action is executed to chip release detection, the mounting middleware is called to implement chip release detection for the chip to be detected.

3. The chip issuance detection system according to claim 2, characterized in that: The mounting middleware includes a matching module and a loading module; The matching module is used to match the corresponding adapter middleware name to be selected based on the configuration file, and display the corresponding adapter middleware name to be selected to the user; The loading module is used for loading the corresponding adapter middleware in response to the name of the adapter middleware to be selected by the user.

4. The chip issuance detection system according to claim 2, characterized in that: The mounting middleware is provided with an interface function, and the software framework program is used to execute device control actions based on the basic function program, and when the device control action is executed to the chip release detection, the mounting middleware is called in a static loading manner based on the interface function to realize chip release detection for the chip to be detected.

5. The chip issuance detection system according to claim 2, characterized in that: The software framework program is provided with a plurality of threads, each thread corresponds to a release detection task of a track, and the number of the corresponding adapter middleware is multiple; The software framework program is used to call the mounting middleware through each thread respectively, so as to implement chip release detection for the chip to be detected.

6. The chip issuance detection system according to claim 2, characterized in that: The mounting middleware is used to call the corresponding adapter middleware in a dynamic calling manner based on the configuration file to load the corresponding adapter middleware.

7. A chip issuance detection method, characterized in that: include: Obtaining a configuration file, and based on the configuration file, loading a corresponding chip release detection proprietary function program; The device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the corresponding chip release detection dedicated function program is called to realize the chip release detection for the chip to be detected.

8. The chip issuance detection method according to claim 7, characterized in that: The chip issuance detection proprietary function program is encapsulated in the adapter middleware, and the adapter middleware is mounted on the mounting middleware; The step of obtaining a configuration file and loading a corresponding chip release detection proprietary function program based on the configuration file includes: The mounting middleware obtains a configuration file, and based on the configuration file, loads the corresponding adapter middleware; The device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the corresponding chip release detection dedicated function program is called to implement chip release detection for the chip to be detected, including: The device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the mounting middleware is called to realize the chip release detection for the chip to be detected.

9. The chip issuance detection method according to claim 8, characterized in that: The mounting middleware loads the corresponding adapter middleware based on the configuration file, including: The mounting middleware matches the corresponding adapter middleware name to be selected based on the configuration file, and displays the corresponding adapter middleware name to be selected to the user; The mounting middleware loads the corresponding adapter middleware in response to the name of the adapter middleware to be selected by the user.

10. The chip issuance detection method according to claim 8, characterized in that: The mounting middleware is provided with an interface function; The device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the middleware is called to implement the chip release detection for the chip to be detected, including: The device control action is executed based on the basic function program, and when the device control action is executed to the chip release detection, the mounting middleware is called in a static loading manner based on the interface function to realize the chip release detection for the chip to be detected.

11. The chip issuance detection method according to claim 8, characterized in that: The number of the corresponding adapter middleware is multiple; The calling of the mounting middleware to implement chip release detection on the chip to be detected includes: Create multiple threads, each thread corresponds to the release detection task of a track; The mounting middleware is called respectively through each thread to implement chip release detection for the chip to be detected.

12. The chip issuance detection method according to claim 8, characterized in that: The mounting middleware loads the corresponding adapter middleware based on the configuration file, including: The mounting middleware calls the corresponding adapter middleware in a dynamic calling manner based on the configuration file to load the corresponding adapter middleware.

13. A chip issuance system, characterized in that: include: A host computer and a slave computer, wherein the host computer is provided with the chip issuance detection system according to any one of claims 1 to 6, and the host computer is used to control the slave computer to issue chips.

14. An electronic device, characterized in that: The electronic device includes: at least one processor; a memory connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the at least one processor implements the chip issuance detection method according to any one of claims 7 to 12 by executing the instructions stored in the memory.

15. A machine-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by a processor, the processor is configured to execute the chip release detection method according to any one of claims 7 to 12.