Traffic data processing method and device, storage medium and electronic device
By adopting a two-layer data storage structure in the intelligent transportation system to store traffic data indexes and encrypted data, the problem of low data security is solved, and secure data transmission and storage are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA TELECOM CORP LTD
- Filing Date
- 2026-02-26
- Publication Date
- 2026-05-29
AI Technical Summary
Existing intelligent transportation systems have low data security when processing traffic data, making them vulnerable to malicious attacks that can lead to data loss, leakage, and system outages.
A two-layer data storage structure is adopted, in which the first layer stores the data index of traffic data and the second layer stores the encrypted traffic data. The encrypted data is determined and sent according to the data processing request of the vehicle terminal under certain conditions.
By separating the storage of data indexes and encrypted data, the exposure of traffic data is reduced, data security is improved, unauthorized access is prevented, and the security of data transmission and storage is ensured.
Smart Images

Figure CN122113136A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing, and more specifically, to a method and apparatus for processing traffic data, a storage medium, and an electronic device. Background Technology
[0002] With the rapid development of technology, intelligent transportation systems have become an important component of smart city construction. Existing intelligent transportation systems determine real-time traffic conditions based on vehicle driving data and road data, and exchange information with vehicles and roads in real time to improve traffic management efficiency.
[0003] When processing vehicle driving data and road data, intelligent transportation systems typically rely on a central server to transmit and store traffic data for unified management. However, after processing the traffic data, the central server often stores it directly. If the traffic data is maliciously attacked during processing or storage, it can lead to data loss, data leakage, and even system outages. In other words, existing intelligent transportation systems suffer from low data security due to the vulnerability of traffic data to malicious attacks.
[0004] There is currently no effective solution to the above problems. Summary of the Invention
[0005] This application provides a method and apparatus for processing traffic data, a storage medium, and an electronic device to at least address the technical problem of low traffic data security.
[0006] According to one aspect of the embodiments of this application, a method for processing traffic data is provided, comprising: receiving a data processing request triggered in an in-vehicle terminal, wherein the data processing request is used to request processing of first traffic data; if the data processing request meets the data processing conditions, determining a first data index of the first traffic data from a first-layer data storage structure of a dual-layer data storage structure, wherein the dual-layer data storage structure includes a first-layer data storage structure and a second-layer data storage structure, the first-layer data storage structure is used to store the first data index, the second-layer data storage structure is used to store the first traffic data, and the first traffic data is encrypted traffic data; determining the first traffic data matching the first data index from the second-layer data storage structure; and sending the first traffic data to the in-vehicle terminal.
[0007] According to another aspect of the embodiments of this application, a traffic data processing apparatus is also provided, comprising: a receiving unit, configured to receive a data processing request triggered in an in-vehicle terminal, wherein the data processing request is used to request processing of first traffic data; a first determining unit, configured to determine a first data index of the first traffic data from a first-layer data storage structure of a dual-layer data storage structure when the data processing request meets the data processing conditions, wherein the dual-layer data storage structure includes a first-layer data storage structure and a second-layer data storage structure, the first-layer data storage structure is used to store the first data index, the second-layer data storage structure is used to store the first traffic data, and the first traffic data is encrypted traffic data; a second determining unit, configured to determine the first traffic data matching the first data index from the second-layer data storage structure; and a sending unit, configured to send the first traffic data to the in-vehicle terminal.
[0008] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is configured to execute the above-described traffic data processing method when it is run.
[0009] According to another aspect of the embodiments of this application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the traffic data processing method described above.
[0010] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the above-described traffic data processing method through the computer program.
[0011] In this embodiment, a data processing request triggered by an in-vehicle terminal is received. This data processing request requests processing of first traffic data. If the data processing request meets the data processing conditions, a first data index of the first traffic data is determined from the first layer of the dual-layer data storage structure, and the first traffic data matching the first data index is determined from the second layer of the data storage structure. The dual-layer data storage structure includes a first layer and a second layer. The first layer stores the first data index, and the second layer stores the first traffic data, which is encrypted. The first traffic data is then sent to the in-vehicle terminal. This solution reduces the exposure of traffic data to the outside world by using a dual-layer data structure to store both the traffic data and its data index, thereby improving data security and solving the technical problem of low traffic data security. Attached Figure Description
[0012] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0013] Figure 1 This is a schematic diagram of an application environment for an optional traffic data processing method according to an embodiment of this application;
[0014] Figure 2 This is a flowchart of an optional traffic data processing method according to an embodiment of this application;
[0015] Figure 3 This is a schematic diagram of an optional traffic data processing device according to an embodiment of this application;
[0016] Figure 4 This is a schematic diagram of the structure of an optional electronic device according to an embodiment of this application. Detailed Implementation
[0017] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0018] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0019] According to an embodiment of this application, a method for processing traffic data is provided. The above-described traffic data processing method can be applied to, but is not limited to, [various applications]. Figure 1 The illustrated application environment includes a traffic data processing system. This system may include, but is not limited to, a vehicle 102 equipped with an onboard terminal and a data processing server 104. The onboard terminal sends a data processing request to the data processing server, requesting processing of first traffic data. Upon receiving the request, and provided the request meets the processing conditions, the data processing server determines a first data index of the first traffic data from the first layer of a two-layer data storage structure, and determines the first traffic data matching the first data index from the second layer of the data storage structure. The two-layer data storage structure includes a first layer and a second layer. The first layer stores the first data index, and the second layer stores the first traffic data, which is encrypted. The data processing server then sends the first traffic data to the onboard terminal.
[0020] As an optional implementation method, such as Figure 2 As shown, the methods for processing the above traffic data include:
[0021] S202, Receive a data processing request triggered in the vehicle terminal, wherein the data processing request is used to request the processing of the first traffic data;
[0022] Optionally, in this embodiment, the aforementioned vehicle-mounted terminal refers to a hardware device installed on the vehicle to enable communication and data interaction between the vehicle and the external environment (such as roadside units, other vehicles, traffic management centers, etc.). The vehicle-mounted terminal can integrate various sensors and communication modules to collect vehicle status data (such as driving speed, vehicle location), environmental perception data (such as obstacle detection, road conditions), etc., and transmit the collected data through a wireless network.
[0023] Optionally, in this embodiment, the aforementioned data processing request may be a request for acquiring, analyzing, or using one or more types of traffic data. It is understood that the data processing request may include parameters such as the requester's identity information, the type of data to be processed, the purpose of data use, the scope of data use, the timestamp of the request being sent, and the geographical range.
[0024] Optionally, the aforementioned first traffic data may be data related to the vehicle equipped with the aforementioned vehicle-mounted terminal, traffic data related to the road where the vehicle equipped with the aforementioned vehicle-mounted terminal is located, or traffic data related to other vehicles on the road where the vehicle equipped with the aforementioned vehicle-mounted terminal is located. For example, the aforementioned first traffic data may be historical driving trajectory data of the vehicle equipped with the aforementioned vehicle-mounted terminal. As another example, the aforementioned first traffic data may also be the current traffic flow, current traffic light status, traffic light change interval, etc., on the road where the vehicle equipped with the aforementioned vehicle-mounted terminal is located.
[0025] S204, when the data processing request meets the data processing conditions, the first data index of the first traffic data is determined from the first layer data storage structure of the dual-layer data storage structure. The dual-layer data storage structure includes a first layer data storage structure and a second layer data storage structure. The first layer data storage structure is used to store the first data index, and the second layer data storage structure is used to store the first traffic data. The first traffic data is encrypted traffic data.
[0026] Optionally, the aforementioned data processing conditions may, but are not limited to, the conditions under which the aforementioned data processing request is permitted to be executed. For example, the aforementioned data processing conditions may include identity verification of the vehicle terminal sending the aforementioned data processing request, and the verification result indicating that the identity information of the vehicle terminal has passed the legality verification. As another example, the aforementioned data processing conditions may include data processing permission verification of the vehicle terminal sending the aforementioned data processing request, and the verification result indicating that the data type of the first traffic data requested to be processed by the aforementioned data processing request is a data type that the vehicle terminal is permitted to obtain, access, or process.
[0027] Optionally, the aforementioned two-layer data storage structure can be a data storage structure such as a blockchain that includes two layers of data storage, used to store the aforementioned traffic data. The first-layer and second-layer data storage structures can be data storage structures of the same format or different formats. For example, the first-layer data storage structure can be a doubly linked list, and the second-layer data storage structure can be a singly linked list. It is understood that in the aforementioned two-layer data storage structure, the first-layer data storage structure is used to store the data index of the traffic data, while the second-layer data storage structure is used to store the encrypted traffic data. This not only reduces the external exposure of the traffic data through the "upper layer stores the data index, lower layer stores the data" data storage mode, thereby reducing the risk of external attacks on the traffic data, but also improves the security of the traffic data by storing encrypted traffic data.
[0028] Optionally, the first data index stored in the first-level data storage structure can be a data index uniquely corresponding to the first traffic data, including basic information about the first traffic data (e.g., data summary, timestamp, data type, hash value of storage location, etc.). This first data index is used by the server to quickly locate the first traffic data to be processed after receiving an external data processing request, and then quickly retrieve the first traffic data from the second-level data storage structure.
[0029] S206, determine the first traffic data that matches the first data index from the second-level data storage structure;
[0030] Optionally, the aforementioned first traffic data can be obtained from the second-level data storage structure according to the storage address indicated by the first data index, where the storage address is the storage address of the first traffic data in the second-level data storage structure. Alternatively, the aforementioned first traffic data can also be obtained from the second-level data storage structure according to information such as data tags and data storage timestamps included in the first data index.
[0031] S208 sends the first traffic data to the vehicle terminal.
[0032] The embodiments provided in this application receive a data processing request triggered in a vehicle-mounted terminal. This data processing request requests processing of first traffic data. If the data processing request meets the data processing conditions, a first data index of the first traffic data is determined from the first layer of the dual-layer data storage structure, and the first traffic data matching the first data index is determined from the second layer of the data storage structure. The dual-layer data storage structure includes a first layer and a second layer. The first layer stores the first data index, and the second layer stores the first traffic data, which is encrypted. The first traffic data is then sent to the vehicle-mounted terminal. This solution reduces the exposure of traffic data to the outside world by using a dual-layer data structure to store the traffic data and its data index separately, thereby improving data security and solving the technical problem of low traffic data security.
[0033] As an optional implementation, before receiving a data processing request triggered in the vehicle terminal, the following steps are included:
[0034] S1, acquire raw traffic data from the vehicle terminal;
[0035] S2, encrypt the original traffic data to obtain the second traffic data;
[0036] S3, store the second traffic data in the second-level data storage structure;
[0037] S4. Based on the second traffic data, generate a second data index, wherein the second data index is used to indicate the storage address of the second traffic data in the first-level data storage structure;
[0038] S5. According to the preset storage rules, the second data index is stored in the second-level data storage structure.
[0039] Optionally, the aforementioned raw traffic data can be data related to the vehicle equipped with the aforementioned on-board terminal, traffic data related to the road where the vehicle equipped with the aforementioned on-board terminal is located, or traffic data related to other vehicles on the road where the vehicle equipped with the aforementioned on-board terminal is located. For example, the raw traffic data can be vehicle status information of the vehicle equipped with the aforementioned on-board terminal, such as the vehicle's speed, acceleration, steering angle, braking status, accelerator pedal position, battery charge (for electric vehicles), engine speed, etc. Another example is that the raw traffic data can be road information of the road where the vehicle equipped with the aforementioned on-board terminal is located, such as road structure information, including physical attributes such as road width, number of lanes, road surface material, slope, and curve curvature.
[0040] Optionally, the encryption method used to encrypt the original traffic data can be to encrypt information such as vehicle identity information and vehicle trajectory data in the original traffic data, or it can be to directly encrypt the original traffic data using encryption algorithms such as homomorphic encryption (HE) and zero-knowledge proofs (ZKP).
[0041] Optionally, after storing the second traffic data in the second-layer data storage structure, a storage address and storage timestamp for the second traffic data in the second-layer data storage structure can be generated. The server can generate the aforementioned second data index based on the traffic information, storage timestamp, and other information in the second traffic data, and store the second data index in the first-layer data storage structure. This allows the server to first read the data index from the first-layer data storage structure when it needs to retrieve the second traffic data, and then retrieve the data to be processed from the second-layer data storage structure according to the data storage address indicated by the data index. This prevents other devices from reading traffic data outside their data processing permissions, thus avoiding unauthorized access to the traffic data in the dual-layer data storage structure and improving data security.
[0042] Optionally, the aforementioned preset storage rule could refer to storing traffic data with the same data type tag in the same batch according to the data type tag of the traffic data included in the data index. Alternatively, the aforementioned preset storage rule could refer to storing the traffic data of each vehicle terminal collected on the same day or within the same hour in the same batch after encryption, according to the data storage timestamp included in the data index. For another example, the aforementioned preset storage rule could also refer to storing the traffic data of each vehicle on the same road in the same batch according to the traffic information included in the data index.
[0043] According to the embodiments provided in this application, during the construction of the dual-layer data storage structure, the server first obtains the original traffic data from the vehicle terminal and encrypts it to obtain the second traffic data. Subsequently, the second traffic data is stored in the second-layer data storage structure, and after generating the second data index, it is stored in the second-layer data storage structure according to preset storage rules. This solution achieves both data traceability and access control through the separate storage of data and indexes. This not only reduces the storage burden of traffic data but also ensures the security and privacy of data during transmission and storage through data encryption and the establishment of a data indexing mechanism, facilitating efficient data retrieval and sharing, thereby improving the management efficiency and security of traffic data.
[0044] As an optional implementation method, the raw traffic data is encrypted, including:
[0045] S1, Random noise is added to the vehicle trajectory information included in the original traffic data to obtain the processed traffic data;
[0046] S2 encrypts the vehicle identity information in the processed traffic data to obtain the first traffic data.
[0047] Optionally, the aforementioned vehicle trajectory information may include the historical trajectory and historical geographical location of the vehicle equipped with the in-vehicle terminal. The aforementioned vehicle identity information may include the vehicle identity, vehicle brand information, vehicle ID, license plate number, and other information of the vehicle equipped with the in-vehicle terminal.
[0048] Optionally, during the encryption process of the original traffic data, random noise can be added to the location coordinate information of vehicles at different times included in the original traffic data to obscure the actual location and trajectory of the vehicles.
[0049] As an alternative approach, during the encryption of processed traffic data, a symmetric encryption algorithm can be used to generate a key, which can then be used to encrypt the traffic data.
[0050] As an alternative, during the encryption of the processed traffic data, an asymmetric encryption algorithm can be used to generate a key pair, which includes a public key and a private key. During the encryption process, the generated private key can be used to encrypt the processed traffic data, and the public key can be used to decrypt the encrypted traffic data. This ensures the secure transmission of data and allows for the verification of the data's source and authenticity.
[0051] The embodiments provided in this application encrypt the original traffic data by adding random noise to vehicle trajectory information to generate processed traffic data, and encrypting the vehicle identity information in the processed traffic data to obtain first traffic data. This ensures the validity and security of the traffic data while protecting vehicle identity privacy. The above scheme adds random noise to the vehicle trajectory data, making it difficult for attackers to accurately reconstruct the vehicle's trajectory information when inferring the trajectory of a specific vehicle based on aggregated data, thus reducing the risk of vehicle privacy leakage. Furthermore, the above scheme also encrypts the vehicle identity information, further ensuring the security of the data during transmission and storage, and preventing unauthorized access.
[0052] As an optional implementation, generating a second data index based on the second traffic data includes:
[0053] S1, calculate the hash value corresponding to the second traffic data;
[0054] S2, based on the traffic information, hash value and second storage address in the second traffic data, generate a second data index, wherein the traffic information includes: attribute information of the vehicle equipped with the vehicle terminal, and path information of the traffic route where the vehicle is located.
[0055] Optionally, the hash value mentioned above can be a fixed-length value generated by inputting the second traffic data into a hash function, which can be used to verify the integrity and consistency of the data.
[0056] As an alternative approach, after encrypting the original traffic data to obtain the second traffic data, a hash value can be generated based on the vehicle trajectory information in the second traffic data. This includes: normalizing the different formats of the data in the second traffic data to obtain traffic data with a unified format; extracting vehicle driving characteristics from the traffic data, such as vehicle driving direction, vehicle speed change range, vehicle acceleration, etc.; integrating the extracted vehicle driving characteristics, and using a hash algorithm to perform hash calculation on the integrated data to obtain a hash value of fixed length.
[0057] As an alternative approach, after encrypting the original traffic data to obtain the second traffic data, a hash value can be generated based on the traffic path information in the second traffic data. This includes: normalizing the different formats of the data in the second traffic data to obtain traffic data with a unified format; extracting the traffic path features of the roads traveled by the vehicles from the traffic data, such as road type (highway, urban road, etc.), traffic light change patterns, and types of traffic signs along the road; integrating the extracted traffic path features, and using a hash algorithm to perform hash calculation on the integrated data to obtain a hash value of fixed length.
[0058] Optionally, the aforementioned second data index can be obtained by integrating traffic information, hash values, and second storage addresses from the second traffic data. The aforementioned vehicle attribute information may include: vehicle license plate number, vehicle health status, vehicle production date, vehicle model, etc. Optionally, different vehicle attribute information can be extracted for different types of vehicles; for example, for vehicles using internal combustion engines as a power source, vehicle attribute information may also include the amount of fuel refueled in a single transaction, the time of the last refueling, etc.; for vehicles using electric motors and batteries as power sources, vehicle attribute information may also include the vehicle battery capacity, the time since the last charging, etc.
[0059] Optionally, the route information of the traffic path where the above-mentioned vehicles are located may include: road name, traffic light status (such as green, yellow, or red), historical abnormal traffic event records, road type, and road surface condition (dry, slippery, etc.).
[0060] Through the embodiments provided in this application, after calculating the hash value corresponding to the second traffic data, a second data index is generated based on the traffic information in the second traffic data, the hash value, and the second storage address. This fully utilizes the structured characteristics of the data, combining the data hash value with traffic information, which not only accelerates data retrieval and access but also enhances data security and traceability through the binding of the hash value and storage address. In scenarios involving massive traffic data processing, the above-mentioned data index generation mechanism can significantly improve the data processing efficiency of the traffic data management system, ensuring that the system can quickly respond to real-time traffic conditions and achieve accurate data retrieval and analysis during operation.
[0061] As an optional implementation, determining a first data index for the first traffic data from the first layer of the two-layer data storage structure includes:
[0062] S1, determine the request type for the data processing request;
[0063] S2, in the first-level data storage structure, find the first data index corresponding to the request type.
[0064] Optionally, the aforementioned request type may refer to the data type of the first traffic data requested to be processed by the aforementioned data processing request. For example, the request type may include requesting to process real-time traffic data, requesting traffic incident warnings, requesting road surface status, etc. The aforementioned request type may also refer to the operation requested to be performed on the data by the aforementioned data processing request, such as requesting to obtain the first traffic data, requesting to access the first traffic data, requesting to delete or modify the first traffic data, etc.
[0065] As an optional approach, after receiving the aforementioned data processing request, the server can parse the request to obtain request information, which may include the requester ID, request time, geographical location of the vehicle terminal, and data type. The server can then determine the request type from the request information and locate a first data index that matches the request type. For example, if the data processing request is for obtaining real-time traffic data, the server can determine the road where the vehicle with the vehicle terminal is located based on the current location of the vehicle in the request information, and locate a data index containing the aforementioned traffic path information from the first-level data storage structure based on the road's traffic path information. This located data index will then be designated as the first data index.
[0066] The embodiments provided in this application automatically search for a first data index matching the request type in the first-level data storage structure after determining the request type of the data processing request. This process not only enables a rapid response to requests but also allows for the processing of only specific data upon receiving a data processing request, achieving more granular data access control.
[0067] As an optional implementation, determining the first traffic data matching the first data index from the second-level data storage structure includes:
[0068] S1, determine the first storage address indicated by the first data index, wherein the first storage address is the storage address of the first traffic data in the second-level data storage structure;
[0069] S2, retrieve the first traffic data from the second-level data storage structure according to the first storage address.
[0070] Optionally, the first storage address may include multiple storage addresses for traffic data, and the first traffic data may include traffic data obtained according to each storage address. For example, a data processing request is used to request the processing of traffic data related to "Road A". The first data index may be composed of multiple data indexes including path information related to "Road A". The first storage address may include the storage address indicated by each data index including path information related to "Road A". Further, the first traffic data may be all data related to "Road A" in the second-level data storage structure, including path information of "Road A", current road traffic information, and may also include vehicle driving data of all vehicles currently traveling on "Road A".
[0071] Optionally, after obtaining the first traffic data, the first traffic data can be decrypted, and then the decrypted traffic data can be sent to the vehicle terminal.
[0072] The embodiments provided in this application determine the first storage address indicated by the first data index and retrieve the first traffic data from the second-layer data storage structure according to the first storage address. By closely associating the data index with the storage address, the traffic data processing system can quickly locate and retrieve the required traffic data, thereby improving the efficiency of traffic data processing.
[0073] As an optional implementation, before determining the first data index of the first traffic data from the first layer of the two-layer data storage structure, the method further includes:
[0074] S1, determine the data processing permission level of the vehicle terminal, wherein the data processing permission level is configured with the data type processing range;
[0075] S2, if the data type of the first traffic data is within the data type processing range, determine that the data processing request meets the data processing conditions;
[0076] S3, if the data type of the first traffic data is outside the data type processing range, determine that the data processing request does not meet the data processing conditions, and send a request to the vehicle terminal to refuse the response.
[0077] Optionally, the aforementioned data processing permission levels may include, but are not limited to, the identity level of the vehicle terminal. Here, the identity level can be used to indicate the scope of data processing permissions configured for the vehicle terminal. Data processing permissions can refer to which types of data processing operations the vehicle terminal is allowed to perform on traffic data, or it can refer to which types of traffic data the vehicle terminal is allowed to perform data processing operations on.
[0078] For example, the aforementioned identity levels may include "low-level", "medium-level", and "high-level". The data type processing scope configured for "low-level" includes data access permissions; the data type processing scope configured for "medium-level" includes data access permissions and data retrieval permissions; and the data type processing scope configured for "high-level" includes data access permissions, data retrieval permissions, and data editing permissions.
[0079] Optionally, whether the data type of the first traffic data falls within the data type processing range can be determined by whether the data type of the first traffic data is a data type included in the data type processing range. If the data type of the first traffic data is a data type included in the data type processing range, it is determined that the data type of the first traffic data is within the data type processing range; if the data type of the first traffic data is not a data type included in the data type processing range, it is determined that the data type of the first traffic data is outside the data type processing range.
[0080] The embodiments provided in this application determine whether a data processing request meets the data processing conditions based on whether the data type of the first traffic data falls within the data type processing range. This achieves refined management of data processing permissions for vehicle terminals through precise matching of permission levels and data types.
[0081] As an optional implementation, after sending the first traffic data to the vehicle terminal, the method further includes:
[0082] S1, upon receiving traffic alarm information from the vehicle terminal, determines the path information of the current traffic route of the vehicle equipped with the vehicle terminal.
[0083] S2, in the first-level data storage structure, find the third data index corresponding to the path information of the current traffic path;
[0084] S3, retrieve the third traffic data from the second-level data storage structure according to the third storage address indicated by the third data index;
[0085] S4. The third traffic data is sent to the road traffic management platform, which is used to adjust the driving status of all vehicles traveling on the current traffic path based on the current traffic status indicated by the third traffic data.
[0086] Optionally, the aforementioned traffic warning information may be used, but is not limited to, to indicate that a vehicle equipped with an onboard terminal is in an abnormal driving state, such as emergency braking or a traffic accident. The aforementioned route information may include the route location, geographical location of the route, route name, traffic flow on the current route, and other information.
[0087] Optionally, the aforementioned third data index can be any data index in the first-level data storage structure that contains the path information of the current traffic path. Further, the aforementioned third traffic data can be any traffic data obtained from all storage addresses included in the aforementioned third storage address.
[0088] Optionally, before sending the third traffic data to the road traffic management platform, all traffic data obtained from the second-level data storage structure can be decrypted, and the decrypted traffic data can be sent to the road traffic management platform.
[0089] Optionally, the aforementioned road traffic management platform can be used to determine the current traffic status of the current traffic route based on the received traffic data. This current traffic status includes, but is not limited to, the current traffic light status and current traffic flow. Furthermore, after determining the current traffic status of the current traffic route, the road traffic management platform can adjust the driving status of other vehicles on that route. For example, if the traffic warning information indicates that a vehicle equipped with an onboard terminal is braking suddenly, the road traffic management platform can send avoidance notices to the onboard terminals of vehicles ahead and behind the vehicle to prevent traffic accidents.
[0090] Through the embodiments provided in this application, upon receiving alarm information from the vehicle terminal, relevant traffic data of the current traffic route is promptly obtained and sent to the road traffic management platform to facilitate the regulation of the traffic status of the current traffic route. This enables a rapid response to traffic conditions, thereby reducing the risk of accidents and improving road capacity.
[0091] As an optional implementation, after sending the third traffic data to the road traffic management platform, the following steps are also included:
[0092] S1 receives traffic dispatch notifications sent by the road traffic management platform;
[0093] S2, when the traffic dispatch notification indicates that the road traffic management platform has completed the adjustment of the driving status of all vehicles, the fourth traffic data from the vehicle terminal is obtained;
[0094] S3, encrypt the fourth traffic data to obtain the fifth traffic data;
[0095] S4 updates the dual-layer data storage structure based on the fifth traffic data.
[0096] Optionally, the aforementioned traffic dispatch notification may be issued by the aforementioned road traffic management platform to indicate whether the road traffic management platform has completed the adjustment of the traffic status of the current traffic route, or whether the adjustment of the traffic status of the current traffic route has been interrupted or other abnormal situations.
[0097] Optionally, when the traffic dispatch notification indicates that the road traffic management platform has completed the adjustment of the driving status of all vehicles, the traffic data of the above-mentioned vehicle terminal after the traffic status adjustment can be obtained, and the obtained traffic data can be encrypted and stored in the second-level data storage structure. The fifth traffic index of the encrypted fifth traffic data can be generated and stored in the first-level data storage structure to complete the update of the two-level data storage structure.
[0098] Through the embodiments provided in this application, after the road traffic management platform completes the adjustment of traffic conditions, the dual-layer data storage structure is updated in a timely manner according to the traffic data of the vehicle terminal after the adjustment. This completes the dynamic update of traffic data storage in the intelligent transportation scenario, which not only ensures the real-time performance and security of traffic data, but also realizes the self-iteration and automatic optimization of the traffic data processing system.
[0099] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0100] According to another aspect of the embodiments of this application, a traffic data processing apparatus for implementing the above-described traffic data processing method is also provided. For example... Figure 3 As shown, the device includes:
[0101] The receiving unit 302 is used to receive a data processing request triggered in the vehicle terminal, wherein the data processing request is used to request the processing of the first traffic data;
[0102] The first determining unit 304 is used to determine the first data index of the first traffic data from the first layer data storage structure of the dual-layer data storage structure when the data processing request meets the data processing conditions. The dual-layer data storage structure includes a first layer data storage structure and a second layer data storage structure. The first layer data storage structure is used to store the first data index, and the second layer data storage structure is used to store the first traffic data. The first traffic data is encrypted traffic data.
[0103] The second determining unit 306 is used to determine the first traffic data that matches the first data index from the second-level data storage structure;
[0104] The sending unit 308 is used to send the first traffic data to the vehicle terminal.
[0105] According to one aspect of this application, a computer-readable storage medium is provided, from which a processor of a computer device reads computer instructions, and the processor executes the computer instructions, causing the computer device to perform the method provided in various alternative implementations of the traffic data processing method described above.
[0106] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0107] S1, receive a data processing request triggered in the vehicle terminal, wherein the data processing request is used to request the processing of the first traffic data;
[0108] S2, when the data processing request meets the data processing conditions, the first data index of the first traffic data is determined from the first layer data storage structure of the dual-layer data storage structure. The dual-layer data storage structure includes a first layer data storage structure and a second layer data storage structure. The first layer data storage structure is used to store the first data index, and the second layer data storage structure is used to store the first traffic data. The first traffic data is encrypted traffic data.
[0109] S3, determine the first traffic data that matches the first data index from the second-level data storage structure;
[0110] S4 sends the first traffic data to the vehicle terminal.
[0111] According to one aspect of this application, a computer program product is provided, comprising a computer program / instructions containing program code for performing the aforementioned traffic data processing method.
[0112] According to another aspect of the embodiments of this application, an electronic device for implementing the above-described traffic data processing method is also provided. This electronic device may be... Figure 1 The terminal device or server shown. This embodiment uses the electronic device as a server as an example for illustration. Figure 4 As shown, the electronic device includes a memory 402 and a processor 404. The memory 402 stores a computer program, and the processor 404 is configured to execute the steps in any of the above method embodiments via the computer program.
[0113] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.
[0114] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0115] S1, receive a data processing request triggered in the vehicle terminal, wherein the data processing request is used to request the processing of the first traffic data;
[0116] S2, when the data processing request meets the data processing conditions, the first data index of the first traffic data is determined from the first layer data storage structure of the dual-layer data storage structure. The dual-layer data storage structure includes a first layer data storage structure and a second layer data storage structure. The first layer data storage structure is used to store the first data index, and the second layer data storage structure is used to store the first traffic data. The first traffic data is encrypted traffic data.
[0117] S3, determine the first traffic data that matches the first data index from the second-level data storage structure;
[0118] S4 sends the first traffic data to the vehicle terminal.
[0119] Alternatively, as those skilled in the art will understand, Figure 4 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablets, PDAs, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 4 This does not limit the structure of the aforementioned electronic devices. For example, the electronic device may also include components that are more... Figure 4The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 4 The different configurations shown.
[0120] The memory 402 can be used to store software programs and modules, such as the program instructions / modules corresponding to the traffic data processing method and apparatus in this embodiment. The processor 404 executes various functional applications and data processing by running the software programs and modules stored in the memory 402, thereby implementing the aforementioned traffic data processing method. The processor 404 may include one or more processing cores, such as a 4-core processor or an 8-core processor. The processor 404 can be implemented using at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 404 may also include a main processor and a coprocessor. The main processor is used to process data in the wake-up state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 404 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 404 may further include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning. Memory 402 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, memory 402 may further include memory remotely located relative to processor 404, which can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, memory 402 may be used, but is not limited to, for storing device mobility data of the terminal device. As an example, such as... Figure 4 As shown, the memory 402 may include, but is not limited to, the receiving unit 302, the first determining unit 304, the second determining unit 306, and the sending unit 308 from the traffic data processing device. Furthermore, it may include, but is not limited to, other module units from the traffic data processing device, which will not be elaborated upon in this example.
[0121] Optionally, the aforementioned transmission device 406 is used to receive or send data via a network. Specific examples of the network may include wired and wireless networks. In one example, the transmission device 406 includes a Network Interface Controller (NIC), which can be connected to other network devices and routers via a network cable, thereby enabling communication with the Internet or a local area network (LAN). In another example, the transmission device 406 is a radio frequency (RF) module, used to communicate with other terminals via at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: the World Wide Web, metropolitan area networks (MANs), intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks (WLANs), and / or WiFi (Wireless Fidelity) networks.
[0122] In addition, the aforementioned electronic device also includes a display screen 408 for displaying a user interface (UI). This UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 408 is a touch screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to the processor 404 for processing. In this case, the display screen 408 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. The display screen 408 can also be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. The display screen 408 can be made of materials such as LCD (Liquid Crystal Display) or OLED (Organic Light-Emitting Diode). Furthermore, the aforementioned electronic device also includes a connection bus 410 for connecting the various module components within the electronic device.
[0123] Optionally, in embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0124] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0125] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of this application, 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. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.
[0126] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0127] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between units or modules, and may be electrical or other forms.
[0128] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0129] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0130] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method for processing traffic data, characterized in that, include: Receive a data processing request triggered in the vehicle terminal, wherein the data processing request is used to request the processing of the first traffic data; When the data processing request meets the data processing conditions, the first data index of the first traffic data is determined from the first layer data storage structure of the dual-layer data storage structure. The dual-layer data storage structure includes the first layer data storage structure and the second layer data storage structure. The first layer data storage structure is used to store the first data index, and the second layer data storage structure is used to store the first traffic data. The first traffic data is encrypted traffic data. The first traffic data that matches the first data index is determined from the second-level data storage structure; The first traffic data is sent to the vehicle terminal.
2. The method according to claim 1, characterized in that, Before receiving the data processing request triggered in the vehicle-mounted terminal, the process includes: Obtain the raw traffic data from the vehicle-mounted terminal; The original traffic data is encrypted to obtain the second traffic data; The second traffic data is stored in the second-level data storage structure; Based on the second traffic data, a second data index is generated, wherein the second data index is used to indicate the storage address of the second traffic data in the first-level data storage structure; According to the preset storage rules, the second data index is stored in the second-level data storage structure.
3. The method according to claim 2, characterized in that, The encryption process for the original traffic data includes: Random noise is added to the vehicle trajectory information included in the original traffic data to obtain processed traffic data. The vehicle identity information in the processed traffic data is encrypted to obtain the first traffic data.
4. The method according to claim 2, characterized in that, The step of generating a second data index based on the second traffic data includes: Calculate the hash value corresponding to the second traffic data; Based on the traffic information in the second traffic data, the hash value and the second storage address are used to generate the second data index, wherein the traffic information includes: attribute information of the vehicle equipped with the vehicle terminal, and path information of the traffic route where the vehicle is located.
5. The method according to claim 1, characterized in that, Determining the first data index of the first traffic data from the first layer of the two-layer data storage structure includes: Determine the request type of the data processing request; In the first-level data storage structure, find the first data index corresponding to the request type.
6. The method according to claim 1, characterized in that, Determining the first traffic data that matches the first data index from the second-layer data storage structure includes: Determine the first storage address indicated by the first data index, wherein the first storage address is the storage address of the first traffic data in the second-level data storage structure; The first traffic data is retrieved from the second-layer data storage structure according to the first storage address.
7. The method according to claim 1, characterized in that, Before determining the first data index of the first traffic data from the first layer of the two-layer data storage structure, the method further includes: The data processing permission level of the vehicle terminal is determined, wherein the data processing permission level is configured with a data type processing range; If the data type of the first traffic data is within the processing range of the data type, it is determined that the data processing request meets the data processing conditions; If the data type of the first traffic data is outside the processing range of the data type, it is determined that the data processing request does not meet the data processing conditions, and a request rejection response is sent to the vehicle terminal.
8. The method according to claim 1, characterized in that, After sending the first traffic data to the vehicle terminal, the method further includes: Upon receiving traffic alarm information from the vehicle-mounted terminal, determine the path information of the current traffic route of the vehicle equipped with the vehicle-mounted terminal; In the first-level data storage structure, find the third data index corresponding to the path information of the current traffic path; According to the third storage address indicated by the third data index, the third traffic data is obtained from the second-level data storage structure; The third traffic data is sent to the road traffic management platform, wherein the road traffic management platform is used to adjust the driving status of all vehicles traveling on the current traffic path based on the current traffic status of the current traffic path indicated by the third traffic data.
9. The method according to claim 8, characterized in that, After sending the third traffic data to the road traffic management platform, the process also includes: Receive traffic dispatch notifications sent by the road traffic management platform; When the traffic dispatch notification indicates that the road traffic management platform has completed the adjustment of the driving status of all vehicles, the fourth traffic data of the vehicle terminal is obtained. The fourth traffic data is encrypted to obtain the fifth traffic data; Based on the fifth traffic data, update the two-layer data storage structure.
10. A traffic data processing device, characterized in that, include: A receiving unit is configured to receive a data processing request triggered in the vehicle terminal, wherein the data processing request is used to request the processing of first traffic data; The first determining unit is configured to determine the first data index of the first traffic data from the first layer data storage structure of the dual-layer data storage structure when the data processing request meets the data processing conditions. The dual-layer data storage structure includes the first layer data storage structure and the second layer data storage structure. The first layer data storage structure is used to store the first data index, and the second layer data storage structure is used to store the first traffic data. The first traffic data is encrypted traffic data. The second determining unit is used to determine the first traffic data that matches the first data index from the second-layer data storage structure; The sending unit is used to send the first traffic data to the vehicle terminal.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program is executed by a processor to perform the method described in any one of claims 1 to 9.
12. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 9.
13. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 9 through the computer program.