A method and system for writing authentication characteristic information
By batch generating and storing identification codes and authentication feature information during the production process of vehicle-mounted target terminal equipment, and writing them directly on the target terminal, the problems of low writing efficiency and poor reliability in the existing technology are solved, and efficient and accurate authentication is achieved. Characteristic information is written.
Patent Information
- Application Number
- CN202210329264.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-31
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-03-31
AI Technical Summary
The existing authentication feature information writing system takes a long time during the production process of vehicle-mounted target terminal equipment and is susceptible to communication failures, resulting in low efficiency and poor reliability.
The application module generates and stores identification codes and authentication feature information in batches. The first writing device directly writes the identification code when the target terminal arrives, and the second writing device writes the corresponding authentication feature information based on the identification code to avoid conflicts with the management module. Communicate, streamline processes and increase efficiency and reliability.
It improves the efficiency and accuracy of signature writing, reduces writing interruptions caused by communication failures, and enhances the reliability and security of the writing process.
Smart Images

Figure CN114710345B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of secure communication technology, and in particular to a method and system for writing authentication feature information. Background Art
[0002] With the rapid development of the Internet of Vehicles, smart cars are gradually integrating modern communication and network technologies. The "Internet +" scenario applications based on vehicle-mounted target terminals are becoming more and more extensive, and the various information security risks and threats faced by vehicle-mounted target terminals are also increasing. It is particularly important to add identity recognition information to the vehicle-mounted target terminal. The authentication feature information generated for the vehicle-mounted target terminal identification is an important identity recognition solution. The authentication feature information is generally generated in the server. The authentication feature information of different vehicle-mounted target terminal devices is different. A solution and device are needed to efficiently and accurately write the authentication feature information to the vehicle-mounted target terminal device during the production process of the vehicle-mounted target terminal device.
[0003] The current method of writing authentication feature information into the system is: when the vehicle-mounted target terminal is at the authentication feature information writing station of the production line, the vehicle-mounted target terminal applies to the authentication feature information writing system for the authentication feature information of the local machine. After receiving the application, the authentication feature information writing system applies to the company's management module for the authentication feature information of the device. After receiving the authentication feature information application of the device, the authentication feature information writing system transmits the authentication feature information to the vehicle-mounted target terminal through a special interface. After receiving the authentication feature information, the vehicle-mounted target terminal writes the authentication feature information into the device for use in subsequent identity authentication when communicating with the background. This serial processing method causes the authentication feature information to be written into the station for a long time. At the same time, when the authentication feature information writing system fails to communicate with the company's management module, it affects the production line production. Summary of the invention
[0004] The object of the present invention is to provide a method and system for writing authentication feature information, which can improve the efficiency of signature writing and at the same time improve the accuracy and stability during the writing process.
[0005] In a first aspect, an embodiment of the present application provides a method for writing authentication feature information, characterized in that it includes:
[0006] S1. The application module generates and stores a preset number of identification codes in batches according to the production order information, and sends the preset number of identification codes to the management module, so that the management module generates authentication feature information corresponding to the preset number of identification codes one by one based on the preset number of identification codes;
[0007] S2. The first writing device receives and stores the preset number of identification codes sent by the application module;
[0008] S3, the second writing device receives and stores the preset amount of authentication feature information sent by the management module before writing the authentication feature information to the target terminal;
[0009] S4, when the target terminal arrives at the designated station, the first writing device writes the identification code pre-stored in the first writing device into the corresponding target terminal in sequence through the interface;
[0010] S5. When the target terminal with the written identification code arrives at the preset station, the second writing device writes the pre-stored authentication feature information into the target terminal through the interface according to the identification code of the target terminal.
[0011] In some embodiments, in step S3, the authentication feature information includes information formed by signing the identification code using a private key of an asymmetric key pair.
[0012] In some embodiments, step S1 further includes: when the application module sends the preset number of identification codes to the management module, the application module also sends first verification information for determining whether the data information of the identification code is incorrect.
[0013] In some embodiments, step S5 further includes: when the second writing device writes the authentication feature information to the target terminal, the second writing device also sends second verification information for determining whether the data information of the authentication feature information is incorrect.
[0014] In some embodiments, in step S5, if the authentication feature information fails to be written, the second writing device determines that the corresponding target terminal is abnormal, and records the corresponding authentication feature information as a write failure.
[0015] In some embodiments, after step S5, step S6 is also included: the second writing device records the writing status of each authentication feature information to generate a log file, and after the second writing device has processed all the authentication feature information pre-stored therein, the log file is sent to the application module, and the application module modifies the corresponding identification code status according to the log file.
[0016] In some embodiments, the production order information includes production quantity and identification code encoding rules.
[0017] In some embodiments, the authentication feature information includes a matching identification code field and an authentication feature field.
[0018] On the other hand, an embodiment of the present application provides an authentication feature information writing system, including: an application module, and a first writing device and a second writing device connected thereto;
[0019] An application module, configured to generate and store a preset number of identification codes according to the production order information, and send the preset number of identification codes to the management module, so that the management module generates authentication feature information corresponding to the preset number of identification codes one by one based on the preset number of identification codes;
[0020] A first writing device, used for receiving and storing the preset number of identification codes sent by the application module, and writing the pre-stored identification codes into the corresponding target terminal in sequence through the interface when the target terminal arrives at the designated station;
[0021] The second writing device is used to pre-receive and store a preset number of authentication feature information sent by the management module before writing the authentication feature information to the target terminal. When the target terminal with the written identification code arrives at the preset workstation, the pre-stored authentication feature information is written into the target terminal through the interface according to the identification code of the target terminal.
[0022] Compared with the prior art, the beneficial effects of the present invention are as follows: by generating identification codes and authentication feature information that match the production quantity, and sending the identification codes and authentication feature information in batches in advance and storing them in the first writing device and the second writing device, during production, the first writing device and the second writing device directly call the identification codes and authentication feature information, and write them into the target terminal through the interface, so that the first writing device and the second writing device do not need to communicate with the application module during writing, which simplifies the signature writing process and improves the writing efficiency on the one hand; on the other hand, it can avoid the interruption of signature writing caused by communication failure and improve the reliability of writing. Adding verification information in the process of sending the authentication feature information can improve the security and accuracy of writing. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a flowchart of the method for writing authentication feature information of the present invention.
[0024] Figure 2 This is a structural block diagram of the authentication feature information writing system of the present invention. DETAILED DESCRIPTION
[0025] 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 a part of the embodiments of the present invention, rather than all 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 the 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.
[0026] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0027] Figure 1 It is a flowchart of the authentication feature information writing method of this application.
[0028] Please refer to Figure 1 In a preferred embodiment, the authentication feature information writing method of the present invention comprises the steps of:
[0029] S1. The application module 2 generates and stores a preset number of identification codes in batches according to the production order information, and sends the preset number of identification codes to the management module 1, so that the management module 1 generates authentication feature information corresponding to the preset number of identification codes.
[0030] The production order information includes the production quantity and the identification code encoding rule, and the application module 2 generates a preset number of identification codes equal to the production quantity according to the preset identification code encoding rule. It can be understood that the identification code is used to identify the target terminal 5, and each identification code is different.
[0031] After the identification code is generated, the application module 2 sends a preset number of identification codes in batches to the management module 1. In order to prevent abnormalities in the transmission process, the application module 2 also sends a first verification information for determining whether the data information of the identification code is incorrect when sending the preset number of identification codes to the management module 1. Exemplarily, the application module 2 sends the identification code through a network protocol, the network protocol may adopt the HTTPS protocol, and the first verification information adopts CRC-32. After receiving all the identification codes sent by the application module 2, the management module 1 determines whether the data is transmitted incorrectly based on the CRC-32 verification information. If so, the management module 1 requests the application module 2 to resend, thereby ensuring the integrity of the sent data. It can be understood that in other embodiments, the application module 2 may also copy the preset number of identification codes to the management module 1 through a removable storage device.
[0032] S2. The first writing device 3 receives and stores the preset number of identification codes sent by the application module 2.
[0033] It is understandable that this step can be performed in the preparation stage of production to save production time. The application module 2 sends the identification code of this batch to the first writing device 3 in advance, and the first writing device 3 stores a preset number of identification codes in advance. In the actual sending process, verification information can also be added to ensure the integrity of the sent data through the verification information.
[0034] S3. Before writing the authentication feature information to the target terminal, the second writing device 4 pre-receives and stores the preset amount of authentication feature information sent by the management module.
[0035] It can be understood that this step can also be performed in the preparation stage of production, the application module 2 sends an application to the management module 1 in advance, receives the authentication feature information of this batch sent by the management module 1, and the second writing device 4 stores the preset number of authentication feature information in advance. In the actual sending process, verification information can also be added to ensure the integrity of the sent data through the verification information.
[0036] In this embodiment, the authentication feature information received by the second writing device includes information formed by signing the identification code using the private key of the asymmetric key pair. Specifically, the management module generates and stores an asymmetric key pair, and uses the private key of the asymmetric key pair to sign the identification code to form the authentication feature information. The public key of the asymmetric key pair is used to verify the authentication feature information of the target terminal. In specific implementation, the public key can be sent to the cloud service backend for storage for verification of the authentication feature information.
[0037] The authentication feature information includes a matching identification code field and an authentication feature field. For example, assuming that the production quantity of the target terminal 5 is 10, the application module 2 generates 10 identification codes, namely SN1, SN2, SN3...SN10, then the authentication feature information is (SN1, SignInfo 1), (SN2, SignInfo 2), (SN3, SignInfo 3)...(SN10, SignInfo10), wherein SN1-SN10 are identification code fields, and SignInfo 1-SignInfo 10 are authentication feature fields, so that the identification code corresponds to the authentication feature one by one.
[0038] S4. When the target terminal arrives at the designated station, the first writing device writes the identification code pre-stored in the first writing device into the corresponding target terminal in sequence through the interface.
[0039] In the production process, when the target terminal 5 enters the identification code writing station, the first writing device 3 writes all the device identification codes stored in advance into the target terminal 5 one by one, such as SN1, SN2, SN3, ... Different devices write different SN codes.
[0040] It should be noted that the first writing device 3 uses an interface to write the identification code, and the identification code can be written into the device in an offline manner through the interface, thereby avoiding writing interruption caused by network communication failure and improving writing reliability.
[0041] S5. When the target terminal with the written identification code arrives at the preset station, the second writing device writes the corresponding authentication feature information into the target terminal through the interface according to the identification code of the target terminal and the authentication feature information pre-stored in the second writing device.
[0042] Among them, during the production process, after the target terminal 5 arrives at the authentication feature information writing station, it is connected to the second writing device 4 through the interface to establish communication. The second writing device 4 reads the identification code corresponding to the target terminal 5 one by one, and searches for the corresponding authentication feature information in all pre-stored authentication feature information according to the identification code, and then writes the corresponding authentication feature information into the target terminal 5.
[0043] It should be noted that the second writing device 4 uses an interface to write the authentication feature information. The authentication feature information can be written into the device in an offline manner through the interface, thereby avoiding writing interruptions that may be caused by network communication failures and improving writing reliability.
[0044] In some embodiments, in step S5, when writing the authentication feature information to the target terminal, the second writing device also sends second verification information for determining whether data information of the authentication feature information is incorrect.
[0045] Specifically, the second writing device sends the second verification information while writing the authentication feature information. The target terminal 5 compares the authentication feature information with the second verification information. If they are inconsistent, the second writing device 4 is requested to rewrite. Otherwise, the authentication feature information is written to improve the accuracy of writing. If the authentication feature information fails to be written, the second writing device determines that the corresponding target terminal is abnormal, records the corresponding authentication feature information as a write failure, and prompts the production line manager at the second writing device end to list the target terminal 5 as an abnormal machine and repair it again.
[0046] In some embodiments, after step S5, step S6 is also included: the second writing device records the writing status of each authentication feature information to generate a log file. After the second writing device has processed all the authentication feature information pre-stored therein, the log file is sent to the application module, and the application module modifies the corresponding identification code status according to the log file.
[0047] Among them, after the authentication feature information is written, the target terminal 5 sends the writing status (success or failure) to the second writing device 4, and the second writing device 4 records the writing status of the target terminal 5 to form a log file. After the second writing device processes all the authentication feature information pre-stored therein, that is, after the production of this batch of orders is completed, the second writing device 4 sends the recorded authentication feature information injection status (success or failure) of this batch of target terminals 5 to the application module 2 through the HTTPS protocol. In order to prevent transmission errors, a CRC-32 check byte is added to the sent protocol. If the authentication feature information application system determines that the CRC-32 check fails, the authentication feature information injection device is required to resend until it succeeds. The application module 2 modifies the corresponding identification code status according to the log file for system management.
[0048] On the other hand, the present application provides an authentication feature information writing system, comprising: an application module 2, and a first writing device 3 and a second writing device 4 connected thereto;
[0049] The application module 2 is used to generate and store a preset number of identification codes according to the production order information, and send the preset number of identification codes to the management module 1, so that the management module 1 generates authentication feature information corresponding to the preset number of identification codes;
[0050] The first writing device 3 is used to receive and store the preset number of identification codes sent by the application module 2, and when the target terminal arrives at the designated station, write the pre-stored identification codes into the corresponding target terminal in sequence through the interface;
[0051] The second writing device 4 is used to pre-receive and store a preset number of authentication feature information sent by the management module 1 before writing the authentication feature information to the target terminal. When the target terminal 5 with the identification code written in it arrives at the preset workstation, the pre-stored authentication feature information is written into the target terminal through the interface according to the identification code of the target terminal 5.
[0052] The present application generates an identification code and authentication feature information that matches the production quantity, and sends the identification code and authentication feature information in batches in advance and stores them in the first writing device 3 and the second writing device 4. During production, the first writing device 3 and the second writing device 4 directly call the identification code and authentication feature information, and write them into the target terminal 5 through the interface, so that the first writing device 3 and the second writing device 4 do not need to communicate with the application module 2 during writing. On the one hand, the signature writing process is simplified and the writing efficiency is improved; on the other hand, it can avoid signature writing interruptions caused by communication failures and improve the reliability of writing.
[0053] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a module, a program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0054] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0055] If the function is implemented in the form of a software function module and sold or used as an independent product, it 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, server, or network device, etc.) to perform all or part of the steps of the various embodiments 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. Various media that can store program codes.
[0056] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for writing authentication feature information, characterized in that: include: S1. The application module generates and stores a preset number of identification codes in batches according to the production order information, and sends the preset number of identification codes to the management module, so that the management module generates authentication feature information corresponding to the preset number of identification codes. When sending the preset number of identification codes to the management module, the application module also sends first verification information for determining whether the data information of the identification codes is incorrect. S2. The first writing device receives and stores the preset number of identification codes sent by the application module; S3, the second writing device receives and stores the preset amount of authentication feature information sent by the management module before writing the authentication feature information to the target terminal; S4, when the target terminal arrives at the designated station, the first writing device writes the identification code pre-stored in the first writing device into the corresponding target terminal in sequence through the interface; S5. When the target terminal with the written identification code arrives at the preset station, the second writing device writes the pre-stored authentication feature information into the target terminal through the interface according to the identification code of the target terminal. When writing the authentication feature information to the target terminal, the second writing device also sends second verification information for determining whether the data information of the authentication feature information is incorrect. S6. The second writing device records the writing status of each authentication feature information to generate a log file. After the second writing device has processed all the authentication feature information pre-stored therein, the log file is sent to the application module. The application module modifies the corresponding identification code status according to the log file.
2. The method for writing authentication characteristic information according to claim 1, characterized in that: In step S3, the authentication feature information includes information formed by signing the identification code using a private key of an asymmetric key pair.
3. The method for writing authentication characteristic information according to claim 1, characterized in that: In step S5, if the authentication feature information fails to be written, the second writing device determines that the corresponding target terminal is abnormal, and records the corresponding authentication feature information as a write failure.
4. The method for writing authentication characteristic information according to claim 1, characterized in that: The production order information includes production quantity and identification code encoding rules.
5. The method for writing authentication characteristic information according to claim 1, characterized in that: The authentication feature information includes a matching identification code field and an authentication feature field.
6. An authentication feature information writing system, used to execute the authentication feature information writing method according to any one of claims 1 to 5, characterized in that: include: An application module, and a first writing device and a second writing device connected thereto; An application module, configured to generate and store a preset number of identification codes according to the production order information, and send the preset number of identification codes to the management module, so that the management module generates authentication feature information corresponding to the preset number of identification codes one by one based on the preset number of identification codes; A first writing device, used for receiving and storing the preset number of identification codes sent by the application module, and writing the pre-stored identification codes into the corresponding target terminal in sequence through the interface when the target terminal arrives at the designated station; The second writing device is used to pre-receive and store a preset number of authentication feature information sent by the management module before writing the authentication feature information to the target terminal. When the target terminal with the written identification code arrives at the preset workstation, the pre-stored authentication feature information is written into the target terminal through the interface according to the identification code of the target terminal.
