Method, device, equipment and storage medium for storing and exporting vehicle-side data
By partitioning and storing vehicle-side data in the cloud platform, and analyzing and storing data with high access rates and importance, the problem of low data query and export efficiency on the cloud platform is solved, storage costs are reduced, and fast data query is achieved. and export.
Patent Information
- Application Number
- CN202410931232.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-12
AI Technical Summary
After receiving a large amount of vehicle data, the cloud platform needs to consume a lot of data processing and storage resources, resulting in increased storage costs, and low data query and export efficiency, making it impossible to quickly query and export target data.
Using the partition storage method of vehicle-end data, target original messages with high access rate and high importance are parsed and stored in the first storage area with high access rate, and all original messages are stored in the second storage area with low access rate. Areas are divided by preset access rates and importance levels to implement partitioned storage of hot data and cold data, and export data from the corresponding storage areas according to export requests.
It improves the efficiency of data query and export, reduces storage costs, ensures fast query and export of hot data, and at the same time stores all original messages to ensure data integrity.
Smart Images

Figure CN118467797B
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a method, device, equipment and storage medium for storing and exporting vehicle-side data. Background Art
[0002] With the increase in connected vehicles in the field of Internet of Vehicles, the vehicle data accessed by the cloud platform has shown explosive growth, resulting in increased storage pressure and storage costs on the cloud platform.
[0003] After receiving the relevant data from the vehicle, the cloud platform usually directly parses and stores it, which consumes a lot of data processing resources and data storage resources. Specifically, the parsed data is usually permanently stored in the HBase database (a distributed, scalable big data storage database), and HDFS (Hadoop Distributed FileSystem) is used as the file storage system. This storage method is feasible when there are fewer vehicles connected to the cloud platform. If too many vehicles are connected, it will lead to very large resource consumption and increase storage costs.
[0004] In addition, when relevant technicians conduct data analysis on relevant vehicles, they need to export corresponding storage data from the cloud platform. However, there is currently a lot of data on the cloud storage platform, which makes it impossible to quickly query and export the corresponding target data. Summary of the invention
[0005] In view of the above problems, the present application provides a method, device, equipment and storage medium for storing and exporting vehicle-side data, so as to improve the convenience of data query.
[0006] According to one aspect of the present application, a method for storing vehicle-side data is provided, the storage method comprising: parsing a target original message to obtain parsed data corresponding to the target original message; wherein the target original message is a message whose access rate reaches a preset access rate and whose importance reaches a preset importance; storing the target original message and the parsed data in a first storage area, and storing all original messages in a second storage area; wherein the access rate of the first storage area is higher than the access rate of the second storage area, and the storage time corresponding to the first storage area is shorter than the storage time corresponding to the second storage area.
[0007] In an optional manner, parsing the target original message to obtain parsed data corresponding to the target original message further includes: acquiring corresponding vehicle information based on a vehicle identification corresponding to a source vehicle of the target original message; parsing the target original message according to the vehicle information to obtain parsed data corresponding to the target original message.
[0008] In an optional manner, storing all original messages in a second storage area further includes: storing all original messages in a temporary storage area based on a primary category and a secondary category to obtain a temporarily stored original message; wherein the primary category is a category obtained according to the message collection date, and the secondary category is a category obtained according to the vehicle number corresponding to the vehicle from which the message comes; if it is detected that the current date is a preset date, the temporarily stored original message is sent to the second storage area, and the temporarily stored original message is stored based on the primary category and the vehicle identification.
[0009] In an optional manner, the storing of all original messages in a temporary storage area based on the primary category and the secondary category to obtain the temporarily stored original messages further includes: determining the primary category corresponding to each original message according to the collection date corresponding to each original message; determining the secondary category corresponding to each original message according to the vehicle number corresponding to the source vehicle of each original message; storing all original messages in a temporary storage area based on the primary category and the secondary category to obtain the temporarily stored original messages.
[0010] In an optional manner, the method of determining the first-level category corresponding to each original message based on the collection date corresponding to each original message further includes: performing a difference operation on the collection date corresponding to each original message and a preset date to obtain a date difference value corresponding to each original message; and determining the first-level category corresponding to each original message based on the date difference value corresponding to each original message.
[0011] In an optional manner, the method of determining the secondary category corresponding to each original message based on the vehicle number corresponding to the source vehicle of each original message further includes: obtaining the vehicle number corresponding to the source vehicle of each original message; taking the quotient of the vehicle number corresponding to the source vehicle of each original message and a preset value, respectively, and using each calculated quotient value as a classification parameter of the secondary category corresponding to the corresponding original message, so as to determine the secondary category corresponding to each original message.
[0012] According to another aspect of the present application, a method for exporting vehicle-side data is provided, the export method comprising: receiving an export request carrying a time range of exported data; if the time range is partially within a first storage time range corresponding to a first storage area, exporting the first data whose time range is within the first storage time range from the first storage area, and exporting the second data whose time range is not within the first storage time range from the second storage area, so as to obtain all data requested by the export request; wherein the first storage area stores a target original message and parsed data corresponding to the target original message, the target original message is a message whose access rate reaches a preset access rate and whose importance reaches a preset importance, the second storage area stores all original messages, the access rate of the first storage area is higher than the access rate of the second storage area, and the storage duration corresponding to the first storage area is shorter than the storage duration corresponding to the second storage area.
[0013] In an optional manner, the export method also includes: if the time ranges are all within the first storage time range, then exporting all data requested by the export request from the first storage area; if the time ranges are not within the first storage time range, then exporting all data requested by the export request from the second storage area.
[0014] In an optional manner, the export request includes a specified vehicle identification; exporting all data requested by the export request from the first storage area further includes: if the data type requested by the export request is an original message, exporting a target original message corresponding to the specified vehicle identification from the first storage area; if the data type requested by the export request is a type corresponding to the parsed data, detecting whether there is data corresponding to the specified vehicle identification in the parsed data; if so, exporting the data corresponding to the specified vehicle identification; if not, parsing the target original message corresponding to the specified vehicle identification and exporting the parsed data.
[0015] In an optional manner, the export method also includes: receiving a data query request for the first storage area; wherein the data query request includes a data date and a vehicle identification corresponding to a data source vehicle; detecting whether the data type requested by the data query request is an original message; if so, determining the data requested by the data query request from the target original message based on the data date and the vehicle identification; if not, determining a designated target original message from the target original message based on the data date and the vehicle identification, and detecting whether the data requested by the data query request exists in the parsed data corresponding to the designated target original message, and determining the data requested by the data query request based on the detection result.
[0016] In an optional manner, determining the data requested by the data query request based on the detection result further includes: if the detection result indicates that the data requested by the data query request exists in the parsed data corresponding to the designated target original message, then using the corresponding data in the parsed data as the data requested by the data query request; if the detection result indicates that the data requested by the data query request does not exist in the parsed data corresponding to the designated target original message, then parsing the designated target original message to obtain the data requested by the data query request.
[0017] According to another aspect of the present application, a storage device for vehicle-side data is provided, and the storage device includes: a parsing module, used to parse and process a target original message to obtain parsed data corresponding to the target original message; wherein the target original message is a message whose access rate reaches a preset access rate and whose importance reaches a preset importance; a storage module, used to store the target original message and the parsed data in a first storage area, and store all original messages in a second storage area; wherein the access rate of the first storage area is higher than the access rate of the second storage area, and the storage time corresponding to the first storage area is shorter than the storage time corresponding to the second storage area.
[0018] According to another aspect of the present application, a vehicle-side data export device is provided, the export device comprising: a receiving module for receiving an export request carrying a time range for exporting data; an export module for exporting first data whose time range is within a first storage time range corresponding to a first storage area from the first storage area, and exporting second data whose time range is not within the first storage time range from the second storage area, if the time range is partially within the first storage time range corresponding to the first storage area, so as to obtain all data requested by the export request; wherein the first storage area stores a target original message and parsed data corresponding to the target original message, the target original message is a message whose access rate reaches a preset access rate and whose importance reaches a preset importance, the second storage area stores all original messages, the access rate of the first storage area is higher than the access rate of the second storage area, and the storage duration corresponding to the first storage area is shorter than the storage duration corresponding to the second storage area.
[0019] According to one aspect of the present application, an electronic device is provided, comprising: a controller; and a memory for storing one or more programs, wherein when the one or more programs are executed by the controller, the above-mentioned storage method or the above-mentioned export method is executed.
[0020] According to one aspect of the present application, a computer-readable storage medium is also provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the above-mentioned storage method, or the above-mentioned export method.
[0021] According to one aspect of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned storage method, or the computer device executes the above-mentioned export method.
[0022] This application does not parse all original messages, but divides the access rate and importance by preset access rate and preset importance, and parses the target original messages with high access rate and high importance (that is, the access rate reaches the preset access rate, and the importance reaches the preset importance), that is, parses the hot data, and stores the parsed data and the target original message in the first storage area with a high access rate, so as to facilitate partition query and quickly export related data. At the same time, all unparsed original messages are stored in the second storage area with low access frequency and long storage time, so that users can obtain the corresponding original message from the second storage area for parsing to obtain the desired parsed data.
[0023] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 It is a flowchart of a method for storing vehicle-side data shown in an exemplary embodiment of the present application.
[0026] Figure 2 is based on Figure 1 The exemplary embodiment shown is a flow chart of another method for storing vehicle-side data.
[0027] Figure 3 is based on Figure 2 The exemplary embodiment shown is a flow chart of another method for storing vehicle-side data.
[0028] Figure 4 It is a flowchart of a method for exporting vehicle-side data shown in an exemplary embodiment of the present application.
[0029] Figure 5 is based on Figure 4 The exemplary embodiment shown is a flowchart of another method for exporting vehicle-side data.
[0030] Figure 6It is a flowchart of a data query method in the first storage area shown in an exemplary embodiment of the present application.
[0031] Figure 7 It is a schematic diagram of the application scenario of the method for storing and exporting vehicle-side data of the present application.
[0032] Figure 8 It is a schematic diagram of the structure of a storage device for vehicle-side data shown in an exemplary embodiment of the present application.
[0033] Fig. 9 It is a structural diagram of a device for exporting vehicle-side data shown in an exemplary embodiment of the present application.
[0034] Fig.10 It is a structural diagram of a computer system of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0035] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0036] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0037] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0038] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0039] After receiving relevant data from the vehicle side, the existing cloud platform generally directly analyzes all of it and then stores it. The cloud platform's storage operation for vehicle-side data is relatively mechanical, requiring a large amount of data processing resources and data storage resources, resulting in inefficient use of the cloud platform's storage resources.
[0040] In addition, when relevant technicians conduct data analysis on relevant vehicles, they need to export the corresponding storage data from the cloud platform. However, there is currently a lot of data on the cloud storage platform, which makes it impossible to quickly query and export to the corresponding target data.
[0041] To this end, one aspect of the present application provides a method for storing vehicle-side data, which improves the data storage level to analyze the relevant data in a targeted manner and partition the relevant data for quick query and export to the target data. Figure 1 , Figure 1 1 is a flow chart of a method for storing vehicle-side data shown in an exemplary embodiment of the present application. The storage method at least includes S110 to S120, which are described in detail as follows:
[0042] S110: parse the target original message to obtain parsed data corresponding to the target original message; wherein the target original message is a message whose access rate reaches a preset access rate and whose importance reaches a preset importance.
[0043] This embodiment divides the access rate and importance by presetting the access rate and the presetting importance, and takes the message whose access rate reaches the presetting access rate and whose importance reaches the presetting importance as the target original message. Among them, this embodiment only judges the access rate of data by the presetting access rate and judges the importance of data by the presetting importance, and does not limit the specific values of the presetting access rate and the presetting importance, and can be adjusted accordingly according to different scenarios to determine the target original message with high access rate and high importance.
[0044] The target original message is a vehicle-side message that plays a key role in business and applications. The corresponding parsed data is frequently accessed (i.e., hot data with high analysis utilization) and has high importance (i.e., important data for vehicle-side analysis).
[0045] Exemplarily, the corresponding vehicle information is obtained based on the vehicle identification corresponding to the source vehicle of the target original message; the target original message is parsed according to the vehicle information to obtain parsed data corresponding to the target original message.
[0046] The original message comes from each vehicle, and the vehicle identification corresponding to each vehicle is different to distinguish the source of the original message. Among them, the vehicle identification can be a frame number to ensure the uniqueness of the vehicle. Each vehicle has corresponding vehicle information, such as model, series, etc.
[0047] The target original message is parsed and processed in combination with the vehicle information, and the obtained parsed data may be a plurality of signal data parsed according to different business requirements. In some embodiments, the signal data is corresponded to each vehicle model. For example, in the parsed data, vehicle model A corresponds to 100 signal data, vehicle model B corresponds to 200 signal data, and vehicle model C corresponds to 300 signal data.
[0048] S120: Storing the target original message and parsed data in a first storage area, and storing all original messages in a second storage area; wherein the access rate of the first storage area is higher than the access rate of the second storage area, and the storage time corresponding to the first storage area is shorter than the storage time corresponding to the second storage area.
[0049] In this embodiment, the first storage area is used as a storage area for hot data, and the parsed data stored in the first storage area corresponds to the target original message, that is, each parsed data in the first storage area corresponds to a corresponding target original message. For example, the parsed data a, b, and c obtained by parsing the target original data A all correspond to the target original data A.
[0050] In this embodiment, the second storage area is used as a storage area for cold data, and its storage data type is single, which is all original messages, including the target original message. It is worth noting that the storage time of the second storage area is longer than that of the first storage area. In some embodiments, the storage time of the second storage area can be permanent, so that the corresponding historical message data can be quickly obtained from the second storage area later.
[0051] The hot and cold data storage mechanism in this embodiment can meet the needs of fast data query or export, and give priority to accessing the data in the first storage area to ensure fast query or export of hot data. The second storage area is used as a backup to store all original messages to ensure that all original messages can be queried or exported.
[0052] This embodiment does not parse all original messages, but divides the access rate and importance by preset access rate and preset importance, and parses the target original messages with high access rate and high importance (that is, the access rate reaches the preset access rate and the importance reaches the preset importance), that is, parses the hot data, and stores the parsed data and the target original message in the first storage area with a high access rate, so as to facilitate partition query and quickly export related data. At the same time, all unparsed original messages are stored in the second storage area with low access frequency and long storage time, so that users can obtain the corresponding original message from the second storage area for parsing to obtain the desired parsed data.
[0053] In another exemplary embodiment of the present application, how to store all original messages in the second storage area is described in detail. Figure 2 , Figure 2 is based on Figure 1 The exemplary embodiment shown is a flow chart of another method for storing vehicle-side data. Figure 1 The S120 shown further includes S210 to S220, which are described in detail as follows:
[0054] S210: All original messages are stored in a temporary storage area based on the primary category and the secondary category to obtain the temporarily stored original message; wherein the primary category is the category obtained according to the message collection date, and the secondary category is the category obtained according to the vehicle number corresponding to the message source vehicle.
[0055] This embodiment does not directly store all original messages, but rather classifies them and temporarily stores them, and then stores them in the second storage area at a scheduled time.
[0056] This embodiment uses secondary classification and takes into account the collection date and source vehicle of the original message, so that the classification of temporarily stored original messages is more detailed. For classification, please refer to the details shown in Table 1.
[0057] Table 1: Classification details of temporarily stored original messages
[0058]
[0059] S220: If it is detected that the current date is a preset date, the temporarily stored original message is sent to the second storage area, and the temporarily stored original message is stored based on the primary category and the vehicle identification.
[0060] This embodiment achieves the purpose of diverting the stored data to the second storage area by means of classified caching, thereby avoiding the situation where the storage limit is reached due to storing a large amount of data at the same time, thereby causing the cloud platform to crash.
[0061] This embodiment temporarily stores the original message in batches through the second category, that is, the batches are divided according to the vehicle number, so that when the preset date is reached, the temporarily stored messages are sent to the second storage area in batches, and the corresponding categories are merged in the second storage area, so that the original message is stored in the second storage area according to the first category and vehicle identification.
[0062] In another exemplary embodiment of the present application, it is described in detail how to store all original messages in the temporary storage area based on the primary category and the secondary category to obtain the temporary original message. For details, please refer to Figure 3 , Figure 3 is based on Figure 2 The exemplary embodiment shown is a flow chart of another method for storing vehicle-side data. Figure 2 The S210 shown further includes S310 to S330, which are described in detail as follows:
[0063] S310: Determine the primary category corresponding to each original message according to the collection date corresponding to each original message.
[0064] When collecting each original message, the corresponding collection date must be recorded. Categories can be directly divided according to the collection date. For example, one year is a first-level category, and 2020, 2021, 2022... are respectively a category in the first-level category.
[0065] In another exemplary embodiment, a collection date corresponding to each original message is subtracted from a preset date to obtain a date difference value corresponding to each original message; and the first-level category corresponding to each original message is determined according to the date difference value corresponding to each original message.
[0066] For example, the preset date is zero, the date difference = 20240330 (collection date) - 0, convert the date difference into seconds and divide it by the preset classification value 86400 to get 19812 (first-level category M), which represents March 30, 2024.
[0067] S320: Determine the secondary category corresponding to each original message according to the vehicle number corresponding to the source vehicle of each original message.
[0068] Among them, the vehicle number can be the vehicle’s factory serial number, which is used for batch division.
[0069] Exemplarily, the vehicle number corresponding to the source vehicle of each original message is obtained; the vehicle number corresponding to the source vehicle of each original message is respectively divided by a preset value, and each calculated quotient value is used as a classification parameter of the secondary category corresponding to the corresponding original message, so as to determine the secondary category (N) corresponding to each original message.
[0070] For example, if the vehicle number corresponding to the source vehicle of an original message is 600 and the preset value is 200, then the classification parameter of the secondary category corresponding to the original message is 3, and 300 can be directly used as the corresponding secondary category, or the secondary category corresponding to the original message can be determined according to the correspondence table between the preset classification parameters and the secondary categories shown in Table 2. Specifically, the calculated classification parameter 3 is matched with the preset classification parameter interval in Table 2, so that the secondary category corresponding to the preset classification parameter interval that is successfully matched is used as the secondary category corresponding to the original message, that is, the secondary category corresponding to the original message is the second secondary category. Among them, Table 2 represents the correspondence between the preset classification parameters and the secondary categories.
[0071] Table 2: Correspondence between preset classification parameters and secondary categories
[0072]
[0073] S330: Based on the primary category and the secondary category, all original messages are stored in a temporary storage area to obtain temporary original messages.
[0074] Exemplarily, please refer to Table 3. As shown in the example in Table 3, each original message is classified.
[0075] Table 3: Classification example of original message
[0076]
[0077] This embodiment provides a specific classification method for the primary category and the secondary category, so as to introduce corresponding preset parameters to obtain classification parameters corresponding to the two categories, so as to accurately determine the specific classification intervals of the two categories.
[0078] When relevant technicians conduct data analysis on relevant vehicles, they generally use traversal to export corresponding storage data from the cloud platform. However, there is currently a lot of data on the cloud storage platform, which makes traversing the data time-consuming and makes it impossible to quickly query and export the corresponding target data.
[0079] To this end, one aspect of the present application provides a method for exporting vehicle-side data, which partitions and searches for relevant data according to the time range carried in the export request, so as to quickly export the relevant data stored in different storage areas. Figure 4 , Figure 4 1 is a flow chart of a method for exporting vehicle-side data as shown in an exemplary embodiment of the present application. The export method at least includes S410 to S420, which are described in detail as follows:
[0080] S410: Receive an export request carrying a time range for exporting data.
[0081] The export request also specifies the type of exported data, including but not limited to original messages, parsed data types, etc.
[0082] S420: If the time range is partially within the first storage time range corresponding to the first storage area, the first data whose time range is within the first storage time range is exported from the first storage area, and the second data whose time range is not within the first storage time range is exported from the second storage area, so as to obtain all the data requested by the export request; wherein the first storage area stores the target original message and the parsed data corresponding to the target original message, the target original message is a message whose access rate reaches a preset access rate and whose importance reaches a preset importance, the second storage area stores all original messages, the access rate of the first storage area is higher than the access rate of the second storage area, and the storage duration corresponding to the first storage area is less than the storage duration corresponding to the second storage area.
[0083] It is worth noting that the second storage area only stores original messages. If the corresponding parsed data needs to be exported, the corresponding original messages need to be parsed in real time to export the parsed data.
[0084] This embodiment adopts a hot and cold data storage mechanism, that is, hot data is stored in the first storage area, and cold data is stored in the second storage area, which can meet the needs of fast data query or export. During the data query or export process, the data in the first storage area is accessed first to ensure fast query or export of hot data. The second storage area is used as a backup to store all original messages to ensure that all original messages can be queried or exported.
[0085] Exemplarily, the time range carried in the export request is 2024-03-28 12:00:00 to 2024-04-05 12:00:00, the first storage time range corresponding to the first storage area is 2024-04-01 00:00:00 to the current time (2024-04-06 00:00:00), and the second storage time range corresponding to the second storage area is 2023-01-01 00:00:00 to 2024-04-01 00:00:00. In this example, the second storage time range has a certain lag relative to the first storage time range, which is 6 days behind (i.e., the storage time of the first storage area), that is, the target original messages of the last 6 days are only stored in the first storage area, and the second storage area only stores the original messages 6 days ago, so as to reduce duplicate storage of data. Of course, in some exemplary embodiments, there is no hysteresis in the event ranges corresponding to the first storage area and the second storage area, that is, the original message stored in the second storage area includes the target original message stored in the first storage area.
[0086] For a time range from 2024-04-01 00:00:00 to 2024-04-05 12:00:00 (i.e., a time range matching the first time range), first data is exported in the first storage area, and for a time range from 2024-03-28 12:00:00 to 2024-04-01 00:00:00 (i.e., a time range matching the second time range), second data is exported in the second storage area, and the first data and the second data are merged and exported to obtain all data requested by the export request.
[0087] As an important parameter for searching and exporting data, the time range is matched with the first storage time range corresponding to the first storage area (i.e., the time range of the hot data storage area is matched first), and the data export area is determined according to the matching result. Because the amount of data stored in the first storage area is significantly smaller than the amount of data stored in the second storage area, the time consumed for a comprehensive data search in the first storage area is less than the time consumed in the second storage area.
[0088] If the time ranges are all within the first storage time range, all data requested by the export request are exported from the first storage area. In the process, the specific export method needs to be determined according to the type of data requested to be exported:
[0089] (1) If the data type requested by the export request is an original message, a target original message corresponding to the specified vehicle identifier is exported from the first storage area.
[0090] (2) If the data type requested by the export request is the type corresponding to the parsed data, then check whether there is data corresponding to the specified vehicle identification in the parsed data.
[0091] If it exists, the data corresponding to the specified vehicle identification is exported, and the corresponding parsed data can be directly exported without data processing. If it does not exist, the target original message corresponding to the specified vehicle identification is parsed, and the parsed data is exported. The parsing process can be parsed according to the type of export data specified in the export request to export the parsed data expected by the user.
[0092] If none of the time ranges are within the first storage time range, all data requested by the export request are exported from the second storage area.
[0093] Among them, if the type of export data specified in the export request is the original message, the corresponding original message in the second storage area can be directly exported; if the type of export data specified in the export request is the type corresponding to the parsed data, the corresponding original message in the second storage area needs to be parsed and processed as required to obtain the expected exported parsed data.
[0094] This embodiment matches the time range specified in the export request with the time range corresponding to the first storage area and the second storage area, and determines the area for exporting data according to the matching of the time range, so as to accurately export the export data expected by the user. Among them, only the original message corresponding to the first storage area stores the corresponding parsing data. Compared with the existing cloud platform storing the parsing data corresponding to all original messages, this embodiment slims down the stored data, divides the high and low access rates and the high and low importance by preset access rates and preset importance levels, and only parses the target original messages with high access rates and high importance (that is, the access rate reaches the preset access rate, and the importance reaches the preset importance level), and stores the parsed data and the target original messages in the first storage area with a high access rate, so as to facilitate partition query and quickly export relevant data. At the same time, all the original messages that have not been parsed are stored in the second storage area with low access frequency and long storage time, so that the user can obtain the corresponding original message from the second storage area for parsing to obtain the desired parsing data.
[0095] In another exemplary embodiment of the present application, how to query relevant data is described in detail. Figure 5 , Figure 5 is based on Figure 4 The exemplary embodiment shown is a flow chart of another method for exporting vehicle-side data. Figure 4 S410 to S420 are shown, and the derivation method of this embodiment also includes S510 to S540, which are described in detail as follows:
[0096] S510: Receive a data query request for the first storage area; wherein the data query request includes the data date and the vehicle identification corresponding to the data source vehicle.
[0097] If a data query request for the first storage area is received, it indicates that a query operation is expected for hot data. The first storage area stores different types of data, namely, message data and parsed data, wherein the stored data is classified according to data date and vehicle identification.
[0098] S520: Detect whether the data type requested by the data query request is an original message.
[0099] See also Figure 6 , Figure 6 After receiving a data query request for the first storage area, the type of the requested data needs to be detected. If it is message data, the corresponding target original message is directly determined from the first storage area.
[0100] S530: If yes, the data requested by the data query request is determined from the target original message according to the data date and the vehicle identification.
[0101] If yes, the corresponding target original message can be directly determined from the first storage area according to the data date and the vehicle identification. For example, the data date and the vehicle identification are matched with the preset data date and the preset vehicle identification respectively, and the target original message corresponding to the successfully matched parameters is used as the data requested by the data query request.
[0102] S540: If no, determine the designated target original message from the target original message according to the data date and vehicle identification, and detect whether the data requested by the data query request exists in the parsed data corresponding to the designated target original message, and determine the data requested by the data query request according to the detection result.
[0103] like Figure 6 As shown, if it is not, then the data representing the desired query is not the message data, but the parsed data corresponding to the corresponding target original message. Then, the designated target original message is first determined from the target original message according to the data date and vehicle identification. Since the first storage area does not necessarily store all the parsed data corresponding to each target original message, the data requested by the data query request may not exist in the first storage area. That is, it is necessary to detect whether the parsed data stored in the first storage area stores the data requested by the data query request, and determine the method for obtaining the requested data according to the detection result.
[0104] If the detection result indicates that the data requested by the data query request exists in the parsed data corresponding to the designated target original message, the corresponding data existing in the parsed data is used as the data requested by the data query request.
[0105] like Figure 6 As shown, if the detection result is yes, the corresponding parsed data corresponding to the designated target original message is directly used as the data requested by the data query request.
[0106] If the detection result indicates that the data requested by the data query request does not exist in the parsed data corresponding to the designated target original message, the designated target original message is parsed to obtain the data requested by the data query request.
[0107] like Figure 6 As shown, if the detection result is no, the original message of the specified target needs to be parsed and processed as required to parse and obtain the data requested by the data query request.
[0108] This embodiment provides a data query method for the first storage area. Similarly, the data query method for the second storage area is similar. The difference is that the second storage area only stores the original message, and does not store the corresponding parsed data. It is only necessary to determine the corresponding original message based on the data date and vehicle identification. If the corresponding parsed data is required, it needs to be further parsed and processed.
[0109] In another exemplary embodiment of the present application, an exemplary application scenario of the above-mentioned method for storing and exporting multiple vehicle-side data is described. For details, please refer to Figure 7 , Figure 7 It is a schematic diagram of the application scenario of the method for storing and exporting vehicle-side data of the present application. The application scenario can be an independent physical server, or it can be a server cluster or distributed system composed of multiple physical servers, wherein multiple servers can form a blockchain, and the server is a node on the blockchain. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, and this is not limited here. The cloud platform is used as the executor of the method for storing and exporting vehicle-side data shown in any of the above exemplary embodiments for exemplary explanation, and the details are as follows:
[0110] The original message on the vehicle side is uploaded to the message queue of the cloud platform. The cloud platform determines the target original message (i.e., the message with high access rate and high importance) according to the message identifier or other identifiers representing the identity of the message, and parses the target original message to store the target original message and the parsed data in the first storage area, that is, the first storage area is used as the storage area for hot data. Among them, the first storage area can be a time series database or a non-relational database. The vehicle identifier can be used as a tag and the parsed data can be used as a field (each parsed data is a field). The field in the time series database can dynamically expand the parsed data, which can reduce the time consumption of data processing and improve data processing efficiency. For example, there are 100 signals corresponding to model A and 200 signals corresponding to model B, of which 50 signals are the same. When model A has written 100 signal fields and 200 signals of model B are written, the 50 signals with the same name will use the field name created when model A is written. In addition, the corresponding fields of the 150 signals will be automatically created in the table and written into the table, so as to save data processing time and improve data processing efficiency.
[0111] At the same time, after the cloud platform classifies the original message at the first and second levels, it places the classified original message in the temporary storage area, so that the message distribution program can send the temporary data in the temporary storage area to the second storage area at regular intervals, that is, the second storage area is used as the storage area for cold data. Obviously, the storage time of each storage area can be adjusted manually, but the storage time of the second storage area must be greater than that of the first storage area. It is worth noting that every time the message distribution program sends temporary data, the temporary data in the temporary storage area is updated.
[0112] Another aspect of the present application also provides a storage device for vehicle-side data, such as Figure 8 As shown, Figure 8 800 is a schematic diagram of a storage device for vehicle-side data according to an exemplary embodiment of the present application. The storage device 800 includes:
[0113] The parsing module 810 is used to parse the target original message to obtain parsed data corresponding to the target original message; wherein the target original message is a message whose access rate reaches a preset access rate and whose importance reaches a preset importance.
[0114] Storage module 830 is used to store the target original message and parsed data in a first storage area, and store all original messages in a second storage area; wherein the access rate of the first storage area is higher than the access rate of the second storage area, and the storage time corresponding to the first storage area is shorter than the storage time corresponding to the second storage area.
[0115] In another exemplary embodiment, the storage module 830 further includes:
[0116] The acquisition unit is used to acquire corresponding vehicle information based on the vehicle identification corresponding to the source vehicle of the target original message.
[0117] The parsing unit is used to parse the target original message according to the vehicle information to obtain parsed data corresponding to the target original message.
[0118] In another exemplary embodiment, the storage module 830 further includes:
[0119] The temporary storage unit is used to store all original messages in the temporary storage area based on the primary category and the secondary category to obtain the temporarily stored original message; wherein the primary category is the category obtained according to the message collection date, and the secondary category is the category obtained according to the vehicle number corresponding to the vehicle from which the message comes.
[0120] The sending storage unit is used to send the temporarily stored original message to the second storage area if it is detected that the current date is a preset date, and store the temporarily stored original message based on the primary category and the vehicle identification.
[0121] In another exemplary embodiment, the temporary storage unit further comprises:
[0122] The first determination section is used to determine the primary category corresponding to each original message according to the collection date corresponding to each original message.
[0123] The second determination section is used to determine the secondary category corresponding to each original message according to the vehicle number corresponding to the source vehicle of each original message.
[0124] The temporary storage section is used to store all original messages in the temporary storage area based on the primary category and the secondary category to obtain the temporary original messages.
[0125] In another exemplary embodiment, the first determination section further includes:
[0126] The calculation submodule is used to perform a difference operation between the collection date corresponding to each original message and the preset date to obtain the date difference value corresponding to each original message.
[0127] The first determination sub-section is used to determine the corresponding primary categories according to the date differences corresponding to the original messages.
[0128] In another exemplary embodiment, the second determination section further includes:
[0129] The acquisition sub-section is used to obtain the vehicle number corresponding to the source vehicle of each original message.
[0130] The second determination sub-module is used to calculate the quotient of the vehicle number corresponding to the source vehicle of each original message and the preset value, and use the calculated quotient values as the classification parameters of the secondary category corresponding to the corresponding original message to determine the secondary category corresponding to each original message.
[0131] The storage device of the present application does not parse all original messages, but divides the access rate and importance by preset access rate and preset importance, and parses the target original messages with high access rate and high importance (that is, the access rate reaches the preset access rate, and the importance reaches the preset importance), that is, parses the hot data, and stores the parsed data and the target original message in the first storage area with a high access rate, so as to facilitate partition query and quickly export related data. At the same time, all unparsed original messages are stored in the second storage area with low access frequency and long storage time, so that users can obtain the corresponding original message from the second storage area for parsing to obtain the desired parsed data.
[0132] It should be noted that the storage device provided in the above embodiment and the storage method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here.
[0133] Another aspect of the present application also provides a vehicle-side data export device, such as Fig. 9 As shown, Fig. 9 9 is a schematic diagram of a structure of a vehicle-side data export device according to an exemplary embodiment of the present application. The export device 900 includes:
[0134] The receiving module 910 is used to receive an export request carrying a time range for exporting data.
[0135] The export module 930 is used to export the first data whose time range is within the first storage time range corresponding to the first storage area, and export the second data whose time range is not within the first storage time range from the second storage area, if the time range is partially within the first storage time range corresponding to the first storage area, so as to obtain all the data requested by the export request; wherein, the first storage area stores the target original message and the parsed data corresponding to the target original message, the target original message is a message whose access rate reaches a preset access rate and whose importance reaches a preset importance, the second storage area stores all the original messages, the access rate of the first storage area is higher than the access rate of the second storage area, and the storage duration corresponding to the first storage area is less than the storage duration corresponding to the second storage area.
[0136] In another exemplary embodiment, the deriving device 900 further includes:
[0137] The first storage area export module is used to export all data requested by the export request from the first storage area if the time ranges are all within the first storage time range.
[0138] The second storage area export module is used to export all data requested by the export request from the second storage area if the time range is not within the first storage time range.
[0139] In another exemplary embodiment, the export request includes a specified vehicle identifier; the first storage area export module further includes:
[0140] The data existence detection unit is used to detect whether there is data corresponding to the specified vehicle identification in the parsed data if the data type requested by the export request is the type corresponding to the parsed data.
[0141] There is an export unit for exporting data corresponding to the specified vehicle identification if it exists.
[0142] The non-existent parsing unit is used to parse the target original message corresponding to the specified vehicle identification if it does not exist, and export the parsed data.
[0143] In another exemplary embodiment, the deriving device 900 further includes:
[0144] The query module is used to receive a data query request for the first storage area; wherein the data query request includes the data date and the vehicle identification corresponding to the data source vehicle.
[0145] The data type detection module is used to detect whether the data type requested by the data query request is an original message.
[0146] The request data determination module is used to determine the data requested by the data query request from the target original message according to the data date and the vehicle identification if the answer is yes.
[0147] The detection and determination module is used to determine the designated target original message from the target original message according to the data date and vehicle identification if the answer is no, and detect whether the data requested by the data query request exists in the parsed data corresponding to the designated target original message, and determine the data requested by the data query request according to the detection result.
[0148] In another exemplary embodiment, the detection and determination module further comprises:
[0149] The first detection result unit is used to use the corresponding data in the parsed data as the data requested by the data query request if the detection result indicates that the parsed data corresponding to the designated target original message contains the data requested by the data query request.
[0150] The second detection result unit is used to parse the designated target original message to obtain the data requested by the data query request if the detection result indicates that the data requested by the data query request does not exist in the parsed data corresponding to the designated target original message.
[0151] The export device of the present application matches the time range specified in the export request with the time range corresponding to the first storage area and the second storage area, and determines the area of the export data according to the matching of the time range, so as to accurately export the export data expected by the user. Among them, only the original message corresponding to the first storage area stores the corresponding parsing data. Compared with the existing cloud platform storing the parsing data corresponding to all the original messages, this embodiment slims down the stored data, divides the high and low access rates and the high and low importance by the preset access rate and the preset importance, and only parses the target original message with high access rate and high importance (that is, the access rate reaches the preset access rate, and the importance reaches the preset importance). The parsed data and the target original message are stored in the first storage area with a higher access rate, so as to facilitate partition query and quickly export relevant data. At the same time, all the original messages that have not been parsed are stored in the second storage area with low access frequency and long storage time, so that the user can obtain the corresponding original message from the second storage area for parsing to obtain the desired parsed data.
[0152] It should be noted that the export device provided in the above embodiment and the export method provided in the above embodiment belong to the same concept, and the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment and will not be repeated here.
[0153] Another aspect of the present application provides an electronic device, including: a controller; a memory for storing one or more programs, and when the one or more programs are executed by the controller, the above-mentioned storage method or export method is executed.
[0154] See also Fig.10 , Fig.10 1 is a schematic diagram of the structure of a computer system of an electronic device shown in an exemplary embodiment of the present application, which shows a schematic diagram of the structure of a computer system of an electronic device suitable for implementing an embodiment of the present application.
[0155] It should be noted that Fig.10 The computer system 1000 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0156] like Fig.10As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1002 or the program loaded from the storage part 1008 to the random access memory (RAM) 1003, such as executing the method in the above embodiment. In the RAM 1003, various programs and data required for system operation are also stored. The CPU 1001, the ROM 1002 and the RAM 1003 are connected to each other through the bus 1004. The input / output (I / O) interface 1005 is also connected to the bus 1004.
[0157] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed so that a computer program read therefrom is installed into the storage section 1008 as needed.
[0158] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1009, and / or installed from a removable medium 1011. When the computer program is executed by a central processing unit (CPU) 1001, various functions defined in the system of the present application are executed.
[0159] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0160] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0161] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0162] Another aspect of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the storage method or the export method as described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0163] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the storage method or the export method provided in each of the above embodiments.
[0164] According to one aspect of an embodiment of the present application, a computer system is also provided, including a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM), such as executing the method in the above embodiment. In RAM, various programs and data required for system operation are also stored. CPU, ROM and RAM are connected to each other via a bus. Input / output (I / O) interface is also connected to the bus.
[0165] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.
[0166] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.
Claims
1. A method for storing vehicle-side data, characterized in that: The storage method comprises: Parsing the target original message to obtain parsed data corresponding to the target original message; wherein the target original message is a message whose access rate reaches a preset access rate and whose importance reaches a preset importance, and the target original message is a message that has not been parsed; The target original message and the parsed data are stored in a first storage area, and all original messages are stored in a second storage area; wherein the access rate of the first storage area is higher than the access rate of the second storage area, and the storage time corresponding to the first storage area is shorter than the storage time corresponding to the second storage area.
2. The storage method according to claim 1, characterized in that: The parsing of the target original message to obtain parsed data corresponding to the target original message further includes: Obtain corresponding vehicle information based on the vehicle identification corresponding to the source vehicle of the target original message; The target original message is parsed according to the vehicle information to obtain parsed data corresponding to the target original message.
3. The storage method according to claim 1, characterized in that: The storing of all original messages in the second storage area further comprises: All original messages are stored in a temporary storage area based on primary categories and secondary categories to obtain temporary original messages; wherein the primary category is a category obtained by dividing according to the message collection date, and the secondary category is a category obtained by dividing according to the vehicle number corresponding to the message source vehicle; If it is detected that the current date is a preset date, the temporarily stored original message is sent to the second storage area, and based on the primary category and the vehicle identification, the temporarily stored original message is stored.
4. The storage method according to claim 3, characterized in that: The storing of all original messages in the temporary storage area based on the primary category and the secondary category to obtain the temporary original messages further includes: According to the collection date corresponding to each original message, determine the primary category corresponding to each original message; Determine the secondary category corresponding to each original message according to the vehicle number corresponding to the source vehicle of each original message; Based on the primary category and the secondary category, all original messages are stored in a temporary storage area to obtain temporary original messages.
5. The storage method according to claim 4, characterized in that: Determining the primary category corresponding to each original message according to the collection date corresponding to each original message further includes: Subtract the collection date corresponding to each original message from the preset date to obtain the date difference corresponding to each original message; The corresponding primary categories are determined according to the date differences corresponding to the original messages.
6. The storage method according to claim 4, characterized in that: Determining the secondary category corresponding to each original message according to the vehicle number corresponding to the source vehicle of each original message further includes: Obtain the vehicle number corresponding to the source vehicle of each original message; The vehicle number corresponding to the source vehicle of each original message is respectively divided by a preset value, and each calculated quotient value is used as a classification parameter of the secondary category corresponding to the corresponding original message to determine the secondary category corresponding to each original message.
7. A method for exporting vehicle-side data, characterized in that: The export method comprises: receiving an export request carrying a time range of exported data; If the time range is partially within the first storage time range corresponding to the first storage area, the first data whose time range is within the first storage time range is exported from the first storage area, and the second data whose time range is not within the first storage time range is exported from the second storage area, so as to obtain all the data requested by the export request; wherein, the first storage area stores the target original message and the parsed data corresponding to the target original message, the target original message is a message whose access rate reaches a preset access rate and whose importance reaches a preset importance, the second storage area stores all original messages, the access rate of the first storage area is higher than the access rate of the second storage area, the storage duration corresponding to the first storage area is less than the storage duration corresponding to the second storage area, and the target original message is a message that has not been parsed.
8. The derivation method according to claim 7, characterized in that: The export method further comprises: If the time ranges are all within the first storage time range, exporting all data requested by the export request from the first storage area; If none of the time ranges are within the first storage time range, all data requested by the export request are exported from the second storage area.
9. The derivation method according to claim 8, characterized in that: The export request includes a specified vehicle identifier; and the step of exporting all data requested by the export request from the first storage area further includes: If the data type requested by the export request is an original message, exporting a target original message corresponding to the designated vehicle identifier from the first storage area; If the data type requested by the export request is the type corresponding to the parsed data, detecting whether there is data corresponding to the specified vehicle identifier in the parsed data; If so, exporting data corresponding to the specified vehicle identification; If it does not exist, the target original message corresponding to the designated vehicle identification is parsed and the parsed data is exported.
10. The derivation method according to claim 7, characterized in that: The export method further comprises: receiving a data query request for the first storage area; wherein the data query request includes a data date and a vehicle identifier corresponding to a vehicle from which the data originated; Detecting whether the data type requested by the data query request is an original message; If yes, determining the data requested by the data query request from the target original message according to the data date and the vehicle identification; If not, determine the designated target original message from the target original message according to the data date and the vehicle identification, and detect whether the data requested by the data query request exists in the parsed data corresponding to the designated target original message, and determine the data requested by the data query request according to the detection result.
11. The derivation method according to claim 10, characterized in that: The step of determining the data requested by the data query request according to the detection result further includes: If the detection result indicates that the parsed data corresponding to the designated target original message contains the data requested by the data query request, then the corresponding data in the parsed data is used as the data requested by the data query request; If the detection result indicates that the data requested by the data query request does not exist in the parsed data corresponding to the designated target original message, the designated target original message is parsed to obtain the data requested by the data query request.
12. A storage device for vehicle-side data, characterized in that: The storage device comprises: A parsing module, used for parsing the target original message to obtain parsed data corresponding to the target original message; wherein the target original message is a message whose access rate reaches a preset access rate and whose importance reaches a preset importance; A storage module, used to store the target original message and the parsed data in a first storage area, and store all original messages in a second storage area; wherein the access rate of the first storage area is higher than the access rate of the second storage area, the storage time corresponding to the first storage area is shorter than the storage time corresponding to the second storage area, and the target original message is a message that has not been parsed.
13. A vehicle-side data export device, characterized in that: The derivation device comprises: A receiving module, used for receiving an export request carrying a time range of export data; An export module is used to export first data whose time range is within a first storage time range corresponding to a first storage area from the first storage area if the time range is partially within the first storage time range corresponding to the first storage area, and to export second data whose time range is not within the first storage time range from the second storage area, so as to obtain all data requested by the export request; wherein, the first storage area stores a target original message and parsed data corresponding to the target original message, the target original message is a message whose access rate reaches a preset access rate and whose importance reaches a preset importance, the second storage area stores all original messages, the access rate of the first storage area is higher than the access rate of the second storage area, the storage duration corresponding to the first storage area is less than the storage duration corresponding to the second storage area, and the target original message is a message that has not been parsed.
14. An electronic device, characterized in that: include: Controller; A memory for storing one or more programs, which, when executed by a controller, enables the controller to implement the storage method described in any one of claims 1 to 6, or implement the export method described in any one of claims 7 to 11.
15. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the storage method described in any one of claims 1 to 6, or to execute the export method described in any one of claims 7 to 11.
Citation Information
Patent Citations
Automobile analogue communication protocol analyzer and analyzing method thereof
CN107135210A
Automobile message storage method and device and automobile message storage system
CN113645287A
Vehicle CAN data processing method, system and device and readable storage medium
CN114116281A
Data query method and device, storage medium and computer equipment
CN114880329A
Ad hoc network system and streaming data processing method of ad hoc network system
CN115586869A
