Disclosure of Invention
The embodiment of the invention provides a method and a device for managing vehicle diagnosis information and terminal equipment, which can solve the problem of delaying vehicle maintenance caused by untimely spare parts in a repair shop.
In a first aspect, a method for managing vehicle diagnostic information is provided, including:
acquiring vehicle information and diagnosis information of a fault vehicle;
determining part information required for maintaining the fault vehicle according to the vehicle information and the diagnosis information;
binding the vehicle information, the diagnostic information, and the part information;
and storing the bound vehicle information, the diagnosis information and the part information to a node server of a block chain, so that a repair shop server registered on the block chain acquires the vehicle information, the diagnosis information and the part information from the node server of the block chain.
Optionally, the binding information refers to the vehicle information, the diagnostic information, and the component information after binding, and the storing the vehicle information, the diagnostic information, and the component information after binding to a node server of a block chain includes:
uploading the binding information to a designated server of the blockchain, so that the designated server broadcasts the binding information to all node servers on the blockchain, and the all node servers save characteristic values about the binding information when receiving the binding information; the designated server is a designated node server registered in the blockchain in advance.
Optionally, before uploading the binding information to a designated server of the blockchain, the method further includes:
encrypting the binding information;
before the designated server broadcasts the binding information to all node servers on the blockchain, the designated server decrypts the binding information.
Optionally, the determining, according to the vehicle information and the diagnosis information, part information required for repairing the faulty vehicle includes:
analyzing by using vehicle diagnosis equipment according to the vehicle information and the diagnosis information to obtain a fault diagnosis result of the fault vehicle;
and determining part information required for maintaining the fault vehicle according to the fault diagnosis result.
In a second aspect, there is provided a management apparatus of vehicle diagnostic information, including:
the diagnostic information acquisition module is used for acquiring vehicle information and diagnostic information of a fault vehicle;
the part information determining module is used for determining part information required by maintenance of the fault vehicle according to the vehicle information and the diagnosis information;
the information binding module is used for binding the vehicle information, the diagnosis information and the part information;
and the block chain storage module is used for storing the bound vehicle information, the diagnosis information and the part information to a node server of a block chain, so that a repair shop server registered on the block chain acquires the vehicle information, the diagnosis information and the part information from the node server of the block chain.
Optionally, the binding information refers to the vehicle information, the diagnostic information, and the part information after binding, and the block chain storage module is specifically configured to:
uploading the binding information to a designated server of the blockchain, so that the designated server broadcasts the binding information to all node servers on the blockchain, and the all node servers save characteristic values about the binding information when receiving the binding information; the designated server is a designated node server registered in the blockchain in advance.
Optionally, the block chain storage module is specifically configured to:
and encrypting the binding information, and uploading the binding information to a designated server of the blockchain, so that the designated server broadcasts the binding information to all node servers on the blockchain after decrypting the binding information, and the all node servers store the characteristic value of the binding information when receiving the binding information.
Optionally, the component information determining module includes:
the diagnosis unit is used for analyzing and obtaining a fault diagnosis result of the fault vehicle according to the vehicle information and the diagnosis information by utilizing the vehicle diagnosis equipment;
and the determining part unit is used for determining part information required for maintaining the fault vehicle according to the fault diagnosis result.
In a third aspect, a terminal device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above-mentioned vehicle diagnosis information management method when executing the computer program.
In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program that, when executed by a processor, implements the steps of the above-described method for managing vehicle diagnostic information.
According to the technical scheme, the embodiment of the invention has the following advantages:
in the embodiment of the invention, firstly, vehicle information and diagnosis information of a fault vehicle are obtained; then, determining part information required for maintaining the fault vehicle according to the vehicle information and the diagnosis information; then, binding the vehicle information, the diagnosis information and the part information; and finally, storing the bound vehicle information, the diagnosis information and the part information to a node server of a block chain, so that a repair shop server registered on the block chain acquires the vehicle information, the diagnosis information and the part information from the node server of the block chain. Therefore, the method and the device can acquire the vehicle information, the diagnosis information and the part information required by corresponding maintenance of the fault vehicle, bind the information and store the information in a block chain mode, and ensure that the data is not tampered and the authenticity of the information by utilizing the characteristics of the block chain technology; moreover, the registered repair shop can acquire the information from the block chain, wherein the part information required by maintenance can help the repair shop to reserve parts in a targeted manner, so that the corresponding part inventory is increased, the condition that the required part inventory is insufficient during the maintenance of the fault vehicle is greatly relieved, and the waiting time for the maintenance of the vehicle is reduced.
Detailed Description
The embodiment of the invention provides a method and a device for managing vehicle diagnosis information and terminal equipment, which are used for solving the problem of delaying vehicle maintenance caused by untimely spare parts in a repair shop.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an embodiment of a method for managing vehicle diagnostic information according to an embodiment of the present invention includes:
101. acquiring vehicle information and diagnosis information of a fault vehicle;
first, the execution subject of the present embodiment may be a terminal device such as a computer or a mobile terminal, or may be a system or a server that executes the management method. In this embodiment, a preferred execution subject is a terminal device.
It can be understood that after a vehicle has a fault, a user can detect the faulty vehicle through a professional diagnostic device, so that the terminal device can acquire vehicle information and diagnostic information of the faulty vehicle. The vehicle information may include, but is not limited to, a vehicle unique identification number (VIN code), the current mileage of the vehicle, a vehicle brand, a vehicle type, an annual payment, and an engine model. The diagnosis information may include, but is not limited to, a vehicle trouble code, a picture taken of a trouble part, and the like.
102. Determining part information required for maintaining the fault vehicle according to the vehicle information and the diagnosis information;
after the terminal device obtains the vehicle information and the diagnosis information, the terminal device may determine the part information required for repairing the faulty vehicle according to the vehicle information and the diagnosis information. The component information refers to information such as the model, number, specification, and even manufacturer of the component required for repairing the faulty vehicle.
It can be understood that, because the parts of the automobile are various, the parts used by the automobiles of different brands are different, which leads to that when the parts of the same part are replaced aiming at the automobiles of different brands and models, the parts of different models are needed. Therefore, after the terminal equipment acquires the vehicle information and the diagnosis information, the information of parts required by repairing the fault vehicle can be obtained through analysis, and convenience is provided for a repair shop of the vehicle.
Further, as shown in fig. 2, the step 102 may include:
201. analyzing by using vehicle diagnosis equipment according to the vehicle information and the diagnosis information to obtain a fault diagnosis result of the fault vehicle;
202. and determining part information required for maintaining the fault vehicle according to the fault diagnosis result.
With regard to step 201 described above, it can be understood that the terminal device may analyze the vehicle information and the diagnostic information using the vehicle diagnostic device, thereby deriving a fault diagnosis result of the faulty vehicle. The fault diagnosis result may include information on whether maintenance is required, whether parts need to be replaced, which parts are replaced, and the like.
With respect to step 202, as shown in step 201, after the fault diagnosis result is obtained, the component information required for repairing the faulty vehicle may be determined according to the fault diagnosis result, and may include information such as the model, number, specification, and brand of the component, and may further include information such as a purchasing channel of the component and a recommended purchasing manufacturer, and the repair shop may perform component stocking through the component information.
103. Binding the vehicle information, the diagnostic information, and the part information;
in this embodiment, for a faulty vehicle, the vehicle information, the diagnostic information, and the part information obtained by the terminal device each time are in one-to-one correspondence, and in order to ensure that these data can be correlated when being provided for subsequent data analysis, this embodiment binds the vehicle information, the diagnostic information, and the part information obtained each time. Specifically, the binding manner may include data packet packaging, index information association, and the like.
104. And storing the bound vehicle information, the diagnosis information and the part information to a node server of a block chain, so that a repair shop server registered on the block chain acquires the vehicle information, the diagnosis information and the part information from the node server of the block chain.
It can be understood that, in order to ensure that the bound vehicle information, the diagnosis information, and the component information are not tampered, and ensure the authority of the data, the embodiment stores the data by using a block chain technology. Due to the characteristics of the blockchain storage technology, after the data is stored in the blockchain, the registered server on the blockchain can acquire the data from the blockchain. Therefore, as long as the server of the repair shop is registered on the blockchain, the vehicle information, the diagnosis information and the part information which are bound can be downloaded from any node server of the blockchain, so that the repair shop can know parts required by the fault vehicle in advance, and accordingly, the parts can be prepared in advance.
For convenience of description, the vehicle information, the diagnosis information, and the component information after being bound are simply referred to as binding information, and therefore, the step 104 may specifically be: uploading the binding information to a designated server of the blockchain, so that the designated server broadcasts the binding information to all node servers on the blockchain, and the all node servers save characteristic values about the binding information when receiving the binding information; the designated server is a designated node server registered in the blockchain in advance. It is understood that the above-mentioned feature value may be calculated from the binding information based on a one-way hash function, and the one-way hash function may include a hash function, an MD5 digest algorithm, and the like. Particularly, a hash function can be used to calculate the hash value of the binding information in an application scenario, and due to the one-way irreversible characteristic of the hash algorithm, all node servers on the block chain store the binding information and the hash value, so that even a data provider cannot change the data stored in the block chain, and the authority of the data is ensured.
Further, in order to improve the data security, before uploading the binding information to a designated server of the block chain, encryption processing is also performed on the binding information. Accordingly, before the designated server broadcasts the binding information to all node servers on the blockchain, the designated server needs to decrypt the binding information.
Further, the encryption algorithm employed in the present embodiment may be an asymmetric encryption algorithm. For example, the following steps are carried out: and presetting a pair of public and private keys, distributing the public key to the terminal equipment in advance, and distributing the private key to the specified server. When the terminal equipment acquires the binding information, encrypting the binding information by adopting a public key; when the designated server obtains the encrypted binding information, the execution server can decrypt the binding information by using the corresponding private key, so that the encrypted binding information is obtained and is broadcast to all node servers on the block chain.
It is understood that when the node servers on the blockchain provide the binding information to the repair shop, the binding information may be encrypted by using the private key and then provided to the repair shop. And the repair shop decrypts the binding information by using the authorized public key to acquire information such as vehicle information, diagnostic information, part information and the like, so that the safety and the authenticity of the data are ensured. In addition, the repair shop can also trace back data according to each node server on the block chain, so as to verify whether the obtained binding information is real.
In the embodiment, firstly, vehicle information and diagnosis information of a fault vehicle are obtained; then, determining part information required for maintaining the fault vehicle according to the vehicle information and the diagnosis information; then, binding the vehicle information, the diagnosis information and the part information; and finally, storing the bound vehicle information, the diagnosis information and the part information to a node server of a block chain, so that a repair shop server registered on the block chain acquires the vehicle information, the diagnosis information and the part information from the node server of the block chain. Therefore, the vehicle information, the diagnosis information and the part information required by corresponding maintenance of the fault vehicle can be acquired, the information is stored in a block chain mode after being bound, the data is guaranteed not to be tampered by using the characteristics of the block chain technology, and the authenticity of the information is guaranteed; moreover, the registered repair shop can acquire the information from the block chain, wherein the part information required by maintenance can help the repair shop to reserve parts in a targeted manner, so that the corresponding part inventory is increased, the condition that the required part inventory is insufficient during the maintenance of the fault vehicle is greatly relieved, and the waiting time for the maintenance of the vehicle is reduced.
The above mainly describes a management method of vehicle diagnostic information, and a management apparatus of vehicle diagnostic information will be described in detail below.
Fig. 3 is a block diagram showing an embodiment of a vehicle diagnostic information management apparatus according to an embodiment of the present invention.
In the present embodiment, a management apparatus of vehicle diagnostic information includes:
a diagnostic information obtaining module 301, configured to obtain vehicle information and diagnostic information of a faulty vehicle;
a component information determination module 302, configured to determine component information required for repairing the faulty vehicle according to the vehicle information and the diagnosis information;
an information binding module 303, configured to bind the vehicle information, the diagnostic information, and the component information;
a blockchain storage module 304, configured to store the vehicle information, the diagnostic information, and the component information after being bound to a node server of a blockchain, so that a repair shop server registered on the blockchain obtains the vehicle information, the diagnostic information, and the component information from the node server of the blockchain.
Further, the binding information may refer to the vehicle information, the diagnostic information, and the component information after binding, and the block chain storage module is specifically configured to:
uploading the binding information to a designated server of the blockchain, so that the designated server broadcasts the binding information to all node servers on the blockchain, and the all node servers save characteristic values about the binding information when receiving the binding information; the designated server is a designated node server registered in the blockchain in advance.
Further, the blockchain storage module may be specifically configured to:
and encrypting the binding information, and uploading the binding information to a designated server of the blockchain, so that the designated server broadcasts the binding information to all node servers on the blockchain after decrypting the binding information, and the all node servers store the characteristic value of the binding information when receiving the binding information.
Further, the component information determination module may include:
the diagnosis unit is used for analyzing and obtaining a fault diagnosis result of the fault vehicle according to the vehicle information and the diagnosis information by utilizing the vehicle diagnosis equipment;
and the determining part unit is used for determining part information required for maintaining the fault vehicle according to the fault diagnosis result.
Fig. 4 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 4, the terminal device 4 of this embodiment includes: a processor 40, a memory 41 and a computer program 42 stored in said memory 41 and executable on said processor 40, for example a program performing the above-mentioned method of managing vehicle diagnostic information. The processor 40, when executing the computer program 42, implements the steps in the various vehicle diagnostic information management method embodiments described above, such as steps 101-104 shown in fig. 1. Alternatively, the processor 40, when executing the computer program 42, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 301 to 304 shown in fig. 3.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 42 in the terminal device 4.
The terminal device 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is merely an example of a terminal device 4 and does not constitute a limitation of terminal device 4 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal device 4, such as a hard disk or a memory of the terminal device 4. The memory 41 may also be an external storage device of the terminal device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal device 4. The memory 41 is used for storing the computer program and other programs and data required by the terminal device. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the modules, elements, and/or method steps of the various embodiments described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.