Data verification method and device and server

By detecting and issuing verification instructions in batches, the data between the cloud and vehicle ends are verified and updated, and transactions are recorded using blockchain networks, the problem of data inconsistency between the cloud and vehicle ends is solved, and the accuracy of remote control and permission management is improved Sex and safety.

CN119211077APending Publication Date: 2024-12-27GUANGZHOU XIAOPENG MOTORS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411337889.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The inconsistency between cloud data and vehicle data has affected the accuracy and security of vehicle remote control and permission management functions, especially in the face of network delay, packet loss and clock deviation, it is difficult to ensure data consistency.

Method used

By detecting the vehicle control data stored in the cloud database, checking the consistency of local control data and vehicle control data, and updating it when inconsistent, using the blockchain network to record data transactions. Ensure data synchronization and security.

Benefits of technology

It effectively solves the problem of data inconsistency between the cloud and the vehicle side, ensures the synchronization of vehicle control data and local control data, improves the accuracy and security of remote control and permission management, and enhances the reliability and integrity of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211077A_ABST
    Figure CN119211077A_ABST
Patent Text Reader

Abstract

The invention discloses a data verification method and device and a server, and relates to the field of vehicles. The method comprises the steps that in response to a received detection instruction for a cloud database, vehicle control data, stored in the cloud database, of a plurality of vehicle ends are detected, and a detection result is obtained; in response to the detection result that the vehicle control data is updated, verification instructions are issued to the multiple vehicle ends in batches, and the number of the verification instructions issued in the same batch is determined according to the number of the multiple vehicle ends; and in response to the received local control data uploaded by the plurality of vehicle ends based on the verification instruction, verifying the local control data of the plurality of vehicle ends and the vehicle control data to obtain a verification result, the verification result being used for representing whether the local control data is consistent with the vehicle control data. The technical problem that the consistency of the cloud data and the vehicle data is difficult to guarantee is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicles, and in particular to a data verification method, device and server. Background Art

[0002] The data consistency between cloud data and vehicle-side data directly affects the accuracy and security of vehicle remote control, permission management and other functions. However, due to network delays, packet loss, clock deviation, and network attacks, cloud data and vehicle-side data are often inconsistent, and there are technical problems that make it difficult to ensure the consistency of cloud data and vehicle-side data. For example, in an offline or weak network state, cloud data may not be able to synchronize the upgrade package to vehicle-side data in time. While the cloud data is being updated, the vehicle-side data may not be updated immediately, resulting in inconsistencies between cloud data and vehicle-side data.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present invention provide a data verification method, device and server to at least solve the technical problem that it is difficult to ensure the consistency of cloud-side data and vehicle-side data.

[0005] According to one aspect of an embodiment of the present invention, a data verification method is provided, including: in response to receiving a detection instruction for a cloud database, detecting vehicle control data of multiple vehicle terminals stored in the cloud database to obtain a detection result, wherein the detection result is used to indicate whether the vehicle control data has been updated; in response to the detection result being that the vehicle control data has been updated, issuing verification instructions to multiple vehicle terminals in batches, wherein the number of verification instructions issued in the same batch is determined according to the number of multiple vehicle terminals; in response to receiving local control data uploaded by multiple vehicle terminals based on the verification instruction, verifying the local control data and vehicle control data of the multiple vehicle terminals to obtain a verification result, wherein the verification result is used to indicate whether the local control data is consistent with the vehicle control data.

[0006] Optionally, the method also includes: in response to the verification result that the local control data and the vehicle control data are inconsistent, determining a target vehicle end among multiple vehicle ends whose local control data and the vehicle control data are inconsistent; updating the local control data of the target vehicle end based on the vehicle control data of the target vehicle end to obtain an update result, wherein the update result is used to indicate whether the local control data is successfully updated.

[0007] Optionally, the local control data of the target vehicle end is updated based on the vehicle control data of the target vehicle end to obtain an update result, including: transmitting the vehicle control data corresponding to the target vehicle end in the cloud database to the target vehicle end to obtain a transmission result, wherein the transmission result is used to indicate whether an abnormal state occurs during the transmission of the vehicle control data; in response to the transmission result being that no abnormal state occurs during the transmission process, receiving the update result fed back by the target vehicle end, wherein the update result is obtained by the target vehicle end updating the local control data based on the vehicle control data.

[0008] Optionally, the method also includes: in response to the transmission result being an abnormal state occurring during the transmission process, determining the abnormality type corresponding to the abnormal state; recovering the transmission process based on the abnormality recovery mechanism corresponding to the abnormality type to obtain a recovery result, wherein the recovery result is used to indicate whether the abnormal state during the transmission process is successfully eliminated; in response to the recovery result being the successful elimination of the abnormal state during the transmission process, transmitting the vehicle control data to the target vehicle end to obtain a transmission result.

[0009] Optionally, the vehicle control data corresponding to the target vehicle end in the cloud database is transmitted to the target vehicle end to obtain a transmission result, including: in response to receiving a data acquisition instruction based on feedback from the target vehicle end based on a preset interface, the vehicle control data is transmitted to the target vehicle end through the preset interface to obtain a transmission result, wherein the preset interface is used to represent the interface called by the target vehicle end when the network status is in a preset state.

[0010] Optionally, in the case where the target vehicle end includes multiple sub-vehicle ends, the vehicle control data of the target vehicle end in the cloud database is used to update the local control data of the target vehicle end to obtain an update result, including: obtaining the network status of the multiple sub-vehicle ends and the data priority of different types of data in the vehicle control data; sorting the multiple sub-vehicle ends based on the network status to obtain a first sorting result, wherein the first sorting result is used to determine the order in which the vehicle control data is sent to the multiple sub-vehicle ends; sorting the different types of data in the vehicle control data based on the data priority to obtain a second sorting result, wherein the second sorting result is used to determine the order in which different types of data in the vehicle control data are sent; transmitting the vehicle control data to the multiple sub-vehicle ends based on the weight ratio of the first sorting result and the second sorting result to obtain an update result.

[0011] Optionally, the method also includes: generating data transaction records between the target vehicle side and the cloud server side based on the update results; adding a network node corresponding to the data transaction record in the blockchain network, wherein the blockchain network is used to share with the cloud server side and multiple vehicle sides.

[0012] Optionally, the method also includes: in response to receiving time synchronization instructions sent by multiple vehicle terminals, synchronizing the time information to the multiple vehicle terminals to obtain a synchronization result, wherein the synchronization result is a result obtained by synchronizing the local time of the multiple vehicle terminals according to the time information.

[0013] According to another aspect of an embodiment of the present invention, a data verification device is also provided, including: a detection module, for detecting vehicle control data of multiple vehicle terminals stored in the cloud database in response to receiving a detection instruction for a cloud database, and obtaining a detection result, wherein the detection result is used to indicate whether the vehicle control data has been updated; an update module, for sending verification instructions to multiple vehicle terminals in batches in response to the detection result that the vehicle control data has been updated, wherein the number of verification instructions sent in the same batch is determined according to the number of multiple vehicle terminals; a verification module, for verifying the local control data and vehicle control data of multiple vehicle terminals in response to receiving local control data uploaded by multiple vehicle terminals based on the verification instruction, and obtaining a verification result, wherein the verification result is used to indicate whether the local control data is consistent with the vehicle control data.

[0014] According to another aspect of an embodiment of the present invention, a server is provided, including: a memory storing an executable program; and a processor for running the program, wherein the above method is executed when the program is running.

[0015] In an embodiment of the present invention, in response to receiving a detection instruction for a cloud database, the vehicle control data of multiple vehicle terminals stored in the cloud database are detected to obtain a detection result, wherein the detection result is used to indicate whether the vehicle control data is updated; in response to the detection result that the vehicle control data is updated, the verification instructions are issued to multiple vehicle terminals in batches, wherein the number of verification instructions issued in the same batch is determined according to the number of multiple vehicle terminals; in response to receiving local control data uploaded by multiple vehicle terminals based on the verification instruction, the local control data and vehicle control data of the multiple vehicle terminals are verified to obtain a verification result, wherein the verification result is used to indicate whether the local control data is consistent with the vehicle control data. It is easy to notice that when the vehicle control data in the cloud database is updated, the verification instructions are issued to multiple vehicle terminals in batches, so that the local control data uploaded by the multiple vehicle terminals based on the verification instructions are verified, thereby verifying the vehicle control data in the cloud and the local control data of the vehicle terminal, achieving the purpose of ensuring the consistency of the vehicle control data in the cloud and the local control data of the vehicle terminal, thereby solving the technical problem of difficulty in ensuring the consistency of the cloud data and the vehicle terminal data. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] 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:

[0017] Figure 1 is a flow chart of a data verification method according to an embodiment of the present invention;

[0018] Figure 2 is a flow chart of an optional data verification method according to an embodiment of the present invention;

[0019] Figure 3 is a schematic diagram of a data verification device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0020] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0021] 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. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0022] Example 1

[0023] According to an embodiment of the present invention, an embodiment of a data verification method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0024] Figure 1 is a flow chart of a data verification method according to an embodiment of the present invention. Figure 1As shown, the method comprises the following steps:

[0025] Step S102, in response to receiving a detection instruction for the cloud database, the vehicle control data of multiple vehicle terminals stored in the cloud database are detected to obtain a detection result, wherein the detection result is used to indicate whether the vehicle control data is updated.

[0026] The detection instruction in the above steps is an instruction to detect the vehicle control data in the cloud database. The cloud server can receive the detection instruction and execute the task of detecting the vehicle control data in the cloud database.

[0027] The vehicle control data in the above steps may be, but is not limited to, smart key data and vehicle status data stored in a cloud database. Smart key authority data may include user identity, access level, time limit, authority status, etc., and vehicle status data may include location information, speed and driving direction, engine status, vehicle health status, etc.

[0028] In an optional embodiment, a detection instruction for the cloud database can be generated once at a fixed time interval. For example, the detection instruction can be generated once every hour. The cloud server can receive the detection instruction and perform a table scanning task once every hour to check whether the status of the vehicle control data of multiple vehicle terminals stored in the cloud database has been updated, thereby obtaining the detection result. The above mechanism is a cloud-based scheduled table scanning mechanism. By timely detecting whether the vehicle control data has been updated, the timeliness of the vehicle control data of multiple vehicle terminals stored in the cloud database can be ensured, and the changes in the vehicle control data can be responded to in a timely manner.

[0029] In another optional embodiment, the detection instruction to the cloud database can be triggered by a specific event. For example, the specific event can be a user-initiated detection instruction, or a vehicle software or firmware update, or an abnormality in vehicle safety data, but is not limited thereto. When a specific event can trigger the generation of a detection instruction, after the cloud server receives the detection instruction, it checks whether the status of the smart key data and key certificates of multiple vehicle terminals stored in the cloud database has been updated, thereby obtaining a detection result.

[0030] Step S104, in response to the detection result that the vehicle control data is updated, verification instructions are sent to multiple vehicle terminals in batches, wherein the number of verification instructions sent in the same batch is determined according to the number of multiple vehicle terminals.

[0031] The verification instructions in the above steps are used to instruct multiple vehicle terminals to upload local control data. The verification instructions can be message queue telemetry transport protocol (MQTT) instructions, which are instructions for sending and receiving messages in the MQTT communication protocol. MQTT is a lightweight, publish / subscribe based communication protocol, commonly used for communication between IoT devices. In MQTT, devices can publish messages to specific topics, or subscribe to a topic to receive messages published by other devices. MQTT instructions include operations such as connection, subscription, publication, and disconnection, through which messaging and communication between devices can be achieved. MQTT instructions are usually encoded and transmitted in binary form, with a small data packet size and low network overhead. However, the verification instructions may not be limited to this.

[0032] The preset number in the above steps is a pre-set number, which is the threshold number for issuing verification instructions in the same batch. When setting the preset number, it can be determined based on the number of multiple vehicle terminals, and the preset number is usually less than the number of multiple vehicle terminals. In addition, when setting the preset number, you can also refer to the communication status of the cloud server. If the current communication pressure of the cloud server is large and there is a tendency of congestion, you can appropriately reduce the value of the preset number; if the current communication pressure of the cloud server is small and the communication is smoother, you can appropriately increase the value of the preset number.

[0033] In an optional embodiment, if the number of vehicle terminals is 1000, the preset number can be set to 100. If the detection result is that the vehicle control data is updated, the verification instructions are pushed to all registered vehicle terminals in batches using the MQTT protocol, and one verification instruction is pushed to each vehicle terminal. The number of verification instructions issued in each batch does not exceed 100, so as to reduce the number of vehicles processed in a single task and reduce the pressure on the cloud server. The method of issuing verification instructions in batches is suitable for large-scale online vehicle synchronization, which can ensure the accurate delivery of instructions for large-scale online vehicles while maintaining low power consumption operation.

[0034] Step S106, in response to receiving local control data uploaded by multiple vehicle terminals based on verification instructions, verify the local control data and vehicle control data of the multiple vehicle terminals to obtain a verification result, wherein the verification result is used to indicate whether the local control data is consistent with the vehicle control data.

[0035] The local control data in the above steps may be the smart key data and vehicle status data stored locally on the vehicle side, but is not limited thereto. The smart key authority data may be user identity, access level, time limit, authority status, etc., and the vehicle status data may be location information, speed and driving direction, engine status, vehicle health status, etc.

[0036] In an optional embodiment, after receiving the verification instruction, multiple vehicle terminals upload local control data to the cloud server through the Hypertext Transfer Protocol Secure (HTTPS) protocol to ensure the security and integrity of data transmission. After receiving the local control data, the cloud server uses a verification algorithm to compare the local control data with the vehicle control data in the cloud database, evaluate the data consistency, and obtain the verification result. The verification algorithm should consider multiple parameters such as data version, timestamp, hash value, etc. to improve the accuracy and efficiency of the verification. Through verification, it is determined whether the local control data of the vehicle terminal is consistent with the vehicle control data in the cloud database to ensure the synchronization of the vehicle terminal data and the cloud data.

[0037] In an embodiment of the present invention, in response to receiving a detection instruction for a cloud database, the vehicle control data of multiple vehicle terminals stored in the cloud database are detected to obtain a detection result, wherein the detection result is used to indicate whether the vehicle control data is updated; in response to the detection result that the vehicle control data is updated, the verification instructions are issued to multiple vehicle terminals in batches, wherein the number of verification instructions issued in the same batch is determined according to the number of multiple vehicle terminals; in response to receiving local control data uploaded by multiple vehicle terminals based on the verification instruction, the local control data and vehicle control data of the multiple vehicle terminals are verified to obtain a verification result, wherein the verification result is used to indicate whether the local control data is consistent with the vehicle control data. It is easy to notice that when the vehicle control data in the cloud database is updated, the verification instructions are issued to multiple vehicle terminals in batches, so that the local control data uploaded by the multiple vehicle terminals based on the verification instructions are verified, thereby verifying the vehicle control data in the cloud and the local control data of the vehicle terminal, achieving the purpose of ensuring the consistency of the vehicle control data in the cloud and the local control data of the vehicle terminal, thereby solving the technical problem of difficulty in ensuring the consistency of the cloud data and the vehicle terminal data.

[0038] Optionally, the method also includes: in response to the verification result that the local control data and the vehicle control data are inconsistent, determining a target vehicle end among multiple vehicle ends whose local control data and the vehicle control data are inconsistent; updating the local control data of the target vehicle end based on the vehicle control data of the target vehicle end to obtain an update result, wherein the update result is used to indicate whether the local control data is successfully updated.

[0039] The target vehicle end in the above steps is a vehicle end whose local control data is inconsistent with the vehicle control data stored in the cloud database. The target vehicle end needs to update the local control data to the vehicle control data in the cloud database.

[0040] In an optional embodiment, if the verification result is that the local control data is inconsistent with the vehicle control data, it is determined which vehicle end the local control data comes from, and the vehicle end is determined as the target vehicle end. Data synchronization is performed on the target vehicle end, and the local control data of the target vehicle end is updated using the vehicle control data corresponding to the target vehicle end stored in the cloud database according to the network status of the vehicle and the data priority in the vehicle control data, and the local control data of the target vehicle end is updated to the vehicle control data, thereby realizing intelligent synchronization of cloud data and vehicle end data and improving the consistency of cloud data and vehicle end data.

[0041] Optionally, the local control data of the target vehicle end is updated based on the vehicle control data of the target vehicle end to obtain an update result, including: transmitting the vehicle control data corresponding to the target vehicle end in the cloud database to the target vehicle end to obtain a transmission result, wherein the transmission result is used to indicate whether an abnormal state occurs during the transmission of the vehicle control data; in response to the transmission result being that no abnormal state occurs during the transmission process, receiving the update result fed back by the target vehicle end, wherein the update result is obtained by the target vehicle end updating the local control data based on the vehicle control data.

[0042] The transmission results in the above steps are used to indicate whether an abnormal state occurs during the transmission of the vehicle control data. The abnormal state may be data packet loss, excessive delay, etc.

[0043] In an optional embodiment, in the process of transmitting the vehicle control data corresponding to the target vehicle end in the cloud database to the target vehicle end, the Advanced Encryption Standard (AES) encryption technology and digital signature can be used to enhance the security and tamper-proof capability of data transmission; the data transmission strategy can also be adjusted according to the real-time network conditions. Specifically, the cloud server can reduce the data packet size in the case of network congestion or high latency to reduce the transmission time and reduce the packet loss rate. The cloud server can also dynamically select a suitable data transmission protocol according to the network conditions. For example, when the network is unstable, the Transmission Control Protocol (TCP) protocol may be more inclined to be used because the TCP protocol provides a data packet retransmission mechanism to ensure data integrity; and when the network conditions are good, the User Datagram Protocol (UDP) protocol can be used to reduce transmission delays. By adjusting the data transmission strategy according to the real-time network conditions, the stability and reliability of data synchronization can be improved.

[0044] The cloud server controls the transmission process of vehicle control data and can obtain abnormal status during the transmission of vehicle control data. If no abnormal status occurs during the transmission process or the abnormal status has been successfully resolved, it means that the target vehicle can successfully receive the vehicle control data. After receiving the vehicle control data, the target vehicle replaces the original local control data with the vehicle control data, generates an update result and feeds it back to the cloud server.

[0045] Optionally, the method also includes: in response to the transmission result being an abnormal state occurring during the transmission process, determining the abnormality type corresponding to the abnormal state; recovering the transmission process based on the abnormality recovery mechanism corresponding to the abnormality type to obtain a recovery result, wherein the recovery result is used to indicate whether the abnormal state during the transmission process is successfully eliminated; in response to the recovery result being the successful elimination of the abnormal state during the transmission process, transmitting the vehicle control data to the target vehicle end to obtain a transmission result.

[0046] The abnormal state in the above steps is a state where the transmission of vehicle control data encounters an obstacle.

[0047] The abnormal type in the above steps may be data packet loss or excessive data delay, but is not limited thereto.

[0048] The abnormal recovery mechanism in the above steps is a mechanism that takes measures to restore the normal transmission state when an abnormal state occurs during the transmission process to ensure the continuity of data synchronization. There is a corresponding relationship between the abnormal recovery mechanism and the abnormal type.

[0049] In an optional embodiment, a cloud server has a built-in anomaly detection mechanism, which can detect whether there is an anomaly in the transmission of vehicle control data and determine the type of anomaly. For example, the anomaly detection mechanism can determine whether a data packet is lost during the transmission process by checking the confirmation response or timeout retransmission mechanism of the data transmission. If a data packet is lost, the anomaly type is determined to be data packet loss; the anomaly detection mechanism can also monitor the transmission time of the data packet by setting a threshold. If it exceeds the preset time threshold, it is considered that there is a problem of excessive delay. If there is a problem of excessive delay, the anomaly type is determined to be excessive data delay.

[0050] According to the abnormality type, the abnormality recovery mechanism corresponding to the abnormality type is determined to recover the transmission process. For example, when the abnormality type is data packet loss, the retransmission mechanism is triggered to resend the lost data packet; when the abnormality type is excessive data delay, the network can be switched, or the vehicle control data can be cached and sent again after the network condition improves.

[0051] After the transmission process is recovered based on the abnormal recovery mechanism corresponding to the abnormal type, a recovery result is obtained. According to the recovery result, it is determined whether the abnormal state in the transmission process is successfully eliminated. If the abnormal state in the transmission process is successfully eliminated, the transmission process is continued, and the vehicle control data is transmitted to the target vehicle end to obtain the transmission result.

[0052] Optionally, the vehicle control data corresponding to the target vehicle end in the cloud database is transmitted to the target vehicle end to obtain a transmission result, including: in response to receiving a data acquisition instruction based on feedback from the target vehicle end based on a preset interface, the vehicle control data is transmitted to the target vehicle end through the preset interface to obtain a transmission result, wherein the preset interface is used to represent the interface called by the target vehicle end when the network status is in a preset state.

[0053] The preset interface in the above steps is a pre-set interface that can be used to obtain the vehicle control data cached in the cloud server.

[0054] The data acquisition instruction in the above steps is issued by the target vehicle end and is used to obtain the vehicle control data cached in the cloud server. The data acquisition instruction contains the interface information of the preset interface.

[0055] The preset state in the above steps is a pre-set state, which may be a state of network instability or network congestion.

[0056] In an optional embodiment, when the network is unstable or congested, the vehicle control data that needs to be transmitted can be temporarily cached in the cloud server. The target vehicle generates and sends a data acquisition instruction to the cloud server based on the preset interface. After receiving the data acquisition instruction, the cloud server determines the preset interface to be used based on the interface information of the preset interface contained in the acquisition instruction, and transmits the vehicle control data cached in the cloud server to the target vehicle through the preset interface to obtain the transmission result. Through the above-mentioned data caching and interface transmission strategy, the timely transmission of vehicle control data can be successfully completed even in the case of network instability or network congestion. The data update delay of the target vehicle is reduced.

[0057] Optionally, in the case where the target vehicle end includes multiple sub-vehicle ends, the vehicle control data of the target vehicle end in the cloud database is used to update the local control data of the target vehicle end to obtain an update result, including: obtaining the network status of the multiple sub-vehicle ends and the data priority of different types of data in the vehicle control data; sorting the multiple sub-vehicle ends based on the network status to obtain a first sorting result, wherein the first sorting result is used to determine the order in which the vehicle control data is sent to the multiple sub-vehicle ends; sorting the different types of data in the vehicle control data based on the data priority to obtain a second sorting result, wherein the second sorting result is used to determine the order in which different types of data in the vehicle control data are sent; transmitting the vehicle control data to the multiple sub-vehicle ends based on the weight ratio of the first sorting result and the second sorting result to obtain an update result.

[0058] The multiple sub-vehicle terminals in the above steps are multiple vehicle terminals that need to be updated.

[0059] The network status in the above steps refers to the network congestion for communication between the cloud server and the sub-vehicle.

[0060] The data priority in the above steps is the transmission priority of different types of data when transmitting vehicle control data. It can be determined according to the importance of different types of data. The higher the importance, the higher the priority of this type of data. For example, when the data types in the vehicle control data include smart key authority data and vehicle certificate, the importance of the vehicle certificate is higher than that of the smart key authority data. Therefore, the priority of the vehicle certificate is greater than the priority of the smart key authority data.

[0061] The first sorting result in the above steps is obtained by sorting multiple sub-vehicle terminals based on the network status, wherein the more congested the communication network between the cloud server and the sub-vehicle terminal, the later the sub-vehicle terminal is sorted, that is, vehicle control data is sent preferentially to the sub-vehicle terminal with unobstructed network.

[0062] The second sorting result in the above step is determined based on the data priorities of different types of data. The higher the data priority, the higher the ranking in the second sorting result.

[0063] In an optional embodiment, the data transmission rate on the network link between the cloud server and each sub-vehicle terminal can be detected. The lower the data transmission rate, the more congested the network state is, thereby obtaining the network states of multiple sub-vehicle terminals. According to the importance of different types of data in the vehicle control data, the data priority of different types of data is determined. The higher the importance, the higher the priority of the type of data.

[0064] Then, multiple sub-vehicle terminals are sorted according to the network status. The smoother the network status, the higher the ranking, and the more congested the network status, the lower the ranking, to obtain the first sorting result. Different types of data in the vehicle control data are sorted according to the data priority. The higher the data priority, the higher the ranking, and the lower the data priority, the lower the ranking, to obtain the second sorting result.

[0065] When transmitting vehicle control data, the weight ratio of the first sorting result or the weight ratio of the second sorting result can be preset according to the needs of actual application. If the weight ratio of the first sorting result is greater than the weight ratio of the second sorting result, the vehicle control data is first sent to multiple sub-vehicle terminals in the target vehicle terminal in sequence according to the first sorting result. When sending vehicle control data at each sub-vehicle terminal, different types of data in the vehicle control data are sent in sequence according to the second sorting result. The local control data is updated using the vehicle control data to obtain an update result; if the weight ratio of the second sorting result is greater than the weight ratio of the first sorting result, the order of sending different types of data is first determined according to the second sorting result. When sending a certain type of data, the data of that type is sent to the sub-vehicle terminal in sequence according to the first sorting result.

[0066] Optionally, the method also includes: generating data transaction records between the target vehicle side and the cloud server side based on the update results; adding a network node corresponding to the data transaction record in the blockchain network, wherein the blockchain network is used to share with the cloud server side and multiple vehicle sides.

[0067] The data transaction record in the above steps is the information of each transaction recorded in the blockchain network, that is, the data exchange information between the target vehicle end and the cloud server end.

[0068] The network nodes in the above steps are the nodes in the blockchain network that correspond to the data transaction records.

[0069] The blockchain network in the above steps is a distributed database technology that allows multiple participants to securely store and share data while ensuring the consistency, integrity, and immutability of the data through the use of encryption algorithms and consensus mechanisms.

[0070] In an optional embodiment, the target vehicle and the cloud server jointly participate in the blockchain network, using the distributed ledger and consensus algorithm of blockchain technology to ensure the consistency and immutability of data. When the update result is generated, a data transaction record is generated, and the data transaction record is converted into a network node and added to the blockchain network. The blockchain network is used to share with the cloud server and multiple vehicle ends, and the validity of the data is confirmed through a consensus mechanism to ensure that all participants have the same data view. The blockchain network can enhance data security and transparency, prevent data tampering, and is suitable for cross-organizational Internet of Vehicles data sharing.

[0071] Optionally, the method also includes: in response to receiving time synchronization instructions sent by multiple vehicle terminals, synchronizing the time information to the multiple vehicle terminals to obtain a synchronization result, wherein the synchronization result is a result obtained by synchronizing the local time of the multiple vehicle terminals according to the time information.

[0072] The time synchronization instruction in the above steps is an instruction for synchronizing the local clocks of multiple vehicle terminals with the clock of the cloud server.

[0073] In an optional embodiment, after receiving the time synchronization instructions sent by multiple vehicle terminals, the Network Time Protocol (NTP) is applied to synchronize the time information to multiple vehicle terminals, ensuring that the local clock of the vehicle is accurately synchronized with the cloud server clock to obtain a synchronization result. Synchronizing the local clock of the vehicle terminal with the cloud server clock can improve the accuracy of the data verification and synchronization mechanism based on the timestamp, thereby improving the accuracy of the data verification and synchronization mechanism.

[0074] A preferred embodiment is described below. Figure 2 is a flow chart of an optional data verification method according to an embodiment of the present invention. Figure 2 As shown, the execution of the verification method is divided into the cloud side and the vehicle side. It starts from the cloud side, and periodically scans the cloud database to check whether the vehicle control data stored in the cloud database has been updated. If there is an update, the cloud server sends verification instructions to the vehicle side in batches. The vehicle side receives the verification instruction and uploads the local control data. The cloud server receives the local control data and performs data verification to determine whether the vehicle control data and the local control data are consistent. If they are consistent, the process ends directly. If they are inconsistent, it determines whether the network is congested. If not, the cloud sends the vehicle control data to the vehicle side to complete the synchronization and update of the vehicle control data; if it is congested, the cloud server first caches the vehicle control data, and the vehicle side receives the cached vehicle control data from the interface.

[0075] Example 2

[0076] According to an embodiment of the present invention, an embodiment of a data verification device is provided, which can execute the data verification method provided in the above embodiment 1. The specific implementation method and preferred application scenario are the same as those of the above embodiment 1 and will not be repeated here.

[0077] Figure 3 is a schematic diagram of a data verification device according to an embodiment of the present invention. Figure 3 As shown,

[0078] The detection module 30 is used to detect the vehicle control data of multiple vehicle terminals stored in the cloud database in response to receiving a detection instruction for the cloud database, and obtain a detection result, wherein the detection result is used to indicate whether the vehicle control data is updated.

[0079] The updating module 32 is used to send verification instructions to multiple vehicle terminals in batches in response to the detection result that the vehicle control data is updated, wherein the number of verification instructions sent in the same batch is determined according to the number of multiple vehicle terminals.

[0080] The verification module 34 is used to verify the local control data and vehicle control data of multiple vehicle terminals in response to receiving local control data uploaded by multiple vehicle terminals based on verification instructions, and obtain a verification result, wherein the verification result is used to indicate whether the local control data is consistent with the vehicle control data.

[0081] Optionally, the verification module also includes: a determination unit, used to determine a target vehicle end among multiple vehicle ends whose local control data is inconsistent with the vehicle control data in response to a verification result that the local control data and the vehicle control data are inconsistent; an update unit, used to update the local control data of the target vehicle end based on the vehicle control data of the target vehicle end, and obtain an update result, wherein the update result is used to indicate whether the local control data is successfully updated.

[0082] Optionally, the update unit is also used to transmit the vehicle control data corresponding to the target vehicle end in the cloud database to the target vehicle end to obtain a transmission result, wherein the transmission result is used to indicate whether an abnormal state occurs during the transmission of the vehicle control data; in response to the transmission result being that no abnormal state occurs during the transmission process, an update result fed back by the target vehicle end is received, wherein the update result is obtained by the target vehicle end updating the local control data based on the vehicle control data.

[0083] Optionally, the update unit is also used to determine the abnormality type corresponding to the abnormal state in response to the transmission result that an abnormal state occurs during the transmission process; recover the transmission process based on the abnormality recovery mechanism corresponding to the abnormality type to obtain a recovery result, wherein the recovery result is used to indicate whether the abnormal state in the transmission process is successfully eliminated; in response to the recovery result being the successful elimination of the abnormal state in the transmission process, the vehicle control data is transmitted to the target vehicle end to obtain a transmission result.

[0084] Optionally, the update unit is also used to respond to receiving a data acquisition instruction from the target vehicle based on feedback from a preset interface, and transmit the vehicle control data to the target vehicle through the preset interface to obtain a transmission result, wherein the preset interface is used to indicate the interface called by the target vehicle when the network status is in a preset state.

[0085] Optionally, the update unit is also used to: obtain network status of multiple sub-vehicle terminals and data priority of different types of data in vehicle control data; sort the multiple sub-vehicle terminals based on the network status to obtain a first sorting result, wherein the first sorting result is used to determine the order of sending vehicle control data to multiple sub-vehicle terminals; sort different types of data in the vehicle control data based on the data priority to obtain a second sorting result, wherein the second sorting result is used to determine the sending order of different types of data in the vehicle control data; transmit the vehicle control data to multiple sub-vehicle terminals based on the first sorting result and the second sorting result to obtain an update result.

[0086] Optionally, the update unit is also used to generate data transaction records between the target vehicle end and the cloud server end based on the update results; and add a network node corresponding to the data transaction record in the blockchain network, wherein the blockchain network is used to share with the cloud server end and multiple vehicle ends.

[0087] Optionally, the verification module also includes: a synchronization unit, which is used to synchronize the time information to multiple vehicle terminals in response to receiving time synchronization instructions sent by multiple vehicle terminals, and obtain a synchronization result, wherein the synchronization result is a result obtained by synchronizing the local time of multiple vehicle terminals according to the time information.

[0088] Example 3

[0089] According to an embodiment of the present invention, a server is further provided, comprising: a memory storing an executable program; and a processor for running the program, wherein the data verification method in Embodiment 1 is executed when the program is running.

[0090] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0091] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0092] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0093] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0094] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0095] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0096] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A data verification method, characterized in that: include: In response to receiving a detection instruction for a cloud database, detecting vehicle control data of multiple vehicle terminals stored in the cloud database to obtain a detection result, wherein the detection result is used to indicate whether the vehicle control data is updated; In response to the detection result indicating that the vehicle control data is updated, issuing verification instructions to the multiple vehicle terminals in batches, wherein the number of the verification instructions issued in the same batch is determined according to the number of the multiple vehicle terminals; In response to receiving local control data uploaded by the multiple vehicle terminals based on the verification instruction, the local control data and the vehicle control data of the multiple vehicle terminals are verified to obtain a verification result, wherein the verification result is used to indicate whether the local control data is consistent with the vehicle control data.

2. The data verification method according to claim 1, characterized in that: The method further comprises: In response to the verification result being that the local control data is inconsistent with the vehicle control data, determining a target vehicle terminal among the multiple vehicle terminals where the local control data is inconsistent with the vehicle control data; The local control data of the target vehicle end is updated based on the vehicle control data of the target vehicle end to obtain an update result, wherein the update result is used to indicate whether the local control data is successfully updated.

3. The data verification method according to claim 2, characterized in that: The local control data of the target vehicle end is updated based on the vehicle control data of the target vehicle end to obtain an update result, including: Transmitting the vehicle control data corresponding to the target vehicle end in the cloud database to the target vehicle end to obtain a transmission result, wherein the transmission result is used to indicate whether an abnormal state occurs during the transmission of the vehicle control data; In response to the transmission result indicating that no abnormal state occurs during the transmission process, the update result fed back by the target vehicle is received, wherein the update result is obtained by the target vehicle end updating the local control data based on the vehicle control data.

4. The data verification method according to claim 3, characterized in that: The method further comprises: In response to the transmission result being that an abnormal state occurs during the transmission process, determining an abnormality type corresponding to the abnormal state; Recovering the transmission process based on the abnormality recovery mechanism corresponding to the abnormality type to obtain a recovery result, wherein the recovery result is used to indicate whether the abnormal state in the transmission process is successfully eliminated; In response to the recovery result being that the abnormal state in the transmission process is successfully eliminated, the vehicle control data is transmitted to the target vehicle end to obtain the transmission result.

5. The data verification method according to claim 3, characterized in that: The vehicle control data corresponding to the target vehicle terminal in the cloud database is transmitted to the target vehicle terminal to obtain a transmission result, including: In response to receiving a data acquisition instruction from the target vehicle based on feedback from a preset interface, the vehicle control data is transmitted to the target vehicle through the preset interface to obtain the transmission result, wherein the preset interface is used to represent the interface called by the target vehicle when the network status is in a preset state.

6. The data verification method according to claim 2, characterized in that: In the case where the target vehicle end includes multiple sub-vehicle ends, the vehicle control data of the target vehicle end in the cloud database is used to update the local control data of the target vehicle end to obtain an update result, including: Acquire the network status of the plurality of sub-vehicle terminals and the data priorities of different types of data in the vehicle control data; Sorting the plurality of sub-vehicle terminals based on the network status to obtain a first sorting result, wherein the first sorting result is used to determine the order in which the vehicle control data is sent to the plurality of sub-vehicle terminals; Sorting different types of data in the vehicle control data based on the data priority to obtain a second sorting result, wherein the second sorting result is used to determine the sending order of different types of data in the vehicle control data; The vehicle control data is transmitted to the multiple sub-vehicle terminals based on the weight ratios of the first sorting result and the second sorting result to obtain the update result.

7. The data verification method according to claim 2, characterized in that: The method further comprises: Generate a data transaction record between the target vehicle and the cloud server based on the update result; A network node corresponding to the data transaction record is newly added in the blockchain network, wherein the blockchain network is used to share with the cloud server end and the multiple vehicle ends.

8. The data verification method according to claim 1, characterized in that: The method further comprises: In response to receiving the time synchronization instructions sent by the multiple vehicle terminals, the time information is synchronized to the multiple vehicle terminals to obtain a synchronization result, wherein the synchronization result is the result obtained by synchronizing the local time of the multiple vehicle terminals according to the time information.

9. A data verification device, characterized in that: include: a detection module, configured to detect the vehicle control data of multiple vehicle terminals stored in the cloud database in response to receiving a detection instruction for the cloud database, and obtain a detection result, wherein the detection result is used to indicate whether the vehicle control data is updated; An updating module, configured to, in response to the detection result indicating that the vehicle control data is updated, send verification instructions to the plurality of vehicle terminals in batches, wherein the number of the verification instructions sent in the same batch is determined according to the number of the plurality of vehicle terminals; A verification module is used to verify the local control data and the vehicle control data of the multiple vehicle terminals in response to receiving the local control data uploaded by the multiple vehicle terminals based on the verification instruction, so as to obtain a verification result, wherein the verification result is used to indicate whether the local control data is consistent with the vehicle control data.

10. A server, characterized in that: include: A memory storing an executable program; A processor, configured to run the program, wherein the program executes the method according to any one of claims 1 to 9 when running.