Method and system for issuing vehicle-mounted unit, storage medium and electronic device

Through the automated interaction between the target vehicle unit and the server and operator equipment, the efficient issuance of vehicle-mounted units is achieved, the problem of inefficient issuance in the existing technology is solved, and the issuance efficiency is improved.

CN114650155BActive Publication Date: 2024-11-01VANJEE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011507706.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-18
Publication Date
2024-11-01
Estimated Expiration
2040-12-18

AI Technical Summary

Technical Problem

The issuance efficiency of vehicle-mounted units is low, and manual operation is required in the prior art, resulting in inefficiency.

Method used

Through the interaction between the target vehicle unit and the server, the first issuance process is automatically completed, and through the interaction between the target vehicle unit and the operator equipment, the second issuance process is automatically completed, avoiding manual operations.

Benefits of technology

It improves the efficiency of on-board units issuance, solves the technical problems of inefficient issuance, and realizes the automated issuance process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114650155B_ABST
    Figure CN114650155B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for issuing a vehicle-mounted unit, a storage medium and an electronic device, the method comprising: a primary issuance process: identity information is sent to a server by a target vehicle-mounted unit; when the identity information is verified by the server, the identity of the target vehicle-mounted unit is determined to be legal; a secondary issuance process: the server verifies a first vehicle identification code sent by the target vehicle-mounted unit; when the first vehicle identification code is verified, the vehicle information of the vehicle is written to the target vehicle-mounted unit by an operator device. The present invention can solve the technical problem of low issuance efficiency of vehicle-mounted units in related technologies, and improve the efficiency of issuing vehicle-mounted units.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent transportation, and in particular to a method and system for issuing a vehicle-mounted unit, a storage medium and an electronic device. Background Art

[0002] With the continuous development of automobile networking and automobile autonomous driving technology, vehicle-road collaboration has become a research hotspot in the field of intelligent transportation. In the vehicle-road collaboration system, the information of vehicles, roads, people and clouds is effectively combined, and the data generated and related by vehicles, roads, people, etc. are combined and flexibly used. This can effectively solve the travel problems encountered by car owners and provide reasonable solutions to various traffic conditions on the road. The vehicle-road collaboration system is based on the rapid interconnection of information between people, vehicles, roads and clouds. Among them, the on-board unit plays a vital role in vehicle-to-vehicle (V2V) communication. In related technologies, before the on-board unit is officially put into use, it is usually necessary to use a handheld issuance device to issue the on-board unit. Since manual operation is required during the issuance process, the efficiency of this method is relatively low.

[0003] In view of the technical problem of low issuance efficiency of the on-board unit in the related technology, no effective technical solution has been proposed yet. Summary of the invention

[0004] An optional embodiment of the present invention provides a method and system for issuing an on-board unit, a storage medium and an electronic device, so as to at least solve the technical problem of low efficiency of issuing the on-board unit in the related art.

[0005] According to one embodiment of the present invention, a method for issuing a vehicle-mounted unit is provided, comprising: a primary issuance process: identity information is sent to a server by a target vehicle-mounted unit; when the identity information is verified by the server, the identity of the target vehicle-mounted unit is determined to be legal; a secondary issuance process: a first vehicle identification code sent by the target vehicle-mounted unit is verified by the server; when the first vehicle identification code is verified, the vehicle information of the vehicle is written to the target vehicle-mounted unit by an operator device.

[0006] Optionally, sending the identity information to the server through the target vehicle-mounted unit includes: using a first private key to sign the authentication code of the target vehicle-mounted unit to obtain a digital signature; using a second public key to encrypt the authentication code and the digital signature to obtain the identity information, wherein the second public key is the public key of the server; and sending the identity information to the server through the target vehicle-mounted unit.

[0007] Optionally, after the identity information is sent to the server through the target vehicle-mounted unit, the method further includes: decrypting the identity information through the server using a second private key paired with the second public key to obtain the authentication code and the digital signature; when the authentication code is obtained by decrypting the digital signature through the server using the first public key, determining that the first public key is legal, wherein the first public key and the first private key are pairing keys generated by the target vehicle-mounted unit.

[0008] Optionally, the authentication code includes the device code, manufacturer name and device model of the target vehicle-mounted unit, wherein, after determining that the first public key is legal, the method further includes: searching through the server for pre-stored first information and second information corresponding to the device code; and determining that the identity of the target vehicle-mounted unit is legal when the manufacturer name is consistent with the first information and the device model is consistent with the second information.

[0009] Optionally, the server is a root node in a blockchain system, wherein, before verifying the first vehicle identification code sent by the target vehicle-mounted unit through the server, the method further includes: reading the first vehicle identification code from the vehicle through the target vehicle-mounted unit, and sending the first vehicle identification code and the device code of the target vehicle-mounted unit to the server; searching, through the server, for a pre-stored second vehicle identification code corresponding to the device code according to the device code; when the first vehicle identification code is consistent with the second vehicle identification code, determining through the server that the first vehicle identification code has passed the verification, and sending a write instruction to the target vehicle-mounted unit through the processing node in the blockchain system, wherein the write instruction is used to instruct writing the first vehicle identification code or the second vehicle identification code into the security module of the target vehicle-mounted unit.

[0010] Optionally, the method also includes: obtaining the vehicle identification code written in the security module through the server; comparing the written vehicle identification code with the second vehicle identification code through the server, and determining that the written vehicle identification code has passed the verification when they are consistent; sending a first notification message to the operator device through the processing node, wherein the first notification message is used to indicate that the vehicle identification code written in the target vehicle-mounted unit has passed the verification; and in response to the first notification message, writing the vehicle information to the target vehicle-mounted unit through the operator device.

[0011] Optionally, the method also includes: verifying the electronic controller unit in the vehicle through the target vehicle-mounted unit, and verifying the electronic controller unit through the server; when the target vehicle-mounted unit successfully verifies the electronic controller unit in the vehicle, and the electronic controller unit is successfully verified through the server, sending a second notification message to the operator device through the processing node, wherein the second notification message is used to indicate writing target function permissions to the target vehicle-mounted unit so that the target vehicle-mounted unit has the target function indicated by the target function permissions; in response to the second notification message, writing the target function permissions to the target vehicle-mounted unit through the operator device to complete the secondary issuance process of the target vehicle-mounted unit.

[0012] Optionally, the verification of the electronic controller unit in the vehicle through the target vehicle-mounted unit includes: receiving, through the target vehicle-mounted unit, third vehicle identification code information sent by the electronic controller unit, wherein the third vehicle identification code information is obtained by the electronic controller unit using the third public key of the target vehicle-mounted unit to encrypt the third vehicle identification code stored in the electronic controller unit; decrypting the third vehicle identification code information through the target vehicle-mounted unit using a third private key paired with the third public key to obtain the third vehicle identification code; and determining, through the target vehicle-mounted unit, that the electronic controller unit has passed the verification when the third vehicle identification code is consistent with the vehicle identification code written in the target vehicle-mounted unit; wherein, the verification of the electronic controller unit through the server includes: receiving, after the target vehicle-mounted unit receives, the third vehicle identification code information; In the case of a target instruction, the target instruction is transparently transmitted to the electronic controller unit through the target vehicle unit, wherein the target instruction includes a target identifier, and the target identifier is used to instruct the target vehicle unit to transparently transmit the target instruction to the electronic controller unit; in response to the target instruction, fourth vehicle identification code information is sent to the server through the electronic controller unit, wherein the fourth vehicle identification code information is obtained by encrypting the third vehicle identification code by the electronic controller unit using the fourth public key of the server; the fourth vehicle identification code information is decrypted by the server using the fourth private key paired with the fourth public key to obtain the third vehicle identification code; when the third vehicle identification code is consistent with the second vehicle identification code pre-stored in the server, the server determines that the electronic controller unit has passed the verification.

[0013] Optionally, after completing the secondary issuance process, the server determines whether the target vehicle-mounted unit has legal authority, wherein the method further includes: obtaining the vehicle-mounted unit identification information stored in the target vehicle-mounted unit through a monitoring device; identifying the first license plate number and the first appearance information of the vehicle where the target vehicle-mounted unit is located through an identification device; obtaining the vehicle-mounted unit identification information, the first license plate number and the first appearance information through the server; querying the pre-stored second license plate number and the second appearance information corresponding to the vehicle-mounted unit identification information through the server; when the first license plate number is consistent with the second license plate number and the first appearance information is consistent with the second appearance information, determining to maintain the legal authority of the target vehicle-mounted unit, and storing the first information used to indicate that the legal authority of the target vehicle-mounted unit is maintained; when the first license plate number is inconsistent with the second license plate number, or the first appearance information is inconsistent with the second appearance information, determining to cancel the legal authority of the target vehicle-mounted unit, and storing the second information used to indicate the cancellation of the legal authority of the target vehicle-mounted unit.

[0014] According to another embodiment of the present invention, a vehicle-mounted unit issuance system is provided, comprising: a target vehicle-mounted unit, a server and an operator device, wherein the target vehicle-mounted unit is used to send identity information to the server during a primary issuance process; the server is used to verify the identity information and, if the identity information is successfully verified, determine that the identity of the target vehicle-mounted unit is legal; the server is also used to verify a first vehicle identification code sent by the target vehicle-mounted unit during a secondary issuance process; the operator device is used to write vehicle information of the vehicle to the target vehicle-mounted unit if the server verifies the first vehicle identification code successfully.

[0015] Optionally, the target vehicle-mounted unit is also used to: use the first private key to sign the authentication code of the target vehicle-mounted unit to obtain a digital signature; use the second public key to encrypt the authentication code and the digital signature to obtain the identity information, wherein the second public key is the public key of the server; and send the identity information to the server.

[0016] Optionally, the server is further used to: use a second private key paired with the second public key to decrypt the identity information to obtain the authentication code and the digital signature; and determine that the first public key is legal when the digital signature is decrypted using the first public key to obtain the authentication code, wherein the first public key and the first private key are pairing keys generated for the target vehicle-mounted unit.

[0017] Optionally, the authentication code includes the device code, manufacturer name and device model of the target vehicle-mounted unit, wherein the server is further used to: search for pre-stored first information and second information corresponding to the device code; and determine that the identity of the target vehicle-mounted unit is legal when the manufacturer name is consistent with the first information and the device model is consistent with the second information.

[0018] Optionally, the server is a root node in a blockchain system, and the system further includes a processing node, wherein the target vehicle-mounted unit is further used to: read the first vehicle identification code from the vehicle, and send the first vehicle identification code and the device code of the target vehicle-mounted unit to the server; the server is further used to: search for a pre-stored second vehicle identification code corresponding to the device code according to the device code; and determine that the first vehicle identification code has passed verification when the first vehicle identification code is consistent with the second vehicle identification code; the processing node is used to send a write instruction to the target vehicle-mounted unit when the first vehicle identification code has passed verification, wherein the write instruction is used to instruct writing the first vehicle identification code or the second vehicle identification code into the security module of the target vehicle-mounted unit.

[0019] Optionally, the server is also used to: obtain the vehicle identification code written in the security module; compare the written vehicle identification code with the second vehicle identification code, and when they are consistent, determine that the written vehicle identification code has passed the verification; the processing node is also used to send a first notification message to the operator device when the written vehicle identification code has passed the verification, wherein the first notification message is used to indicate that the vehicle identification code written in the target vehicle-mounted unit has passed the verification; the operator device is also used to write the vehicle information to the target vehicle-mounted unit.

[0020] Optionally, the target vehicle-mounted unit is also used to verify the electronic controller unit in the vehicle; the server is also used to verify the electronic controller unit; the processing node is also used to send a second notification message to the operator device when the target vehicle-mounted unit successfully verifies the electronic controller unit in the vehicle and the server successfully verifies the electronic controller unit, wherein the second notification message is used to indicate writing target function permissions to the target vehicle-mounted unit so that the target vehicle-mounted unit has the target function indicated by the target function permissions; the operator device is also used to write the target function permissions to the target vehicle-mounted unit in response to the second notification message to complete the secondary issuance process of the target vehicle-mounted unit.

[0021] Optionally, the target vehicle-mounted unit is further used to: receive a third vehicle identification code information sent by the electronic controller unit, wherein the third vehicle identification code information is obtained by the electronic controller unit encrypting the third vehicle identification code stored in the electronic controller unit using the third public key of the target vehicle-mounted unit; decrypting the third vehicle identification code information using a third private key paired with the third public key to obtain the third vehicle identification code; and determining that the electronic controller unit has passed verification when the third vehicle identification code is consistent with the vehicle identification code written in the target vehicle-mounted unit; wherein the target vehicle-mounted unit is further used to: upon receiving a target instruction, transparently transmit the target instruction to the electronic controller unit, wherein , the target instruction includes a target identifier, and the target identifier is used to instruct the target vehicle-mounted unit to transparently transmit the target instruction to the electronic controller unit; the electronic controller unit is also used to: respond to the target instruction, send a fourth vehicle identification code information to the server, wherein the fourth vehicle identification code information is obtained by the electronic controller unit using the fourth public key of the server to encrypt the third vehicle identification code; the server is also used to decrypt the fourth vehicle identification code information using a fourth private key paired with the fourth public key to obtain the third vehicle identification code; when the third vehicle identification code is consistent with the second vehicle identification code pre-stored in the server, it is determined that the electronic controller unit has passed the verification.

[0022] Optionally, the server is further used to determine whether the target vehicle-mounted unit has legal authority after the secondary issuance process of the target vehicle-mounted unit is completed, wherein the issuance system also includes a monitoring device and an identification device, the monitoring device is used to obtain the vehicle-mounted unit identification information stored in the target vehicle-mounted unit; the identification device is used to identify the first license plate number and the first appearance information of the vehicle where the target vehicle-mounted unit is located; the server is also used to: obtain the vehicle-mounted unit identification information, the first license plate number and the first appearance information; query the pre-stored second license plate number and the second appearance information corresponding to the vehicle-mounted unit identification information; when the first license plate number is consistent with the second license plate number, and the first appearance information is consistent with the second appearance information, determine to maintain the legal authority of the target vehicle-mounted unit, and store the first information used to indicate that the legal authority of the target vehicle-mounted unit is maintained; when the first license plate number is inconsistent with the second license plate number, or the first appearance information is inconsistent with the second appearance information, determine to cancel the legal authority of the target vehicle-mounted unit, and store the second information used to indicate the cancellation of the legal authority of the target vehicle-mounted unit.

[0023] Optionally, according to another embodiment of the present invention, a storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above method when running.

[0024] Optionally, according to another embodiment of the present invention, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the above method.

[0025] Through the present invention, the issuance method of the vehicle-mounted unit includes: a primary issuance process: identity information is sent to the server through the target vehicle-mounted unit; when the identity information is verified by the server, the identity of the target vehicle-mounted unit is determined to be legal; a secondary issuance process: the first vehicle identification code sent by the target vehicle-mounted unit is verified by the server; when the first vehicle identification code is verified, the vehicle information of the vehicle is written to the target vehicle-mounted unit through the operator device. Since the primary issuance process of the target vehicle-mounted unit can be automatically completed through the interaction between the target vehicle-mounted unit and the server, and the secondary issuance process of the target vehicle-mounted unit can be automatically completed through the interaction between the target vehicle-mounted unit and the operator device, and manual operation is no longer required during the issuance process, the technical problem of low issuance efficiency of the vehicle-mounted unit in the related technology can be solved, and the efficiency of vehicle-mounted unit issuance is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0027] Figure 1 is a flow chart of a method for issuing a vehicle-mounted unit according to an optional embodiment;

[0028] Figure 2 is a schematic diagram of a distribution system of an on-board unit according to an optional embodiment;

[0029] Figure 3 It is a schematic structural diagram of an optional electronic device according to an optional embodiment. DETAILED DESCRIPTION

[0030] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0032] The technical terms in the embodiments of the present invention are explained as follows:

[0033] Full node: A full node in the blockchain system, used to store and record all block data;

[0034] Light node: A light node in the blockchain system, used to access the blockchain master node to query or upload data;

[0035] Root node: The root node in the blockchain system is used to store and record all block data. It has higher permissions than the full node. For example, but not limited to, the root node can get more opportunities for accounting rights allocation, and the root node is always online.

[0036] An optional embodiment provides a method for issuing a vehicle-mounted unit. Figure 1 is a flow chart of a method for issuing a vehicle-mounted unit according to an optional embodiment, such as Figure 1 As shown, this includes:

[0037] Step S102, sending identity information to the server via the target vehicle-mounted unit;

[0038] Step S104, when the identity information is verified by the server, determining that the identity of the target vehicle-mounted unit is legitimate;

[0039] Step S106, verifying the first vehicle identification code sent by the target vehicle-mounted unit through the server;

[0040] Step S108: When the first vehicle identification code is verified, the vehicle information of the vehicle is written to the target vehicle-mounted unit through the operator equipment.

[0041] Through the present invention, the issuance method of the vehicle-mounted unit includes: a primary issuance process: identity information is sent to the server through the target vehicle-mounted unit; when the identity information is verified by the server, the identity of the target vehicle-mounted unit is determined to be legal; a secondary issuance process: the first vehicle identification code sent by the target vehicle-mounted unit is verified by the server; when the first vehicle identification code is verified, the vehicle information of the vehicle is written to the target vehicle-mounted unit through the operator device. Since the primary issuance process of the target vehicle-mounted unit can be automatically completed through the interaction between the target vehicle-mounted unit and the server, and the secondary issuance process of the target vehicle-mounted unit can be automatically completed through the interaction between the target vehicle-mounted unit and the operator device, and manual operation is no longer required during the issuance process, the technical problem of low issuance efficiency of the vehicle-mounted unit in the related technology can be solved, and the efficiency of vehicle-mounted unit issuance is improved.

[0042] It should be noted that steps S102 to S104 belong to the primary issuance process, and steps S106 to S108 belong to the secondary issuance process.

[0043] In the above embodiment, there may be multiple servers. When the server is a root node in the blockchain system, the blockchain system may include multiple root nodes. The IP addresses of the multiple root nodes are pre-stored in the target vehicle unit. During an issuance process, the target vehicle unit randomly selects an IP address from the stored multiple IP addresses and initiates an issuance process to the root node corresponding to the IP address.

[0044] Optionally, sending the identity information to the server through the target vehicle-mounted unit includes: using a first private key to sign the authentication code of the target vehicle-mounted unit to obtain a digital signature; using a second public key to encrypt the authentication code and the digital signature to obtain the identity information, wherein the second public key is the public key of the server; and sending the identity information to the server through the target vehicle-mounted unit.

[0045] Among them, the identity information includes a digital signature obtained by signing the authentication code of the target vehicle-mounted unit with a first private key; the first public key and the first private key are pairing keys generated for the target vehicle-mounted unit, and the first public key is used to decrypt the digital signature; the first vehicle identification code is used to identify the vehicle where the target vehicle-mounted unit is located.

[0046] As an optional implementation, the target vehicle-mounted unit includes a security module and a communication module. After the target vehicle-mounted unit is powered on and connected to the network, the security module is used to automatically generate a first public key and a first private key, and the communication module is used to send the first public key to the server. It should be noted that the network address (IP) of the server is pre-stored in the target vehicle-mounted unit, for example but not limited to, when the target vehicle-mounted unit leaves the factory, the IP address of the server is written into the target vehicle-mounted unit.

[0047] Optionally, after the identity information is sent to the server through the target vehicle-mounted unit, the method further includes: decrypting the identity information through the server using a second private key paired with the second public key to obtain the authentication code and the digital signature; when the authentication code is obtained by decrypting the digital signature through the server using the first public key, determining that the first public key is legal, wherein the first public key and the first private key are pairing keys generated by the target vehicle-mounted unit.

[0048] In the above embodiment, the target vehicle-mounted unit automatically generates a key pair, and the server verifies the legitimacy of the first public key in the key pair, thereby improving the issuance efficiency of the target vehicle-mounted unit.

[0049] Optionally, the authentication code includes the device code, manufacturer name and device model of the target vehicle-mounted unit, wherein, after determining that the first public key is legal, the method further includes: searching through the server for pre-stored first information and second information corresponding to the device code; and determining that the identity of the target vehicle-mounted unit is legal when the manufacturer name is consistent with the first information and the device model is consistent with the second information.

[0050] It should be noted that, as an optional implementation, the server pre-receives relevant information of the target vehicle-mounted unit sent by the operator's equipment, including but not limited to the authentication code of the target vehicle-mounted unit (for example, an authentication code including the device code, the manufacturer name and the device model), and determines the received manufacturer name as the first information and stores it, and determines the received device model as the second information and stores it. Therefore, in a single issuance process, the server can search for the pre-stored first information and second information corresponding to the device code based on the decrypted device code, and match the information to complete the identity authentication of the target vehicle-mounted unit in a single issuance process.

[0051] As an optional method, the authentication code includes but is not limited to other forms of authentication codes.

[0052] The device code includes but is not limited to a device serial number (SN) of the target on-board unit, and the SN number is used to uniquely identify the on-board unit.

[0053] Optionally, the server is a root node in a blockchain system, wherein, before verifying the first vehicle identification code sent by the target vehicle-mounted unit through the server, the method further includes: reading the first vehicle identification code from the vehicle through the target vehicle-mounted unit, and sending the first vehicle identification code and the device code of the target vehicle-mounted unit to the server; searching, through the server, for a pre-stored second vehicle identification code corresponding to the device code according to the device code; when the first vehicle identification code is consistent with the second vehicle identification code, determining through the server that the first vehicle identification code has passed the verification, and sending a write instruction to the target vehicle-mounted unit through the processing node in the blockchain system, wherein the write instruction is used to instruct writing the first vehicle identification code or the second vehicle identification code into the security module of the target vehicle-mounted unit.

[0054] The vehicle identification code is also called the vehicle identification number (VIN), which is used to identify the vehicle. In the above embodiment, during the secondary issuance of the target vehicle-mounted unit, the server first verifies the vehicle identification code received from the target vehicle-mounted unit, and after the verification is passed, the security of the issued target vehicle-mounted unit is further improved.

[0055] Optionally, the method also includes: obtaining the vehicle identification code written in the full node through the server; comparing the written vehicle identification code with the second vehicle identification code through the server, and determining that the written vehicle identification code has passed the verification when they are consistent; sending a first notification message to the operator device through the processing node, wherein the first notification message is used to indicate that the vehicle identification code written in the target vehicle-mounted unit has passed the verification; in response to the first notification message, writing the vehicle information to the target vehicle-mounted unit through the operator device.

[0056] Among them, after the vehicle identification code is written into the target vehicle-mounted unit, in order to avoid tampering with the vehicle identification code written in the target vehicle-mounted unit or identify the replacement of the target vehicle-mounted unit, the vehicle identification code written in the target vehicle-mounted unit is verified by the server, and after the verification is passed, the operator equipment is notified to write the vehicle information to the target vehicle-mounted unit, thereby improving the security of the issuance process.

[0057] Optionally, the method also includes: verifying the electronic controller unit in the vehicle through the target vehicle-mounted unit, and verifying the electronic controller unit through the server; when the target vehicle-mounted unit successfully verifies the electronic controller unit in the vehicle, and the electronic controller unit is successfully verified through the server, sending a second notification message to the operator device through the processing node, wherein the second notification message is used to indicate writing target function permissions to the target vehicle-mounted unit so that the target vehicle-mounted unit has the target function indicated by the target function permissions; in response to the second notification message, writing the target function permissions to the target vehicle-mounted unit through the operator device to complete the secondary issuance process of the target vehicle-mounted unit.

[0058] As an optional implementation, the second notification message is also used to instruct to write the operator name corresponding to the operator device to the target vehicle-mounted unit. The target function permissions include at least one of the following: auxiliary positioning permission, signal monitoring permission, signal collection permission, data transfer permission, and instruction decision permission.

[0059] Among them, the auxiliary positioning authority includes but is not limited to the authority of the target vehicle-mounted unit to assist other devices (including but not limited to vehicle-mounted units, roadside units) in positioning, and to locate other devices. For example, the vehicle-mounted unit can locate itself through the target vehicle-mounted unit with auxiliary positioning authority, and the target vehicle-mounted unit with auxiliary positioning authority can locate other devices to obtain corresponding location information; the signal monitoring authority includes but is not limited to the authority to detect the quality and existence of abnormalities of surrounding signals (including but not limited to signals sent by vehicle-mounted units, signals sent by surrounding roadside units, etc.); the signal collection authority includes but is not limited to the authority to collect (or monitor) surrounding signals; the data transfer authority includes but is not limited to the authority to forward received and / or collected signals to other devices; the command decision-making authority includes but is not limited to the authority to provide driving strategies for vehicles based on road conditions information.

[0060] Based on the above embodiment, after one of the multiple root nodes verifies the target vehicle-mounted unit and determines that the first public key is legal, the message indicating that the first public key of the target vehicle-mounted unit is legal is synchronized to other root nodes and all full nodes in the blockchain system, thereby notifying other root nodes and full nodes that the first public key of the target vehicle-mounted unit is legal.

[0061] In the above embodiment, the target vehicle-mounted unit can automatically generate multiple key pairs, each of which has different application access rights, and in the event that one of the key pairs fails, the other key pairs can continue to be used. Optionally, the multiple key pairs may include but are not limited to a master key pair, a maintenance key pair, a consumption key pair, and an external authentication key pair (including but not limited to the first public key and the first private key in the above embodiment), wherein the application access rights of the master key pair include creating data in the directory of the target vehicle-mounted unit, the application access rights of the maintenance key pair include maintaining the directory, and the permissions of the consumption key pair include application in the cash consumption processing flow.

[0062] In the above embodiment, during the secondary issuance process, the electronic control unit (ECU) of the vehicle is also verified by the target vehicle unit, and the ECU is verified by the server. As an optional implementation, two-way authentication can be performed between the target vehicle unit and the ECU, and between the server and the ECU.

[0063] When the target vehicle-mounted unit verifies the electronic controller unit in the vehicle and the server verifies the electronic controller unit, the operator device is notified to write the target function permissions to the target vehicle-mounted unit, thereby completing the secondary issuance process of the target vehicle-mounted unit.

[0064] For the target on-board unit that has completed the secondary issuance process, it can be put into use after activation.

[0065] Optionally, the verification of the electronic controller unit in the vehicle through the target vehicle-mounted unit includes: receiving, through the target vehicle-mounted unit, third vehicle identification code information sent by the electronic controller unit, wherein the third vehicle identification code information is obtained by the electronic controller unit using the third public key of the target vehicle-mounted unit to encrypt the third vehicle identification code stored in the electronic controller unit; decrypting the third vehicle identification code information through the target vehicle-mounted unit using a third private key paired with the third public key to obtain the third vehicle identification code; and determining, through the target vehicle-mounted unit, that the electronic controller unit has passed the verification when the third vehicle identification code is consistent with the vehicle identification code written in the target vehicle-mounted unit; wherein, the verification of the electronic controller unit through the server includes: receiving, after the target vehicle-mounted unit receives, the third vehicle identification code information; In the case of a target instruction, the target instruction is transparently transmitted to the electronic controller unit through the target vehicle unit, wherein the target instruction includes a target identifier, and the target identifier is used to instruct the target vehicle unit to transparently transmit the target instruction to the electronic controller unit; in response to the target instruction, fourth vehicle identification code information is sent to the server through the electronic controller unit, wherein the fourth vehicle identification code information is obtained by encrypting the third vehicle identification code by the electronic controller unit using the fourth public key of the server; the fourth vehicle identification code information is decrypted by the server using the fourth private key paired with the fourth public key to obtain the third vehicle identification code; when the third vehicle identification code is consistent with the second vehicle identification code pre-stored in the server, the server determines that the electronic controller unit has passed the verification.

[0066] The electronic controller unit may include a second security module, in which a paired fifth public key and a fifth private key are stored. The target vehicle-mounted unit obtains the fifth public key randomly generated by the second security module, and uses the fifth public key to encrypt the third public key and the vehicle identification code reading instruction in the paired key generated by the security module of the target vehicle-mounted unit, obtains the first data, and sends the first data to the second security module in the electronic control unit; the second security module uses the fifth private key paired with the fifth public key to decrypt the first data to obtain the third public key and the vehicle identification code reading instruction, and in response to the vehicle identification code reading instruction, uses the third public key to encrypt the vehicle identification code stored in the second security module (i.e., the third vehicle identification code in the above embodiment) to obtain the third identification code information, and sends it to the target vehicle-mounted unit. The target vehicle-mounted unit uses the third private key paired with the third public key to decrypt the third identification code information, compares the decrypted vehicle identification code with the vehicle identification code stored in itself, and if they are consistent, it is determined that the electronic controller unit has passed the verification, and if they are inconsistent, it is determined that the verification has not passed. The target vehicle-mounted unit also sends the verification result to the server.

[0067] Among them, when the target vehicle unit determines that the electronic control unit has not passed the verification, the server determines that the target vehicle unit is a dishonest node based on the received verification result. When the server is the root node in the blockchain system, the server writes the received verification result into the block of the blockchain and synchronizes it to other root nodes and full nodes in the blockchain system.

[0068] In the above embodiment, data transparent transmission between the electronic controller unit and the server can be performed through the target vehicle-mounted unit. Among them, the server obtains the sixth public key randomly generated by the second security module, and uses the sixth public key to encrypt the fourth public key and the vehicle identification code reading instruction in the paired key randomly generated by the server to obtain the encrypted data, and adds the target identifier to the encrypted data to obtain the second data, and sends the second data to the target vehicle-mounted unit; after the target vehicle-mounted unit receives the second data, it determines to transparently transmit the second data to the electronic controller unit according to the target identifier. The second security module in the electronic control unit uses the sixth private key paired with the sixth public key to decrypt the second data to obtain the fourth public key and the vehicle identification code reading instruction, and in response to the vehicle identification code reading instruction, uses the seventh public key to encrypt the vehicle identification code stored in the second security module (i.e., the third vehicle identification code in the above embodiment) to obtain the fourth identification code information, and sends it to the server. The server uses the fourth private key paired with the fourth public key to decrypt the fourth identification code information, compares the decrypted vehicle identification code with the pre-stored second vehicle identification code, and if they are consistent, it is determined that the electronic controller unit has passed the verification, and if they are inconsistent, it is determined that the verification has not been passed.

[0069] Among them, when the server is the root node in the blockchain system, the server writes the verification result into the block of the blockchain and synchronizes it to other root nodes and full nodes in the blockchain system.

[0070] Optionally, after completing the secondary issuance process, the server determines whether the target vehicle-mounted unit has legal authority, wherein the method further includes: obtaining the vehicle-mounted unit identification information stored in the target vehicle-mounted unit through a monitoring device; identifying the first license plate number and the first appearance information of the vehicle where the target vehicle-mounted unit is located through an identification device; obtaining the vehicle-mounted unit identification information, the first license plate number and the first appearance information through the server; querying the pre-stored second license plate number and the second appearance information corresponding to the vehicle-mounted unit identification information through the server; when the first license plate number is consistent with the second license plate number and the first appearance information is consistent with the second appearance information, determining to maintain the legal authority of the target vehicle-mounted unit, and storing the first information used to indicate that the legal authority of the target vehicle-mounted unit is maintained; when the first license plate number is inconsistent with the second license plate number, or the first appearance information is inconsistent with the second appearance information, determining to cancel the legal authority of the target vehicle-mounted unit, and storing the second information used to indicate the cancellation of the legal authority of the target vehicle-mounted unit.

[0071] It should be noted that the monitoring device can be a device installed at a traffic inspection point or a roadside unit, and the identification device can be a license plate device identifier. Among them, the monitoring device is used to obtain the vehicle unit identification information (including but not limited to the vehicle unit ID) in the target vehicle unit currently passing, and the identification device is used to capture the vehicle to obtain the vehicle image and identify the vehicle license plate number and vehicle information (i.e., the first appearance information in the above embodiment, including but not limited to the vehicle model, number of axles, vehicle color and other information). As an optional implementation, the monitoring device and the identification device are set at the same position, so as to realize the monitoring and identification of the same vehicle currently passing.

[0072] Among them, the server verifies the license plate number and vehicle information according to the received information, and stores the verification result in the blockchain. Verification is performed by comparing whether the received first license plate number is consistent with the pre-stored second license plate number, and whether the received first appearance information is consistent with the pre-stored second appearance information, and the verification result (the verification result is used to indicate whether to maintain the legal authority of the target vehicle-mounted unit or cancel its legal authority) is stored in the blockchain and synchronized to other root nodes and full nodes in the blockchain system. Optionally, in the case of determining to maintain the legal authority of the target vehicle-mounted unit, the first information used to indicate the maintenance of the legal authority of the target vehicle-mounted unit is stored, and the first information is synchronized to other root nodes and full nodes; in the case of determining to cancel the legal authority of the target vehicle-mounted unit, it is determined that the target vehicle has been dismantled, and the second information used to indicate the cancellation of the legal authority of the target vehicle-mounted unit is stored and synchronized to other root nodes and full nodes.

[0073] It should be noted that the issuance method of the on-board unit in the above embodiment can be applied in a vehicle-road cooperative system.

[0074] The issuing method of the vehicle-mounted unit in the above embodiment is explained below with reference to an example, but is not intended to limit the technical solution of the embodiment of the present invention.

[0075] Taking the issuance of the target vehicle-mounted unit as an example, the target vehicle-mounted unit includes a security module, a data processing module and a communication module, among which:

[0076] After the target vehicle-mounted unit leaves the factory, after the target vehicle-mounted unit is powered on and connected to the network, the security module in the target vehicle-mounted unit generates an asymmetric algorithm key pair (i.e., the key pair in the above embodiment, which includes a first public key and a first private key). The first private key cannot be exported from the security module, and the first public key corresponds to the device account identifier (ID) of the target vehicle-mounted unit; optionally, the first public key can be exported from the security module and sent to the root node in the blockchain system through the communication module.

[0077] Taking the device code in the above embodiment including the device serial (SN) number as an example, the security module of the target vehicle-mounted unit stores the device SN number, manufacturer name, device model and the IP address of the root node in the blockchain system, where the IP address is written into the target vehicle-mounted unit when it leaves the factory.

[0078] According to another embodiment of the present invention, a method for issuing a vehicle-mounted unit is provided, the method comprising a primary issuance process and a secondary issuance process, wherein, in the case where the authentication code includes key parameter information of the device,

[0079] During a release:

[0080] The target vehicle-mounted unit generates a first public key and a first private key through an internal security module; optionally, the security module has key pair generation authority and pre-stores a generation number threshold, and when the number of key pair generation exceeds the threshold, no more key pairs can be generated; the first public key is paired with the first private key;

[0081] The target vehicle-mounted unit can access the root node (part of the root node IP addresses that will be pre-stored when the device leaves the factory) in the vehicle-road collaborative device management blockchain system (i.e., the blockchain system in the above embodiment) through the Internet of Vehicles or the mobile network, and use the first private key to sign the device key parameter information (i.e., the device information in the above embodiment) to obtain a digital signature, wherein the device parameter key information includes the device SN number, manufacturer name, device model and other basic information, and use the second public key to encrypt the device key parameter information and the digital signature to obtain the identity information of the target vehicle-mounted unit, and send the obtained identity information to the root node in the vehicle-road collaborative device management blockchain system. Among them, the second public key is the public key of the root node. Optionally, the target vehicle-mounted unit can request the second public key by sending a request to the root node, or the second public key can be pre-written into the security module of the target vehicle-mounted unit when the target vehicle-mounted unit leaves the factory.

[0082] As an optional implementation, the target vehicle-mounted unit uses a hash function to generate summary information for the key parameter information of the device, and then uses the first private key to encrypt the summary information to obtain a digital signature.

[0083] The root node receives the identity signal sent by the target vehicle-mounted unit and can use the second private key paired with the second public key to decrypt the received identity information. If the decryption is successful, the first public key is used to verify the digital signature obtained by decryption, thereby confirming the legitimacy of the first public key.

[0084] Optionally, the root node reads the manufacturer name and device type corresponding to the device SN number of the target vehicle unit pre-stored in the blockchain, and matches the read information with the decrypted information. If they are consistent, the identity of the target vehicle unit is determined to be legal; the root node sends the first location information to the target vehicle unit and the operator device, and records the first public key, IP address and timestamp of the target vehicle unit in a new block of the blockchain, and synchronizes the new block to the full node in the blockchain system. Among them, the manufacturer name and device type corresponding to the device SN number of the target vehicle unit pre-stored in the blockchain are pre-uploaded to the root node by the operator device of the target vehicle unit.

[0085] Among them, the blockchain system also includes processing nodes (including but not limited to smart contract nodes). After an issuance process is completed, the root node triggers the processing node to execute a push message (including the first public key of the target vehicle-mounted unit and other information) to the operator device to which the target vehicle-mounted unit belongs.

[0086] Secondary issuance process:

[0087] The target on-board unit reads the first vehicle identification code of the vehicle through a controller area network (CAN) bus, for example, reading the vehicle identification code stored in the ECU from the vehicle's ECU; the target on-board unit sends the first vehicle identification code and the device code of the target on-board unit to the server; the server searches for a pre-stored second vehicle identification code corresponding to the device code according to the device code; when the first vehicle identification code is consistent with the second vehicle identification code, the server determines that the first vehicle identification code has passed verification, and sends a write instruction to the target on-board unit through a processing node in the blockchain system, wherein the write instruction is used to instruct the second vehicle identification code to be written into the security module of the target on-board unit.

[0088] Furthermore, the target vehicle-mounted unit reads the written vehicle identification code from the chip operating system (Chip Operating System, referred to as COS) inside the security module, and uses the second public key to encrypt the read vehicle identification code to obtain encrypted information, and sends the encrypted information to the server; the server uses the second private key to decrypt the encrypted information to obtain the decrypted vehicle identification code, and matches the decrypted vehicle identification code with the pre-stored second vehicle identification code. If they are consistent, it is determined that the writing of the second vehicle identification code is completed.

[0089] After determining that the writing of the second vehicle identification code is completed, the server sends a first notification message to the operator device, thereby notifying the operator device to write vehicle information to the target vehicle unit, wherein the vehicle information includes but is not limited to the vehicle's license plate number, vehicle model, axle type, number of axles and other information.

[0090] Optionally, the electronic controller unit of the vehicle where the target vehicle-mounted unit is located is also connected to a second security module in the vehicle, or the second security module is integrated inside the electronic controller unit. The second security module can also be mounted on the vehicle CAN bus for authentication access to the vehicle's rear-mounted onboard equipment (including but not limited to the target vehicle-mounted unit), and the second security module can also be provided with a mechanical anti-disassembly to prevent the second security module from being illegally disassembled.

[0091] Among them, when the security module in the target on-board unit reads and verifies the vehicle identification code (i.e., the third identification code in the above embodiment) stored in the electronic controller unit when the vehicle is started or periodically, the target on-board unit obtains the fifth public key generated by the second security module from the second security module, and the target on-board unit sends the third public key and VIN code reading instruction encrypted with the fifth public key to the second security module; the second security unit decrypts the received data, obtains the third public key and VIN code reading instruction, reads the vehicle identification code of the vehicle computer (i.e., the vehicle) stored internally therein (i.e., the third vehicle identification code in the above embodiment), and uses the third public key to encrypt the read vehicle identification code and send it to the target on-board unit; the security module in the target on-board unit decrypts the received data using the third private key paired with the third public key, and compares the decrypted vehicle identification code with the vehicle identification code stored in itself, wherein, in the case of inconsistency, the target on-board unit sends a verification result indicating that the electronic controller unit has not passed the verification to the root node in the vehicle-road collaborative blockchain system; the root node determines that the target on-board unit is a dishonest node, and synchronously notifies other nodes in the blockchain system.

[0092] Optionally, the root node in the vehicle-road collaborative blockchain system can also perform data transparent transmission through the target vehicle-mounted unit to achieve data transmission with the second security module through the CAN bus. Among them, the root node in the vehicle-road collaborative blockchain system obtains the sixth public key from the second security module; the root node in the vehicle-road collaborative blockchain system sends the fourth public key and VIN code reading instructions encrypted with the sixth public key to the second security module; the second security unit decrypts the received data, obtains the fourth public key and VIN code reading instructions, reads the VIN code of the vehicle machine and encrypts it with the fourth public key and sends it to the root node in the vehicle-road collaborative blockchain system; the root node in the vehicle-road collaborative blockchain system decrypts the plaintext vehicle identification code by using the fourth private key paired with the fourth public key, matches it with the second vehicle identification code pre-stored in the blockchain to verify the received vehicle identification code, and writes the verification result into the block of the blockchain, wherein, if the verification passes, it is determined that the target vehicle-mounted unit in the vehicle has not been disassembled; if the verification fails, it is determined that the target vehicle-mounted unit has been disassembled.

[0093] Among them, if the verification is passed, the operator's equipment will write the target function permissions to the target vehicle unit according to needs.

[0094] Optionally, the monitoring equipment at the traffic inspection point can also complete the positioning of the current vehicle through the cooperation between multiple roadside units or vehicle-mounted units, obtain the location information, obtain the vehicle's vehicle-mounted unit identification information, and at the same time capture the current license plate through the license plate reader and obtain the vehicle information. The location information, vehicle-mounted unit identification information, license plate number and vehicle information of the relevant vehicle are uploaded to the blockchain system. The root node in the blockchain system matches the received license plate number and vehicle information with the pre-stored license plate number and vehicle information based on the vehicle-mounted unit identification information. The vehicle-mounted unit account ID of the unmatched vehicle can be revoked of its legal authority and recorded in a new block, and synchronized to all other nodes at the same time.

[0095] It should be noted that in the above embodiment, the target vehicle-mounted unit can be bound through a mobile terminal or other smart terminal; the target vehicle-mounted unit can upload information such as the owner's identity information, vehicle information picture, driving license picture and corresponding identification information to the blockchain system, and the nodes of the blockchain system (such as the root node) will authenticate, extract and review the relevant data.

[0096] Optionally, the issuing process for the target vehicle-mounted unit may be initiated by operating a mobile terminal bound to the target vehicle-mounted unit.

[0097] Optionally, before the user activates the on-board unit, the SN number of the purchased on-board unit and the initial key data of the on-board unit can be applied for using the driving license and the owner's identity information, and written into the blockchain system.

[0098] Through the above embodiments, efficient and automated remote autonomous issuance of the on-board unit is achieved; the vehicle identification code is written into the security module and verified during the issuance process, which effectively avoids the falsification of the on-board unit and improves security; the vehicle VIN code is read and verified when the vehicle is started or at regular intervals, which enables the detection of the disassembly of the on-board unit.

[0099] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0100] According to another embodiment of the present invention, a distribution system of a vehicle-mounted unit is provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0101] Figure 2 is a schematic diagram of a distribution system of a vehicle-mounted unit according to an optional embodiment, such as Figure 2 As shown, the system includes: a target vehicle-mounted unit 22, a server 24 and an operator device 26,

[0102] The target vehicle-mounted unit 22 is used to send identity information to the server 24 during an issuance process;

[0103] The server 24 is used to verify the identity information and determine that the identity of the target vehicle-mounted unit is legitimate if the identity information is verified successfully;

[0104] The server 24 is also used to verify the first vehicle identification code sent by the target vehicle-mounted unit 22 during the secondary issuance process;

[0105] The operator device 26 is used to write the vehicle information of the vehicle into the target vehicle-mounted unit 22 when the server 24 successfully verifies the first vehicle identification code.

[0106] Through the present invention, the first issuance process is: identity information is sent to the server by the target vehicle-mounted unit; when the identity information is verified by the server, the identity of the target vehicle-mounted unit is determined to be legal; the second issuance process is: the first vehicle identification code sent by the target vehicle-mounted unit is verified by the server; when the first vehicle identification code is verified, the vehicle information of the vehicle is written to the target vehicle-mounted unit through the operator device. Since the first issuance process of the target vehicle-mounted unit can be automatically completed through the interaction between the target vehicle-mounted unit and the server, and the second issuance process of the target vehicle-mounted unit can be automatically completed through the interaction between the target vehicle-mounted unit and the operator device, and manual operation is no longer required during the issuance process, the technical problem of low issuance efficiency of the vehicle-mounted unit in the related technology can be solved, and the efficiency of vehicle-mounted unit issuance is improved.

[0107] Optionally, the target vehicle-mounted unit is also used to: use the first private key to sign the authentication code of the target vehicle-mounted unit to obtain a digital signature; use the second public key to encrypt the authentication code and the digital signature to obtain the identity information, wherein the second public key is the public key of the server; and send the identity information to the server.

[0108] Optionally, the server is further used to: use a second private key paired with the second public key to decrypt the identity information to obtain the authentication code and the digital signature; and determine that the first public key is legal when the digital signature is decrypted using the first public key to obtain the authentication code, wherein the first public key and the first private key are pairing keys generated for the target vehicle-mounted unit.

[0109] Optionally, the authentication code includes the device code, manufacturer name and device model of the target vehicle-mounted unit, wherein the server is further used to: search for pre-stored first information and second information corresponding to the device code; and determine that the identity of the target vehicle-mounted unit is legal when the manufacturer name is consistent with the first information and the device model is consistent with the second information.

[0110] Optionally, the server is a root node in a blockchain system, and the system further includes a processing node, wherein the target vehicle-mounted unit is further used to: read the first vehicle identification code from the vehicle, and send the first vehicle identification code and the device code of the target vehicle-mounted unit to the server; the server is further used to: search for a pre-stored second vehicle identification code corresponding to the device code according to the device code; and determine that the first vehicle identification code has passed verification when the first vehicle identification code is consistent with the second vehicle identification code; the processing node is used to send a write instruction to the target vehicle-mounted unit when the first vehicle identification code has passed verification, wherein the write instruction is used to instruct writing the first vehicle identification code or the second vehicle identification code into the security module of the target vehicle-mounted unit.

[0111] It should be noted that, as an optional implementation, the server 24 and the operator device 26 can be two independent devices; or, the server 24 and the operator device 26 can be one device, for example, the server 24 and the operator device 26 are integrated into one device in the blockchain system, so that the one device performs the various operations performed by the server 24 and the operator device 26 in the above embodiment.

[0112] Optionally, the server is also used to: obtain the vehicle identification code written in the full node; compare the written vehicle identification code with the second vehicle identification code, and when they are consistent, determine that the written vehicle identification code has passed the verification; the processing node is also used to send a first notification message to the operator device when the written vehicle identification code has passed the verification, wherein the first notification message is used to indicate that the vehicle identification code written in the target vehicle-mounted unit has passed the verification; the operator device is also used to write the vehicle information to the target vehicle-mounted unit.

[0113] Optionally, the target vehicle-mounted unit is also used to verify the electronic controller unit in the vehicle; the server is also used to verify the electronic controller unit; the processing node is also used to send a second notification message to the operator device when the target vehicle-mounted unit successfully verifies the electronic controller unit in the vehicle and the server successfully verifies the electronic controller unit, wherein the second notification message is used to indicate writing target function permissions to the target vehicle-mounted unit so that the target vehicle-mounted unit has the target function indicated by the target function permissions; the operator device is also used to write the target function permissions to the target vehicle-mounted unit in response to the second notification message to complete the secondary issuance process of the target vehicle-mounted unit.

[0114] Optionally, the target vehicle-mounted unit is further used to: receive a third vehicle identification code information sent by the electronic controller unit, wherein the third vehicle identification code information is obtained by the electronic controller unit encrypting the third vehicle identification code stored in the electronic controller unit using the third public key of the target vehicle-mounted unit; decrypting the third vehicle identification code information using a third private key paired with the third public key to obtain the third vehicle identification code; and determining that the electronic controller unit has passed verification when the third vehicle identification code is consistent with the vehicle identification code written in the target vehicle-mounted unit; wherein the target vehicle-mounted unit is further used to: upon receiving a target instruction, transparently transmit the target instruction to the electronic controller unit, wherein , the target instruction includes a target identifier, and the target identifier is used to instruct the target vehicle-mounted unit to transparently transmit the target instruction to the electronic controller unit; the electronic controller unit is also used to: respond to the target instruction, send a fourth vehicle identification code information to the server, wherein the fourth vehicle identification code information is obtained by the electronic controller unit using the fourth public key of the server to encrypt the third vehicle identification code; the server is also used to decrypt the fourth vehicle identification code information using a fourth private key paired with the fourth public key to obtain the third vehicle identification code; when the third vehicle identification code is consistent with the second vehicle identification code pre-stored in the server, it is determined that the electronic controller unit has passed the verification.

[0115] Optionally, the server is further used to determine whether the target vehicle-mounted unit has legal authority after the secondary issuance process of the target vehicle-mounted unit is completed, wherein the issuance system also includes a monitoring device and an identification device, the monitoring device is used to obtain the vehicle-mounted unit identification information stored in the target vehicle-mounted unit; the identification device is used to identify the first license plate number and the first appearance information of the vehicle where the target vehicle-mounted unit is located; the server is also used to: obtain the vehicle-mounted unit identification information, the first license plate number and the first appearance information; query the pre-stored second license plate number and the second appearance information corresponding to the vehicle-mounted unit identification information; when the first license plate number is consistent with the second license plate number, and the first appearance information is consistent with the second appearance information, determine to maintain the legal authority of the target vehicle-mounted unit, and store the first information used to indicate that the legal authority of the target vehicle-mounted unit is maintained; when the first license plate number is inconsistent with the second license plate number, or the first appearance information is inconsistent with the second appearance information, determine to cancel the legal authority of the target vehicle-mounted unit, and store the second information used to indicate the cancellation of the legal authority of the target vehicle-mounted unit.

[0116] An embodiment of the present invention further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.

[0117] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:

[0118] S1, sending identity information to the server through the target vehicle unit;

[0119] S2, when the identity information is verified by the server, determining that the identity of the target vehicle-mounted unit is legitimate;

[0120] S3, verifying the first vehicle identification code sent by the target vehicle-mounted unit through the server;

[0121] S4: When the first vehicle identification code is verified, the vehicle information of the vehicle is written to the target vehicle-mounted unit through the operator equipment.

[0122] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0123] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0124] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0125] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0126] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0127] S1, sending identity information to the server through the target vehicle unit;

[0128] S2, when the identity information is verified by the server, determining that the identity of the target vehicle-mounted unit is legitimate;

[0129] S3, verifying the first vehicle identification code sent by the target vehicle-mounted unit through the server;

[0130] S4: When the first vehicle identification code is verified, the vehicle information of the vehicle is written to the target vehicle-mounted unit through the operator equipment.

[0131] Figure 3 FIG. 1 is a schematic diagram of a structure of an optional electronic device according to an optional embodiment. Alternatively, a person skilled in the art may understand that Figure 3 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, a desktop computer, a server, or other terminal equipment. Figure 3 The structure of the electronic device is not limited. Figure 3 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 3 Different configurations are shown.

[0132] Among them, the memory 1002 can be used to store software programs and modules, such as the program instructions / modules corresponding to the issuance method of the vehicle-mounted unit and the issuance system of the vehicle-mounted unit in the optional embodiment. The processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, the issuance method of the vehicle-mounted unit described above is realized. The memory 1002 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1002 may further include a memory remotely arranged relative to the processor 1004, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. As an example, the above-mentioned memory 1002 may include, but is not limited to, a program module for executing the issuance method of the vehicle-mounted unit described above. In addition, it may also include, but is not limited to, other module units, which will not be repeated in this example.

[0133] Optionally, the transmission device 1006 is used to receive or send data via a network. Specific examples of the network may include wired networks and wireless networks. In one example, the transmission device 1006 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1006 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0134] In addition, the electronic device further includes: a display 1008 for displaying images; and a connection bus 1010 for connecting various module components in the electronic device.

[0135] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0136] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0137] The above description is only a preferred embodiment of the present invention and is 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 principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for issuing a vehicle-mounted unit, It is characterized in that include: One-time issuance process: identity information is sent to the server through the target vehicle unit, where the server is the root node in the blockchain system; In the case where the identity information is verified by the server, determining that the identity of the target vehicle-mounted unit is legitimate; Secondary issuance process: verifying the first vehicle identification code sent by the target vehicle-mounted unit through the server; When the first vehicle identification code is verified, the vehicle information of the vehicle is written into the target vehicle-mounted unit through the operator device; Wherein, before verifying the first vehicle identification code sent by the target vehicle-mounted unit through the server, the method further includes: reading the first vehicle identification code from the vehicle through the target vehicle-mounted unit, and sending the first vehicle identification code and the device code of the target vehicle-mounted unit to the server; searching, through the server, for a second vehicle identification code corresponding to the device code pre-stored in the blockchain system according to the device code; when the first vehicle identification code is consistent with the second vehicle identification code, determining through the server that the first vehicle identification code has passed the verification, and sending a write instruction to the target vehicle-mounted unit through a processing node in the blockchain system, wherein the write instruction is used to instruct writing the first vehicle identification code or the second vehicle identification code into the security module of the target vehicle-mounted unit; The method further includes: verifying the electronic controller unit in the vehicle through the target vehicle-mounted unit, and verifying the electronic controller unit through the server; when the target vehicle-mounted unit successfully verifies the electronic controller unit in the vehicle, and the electronic controller unit successfully verifies the electronic controller unit through the server, sending a second notification message to the operator device through the processing node, wherein the second notification message is used to indicate writing target function permissions to the target vehicle-mounted unit so that the target vehicle-mounted unit has the target function indicated by the target function permissions; in response to the second notification message, writing the target function permissions to the target vehicle-mounted unit through the operator device to complete the secondary issuance process of the target vehicle-mounted unit.

2. The method for issuing an on-vehicle unit according to claim 1, It is characterized in that The sending of identity information to the server through the target vehicle-mounted unit includes: The target vehicle-mounted unit uses the first private key to sign the authentication code of the target vehicle-mounted unit to obtain a digital signature; The target vehicle-mounted unit uses a second public key to encrypt the authentication code and the digital signature to obtain the identity information, wherein the second public key is the public key of the server; The identity information is sent to the server via the target vehicle-mounted unit.

3. The method for issuing the vehicle-mounted unit according to claim 2, It is characterized in that After sending the identity information to the server through the target vehicle-mounted unit, the method further includes: Decrypting the identity information by the server using a second private key paired with the second public key to obtain the authentication code and the digital signature; When the server uses the first public key to decrypt the digital signature to obtain the authentication code, the first public key is determined to be legal, wherein the first public key and the first private key are pairing keys generated by the target vehicle-mounted unit.

4. The method for issuing the vehicle-mounted unit according to claim 3, It is characterized in that The authentication code includes the device code, manufacturer name and device model of the target vehicle-mounted unit, wherein after determining that the first public key is legitimate, the method further includes: searching, through the server, first information and second information pre-stored and corresponding to the device code; When the manufacturer name is consistent with the first information, and the device model is consistent with the second information, it is determined that the identity of the target vehicle-mounted unit is legal.

5. The method for issuing an on-vehicle unit according to claim 1, It is characterized in that The method further comprises: Acquire the vehicle identification code written in the security module through the server; The server compares the written vehicle identification code with the second vehicle identification code, and determines that the written vehicle identification code has passed the verification if they are consistent; Sending a first notification message to the operator device through the processing node, wherein the first notification message is used to indicate that the vehicle identification code written in the target vehicle-mounted unit has passed verification; In response to the first notification message, the vehicle information is written to the target onboard unit through the operator device.

6. The method for issuing an on-vehicle unit according to claim 1, It is characterized in that The verifying of the electronic controller unit in the vehicle by the target vehicle-mounted unit comprises: Receiving, by the target vehicle-mounted unit, the third vehicle identification code information sent by the electronic controller unit, wherein the third vehicle identification code information is obtained by encrypting the third vehicle identification code stored in the electronic controller unit by the electronic controller unit using the third public key of the target vehicle-mounted unit; Decrypting the third vehicle identification code information by the target vehicle-mounted unit using a third private key paired with the third public key to obtain the third vehicle identification code; In the case where the third vehicle identification code is consistent with the vehicle identification code written in the target vehicle-mounted unit, determining, through the target vehicle-mounted unit, that the electronic controller unit has passed the verification; Wherein, verifying the electronic controller unit by the server includes: When the target vehicle-mounted unit receives the target instruction, the target instruction is transparently transmitted to the electronic controller unit through the target vehicle-mounted unit, wherein the target instruction includes a target identifier, and the target identifier is used to instruct the target vehicle-mounted unit to transparently transmit the target instruction to the electronic controller unit; In response to the target instruction, sending fourth vehicle identification code information to the server through the electronic controller unit, wherein the fourth vehicle identification code information is obtained by encrypting the third vehicle identification code by the electronic controller unit using a fourth public key of the server; Decrypting the fourth vehicle identification code information by the server using a fourth private key paired with the fourth public key to obtain the third vehicle identification code; In the case where the third vehicle identification code is consistent with the second vehicle identification code pre-stored in the server, it is determined by the server that the electronic controller unit is authenticated.

7. The method for issuing an on-vehicle unit according to claim 1, It is characterized in that After completing the secondary issuance process, determining through the server whether the target vehicle-mounted unit has legal authority, wherein the method further includes: Acquiring the on-board unit identification information stored in the target on-board unit through a monitoring device; Identify the first license plate number and first appearance information of the vehicle where the target vehicle-mounted unit is located by using an identification device; Acquire the vehicle-mounted unit identification information, the first license plate number and the first appearance information through the server; querying the second license plate number and second appearance information pre-stored and corresponding to the identification information of the vehicle-mounted unit through the server; When the first license plate number is consistent with the second license plate number and the first appearance information is consistent with the second appearance information, determining to maintain the legal authority of the target vehicle-mounted unit, and storing first information indicating that the legal authority of the target vehicle-mounted unit is maintained; When the first license plate number is inconsistent with the second license plate number, or the first appearance information is inconsistent with the second appearance information, it is determined to cancel the legal authority of the target vehicle-mounted unit, and the second information indicating the cancellation of the legal authority of the target vehicle-mounted unit is stored.

8. A vehicle-mounted unit distribution system, It is characterized in that include: Target vehicle-mounted units, servers, operator equipment and processing nodes, among which, The target vehicle-mounted unit is used to send identity information to the server during an issuance process, wherein the server is a root node in the blockchain system; The server is used to verify the identity information and determine that the identity of the target vehicle-mounted unit is legitimate if the identity information is verified successfully; The server is further used to verify the first vehicle identification code sent by the target vehicle-mounted unit during the secondary issuance process; The operator device is configured to write the vehicle information of the vehicle into the target vehicle-mounted unit when the server successfully verifies the first vehicle identification code; The target vehicle-mounted unit is further used to: read the first vehicle identification code from the vehicle, and send the first vehicle identification code and the device code of the target vehicle-mounted unit to the server; The server is further configured to: search for a pre-stored second vehicle identification code corresponding to the device code according to the device code; and determine that the first vehicle identification code has passed verification when the first vehicle identification code is consistent with the second vehicle identification code; The processing node is used to send a write instruction to the target vehicle-mounted unit when the first vehicle identification code is verified, wherein the write instruction is used to instruct the first vehicle identification code or the second vehicle identification code to be written to the security module of the target vehicle-mounted unit; The target vehicle-mounted unit is also used to verify the electronic controller unit in the vehicle; The server is further used to verify the electronic controller unit; The processing node is further configured to send a second notification message to the operator device when the target vehicle-mounted unit successfully verifies the electronic controller unit in the vehicle and the server successfully verifies the electronic controller unit, wherein the second notification message is used to instruct to write the target function permission to the target vehicle-mounted unit so that the target vehicle-mounted unit has the target function indicated by the target function permission; The operator device is further configured to write the target function permission into the target onboard unit in response to the second notification message, so as to complete the secondary issuance process of the target onboard unit.

9. The issuance system of the vehicle-mounted unit according to claim 8, It is characterized in that The target vehicle-mounted unit is further used for: Signing the authentication code of the target vehicle-mounted unit using the first private key to obtain a digital signature; Encrypting the authentication code and the digital signature using a second public key to obtain the identity information, wherein the second public key is a public key of the server; The identity information is sent to the server.

10. The issuance system of the vehicle-mounted unit according to claim 9, It is characterized in that The server is also used for: Decrypting the identity information using a second private key paired with the second public key to obtain the authentication code and the digital signature; When the digital signature is decrypted using the first public key to obtain the authentication code, it is determined that the first public key is legal.

11. The issuance system of the vehicle-mounted unit according to claim 10, It is characterized in that The authentication code includes the device code, manufacturer name and device model of the target vehicle-mounted unit, wherein the server is further used to: Searching for pre-stored first information and second information corresponding to the device code; When the manufacturer name is consistent with the first information, and the device model is consistent with the second information, it is determined that the identity of the target vehicle-mounted unit is legal.

12. The issuance system of the vehicle-mounted unit according to claim 8, It is characterized in that The server is also used for: Obtaining the vehicle identification code written in the security module; Comparing the written vehicle identification code with the second vehicle identification code, and determining that the written vehicle identification code passes verification when they are consistent; The processing node is further configured to send a first notification message to the operator device if the written vehicle identification code passes the verification, wherein the first notification message is used to indicate that the vehicle identification code written in the target vehicle-mounted unit passes the verification; The operator device is further used to write the vehicle information into the target vehicle-mounted unit.

13. The issuance system of the vehicle-mounted unit according to claim 8, It is characterized in that The target vehicle-mounted unit is further used for: Receiving third vehicle identification code information sent by the electronic controller unit, wherein the third vehicle identification code information is obtained by encrypting the third vehicle identification code stored in the electronic controller unit by the electronic controller unit using the third public key of the target vehicle-mounted unit; Decrypting the third vehicle identification code information using a third private key paired with the third public key to obtain the third vehicle identification code; If the third vehicle identification code is consistent with the vehicle identification code written in the target vehicle-mounted unit, determining that the electronic controller unit has passed the verification; The target vehicle-mounted unit is further used to: upon receiving a target instruction, transparently transmit the target instruction to the electronic controller unit, wherein the target instruction includes a target identifier, and the target identifier is used to instruct the target vehicle-mounted unit to transparently transmit the target instruction to the electronic controller unit; The electronic controller unit is further used to: send fourth vehicle identification code information to the server in response to the target instruction, wherein the fourth vehicle identification code information is obtained by encrypting the third vehicle identification code by the electronic controller unit using a fourth public key of the server; The server is also used to decrypt the fourth vehicle identification code information using a fourth private key paired with the fourth public key to obtain the third vehicle identification code; when the third vehicle identification code is consistent with the second vehicle identification code pre-stored in the server, it is determined that the electronic controller unit has passed the verification.

14. The issuance system of the vehicle-mounted unit according to claim 8, It is characterized in that The server is further used to determine whether the target vehicle-mounted unit has legal authority after the secondary issuance process of the target vehicle-mounted unit is completed, wherein the issuance system also includes a monitoring device and an identification device, The monitoring device is used to obtain the vehicle-mounted unit identification information stored in the target vehicle-mounted unit; The identification device is used to identify the first license plate number and first appearance information of the vehicle where the target vehicle-mounted unit is located; The server is also used for: Acquire the onboard unit identification information, the first license plate number and the first appearance information; Querying the pre-stored second license plate number and second appearance information corresponding to the identification information of the vehicle-mounted unit; When the first license plate number is consistent with the second license plate number and the first appearance information is consistent with the second appearance information, determining to maintain the legal authority of the target vehicle-mounted unit, and storing first information indicating that the legal authority of the target vehicle-mounted unit is maintained; When the first license plate number is inconsistent with the second license plate number, or the first appearance information is inconsistent with the second appearance information, it is determined to cancel the legal authority of the target vehicle-mounted unit, and the second information indicating the cancellation of the legal authority of the target vehicle-mounted unit is stored.

15. A storage medium, It is characterized in that The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 7 when executed.

16. An electronic device comprising a memory and a processor, It is characterized in that A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.