Vehicle data transmission method and device, computer equipment and storage medium

By sending device discovery requests to vehicle identification devices in the non-stop charging system and license plate recognition system, receiving and encrypting vehicle data, the problem of insufficient data security in traditional technology is solved, and high security and integrity of vehicle data transmission is achieved. .

CN119011229APending Publication Date: 2024-11-22TIANJIN YINENG TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411055930.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

Traditional non-stop charging systems and license plate recognition systems have poor data security during vehicle data transmission.

Method used

By sending device discovery requests to vehicle identification devices, receiving device identification information, establishing communication connections, receiving and encrypting vehicle data plaintext, generating ciphertexts, and sending ciphertexts to the data demander, using homomorphic encryption and hashing operations to ensure data Transmission security.

Benefits of technology

It improves the security of vehicle data during transmission, reduces the risks of hacker attacks and data breaches, and ensures the integrity of the data and the authenticity of the source.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011229A_ABST
    Figure CN119011229A_ABST
Patent Text Reader

Abstract

The invention relates to a vehicle data transmission method and device, computer equipment and a storage medium. The method comprises the following steps: sending a device discovery request to a vehicle identification device, and receiving device identification information fed back by the vehicle identification device; establishing communication connection with the vehicle identification equipment according to the equipment identification information, and receiving a vehicle data plaintext sent by the vehicle identification equipment; and encrypting the vehicle data plaintext to obtain a vehicle data ciphertext, and sending the vehicle data ciphertext to a data demand side for use. According to the method, the device discovery request is sent, the communication connection with the vehicle identification device is established, the received vehicle data plaintext is encrypted, the vehicle data ciphertext is obtained, and the safety of the vehicle data in the transmission process is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a vehicle data transmission method, device, computer equipment and storage medium. Background Art

[0002] With the development of computers, the application of toll collection systems and license plate recognition systems has become increasingly widespread, and more and more places are applying vehicle data identified by toll collection systems and license plate recognition systems.

[0003] In traditional technologies, vehicle data is usually processed externally by the toll collection system and license plate recognition system. In the process of vehicle data transmission, there is usually a problem of poor data security. Summary of the invention

[0004] Based on this, it is necessary to provide a vehicle data transmission method, device, computer equipment and storage medium that can improve the security of data transmission in response to the above technical problems.

[0005] In a first aspect, the present application provides a vehicle data transmission method, applied to a server, the method comprising:

[0006] Send a device discovery request to the vehicle identification device and receive device identification information fed back by the vehicle identification device;

[0007] Establishing a communication connection with the vehicle identification device according to the device identification information, and receiving the vehicle data plain text sent by the vehicle identification device;

[0008] The vehicle data plaintext is encrypted to obtain the vehicle data ciphertext, and the vehicle data ciphertext is sent to the data demander for use.

[0009] In one embodiment, encrypting the vehicle data plaintext to obtain the vehicle data ciphertext includes:

[0010] Determine target encryption reference data according to the data type corresponding to the vehicle data plaintext; wherein the encryption reference data includes the polynomial modulus degree and coefficient modulus array;

[0011] According to the target encryption reference data, the vehicle data plaintext is homomorphically encrypted to obtain the vehicle data ciphertext.

[0012] In one of the embodiments, determining target encrypted reference data according to the data type corresponding to the vehicle data plaintext includes:

[0013] If the data type corresponding to the plaintext of the vehicle data is a preset sensitive type, the first encrypted reference data is used as the target encrypted reference data;

[0014] If the data type corresponding to the vehicle data plaintext is not a preset sensitive type, the second encrypted reference data is used as the target encrypted reference data;

[0015] Among them, the polynomial modulus degree of the first encrypted reference data is greater than the polynomial modulus degree of the second encrypted reference data; the coefficient modulus array of the first encrypted reference data is greater than the coefficient modulus array of the second encrypted reference data.

[0016] In one embodiment, sending the encrypted vehicle data to the data demander for use includes:

[0017] Convert vehicle data ciphertext into a preset format;

[0018] Performing a hash operation on the vehicle data ciphertext after format conversion to obtain a data summary corresponding to the vehicle data ciphertext;

[0019] The format-converted vehicle data ciphertext and data summary are sent to the data demander, so that the data demander can perform a hash operation on the received vehicle data ciphertext and then verify the received vehicle data ciphertext based on the consistency between the hash operation result and the received data summary.

[0020] In one embodiment, establishing a communication connection with a vehicle identification device according to device identification information and receiving vehicle data plain text sent by the vehicle identification device includes:

[0021] Determine the adapter class and target communication protocol supported by the vehicle identification device according to the device identification information;

[0022] Based on the adapter class, create the adapter implementation corresponding to the vehicle identification device;

[0023] Based on the adapter implementation, a communication connection with the vehicle identification device is established;

[0024] Based on the target communication protocol, receive the vehicle data plaintext sent by the vehicle identification device.

[0025] In one embodiment, the device identification information includes a device category and a device model; determining the target communication protocol supported by the vehicle identification device according to the device identification information includes:

[0026] If the device type is a camera, the preset network service is called to obtain a communication protocol matching the device model from the protocol compatibility library as the target communication protocol, and if the acquisition fails, the private protocol corresponding to the device model is obtained from the private protocol library of the manufacturer to which the vehicle identification device belongs as the target communication protocol;

[0027] If the device category is a non-stop toll collection system, when the non-stop toll collection system is powered on, the communication protocol matching the device model is obtained from the public protocol library as the target communication protocol. If the acquisition fails, the private protocol corresponding to the device model is obtained from the private protocol library of the manufacturer to which the vehicle identification device belongs as the target communication protocol.

[0028] In a second aspect, the present application also provides a vehicle data transmission device, comprising:

[0029] An information acquisition module is used to send a device discovery request to the vehicle identification device and receive device identification information fed back by the vehicle identification device;

[0030] A plaintext receiving module, used to establish a communication connection with the vehicle identification device according to the device identification information, and receive the vehicle data plaintext sent by the vehicle identification device;

[0031] The data transmission module is used to encrypt the vehicle data plaintext to obtain the vehicle data ciphertext, and send the vehicle data ciphertext to the data demander for use.

[0032] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0033] Send a device discovery request to the vehicle identification device and receive device identification information fed back by the vehicle identification device;

[0034] Establishing a communication connection with the vehicle identification device according to the device identification information, and receiving the vehicle data plain text sent by the vehicle identification device;

[0035] The vehicle data plaintext is encrypted to obtain the vehicle data ciphertext, and the vehicle data ciphertext is sent to the data demander for use.

[0036] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0037] Send a device discovery request to the vehicle identification device and receive device identification information fed back by the vehicle identification device;

[0038] Establishing a communication connection with the vehicle identification device according to the device identification information, and receiving the vehicle data plain text sent by the vehicle identification device;

[0039] The vehicle data plaintext is encrypted to obtain the vehicle data ciphertext, and the vehicle data ciphertext is sent to the data demander for use.

[0040] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0041] Send a device discovery request to the vehicle identification device and receive device identification information fed back by the vehicle identification device;

[0042] Establishing a communication connection with the vehicle identification device according to the device identification information, and receiving the vehicle data plain text sent by the vehicle identification device;

[0043] The vehicle data plaintext is encrypted to obtain the vehicle data ciphertext, and the vehicle data ciphertext is sent to the data demander for use.

[0044] The above-mentioned vehicle data transmission method, device, computer equipment and storage medium send a device discovery request to the vehicle identification device and receive the device identification information fed back by the vehicle identification device; establish a communication connection with the vehicle identification device according to the device identification information, and receive the vehicle data plaintext sent by the vehicle identification device; encrypt the vehicle data plaintext to obtain the vehicle data ciphertext, and send the vehicle data ciphertext to the data demander for use. This application improves the security of vehicle data during transmission by sending a device discovery request, establishing a communication connection with the vehicle identification device, and encrypting the received vehicle data plaintext to obtain the vehicle data ciphertext. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 A diagram of an application environment of a vehicle data transmission method provided in this embodiment;

[0047] Figure 2 A schematic flow chart of a first vehicle data transmission method provided in this embodiment;

[0048] Figure 3 A schematic flow chart of a second vehicle data transmission method provided in this embodiment;

[0049] Figure 4 A structural block diagram of a vehicle data transmission device provided in this embodiment;

[0050] Figure 5 An internal structure diagram of a first computer device provided in this embodiment;

[0051] Figure 6 This is a diagram of the internal structure of the second computer device provided in this embodiment. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] The vehicle data transmission method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. The server 100 sends a device discovery request to the vehicle identification device 101, and receives the device identification information fed back by the vehicle identification device 101; according to the device identification information, establishes a communication connection with the vehicle identification device 101, and receives the vehicle data plaintext sent by the vehicle identification device 101; encrypts the vehicle data plaintext to obtain the vehicle data ciphertext, and sends the vehicle data ciphertext to the data demander 102 for use. Among them, the server 100 can be implemented with an independent server or a server cluster composed of multiple servers. The vehicle identification device 101 can be a device for collecting vehicle data. Exemplarily, the vehicle identification device can include a non-stop toll collection system and a camera. The data demander 102 can be a computer device that receives and uses vehicle data.

[0054] In an exemplary embodiment, Figure 2 As shown, a vehicle data transmission method is provided, which is applied to Figure 1 The server 100 in FIG. 1 is taken as an example to illustrate the method, which includes the following steps 201 to 203. Among them:

[0055] Step 201: Send a device discovery request to a vehicle identification device, and receive device identification information fed back by the vehicle identification device.

[0056] Among them, the device identification information can be information that characterizes the identification of the vehicle identification device. Optionally, the device identification information can include information such as the Internet Protocol Address (IP address), the Media Access Control Address (MAC address), the model information of the vehicle identification device, and the firmware version of the vehicle identification device.

[0057] In an optional implementation, the server may send a device discovery request to the vehicle identification device, and the vehicle identification device receives the device discovery request and feeds back the device identification information to the server.

[0058] In another optional implementation, the device discovery request may also include a specific identifier, and the specific identifier is used to ensure that only the target vehicle identification device that can recognize the specific identifier responds.

[0059] The server broadcasts a device discovery request containing a specific identifier through the Internet Control Message Protocol (ICMP). Each candidate device (including non-vehicle identification devices, candidate vehicle identification devices that cannot identify the specific identifier, and target vehicle identification devices that can identify the specific identifier) ​​receives the device discovery request. The candidate device matches the specific identifier in the device discovery request with the identifier stored locally. If the match is unsuccessful, it proves that the candidate device cannot identify the specific identifier and may be a non-vehicle identification device or a candidate vehicle identification device that cannot identify the specific identifier. Therefore, there is no need to feed back vehicle data to the server. If the match is successful, it proves that the candidate device can identify the specific identifier, that is, it is a target vehicle identification device that can identify the specific identifier. Therefore, the vehicle data is fed back to the server.

[0060] It should be noted that the server can also monitor the device status of the successfully matched target vehicle identification device, such as online status and response time, to timely discover and solve potential problems. In order to improve the discovery efficiency, the system will adjust the broadcast frequency and request response structure according to the actual situation, and introduce error detection and retransmission mechanisms. Finally, the server displays the device list and status to the user through the display interface for configuration or troubleshooting.

[0061] Step 202: Establish a communication connection with the vehicle identification device according to the device identification information, and receive the vehicle data plain text sent by the vehicle identification device.

[0062] Specifically, the communication protocol between the server and the vehicle identification device is determined according to the device identification information, and a communication connection between the server and the vehicle identification device is established through the communication protocol. The server uses the communication connection to receive the plain text vehicle data sent by the vehicle identification device.

[0063] Step 203, encrypt the vehicle data plaintext to obtain the vehicle data ciphertext, and send the vehicle data ciphertext to the data demander for use.

[0064] Specifically, the vehicle data plaintext is encrypted to obtain the encrypted vehicle data ciphertext, and the vehicle data ciphertext is sent to the data demander for use.

[0065] The above-mentioned vehicle data transmission method sends a device discovery request to the vehicle identification device and receives the device identification information fed back by the vehicle identification device; establishes a communication connection with the vehicle identification device according to the device identification information, and receives the vehicle data plaintext sent by the vehicle identification device; encrypts the vehicle data plaintext to obtain the vehicle data ciphertext, and sends the vehicle data ciphertext to the data demander for use. This application improves the security of vehicle data during transmission by sending a device discovery request, establishing a communication connection with the vehicle identification device, and encrypting the received vehicle data plaintext to obtain the vehicle data ciphertext.

[0066] In some embodiments, vehicle data plaintext is encrypted to obtain vehicle data ciphertext, including: determining target encryption reference data according to the data type corresponding to the vehicle data plaintext; and homomorphically encrypting the vehicle data plaintext according to the target encryption reference data to obtain the vehicle data ciphertext.

[0067] Among them, the encryption reference data includes the polynomial modulus degree and the coefficient modulus array; the coefficient modulus array defines the noise tolerance of the encryption scheme and the number of executable secure calculations; the polynomial modulus degree can affect the computational complexity of encryption and decryption, and the higher the degree, the more complex the calculation.

[0068] In some embodiments, the target encrypted reference data is determined based on the data type corresponding to the plaintext vehicle data, including: if the data type corresponding to the plaintext vehicle data is a preset sensitive type, the first encrypted reference data is used as the target encrypted reference data; if the data type corresponding to the plaintext vehicle data is a non-preset sensitive type, the second encrypted reference data is used as the target encrypted reference data.

[0069] Among them, the polynomial modulus degree of the first encrypted reference data is greater than the polynomial modulus degree of the second encrypted reference data; the coefficient modulus array of the first encrypted reference data is greater than the coefficient modulus array of the second encrypted reference data.

[0070] Exemplarily, in order to achieve homomorphic encryption, the polynomial modulus degree and coefficient modulus array are key factors when setting homomorphic encryption parameters. For non-sensitive data, the polynomial modulus degree of the first encrypted reference data can be 1024, and the coefficient modulus array can be {30,30}; the polynomial modulus degree of the second encrypted reference data can be 4096, and the coefficient modulus array can be {30,30,30,50,50,35}.

[0071] In some embodiments, the vehicle data plaintext is homomorphically encrypted according to the target encryption reference data to obtain the vehicle data ciphertext by: generating a key for the vehicle data plaintext through a random number generator, and homomorphically encrypting the vehicle data plaintext according to the key and the target encryption reference data to obtain the vehicle data ciphertext. It should be noted that the homomorphic encryption can be learning homomorphic encryption (LWE, Learning With Errors) or polynomial homomorphic encryption (PHE, Polynomial Homomorphic Encryption).

[0072] It should be noted that during the decryption of vehicle data, the corresponding parameter set will be used for decryption according to the data type of the vehicle data. This means that sensitive data and non-sensitive data will use different configuration parameters to ensure that their respective security and performance requirements are met.

[0073] This embodiment improves the security of vehicle data and reduces the risk of hacker attacks or data leakage by performing homomorphic encryption on vehicle data.

[0074] In some embodiments, a vehicle data ciphertext is sent to a data demander for use, including: converting the vehicle data ciphertext into a preset format; performing a hash operation on the vehicle data ciphertext after format conversion to obtain a data summary corresponding to the vehicle data ciphertext; sending the vehicle data ciphertext and the data summary after format conversion to the data demander, so that the data demander performs a hash operation on the received vehicle data ciphertext, and then verifies the received vehicle data ciphertext based on the consistency between the hash operation result and the received data summary.

[0075] Among them, the data summary can characterize the data integrity and authenticity of the vehicle data ciphertext.

[0076] Specifically, converting the vehicle data ciphertext into a preset format may be to convert the vehicle data ciphertext into a preset format (such as JSON format). JSON format is widely used in data exchange due to its lightweight, easy to parse and wide support. At the same time, the integrity and consistency of the data structure are maintained. Format conversion not only improves the standardization level of data, but also enhances the interoperability of data between different systems and platforms.

[0077] Specifically, the digital signature mechanism and the SHA-256 hash algorithm are used to perform a hash operation on the vehicle data ciphertext after format conversion to obtain a data summary corresponding to the vehicle data ciphertext. The vehicle data ciphertext and the data summary after format conversion are sent to the data demander. The data demander will perform a hash operation on the received vehicle data ciphertext to obtain a hash operation result, and compare the hash operation result with the received data summary for consistency. If they are consistent, it proves that the vehicle data ciphertext has not been tampered with during transmission; if they are inconsistent, it proves that the vehicle data ciphertext has been tampered with during transmission.

[0078] It should be noted that during the data transmission process, the vehicle data ciphertext can also be sent to the data demander through security protocols such as high-performance remote procedure call protocol (gRPC), secure socket layer (SSL) and transport layer security (TLS). In this way, even if the vehicle data ciphertext is intercepted during the transmission process, it is impossible to decrypt and understand the data content without the corresponding key.

[0079] This embodiment performs format conversion processing on the data, thereby reducing the complexity of data transmission. At the same time, a data verification mechanism is set up (i.e., the vehicle data ciphertext and data summary after format conversion are sent to the data demander, so that the data demander performs a hash operation on the received vehicle data ciphertext, and then verifies the received vehicle data ciphertext based on the consistency of the hash operation result with the received data summary), to ensure the integrity of the vehicle ciphertext data during transmission and the authenticity of the source.

[0080] In some embodiments, a communication connection with a vehicle identification device is established based on device identification information, and plain text vehicle data sent by the vehicle identification device is received, including: determining an adapter class and a target communication protocol supported by the vehicle identification device based on the device identification information; creating an adapter implementation corresponding to the vehicle identification device based on the adapter class; establishing a communication connection with the vehicle identification device based on the adapter implementation; and receiving plain text vehicle data sent by the vehicle identification device based on the target communication protocol.

[0081] Among them, the adapter class is designed for a specific model of vehicle identification device. It encapsulates all adapters required to communicate with the vehicle identification device of this model. Different adapters correspond to different requirements, including establishing connections, data parsing, and error handling. The target communication protocol is the specific communication protocol supported by the adapter class supported by the vehicle identification device when communicating with the vehicle identification device, such as the Transmission Control Protocol (TCP), Internet Protocol (IP), or a custom communication protocol, which ensures that the vehicle data in plain text can be sent and received correctly.

[0082] In some embodiments, the device identification information includes the device category and the device model; based on the device identification information, the target communication protocol supported by the vehicle identification device is determined, including: if the device category is a camera, calling a preset network service, obtaining a communication protocol that matches the device model from a protocol compatibility library as the target communication protocol, and if the acquisition fails, obtaining a private protocol corresponding to the device model from a private protocol library of the manufacturer to which the vehicle identification device belongs as the target communication protocol; if the device category is a non-stop toll collection system, then when the non-stop toll collection system is powered on, obtaining a communication protocol that matches the device model from a public protocol library as the target communication protocol, and if the acquisition fails, obtaining a private protocol corresponding to the device model from the private protocol library of the manufacturer to which the vehicle identification device belongs as the target communication protocol.

[0083] Specifically, based on the adapter class, all requirements required for the server to communicate with the vehicle identification device are determined, an adapter corresponding to the requirements is determined, and a communication connection with the vehicle identification device is established based on the adapter. The adapter will receive the plain text vehicle data sent by the vehicle identification device according to the target communication protocol of the vehicle identification device.

[0084] It should be noted that this embodiment can also use an asynchronous communication mechanism to simultaneously establish a communication session between the server and multiple vehicle identification devices to collect vehicle data in plain text. This asynchronous processing method significantly improves the efficiency of vehicle data plain text collection, allowing the server to continue to exchange data with other devices while waiting for the vehicle data plain text transmission of one device to complete, thereby optimizing the overall data collection performance.

[0085] This embodiment matches vehicle identification devices produced by different manufacturers through different adapters and communication protocols, thereby improving the versatility and scalability between the server and the vehicle identification device.

[0086] It should be noted that this embodiment can also generate a unique identifier for the vehicle data ciphertext, and store the identifier together with the vehicle data ciphertext source, flow process and timestamp on the blockchain. In this way, every change in the vehicle data ciphertext will be recorded and linked to the previous state, forming an unalterable chain structure. When it is necessary to track the source of the vehicle data ciphertext or verify the authenticity of the data, the identifier of the data packet can be queried through the blockchain to trace its flow history in the entire system. This mechanism not only improves the security of the data, but also facilitates the audit and supervision of the data.

[0087] In one embodiment, this embodiment provides an optional method for transmitting vehicle data, and takes the method applied to a server as an example for explanation. Figure 3 As shown, the method comprises the following steps:

[0088] Step 301: Send a device discovery request to a vehicle identification device, and receive device identification information fed back by the vehicle identification device.

[0089] Step 302: Determine the adapter class and target communication protocol supported by the vehicle identification device according to the device identification information.

[0090] Step 303: Create an adapter implementation corresponding to the vehicle identification device based on the adapter class.

[0091] Step 304: Establishing a communication connection with the vehicle identification device based on the adapter implementation.

[0092] Step 305: receiving the vehicle data plaintext sent by the vehicle identification device based on the target communication protocol.

[0093] Step 306, determining target encryption reference data according to the data type corresponding to the vehicle data plaintext.

[0094] The encrypted reference data includes the polynomial modulus degree and the coefficient modulus array.

[0095] Step 307, homomorphically encrypt the vehicle data plaintext according to the target encryption reference data to obtain the vehicle data ciphertext.

[0096] Step 308, converting the vehicle data ciphertext into a preset format.

[0097] Step 309 , performing a hash operation on the vehicle data ciphertext after the format conversion to obtain a data summary corresponding to the vehicle data ciphertext.

[0098] Step 310, the format-converted vehicle data ciphertext and data summary are sent to the data demander, so that the data demander performs a hash operation on the received vehicle data ciphertext, and then verifies the received vehicle data ciphertext based on the consistency between the hash operation result and the received data summary.

[0099] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0100] Based on the same inventive concept, the embodiment of the present application also provides a vehicle data transmission device for implementing the vehicle data transmission method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more vehicle data transmission device embodiments provided below can refer to the limitations of the vehicle data transmission method above, and will not be repeated here.

[0101] In an exemplary embodiment, Figure 4 As shown, a vehicle data transmission device is provided, comprising: an information acquisition module 10, a plain text receiving module 11 and a data transmission module 12, wherein:

[0102] The information acquisition module 10 is used to send a device discovery request to the vehicle identification device and receive device identification information fed back by the vehicle identification device;

[0103] The plaintext receiving module 11 is used to establish a communication connection with the vehicle identification device according to the device identification information, and receive the vehicle data plaintext sent by the vehicle identification device;

[0104] The data transmission module 12 is used to encrypt the vehicle data plaintext to obtain the vehicle data ciphertext, and send the vehicle data ciphertext to the data demander for use.

[0105] In some embodiments, Figure 4The data transmission module 12 is also used to determine the target encryption reference data according to the data type corresponding to the vehicle data plaintext; wherein the encryption reference data includes the polynomial modulus degree and the coefficient modulus array; according to the target encryption reference data, the vehicle data plaintext is homomorphically encrypted to obtain the vehicle data ciphertext.

[0106] In some embodiments, Figure 4 The data transmission module 12 is also used to use the first encrypted reference data as the target encrypted reference data if the data type corresponding to the plaintext of the vehicle data is a preset sensitive type; if the data type corresponding to the plaintext of the vehicle data is a non-preset sensitive type, use the second encrypted reference data as the target encrypted reference data; wherein the polynomial modulus degree of the first encrypted reference data is greater than the polynomial modulus degree of the second encrypted reference data; and the coefficient modulus array of the first encrypted reference data is greater than the coefficient modulus array of the second encrypted reference data.

[0107] In some embodiments, Figure 4 The data transmission module 12 in the data transmission module is also used to convert the vehicle data ciphertext into a preset format; perform a hash operation on the vehicle data ciphertext after the format conversion to obtain a data summary corresponding to the vehicle data ciphertext; send the vehicle data ciphertext and the data summary after the format conversion to the data demander, so that the data demander performs a hash operation on the received vehicle data ciphertext, and then verifies the received vehicle data ciphertext according to the consistency between the hash operation result and the received data summary.

[0108] In some embodiments, Figure 4 The plaintext receiving module 11 is also used to determine the adapter class and target communication protocol supported by the vehicle identification device based on the device identification information; based on the adapter class, create an adapter implementation corresponding to the vehicle identification device; based on the adapter implementation, establish a communication connection with the vehicle identification device; based on the target communication protocol, receive the vehicle data plaintext sent by the vehicle identification device.

[0109] In some embodiments, Figure 4 The plaintext receiving module 11 is also used to call the preset network service if the device category is a camera, obtain the communication protocol matching the device model from the protocol compatibility library as the target communication protocol, and in the case of failure to obtain, obtain the private protocol corresponding to the device model from the private protocol library of the manufacturer to which the vehicle identification device belongs as the target communication protocol; if the device category is a non-stop toll collection system, then when the non-stop toll collection system is powered on, obtain the communication protocol matching the device model from the public protocol library as the target communication protocol, and in the case of failure to obtain, obtain the private protocol corresponding to the device model from the private protocol library of the manufacturer to which the vehicle identification device belongs as the target communication protocol.

[0110] Each module in the above-mentioned vehicle data transmission device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0111] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store vehicle data ciphertext. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a vehicle data transmission method is implemented.

[0112] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a vehicle data transmission method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

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

[0114] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0115] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0116] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps in the above method embodiments.

[0117] It should be noted that the data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0118] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0119] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0120] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A vehicle data transmission method, characterized in that: Applied to a server, the method comprises: Sending a device discovery request to a vehicle identification device, and receiving device identification information fed back by the vehicle identification device; Establishing a communication connection with the vehicle identification device according to the device identification information, and receiving vehicle data plaintext sent by the vehicle identification device; The vehicle data plaintext is encrypted to obtain vehicle data ciphertext, and the vehicle data ciphertext is sent to the data demander for use.

2. The method according to claim 1, characterized in that The step of encrypting the vehicle data plaintext to obtain the vehicle data ciphertext includes: Determine target encrypted reference data according to the data type corresponding to the plaintext of the vehicle data; wherein the encrypted reference data includes a polynomial modulus degree and a coefficient modulus array; The vehicle data plaintext is homomorphically encrypted according to the target encrypted reference data to obtain the vehicle data ciphertext.

3. The method according to claim 2, characterized in that The step of determining target encryption reference data according to the data type corresponding to the plaintext vehicle data includes: If the data type corresponding to the plaintext of the vehicle data is a preset sensitive type, the first encrypted reference data is used as the target encrypted reference data; If the data type corresponding to the plaintext of the vehicle data is not a preset sensitive type, using the second encrypted reference data as the target encrypted reference data; Among them, the polynomial modulus degree of the first encrypted reference data is greater than the polynomial modulus degree of the second encrypted reference data; the coefficient modulus array of the first encrypted reference data is greater than the coefficient modulus array of the second encrypted reference data.

4. The method according to claim 1, characterized in that: The step of sending the vehicle data ciphertext to the data demander for use includes: Converting the vehicle data ciphertext into a preset format; Performing a hash operation on the vehicle data ciphertext after format conversion to obtain a data summary corresponding to the vehicle data ciphertext; The format-converted vehicle data ciphertext and the data summary are sent to the data demander, so that the data demander performs a hash operation on the received vehicle data ciphertext and then verifies the received vehicle data ciphertext based on the consistency between the hash operation result and the received data summary.

5. The method according to claim 1, characterized in that: The step of establishing a communication connection with the vehicle identification device according to the device identification information and receiving vehicle data plaintext sent by the vehicle identification device comprises: Determining, based on the device identification information, an adapter class and a target communication protocol supported by the vehicle identification device; Based on the adapter class, create an adapter implementation corresponding to the vehicle identification device; Establishing a communication connection with the vehicle identification device based on the adapter implementation; Based on the target communication protocol, the vehicle data plain text sent by the vehicle identification device is received.

6. The method according to claim 5, characterized in that The device identification information includes a device category and a device model; determining a target communication protocol supported by the vehicle identification device according to the device identification information includes: If the device type is a camera, a preset network service is called to obtain a communication protocol matching the device model from a protocol compatibility library as the target communication protocol, and if the acquisition fails, a private protocol corresponding to the device model is obtained from a private protocol library of the manufacturer to which the vehicle identification device belongs as the target communication protocol; If the device category is a non-stop toll collection system, then when the non-stop toll collection system is powered on, a communication protocol matching the device model is obtained from a public protocol library as the target communication protocol. If the acquisition fails, a private protocol corresponding to the device model is obtained from the private protocol library of the manufacturer to which the vehicle identification device belongs as the target communication protocol.

7. A vehicle data transmission device, characterized in that: The device comprises: An information acquisition module, used to send a device discovery request to a vehicle identification device and receive device identification information fed back by the vehicle identification device; A plaintext receiving module, used to establish a communication connection with the vehicle identification device according to the device identification information, and receive the vehicle data plaintext sent by the vehicle identification device; The data transmission module is used to encrypt the vehicle data plaintext to obtain the vehicle data ciphertext, and send the vehicle data ciphertext to the data demander for use.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.