Data processing method and device, electronic equipment, storage medium, product and vehicle
By marking data with data identifiers and using cache queues to process data, data in data peak scenarios is identified and sent, which solves the problem of insufficient flexibility in data sending methods in the existing technology and achieves complete and real-time data sending.
Patent Information
- Application Number
- CN202510600458.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-09
- Publication Date
- 2025-09-12
AI Technical Summary
The flexibility of the device data transmission method in the existing technology is poor, which may easily lead to the loss of important data in data peak scenarios, affecting analysis and diagnosis.
By marking the target data with a data identifier, identifying the data in the data peak scenario, and sending it when the data identifier is the first identifier, a cache queue is used to process the data peak, and the data identifier is used to determine whether the data is peak data, thereby achieving flexible data sending.
Ensure that the data collected in data peak scenarios can be sent completely, avoid data loss and distortion, and ensure the real-time and integrity of data upload.
Smart Images

Figure CN120640349A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, device, electronic device, storage medium, product and vehicle. Background Art
[0002] In related technologies, when analyzing equipment, the collected data is generally sent according to a fixed period. For example, the process of the vehicle ECU uploading data to the cloud server is as follows: Figure 1 As shown in the figure, the characteristic information of the measured object is collected by the on-board ECU and sent to the gateway via CAN communication. The gateway passes the information to the T-BOX, and finally the T-BOX uploads the data to the cloud via the wireless network.
[0003] However, this data transmission method has poor flexibility, resulting in very limited applicable scenarios. For example, in data peak scenarios, this data transmission method may cause important data to be lost, affecting the analysis and diagnosis of the device. Summary of the Invention
[0004] Embodiments of the present application provide a data processing method, device, electronic device, computer-readable storage medium, computer program product, and vehicle to achieve flexible data transmission, thereby at least partially solving the above-mentioned technical problems.
[0005] To achieve the above objectives, according to a first aspect of the present application, a data processing method is provided, comprising:
[0006] Obtain target data collected from target devices;
[0007] In a case where the data identifier of the target data is a first identifier, the target data is sent, where the first identifier is used to indicate that the target data is data collected in a data peak scenario.
[0008] Optionally, acquiring target data collected from a target device includes:
[0009] Taking out the detection data at a target position in the cache space from the cache space storing the detection data as the target data;
[0010] The detection data is data collected from the target device.
[0011] Optionally, the cache space includes a cache queue, and the target position includes the tail position or the head position of the cache queue.
[0012] Optionally, the method further includes:
[0013] When the data identifier of the target data is not the first identifier, the target data is processed based on the detection data in the cache space.
[0014] Optionally, processing the target data based on the detection data in the cache space includes:
[0015] In the detection data of the cache space, it is determined that the target data enters the target position after being taken out of the cache space;
[0016] The target data is processed based on the first detection data.
[0017] Optionally, processing the target data based on the first detection data includes:
[0018] In a case where the data identifier of the first detection data is a second identifier, determining new target data according to the target data and the first detection data, wherein the second identifier is used to indicate that the target data is not data collected under a data peak scenario;
[0019] The first detection data at the target position is replaced by the new target data.
[0020] Optionally, determining new target data according to the target data and reference data includes:
[0021] An average value of the target data and the first detection data is calculated, and new target data is determined by the average value.
[0022] Optionally, the method further includes:
[0023] The data identifier of the target data is increased by 1 to obtain a new data identifier of the target data.
[0024] Optionally, the method further includes:
[0025] When the data identifier of the target data at the target position in the cache space reaches a preset counting threshold, the data identifier of the target data is set to a first identifier.
[0026] Optionally, after replacing the first detection data at the target position with the new target data, the method further includes:
[0027] The step of retrieving the detection data at the target position in the cache space from the cache space storing the detection data as the target data is performed again.
[0028] Optionally, the method further includes:
[0029] In a case where the data identifier of the first detection data is the first identifier, the first detection data is sent.
[0030] Optionally, before acquiring the target data collected for the target device, the method further includes:
[0031] Collect detection data of target equipment;
[0032] Marking the detection data with a data identifier, where the data identifier is used to indicate whether the detection data is data collected under a data peak scenario;
[0033] The detection data with the data identifier is stored in the cache space.
[0034] Optionally, marking the detection data with a data identifier includes:
[0035] In a case where the detection data is greater than or equal to a preset data threshold, a data identifier is marked for the detection data as a first identifier, wherein the first identifier is used to indicate that the detection data is peak data.
[0036] Optionally, marking the detection data with a data identifier includes:
[0037] In a case where the detection data is less than a preset data threshold, the detection data is marked with a data identifier as a second identifier, wherein the second identifier is used to indicate that the detection data is non-peak data.
[0038] Optionally, the sending the target data includes:
[0039] Sending the target data to a target driver;
[0040] The target data received by the target driver during the sending cycle is sent to the target receiving object.
[0041] According to a second aspect of the present application, there is provided a data processing device, comprising:
[0042] An acquisition module, used to acquire target data collected from a target device;
[0043] The sending module is used to send the target data when the data identifier of the target data is a first identifier, and the first identifier is used to indicate that the target data is data collected in a data peak scenario.
[0044] In a third aspect, this embodiment further provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.
[0045] In a fourth aspect, this embodiment further provides a computer-readable storage medium, which includes a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of the above method.
[0046] In a fifth aspect, this embodiment also provides a computer program product, including a computer program, which is stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device performs the steps of the above method.
[0047] In a sixth aspect, this embodiment further provides a vehicle, on which at least one of a data processing device, an electronic device, a computer-readable storage medium, and a computer program product is provided.
[0048] In summary, the embodiment of the present application obtains the target data collected for the target device through the above-mentioned technical solution, and sends the target data when the target data is data collected under a data peak scenario. Compared with the data sending method in the prior art, the present application can determine whether the data is data collected under a data peak scenario by detecting the data identifier of the target data. Once the target data is data collected under a data peak scenario, it can be sent. It can be seen that the present application adopts a more flexible data sending method, which ensures that the data collected under a data peak scenario can be sent completely, avoiding data distortion caused by data loss.
[0049] Other features and advantages of the present application will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] To more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present application. Those skilled in the art can also derive other drawings based on these drawings without inventive effort.
[0051] In order to more completely understand the present application and its beneficial effects, the following description will be given in conjunction with the accompanying drawings, wherein the same drawing numbers represent the same parts in the following description.
[0052] Figure 1 It is a schematic diagram of the related technology provided by this application;
[0053] Figure 2 is a first schematic diagram of a data processing flow provided in an exemplary embodiment provided in this application;
[0054] Figure 3 is a first schematic diagram of a data processing system provided in an exemplary embodiment provided in this application;
[0055] Figure 4 is a second schematic diagram of a data processing system provided in an exemplary embodiment provided by this application;
[0056] Figure 5 is a second schematic diagram of a data processing flow provided in an exemplary embodiment provided in this application;
[0057] Figure 6 is a schematic diagram of a data processing device provided in an exemplary embodiment of the present application;
[0058] Figure 7 Schematic diagram of the electronic device provided in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0060] like Figure 1 The diagram below shows how an existing vehicle-mounted ECU uploads data to a cloud server. The ECU collects characteristic information about the object being measured and sends it to the gateway via CAN communication. The gateway then passes the information to the T-BOX, which then uploads the data to the cloud via the wireless network.
[0061] However, the aforementioned data transmission process presents the following issues: data loss due to the limitations of the vehicle's CAN communication cycle. For example, in certain scenarios, the measured object's representative information suddenly generates a data spike. Existing technologies use a fixed data upload cycle, which inevitably results in information loss and, in turn, distortion of the data uploaded to the cloud by the T-BOX.
[0062] For example, if the test object is a battery pack, the current sensor has a data collection cycle of 10ms, while the CAN transmission driver has a task cycle of 1000ms. Generally, the data collection requirements for the current signal are not high, and the data sent according to the 1000ms cycle can still meet the requirements. However, in some scenarios, such as when an external battery short circuit occurs, the current value will rise in a very short time and then drop rapidly. When all 10ms current data collected within a certain period of time needs to be collected, the sending cycle and the collection cycle differ by 2 orders of magnitude, which will inevitably cause data peaks.
[0063] However, the existing technology uses a fixed period to upload data, which will inevitably cause the loss of representation information, and then cause the T-BOX to upload cloud data to be distorted.
[0064] In order to solve the above problems, the present application proposes a data processing method, device, electronic device, computer-readable storage medium and vehicle, which realize flexible data upload without changing the original upload data cycle (CAN communication cycle) and solve the problem of uploaded data distortion caused by data peak scenarios.
[0065] Specifically, for example, Figure 2 As shown, the data processing method in the present application can be applied to vehicles and other devices without limitation. The following describes each embodiment in detail using a vehicle as an example.
[0066] The data processing method in this application may at least include the following steps:
[0067] S10, acquiring target data collected from a target device;
[0068] In this embodiment, the vehicle can collect target data of the target device.
[0069] For example, in this embodiment, the target device may be a device to be detected in a vehicle, such as a battery pack, an engine, a chassis system, etc., without specific limitation.
[0070] The target data collected from the target device may be corresponding current data, voltage data, etc., and the type of the target data is not specifically limited in this embodiment.
[0071] S20 : When the data identifier of the target data is a first identifier, the target data is sent, where the first identifier is used to indicate that the target data is data collected in a data peak scenario.
[0072] In this embodiment, when the vehicle detects that the data identifier of the target data is the first identifier, the vehicle sends the target data.
[0073] It is worth noting that in this embodiment, the first identifier is used to indicate that the target data is data collected under a data peak scenario, so that the vehicle can send valuable data (i.e., data collected under a data peak scenario) accurately and completely, avoiding data distortion in a peak scenario.
[0074] Among them, the peak scenario refers to the phenomenon of a sharp increase in data traffic in a short period of time, which is similar to the peak of a flood. It is understandable that for different target devices, the time period and data volume of the peak phenomenon are different.
[0075] It can be seen that in the embodiment of the present application, by acquiring the target data collected for the target device and sending the target data when the target data is data collected under a data flood peak scenario, compared with the data sending method in the prior art, the present application can determine whether the data is data collected under a data flood peak scenario by detecting the data identifier of the target data. Once the target data is data collected under a data flood peak scenario, it can be sent. It can be seen that the present application adopts a more flexible data sending method, ensuring that the data collected under a data flood peak scenario can be sent completely, avoiding data distortion caused by data loss.
[0076] In one embodiment, in the above S10, “obtaining target data collected from the target device” may include:
[0077] S101 , taking out detection data located at a target position in a cache space storing detection data as target data; wherein the detection data is data collected for the target device.
[0078] In this embodiment, if Figure 3 As shown, the detection data collected by the sensor in the data acquisition corresponding system in the vehicle ECU is obtained, and whether the detection data needs to be quickly recorded is determined according to the data range of the detection data, and the detection data that needs to be quickly recorded is stored in the cache space.
[0079] Specifically, for example, Figure 4 As shown, taking the current sensor as an example, the current sensor data collection cycle is 10ms, while the CAN transmission drive task cycle is 1000ms. Under normal circumstances, the data collection requirements for the current signal are not high, and the data sent according to the 1000ms cycle can still meet the requirements. However, in some scenarios (such as battery pack abnormalities), when all the collected current data needs to be collected, due to the difference of 2 orders of magnitude between the sending cycle and the collection cycle, data peaks are bound to occur. In this embodiment, the detection data that can be collected is stored in the cache space.
[0080] In this way, the vehicle can take out the detection data located at the target position in the cache space from the cache space that stores the detection data as the target data to identify whether the target data is peak data (peak data can be data collected under a peak scenario), so that when the peak data is identified, it can be pushed into the CAN sending drive for sending.
[0081] In one embodiment, the cache space includes a cache queue, and the target position includes the tail position or the head position of the cache queue.
[0082] In this embodiment, if Figure 4As shown, the cache space can be specifically a cache queue, and the detection data stored in the queue is actually a data combination, for example, it can be recorded as [data, index], where "data" is the detection data and "index" is the data identifier.
[0083] On this basis, in this embodiment, the target position may be the tail position or the head position of the cache queue. Subsequently, each embodiment will be described by taking the target position as the head position as an example.
[0084] Among them, the data in this embodiment may include a first identifier and a second identifier. Combined with the above description, the first identifier can be used to indicate that the target data is data collected under a data peak scenario, and the second identifier can be used to indicate that the target data is not data collected under a data peak scenario.
[0085] Specifically, the first identifier may be “0”, and the second identifier may be represented by “non-0”, such as “1”.
[0086] In one embodiment, the data processing method of the present application may further include:
[0087] S30 : When the data identifier of the target data is not the first identifier, process the target data based on the detection data in the cache space.
[0088] In this embodiment, if the target data is not peak data (ie, the data identifier of the target data is not the first identifier), the target data may be processed based on the detection data in the cache space.
[0089] In this embodiment, the detection data may specifically be the first detection data that enters the target location at the next moment after the target data is taken out of the cache space.
[0090] In a specific embodiment, in the above S30, “processing the target data based on the detection data in the cache space” may include:
[0091] S301, determining, in the detection data of the cache space, first detection data that enters the target position after the target data is taken out of the cache space;
[0092] S302: Process the target data based on the first detection data.
[0093] In this embodiment, it is possible to first determine the first detection data that enters the target position at the next moment after the target data is taken out of the cache space, for example, Figure 4 As shown, after the target data D6 is taken out from the cache queue, the first detection data that enters the target position at the next moment is D5.
[0094] The vehicle can then process the target data based on the first detection data.
[0095] In a specific embodiment, in S302 above, “processing the target data based on the first detection data” may include:
[0096] S3021: When the data identifier of the first detection data is a second identifier, determine new target data based on the target data and the first detection data, where the second identifier is used to indicate that the target data is not data collected during a data peak scenario.
[0097] S3022: Replace the first detection data at the target position with the new target data.
[0098] In this embodiment, when the data identifier of the first detection data is the second identifier, it means that the first detection data is not peak data. At this time, new target data can be determined based on the target data and the first detection data, and the first detection data at the target position is replaced with the above new target data.
[0099] It can be understood that, in this embodiment, while the first detection data at the target position is replaced with the new target data, the target data that has been taken out of the cache queue can be deleted.
[0100] In a specific embodiment, in S3021 above, “determining new target data according to the target data and the first detection data” may include:
[0101] An average value of the target data and the reference data is calculated, and the average value is used to determine new target data.
[0102] In this embodiment, the vehicle may calculate an average value of the target data and the first detection data, and use the calculated average value as new target data.
[0103] In one embodiment, the data processing method of the present application may further include:
[0104] S40, adding 1 to the data identifier of the target data to obtain a new data identifier of the target data.
[0105] In conjunction with the above description, in this embodiment, the vehicle can calculate the average of the target data and the first detection data as the new target data. Furthermore, the data identifier of the new target data can be determined by adding 1 to the data identifier of the target data retrieved from the cache queue to obtain the data identifier of the new target data. For example, if the data identifier of the target data retrieved from the cache queue is 1, the data identifier of the new target data is 2.
[0106] In one embodiment, the data processing method of the present application may further include:
[0107] When the data identifier of the target data at the target position in the cache space reaches a preset counting threshold, the data identifier of the target data is set to a first identifier.
[0108] It should be noted that, in this embodiment, the preset counting threshold may be 100*SndCnt, wherein the initial value of SndCnt is 0, and SndCnt may be increased by 1 each time target data is detected to be filled into the sending drive (or each time the sending of target data is detected).
[0109] On this basis, if the vehicle detects that the data identifier of the target data at the target position in the cache space reaches a preset counting threshold, the data identifier of the target data can be set as the first identifier.
[0110] Specifically, if the first identifier is 0, then when it is detected that the data identifier of the target data at the target position in the cache space reaches the preset counting threshold 100*SndCnt, the data identifier of the target data can be restored to 0. In combination with the above embodiment, once the data identifier of the target data is detected to be the first identifier, the target data will be filled into the sending drive.
[0111] Through the above method, this embodiment can reassign non-peak data and fill it into the sending driver to clear the data queue in time, thereby solving the real-time requirements of data upload while also retaining the effectiveness of the uploaded data. In addition, it can prevent data interruption problems in the data uploaded after the vehicle is powered off.
[0112] In one embodiment, after the above S3022, “replacing the first detection data at the target position with the new target data”, the following steps may also be performed:
[0113] S3023 , executing again the step of taking out the detection data located at the target position in the cache space for storing the detection data as the target data.
[0114] It can be understood that, in combination with the above description, the present application actually continuously takes out the detection data from the head of the cache queue to perform peak data identification until all the detection data are identified.
[0115] In one embodiment, the data processing method of the present application may further include:
[0116] S50: When the data identifier of the first detection data is the first identifier, the first detection data is sent.
[0117] In combination with the above description, if the target data is not peak data, the first detection data that enters the target position after the target data is taken out of the cache space can be determined in the detection data of the cache space.
[0118] In this embodiment, if it is determined that the data identifier of the first detection data is the first identifier (that is, the first detection data is peak data), the first detection data can be directly filled in the sending drive, otherwise the new target data is determined based on the target data and the first detection data, and the first detection data at the target position is replaced with the new target data. Please refer to the above embodiment and will not repeat it here.
[0119] In one embodiment, the data processing method of the present application may further include:
[0120] S60, collecting detection data of the target device;
[0121] S70, marking the detection data with a data identifier, where the data identifier is used to indicate whether the detection data is data collected under a data peak scenario;
[0122] S80: Store the detection data with the data identifier into the cache space.
[0123] In combination with the above embodiment, in this embodiment, Figure 3 As shown, the detection data collected by the sensor in the data acquisition corresponding system in the vehicle ECU is obtained, and whether the detection data needs to be quickly recorded is determined according to the data range of the detection data, and the detection data that needs to be quickly recorded is stored in the cache space.
[0124] Specifically, for example, the vehicle can collect detection data of the target device and mark the detection data with a data identifier, wherein the data identifier in this embodiment can be used to indicate whether the detection data is data collected under a data peak scenario, and then the detection data with the data identifier can be stored in the cache space.
[0125] In a specific embodiment, in the above S70, “marking the detection data with a data label” may include:
[0126] S701 : When the detection data is greater than a preset data threshold, mark the detection data with a first identifier, wherein the first identifier is used to indicate that the detection data is peak data.
[0127] S702 : When the detection data is less than a preset data threshold, mark the detection data with a second identifier, wherein the second identifier is used to indicate that the detection data is non-peak data.
[0128] In this embodiment, taking the detection data as a current value as an example, the vehicle can identify whether the current value is greater than or equal to Th (ie, a preset data threshold set by the system in this embodiment).
[0129] When the current value is greater than the threshold, all current values greater than the threshold need to be sent to the cloud server). Therefore, the current value greater than or equal to the preset data threshold can be regarded as the "peak value", recorded as [Current1,0], and the current value less than the preset data threshold can be regarded as the "non-peak value", recorded as [Current2,1]. Among them, Current1 and Current2 are current values in A.
[0130] On this basis, the identified current value can be stored at the end of the queue, and the stored data format is array form: [data, index].
[0131] In one embodiment, in the above S10, “sending the target data” may include:
[0132] S101, sending the target data to a target driver;
[0133] S102: Send the target data received by the target driver within a sending cycle to a target receiving object.
[0134] Combined with the above description, if Figure 1 As shown, in this embodiment, the vehicle sends the data filled in the send drive through the CAN sending function according to the preset sending period (for example, 1000ms period) to the vehicle gateway through the message, and then sends it to the cloud server according to the existing network topology sending link. It will not be repeated here.
[0135] In general, in a specific embodiment, if Figure 5 As shown, the data processing method in this embodiment may include:
[0136] Step 1: The data acquisition module collects data representing the information current value in a period of 10ms;
[0137] Step 2: The module determines whether the current value is ≥ Th. If the current value is ≥ Th, the current value is marked as "peak value" and recorded as [Current1, 0]. If the current value is < Th, the current value is marked as "non-peak value" and recorded as [Current2, 1].
[0138] Step 3: Store the identified current value at the end of the queue in the array format: [data, index];
[0139] Step 4: Take the data from the head of the queue and determine the data tag of the taken data. If the data is peak data, push the data into the send driver. If the data is non-peak data, determine whether the next data entering the head of the queue is peak data. For steps, refer to 4.x:
[0140] Step 4.1: If the data entering the queue head at the next moment is the peak value, the value will be taken out and pushed into the sending driver;
[0141] Step 4.2: If the data entering the queue at the next moment is not a peak value, delete the data at the head of the queue and assign a value to the data entering the queue at the next moment. The peak value flag is incremented by 1, and the current value is assigned the average of the current value and the next current value.
[0142] Step 5: Re-get the value at the head of the cache queue to complete the judgment in step 4;
[0143] Step 6: The CAN send function sends the data entered into the send driver to the vehicle gateway via a message at a 1000ms period. The data is then sent to the cloud server via the existing network topology.
[0144] It can be seen that this application proposes a queue cache method to handle data peaks. At the same time, when the data peak scenario disappears, the queue data is reassigned to quickly clear the queue cache to ensure that the real-time data upload meets the requirements, including: proposing a method of using queue storage in combination with peak markers and data to solve the data peak in the vehicle ECU scenario; proposing a method for identifying the disappearance of data peaks and a method for processing non-peak data to clear the queue cache and retain valid data in time.
[0145] Through the above scheme, this application can solve the problem of data distortion on the uploaded network side caused by the "data peak" on the vehicle side without changing the original data upload cycle (CAN communication cycle); and after the data volume returns to normal, the data queue can be cleared in time to meet the real-time requirements of data upload while retaining the validity of the uploaded data. In addition, it can prevent data interruption scenarios in the data uploaded after the vehicle side is powered off.
[0146] Accordingly, the embodiment of the present application also provides a data processing device, such as Figure 6 As shown, the device may include:
[0147] An acquisition module 1001 is used to acquire target data collected from a target device;
[0148] The sending module 1002 is configured to send the target data when the data identifier of the target data is a first identifier, where the first identifier is used to indicate that the target data is data collected under a data peak scenario.
[0149] Optionally, the acquisition module 1001 is further configured to:
[0150] Taking out the detection data at a target position in the cache space from the cache space storing the detection data as the target data;
[0151] The detection data is data collected from the target device.
[0152] Optionally, the cache space includes a cache queue, and the target position includes the tail position or the head position of the cache queue.
[0153] Optionally, the data processing device in the present application further includes:
[0154] A processing module is configured to process the target data based on the detection data in the cache space when the data identifier of the target data is not the first identifier.
[0155] Optionally, the processing module is further configured to:
[0156] In the detection data of the cache space, it is determined that the target data enters the target position after being taken out of the cache space;
[0157] The target data is processed based on the first detection data.
[0158] Optionally, the processing module is further configured to:
[0159] In a case where the data identifier of the first detection data is a second identifier, determining new target data according to the target data and the first detection data, wherein the second identifier is used to indicate that the target data is not data collected under a data peak scenario;
[0160] The first detection data at the target position is replaced by the new target data.
[0161] Optionally, the processing module is further configured to:
[0162] An average value of the target data and the first detection data is calculated, and new target data is determined by the average value.
[0163] Optionally, the data processing device in the present application further includes:
[0164] The first identifier setting module is used to add 1 to the data identifier of the target data to obtain a new data identifier of the target data.
[0165] Optionally, the data processing device in the present application further includes:
[0166] The second identifier setting module is configured to set the data identifier of the target data to the first identifier when the data identifier of the target data at the target position in the cache space reaches a preset counting threshold.
[0167] Optionally, the processing module is further configured to:
[0168] The step of retrieving the detection data at the target position in the cache space from the cache space storing the detection data as the target data is performed again.
[0169] Optionally, the data processing device in the present application further includes:
[0170] The sending module is configured to send the first detection data when the data identifier of the first detection data is the first identifier.
[0171] Optionally, the data processing device in the present application further includes:
[0172] An acquisition module, used to collect detection data of the target device;
[0173] a marking module, configured to mark the detection data with a data identifier, wherein the data identifier is used to indicate whether the detection data is data collected under a data peak scenario;
[0174] The storing module is used to store the detection data with the data identifier into the cache space.
[0175] Optionally, the tag module is further configured to:
[0176] In a case where the detection data is greater than or equal to a preset data threshold, a data identifier is marked for the detection data as a first identifier, wherein the first identifier is used to indicate that the detection data is peak data.
[0177] Optionally, the tag module is further configured to:
[0178] When the detection data is less than a preset data threshold, the data identifier of the detection data is determined to be a second identifier, wherein the second identifier is used to indicate that the detection data is non-peak data.
[0179] Optionally, the sending module 1002 is further configured to:
[0180] Sending the target data to a target driver;
[0181] The target data received by the target driver during the sending cycle is sent to the target receiving object.
[0182] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0183] Accordingly, the embodiment of the present application further provides an electronic device, such as Figure 7 As shown, Figure 7 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 1100 includes a processor 1101 having one or more processing cores, a memory 1102 having one or more computer-readable storage media, and a computer program stored in the memory 1102 and executable on the processor. The processor 1101 is electrically connected to the memory 1102. Those skilled in the art will understand that the vehicle structure shown in the figure does not constitute a limitation of the vehicle, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0184] The processor 1101 is the control center of the electronic device 1100. It connects the various parts of the entire electronic device 1100 using various interfaces and lines. By running or loading software programs and / or units stored in the memory 1102 and calling data stored in the memory 1102, it executes various functions of the electronic device 1100 and processes data, thereby monitoring the entire electronic device 1100. The processor 1101 can be a processor (Central Processing Unit, CPU), a graphics processing unit (GPU), a network processor (Network Processor, NP), etc., and can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application.
[0185] In the embodiment of the present application, the processor 1101 in the electronic device 1100 loads instructions corresponding to one or more application processes into the memory 1102 according to the following steps, and the processor 1101 runs the application stored in the memory 1102 to implement various functions, such as:
[0186] Obtain target data collected from target devices;
[0187] In a case where the data identifier of the target data is a first identifier, the target data is sent, where the first identifier is used to indicate that the target data is data collected in a data peak scenario.
[0188] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0189] Optional, such as Figure 7As shown, the electronic device 1100 further includes: a touch screen 1103, a radio frequency circuit 1104, an audio circuit 1105, an input unit 1106, and a power supply 1107. Among them, the processor 1101 is electrically connected to the touch screen 1103, the radio frequency circuit 1104, the audio circuit 1105, the input unit 1106, and the power supply 1107 respectively. Those skilled in the art will understand that Figure 7 The vehicle structure shown in the figure does not constitute a limitation to the vehicle, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0190] The touch display screen 1103 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 1103 may include a display panel and a touch panel. Among them, the display panel can be used to display information input by the user or information provided to the user and various graphical user interfaces of the vehicle, which can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode), etc. The touch panel can be used to collect user touch operations on or near it (such as operations performed by the user using any suitable object or accessory such as a finger, stylus, etc. on or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts: a touch display system and a touch controller. Among them, the touch display system detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch display system, converts it into touch point coordinates, and then sends it to the processor 1101, and can receive commands sent by the processor 1101 and execute them. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 1101 to determine the type of touch event. The processor 1101 then provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 1103 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize input and output functions. That is, the touch display screen 1103 can also be used as part of the input unit 1106 to realize the input function.
[0191] The RF circuit 1104 may be used to transmit and receive RF signals, thereby establishing wireless communication with network devices or other vehicles through wireless communication, and transmitting and receiving signals with network devices or other vehicles.
[0192] Audio circuit 1105 can be used to provide an audio interface between the user and the vehicle through a speaker and microphone. Audio circuit 1105 converts received audio data into electrical signals and transmits them to the speaker, which then converts them into sound signals for output. The microphone, on the other hand, converts collected sound signals into electrical signals, which are received by audio circuit 1105 and converted into audio data. This audio data is then output to processor 1101 for processing, then transmitted via RF circuit 1104 to, for example, another vehicle, or to memory 1102 for further processing. Audio circuit 1105 may also include an earphone jack to allow communication between an external headset and the vehicle.
[0193] The input unit 1106 may be configured to receive input digital, character information, or user feature information (such as fingerprint, iris, or facial information), and to generate keyboard, mouse, joystick, optical, or trackball signal input related to user settings and function control.
[0194] Power supply 1107 is used to supply power to various components of electronic device 1100. Optionally, power supply 1107 can be logically connected to processor 1101 via a power management device, thereby enabling the power management device to manage charging, discharging, and power consumption. Power supply 1107 can also include one or more DC or AC power supplies, a recharging device, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0195] although Figure 7 Not shown, the electronic device 1100 may further include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0196] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0197] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0198] To this end, an embodiment of the present application provides a computer-readable storage medium storing a plurality of computer programs. The computer programs can be loaded by a processor to execute any one of the data processing methods provided in the embodiments of the present application. The computer programs can execute the following steps of the data processing method:
[0199] Obtain target data collected from target devices;
[0200] In a case where the data identifier of the target data is a first identifier, the target data is sent, where the first identifier is used to indicate that the target data is data collected in a data peak scenario.
[0201] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0202] The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0203] Since the computer program stored in the computer-readable storage medium can execute any data processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any data processing method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0204] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0205] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0206] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0207] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0208] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0209] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0210] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology for information storage. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media such as modulated communication signals and carrier waves.
[0211] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of this application, "plurality" means two or more, unless otherwise specifically defined.
[0212] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0213] The embodiments, implementation methods and related technical features of the present application can be combined and replaced with each other unless there is any conflict.
[0214] The above are merely preferred embodiments of the present application and do not constitute any form of limitation to the present application. However, any simple modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.
Claims
1. A data processing method, characterized in that: The method comprises: Obtain target data collected from target devices; In a case where the data identifier of the target data is a first identifier, the target data is sent, where the first identifier is used to indicate that the target data is data collected in a data peak scenario.
2. The data processing method according to claim 1, wherein: The acquiring of target data collected from the target device includes: Taking out the detection data at a target position in the cache space from the cache space storing the detection data as the target data; The detection data is data collected from the target device.
3. The data processing method according to claim 2, characterized in that: The cache space includes a cache queue, and the target position includes the tail position or the head position of the cache queue.
4. The data processing method according to claim 2, wherein: The method further comprises: When the data identifier of the target data is not the first identifier, the target data is processed based on the detection data in the cache space.
5. The data processing method according to claim 4, characterized in that: Processing the target data based on the detection data in the cache space includes: In the detection data of the cache space, it is determined that the target data enters the target position after being taken out of the cache space; The target data is processed based on the first detection data.
6. The data processing method according to claim 5, characterized in that: Processing the target data based on the first detection data includes: In a case where the data identifier of the first detection data is a second identifier, determining new target data according to the target data and the first detection data, wherein the second identifier is used to indicate that the target data is not data collected under a data peak scenario; The first detection data at the target position is replaced by the new target data.
7. The data processing method according to claim 6, characterized in that: The determining new target data according to the target data and the reference data includes: An average value of the target data and the first detection data is calculated, and new target data is determined by the average value.
8. The data processing method according to claim 6, characterized in that: The method further comprises: The data identifier of the target data is increased by 1 to obtain a new data identifier of the target data.
9. The data processing method according to claim 8, characterized in that: The method further comprises: When the data identifier of the target data at the target position in the cache space reaches a preset counting threshold, the data identifier of the target data is set to a first identifier.
10. The data processing method according to claim 6, characterized in that: After replacing the first detection data at the target position with the new target data, the method further includes: The step of retrieving the detection data at the target position in the cache space for storing the detection data as the target data is performed again.
11. The data processing method according to claim 5, characterized in that: The method further comprises: In a case where the data identifier of the first detection data is the first identifier, the first detection data is sent.
12. The data processing method according to claim 2, wherein: Before acquiring the target data collected from the target device, the method further includes: Collect detection data of target equipment; Marking the detection data with a data identifier, where the data identifier is used to indicate whether the detection data is data collected under a data peak scenario; The detection data with the data identifier is stored in the cache space.
13. The data processing method according to claim 12, characterized in that: The data identification for marking the detection data includes: In a case where the detection data is greater than or equal to a preset data threshold, a data identifier is marked for the detection data as a first identifier, wherein the first identifier is used to indicate that the detection data is peak data.
14. The data processing method according to claim 12, wherein: The data identification for marking the detection data includes: In a case where the detection data is less than a preset data threshold, a data identifier is marked for the detection data as a second identifier, wherein the second identifier is used to indicate that the detection data is non-peak data.
15. The data processing method according to any one of claims 1 to 14, characterized in that: The sending of the target data includes: Sending the target data to a target driver; The target data received by the target driver during the sending cycle is sent to the target receiving object.
16. A data processing device, characterized in that: The data processing device comprises: An acquisition module, used to acquire target data collected from a target device; The sending module is used to send the target data when the data identifier of the target data is a first identifier, where the first identifier is used to indicate that the target data is data collected under a data peak scenario.
17. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to perform the method according to any one of claims 1 to 15.
18. A computer-readable storage medium, characterized in that The method comprises a computer program, and when the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the method according to any one of claims 1 to 15.
19. A computer program product, characterized in that The method comprises a computer program stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device executes any one of the methods described in claims 1 to 15.
20. A vehicle, characterized in that: The vehicle is provided with at least one of the data processing device according to claim 16, the electronic device according to claim 17, the computer-readable storage medium according to claim 18, and the computer program product according to claim 19.