Data transmission method, device, equipment, medium and product
By receiving data acquisition instructions from the acquisition device in the ECU data interaction for data acquisition and analysis, the acquisition rules are obtained, and the acquisition rules are used for collection during subsequent data acquisition, which solves the delay problem caused by large data transmission volume and improves the Data transmission efficiency and ensure data accuracy.
Patent Information
- Application Number
- CN202411491284.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-02-18
AI Technical Summary
In ECU data interaction, large data transmission volume leads to delay, affecting the information interaction efficiency of each ECU on the bus.
By receiving data acquisition instructions sent by the acquisition device, data acquisition rules are collected and analyzed. In subsequent data acquisition, the acquisition rules are used for collection, reducing the data transmission amount, and sending the collected data and acquisition rules to the acquisition device. Perform verification.
It effectively reduces the amount of data transmission, reduces the bus load rate, avoids the ECU data interaction delay, improves the efficiency of data transmission, and ensures the accuracy of data.
Smart Images

Figure CN119484319A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission, and in particular to a data transmission method, apparatus, device, medium and product. Background Art
[0002] ECU (Electronic Control Unit), also known as the car's "on-board computer", is used to control the car's driving status and realize its various functions. It mainly uses various sensors and bus data collection and exchange to judge the vehicle status and the driver's intention and control the car through actuators. Currently, vehicles are equipped with multiple ECUs, such as engine ECU, gearbox ECU, etc.
[0003] When the acquisition frequency is high and the time is long, the ECU will have a large number of requests and replies. The vehicle bus is shared by all ECUs, which will cause a large amount of data transmission on the bus and may cause delays in data interaction between each ECU.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a data transmission method, device, equipment, medium and product, aiming to solve the technical problem of ECU data interaction delay caused by large data transmission volume.
[0006] To achieve the above purpose, the present application proposes a data transmission method, which is applied to a vehicle side and includes:
[0007] Receiving a data collection instruction sent by a data collection device, and performing data collection based on the data collection instruction to obtain a data collection result, wherein the data collection result includes first collected data, second collected data, and a data collection rule;
[0008] The data collection result is sent to the data collection device, and the data collection device verifies the second collected data based on the first collected data and data collection rules to obtain transmission data.
[0009] In one embodiment, the step of performing data collection based on the data collection instruction to obtain a data collection result includes:
[0010] Parsing the data acquisition instruction to obtain an ID code of an electronic controller unit ECU, an ID code of a collection signal DID code, a collection duration, and a collection frequency;
[0011] Based on the DID code, the collection frequency and the collection duration, data is collected by the ECU to obtain first collected data;
[0012] The first collected data is analyzed to obtain a data collection rule, and based on the data collection rule, data is collected through the ECU to obtain second collected data.
[0013] In one embodiment, the step of acquiring first collected data by collecting data through the ECU based on the DID code, the collection frequency, and the collection duration includes:
[0014] Analyzing the DID code by the ECU to obtain a collection signal value, and creating a data storage area based on the collection signal value;
[0015] According to the acquisition frequency, data is collected on a signal source corresponding to the collected signal value by the ECU;
[0016] When the collection time is reached, data collection is stopped, first collected data is obtained, and the first collected data is stored in the data storage area.
[0017] In one embodiment, the step of analyzing the first collected data to obtain a data collection rule, and based on the data collection rule, performing data collection through the ECU to obtain second collected data includes:
[0018] Analyzing the first collected data to obtain data segments and segment values;
[0019] Constructing data collection rules based on the data segments and segment values;
[0020] Based on the data collection rule, the ECU collects data from the signal source to obtain second collected data.
[0021] In addition, to achieve the above purpose, the present application also proposes a data transmission method, which is applied to a data acquisition device and includes:
[0022] Sending a data collection instruction to the vehicle end, and the vehicle end performs data collection based on the data collection instruction to obtain a data collection result, wherein the data collection result includes first collected data, second collected data and a data collection rule;
[0023] Receive the data collection result sent by the vehicle end, verify the second collected data based on the first collected data and the data collection rule, and obtain transmission data.
[0024] In addition, to achieve the above purpose, the present application also proposes a data acquisition device, which is applied to a vehicle end and includes:
[0025] A receiving module, used for receiving a data collection instruction sent by a data collection device, and performing data collection based on the data collection instruction to obtain a data collection result, wherein the data collection result includes first collection data, second collection data and a data collection rule;
[0026] The verification module is used to send the data collection result to the data collection device, and the data collection device verifies the second collected data based on the first collected data and data collection rules to obtain transmission data.
[0027] In addition, to achieve the above objectives, the present application also proposes a data transmission device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data transmission method described above.
[0028] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data transmission method described above are implemented.
[0029] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the data transmission method described above are implemented.
[0030] One or more technical solutions proposed in this application have at least the following technical effects:
[0031] The embodiment of the present application proposes a data transmission method, device, equipment, storage medium and computer program product, which receives a data acquisition instruction sent by a data acquisition device, performs data acquisition based on the data acquisition instruction to obtain a data acquisition result, and the data acquisition result includes a first acquisition data, a second acquisition data and a data acquisition rule; sends the data acquisition result to the data acquisition device, and the data acquisition device verifies the second acquisition data based on the first acquisition data and the data acquisition rule to obtain the transmission data. Thus, when receiving the data acquisition instruction of the data acquisition device, corresponding data acquisition is performed, and during the acquisition process, data is synchronously extracted for rule analysis to obtain the corresponding data acquisition rule, and the data acquisition is performed according to the data acquisition rule when the data is subsequently acquired, so that the amount of data subsequently transmitted becomes smaller, and the first acquisition data, the second acquisition data and the data acquisition rule are all sent to the data acquisition device, so that the data acquisition device verifies the data, ensures the accuracy of the data, solves the problem of ECU data interaction delay caused by large data transmission volume, and improves the efficiency of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0033] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0034] Figure 1 A flowchart of the first embodiment of the data transmission method of the present application is provided;
[0035] Figure 2 A schematic diagram of data segmentation and segment values involved in the data transmission method of the present application;
[0036] Figure 3 A flowchart of the second embodiment of the data transmission method of the present application is provided;
[0037] Figure 4 This is a schematic diagram of the module structure of the data acquisition device according to an embodiment of the present application;
[0038] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the data transmission method in the embodiment of the present application.
[0039] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0040] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0041] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0042] The main solution of the embodiment of the present application is: parsing the data acquisition instruction to obtain the ID code of the electronic controller unit ECU, the DID code of the acquisition signal, the acquisition duration and the acquisition frequency; based on the DID code, the acquisition frequency and the acquisition duration, the ECU performs data acquisition to obtain the first acquisition data; analyzing the first acquisition data to obtain the acquisition rule, and based on the acquisition rule, the ECU performs data acquisition to obtain the second acquisition data. The ECU analyzes the DID code to obtain the acquisition signal value, and creates a data storage area based on the acquisition signal value; according to the acquisition frequency, the ECU performs data acquisition on the signal source corresponding to the acquisition signal value; when the acquisition duration is reached, the data acquisition is stopped to obtain the first acquisition data, and the first acquisition data is stored in the data storage area. The first acquisition data is analyzed to obtain data segmentation and segmentation value; based on the data segmentation and segmentation value, the acquisition rule is constructed; based on the acquisition rule, the ECU performs data acquisition on the signal source to obtain the second acquisition data. A data acquisition instruction is sent to the vehicle end, and the vehicle end performs data acquisition based on the data acquisition instruction to obtain a data acquisition result, wherein the data acquisition result includes first acquisition data, second acquisition data and acquisition rules; the data acquisition result sent by the vehicle end is received, and the second acquisition data is verified based on the first acquisition data and the acquisition rules to obtain transmission data. The acquisition rules are analyzed based on the first acquisition data to obtain data segmentation and segmentation value; the second acquisition data is data verified by the data segmentation and segmentation value to obtain a verification result; when the verification result is passed, the transmission data is obtained. Thus, the problem of ECU data interaction delay caused by large data transmission volume is solved, data transmission is realized, and the efficiency of data transmission is improved. Based on the scheme of the present invention, when the acquisition frequency is high and the time is long, there will be a large number of requests and replies. The vehicle bus is shared by all ECUs, which will cause a large amount of data transmission on the bus, which may cause delays in data interaction between each ECU, thereby inefficient. A data transmission method is designed, and the effectiveness of the data transmission method of the present invention is verified when data is transmitted. Finally, the efficiency of data transmission through the method of the present invention is significantly improved.
[0043] In this embodiment, for the convenience of description, the following description is made with the data transmission device as the execution subject.
[0044] In the prior art, when analyzing vehicle faults, it is necessary to collect vehicle data at certain intervals and determine the cause of the fault through changes in the data. For example, if the sensor value is collected once every 50 ms, then data needs to be collected 200 times in 10 minutes, and the collection device needs to communicate and interact with the ECU 200 times. This will cause excessive data transmission on the vehicle bus, which may cause transmission delays and affect the information interaction of each ECU on the bus.
[0045] The present application provides a solution. Since most ECU data change linearly and regularly, when collecting linearly changing data, the ECU can be specified to perform temporary storage and regular statistics inside the ECU according to the set frequency and collection duration. When the data collection is completed, only the segmentation mark data in the data change rule needs to be replied to the collection device. The collection device can calculate the data at other time points through these mark data. In this way, the data transmission volume of the vehicle bus during data collection can be greatly reduced, the bus load rate can be reduced, and the communication efficiency of each ECU on the vehicle bus will not be affected.
[0046] From the above embodiments, it can be seen that the present application receives user questions; analyzes the user questions to obtain key information, and matches the pre-built intention slot based on the key information to obtain a matching slot; confirms the intention of the user questions according to the matching slot to obtain data transmission results. Thus, corresponding data collection is performed when the data collection instruction of the data collection device is received, and data is synchronously extracted during the collection process for rule analysis to obtain corresponding data collection rules. When data is subsequently collected, data is collected according to the data collection rules, so that the amount of data subsequently transmitted becomes smaller, and the first collected data, the second collected data and the data collection rules are all sent to the data collection device so that the data collection device verifies the data, ensuring the accuracy of the data, solving the problem of ECU data interaction delay caused by large data transmission volume, and improving the efficiency of data transmission.
[0047] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, an intention device device, etc. that can realize the above functions. The following takes a data transmission device as an example to illustrate this embodiment and the following embodiments.
[0048] Based on this, the embodiment of the present application provides a data transmission method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the data transmission method of the present application.
[0049] In this embodiment, the data transmission method is applied to the vehicle side, and the method includes steps S01 to S02:
[0050] Step S01, receiving a data collection instruction sent by a data collection device, and performing data collection based on the data collection instruction to obtain a data collection result, wherein the data collection result includes first collection data, second collection data and a data collection rule;
[0051] It should be clear that ECU (Electronic Control Unit), also known as the car's "on-board computer", is used to control the car's driving status and realize its various functions. It mainly uses various sensors and bus data collection and exchange to judge the vehicle status and the driver's intention and control the car through actuators. Currently, vehicles are equipped with multiple ECUs, such as engine ECU, gearbox ECU, etc. When the collection frequency is high and the time is long, the ECU will have a large number of requests and replies. The vehicle bus is shared by all ECUs, which will cause a large amount of data transmission on the bus, which may cause delays in data interaction between ECUs.
[0052] Therefore, the vehicle end in this embodiment receives the data collection instruction sent from the data collection device, and performs data collection based on the data collection instruction to obtain the data collection result. It should be clear that the data collection result includes at least the first collected data, the second collected data and the data collection rules, among which the first collected data can be understood as the specific collected data, and the data collection rules are obtained by analyzing the first collected data. It can clearly know the rules in the collected data, and then the subsequent data can be collected based on the data collection rules to obtain the second collected data with incomplete data volume but regularity.
[0053] Step S02: sending the data collection result to the data collection device, and the data collection device verifies the second collected data based on the first collected data and data collection rules to obtain transmission data.
[0054] After obtaining the data collection results, they can be sent to the data collection device, which verifies the second collected data based on the first collected data and the data collection rules to obtain specific transmission data. In the above embodiment, it has been explained that the second collected data is collected based on the data collection rules, so the data collection rules and the first collected data can be used for verification. After confirming the correctness of the data collection rules, the second collected data is analyzed and verified through the data collection rules to obtain the final transmission data.
[0055] Specifically, the above step S01, the step of performing data collection based on the data collection instruction to obtain the data collection result includes:
[0056] Step S011, parsing the data acquisition instruction to obtain the ID code of the electronic controller unit ECU, the DID code of the acquisition signal, the acquisition duration and the acquisition frequency;
[0057] Step S012, based on the DID code, the acquisition frequency and the acquisition duration, data is acquired through the ECU to obtain first acquired data;
[0058] Step S013: Analyze the first collected data to obtain a data collection rule, and based on the data collection rule, collect data through the ECU to obtain second collected data.
[0059] After receiving the data collection instruction, it is parsed to obtain the ID code of the electronic controller unit ECU for data collection, the DID code of the collection signal (data source), the collection duration and the collection frequency. The decentralized identity identifier (DID) is a new type of identity recognition standard that aims to allow individuals and entities to own and control their identity information without relying on a centralized identity provider.
[0060] Then, based on the DID code, the collection frequency and the collection duration, the corresponding ECU is controlled by the identity identifier ID code to collect data, and the first collected data is obtained;
[0061] In order to avoid excessive data collection and resulting in inefficient transmission, in this embodiment, the first collected data is analyzed to obtain a data collection rule, and subsequent data collection is performed based on the data collection rule to obtain the second collected data.
[0062] More specifically, in the above step S012, based on the DID code, the acquisition frequency and the acquisition duration, the step of acquiring the first acquisition data by the ECU includes:
[0063] Step S0121, analyzing the DID code by the ECU to obtain a collection signal value, and creating a data storage area based on the collection signal value;
[0064] Step S0122, collecting data on a signal source corresponding to the collected signal value through the ECU according to the collection frequency;
[0065] Step S0123, when the collection time is reached, stop data collection, obtain first collected data, and store the first collected data in the data storage area.
[0066] In order to collect data through the ECU, the signal source for collection must be known first. Therefore, in this embodiment, the ECU analyzes the DID code to obtain the collected signal value and simultaneously creates a data storage area;
[0067] In this embodiment, the engine ECU is taken as an example. The DID is 0x8001, which represents the speed signal value. The total acquisition time is 600s, and the acquisition frequency is 50ms. After the engine ECU receives it, a data storage area will be temporarily opened inside the ECU. The value of the signal to be read will be determined based on the DID, and then the speed data will be saved in the data storage area once every 50ms at the acquisition frequency until the total time of 600s is reached. At this time, the data obtained is the first acquisition data.
[0068] Furthermore, in the above step S013, the step of analyzing the first collected data to obtain a data collection rule, and based on the data collection rule, collecting data through the ECU to obtain the second collected data includes:
[0069] Step S0131, analyzing the first collected data to obtain data segments and segment values;
[0070] Step S0132, constructing data collection rules based on the data segments and segment values;
[0071] Step S0133: Based on the data collection rule, the ECU collects data from the signal source to obtain second collected data.
[0072] After the total time is reached, the engine ECU does not need to reply all the stored data to the data acquisition device because there is too much data. Rules can be summarized based on the collected data, because the changes in linear data are regular, and only the time and value of each segment point need to be replied to the data acquisition device. In this embodiment, the collected values are as follows: Figure 2 As shown, (time1, value1), (time2, value2), (time3, value3), (time4, value4), (time5, value5) represent the relationship between data segments and segment values. For linear data, this has observable regularity, and the data collection rules can be constructed through data segments (time) and segment values (value, value).
[0073] Then, when collecting data, it is no longer necessary to obtain all the data, but rather to obtain data with regularity to obtain the second collected data.
[0074] This embodiment adopts the above scheme, specifically by receiving the data acquisition instruction sent by the data acquisition device, performing data acquisition based on the data acquisition instruction to obtain the data acquisition result, the data acquisition result includes the first acquisition data, the second acquisition data and the acquisition rule; the data acquisition result is sent to the data acquisition device, and the data acquisition device verifies the second acquisition data based on the first acquisition data and the acquisition rule to obtain the transmission data. Thus, when the data acquisition instruction of the data acquisition device is received, the corresponding data acquisition is performed, and during the acquisition process, the data is synchronously extracted for rule analysis to obtain the corresponding acquisition rule, and the data acquisition is performed according to the acquisition rule when the data is subsequently acquired, so that the amount of data subsequently transmitted becomes smaller, and the first acquisition data, the second acquisition data and the acquisition rule are all sent to the data acquisition device, so that the data acquisition device verifies the data, ensures the accuracy of the data, solves the problem of ECU data interaction delay caused by large data transmission volume, and improves the efficiency of data transmission.
[0075] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 The data transmission method is also applied to data acquisition equipment, and the method includes steps S03 to S04:
[0076] Step S03, sending a data collection instruction to the vehicle end, and the vehicle end performs data collection based on the data collection instruction to obtain a data collection result, wherein the data collection result includes first collected data, second collected data and data collection rules;
[0077] Step S04, receiving the data collection result sent by the vehicle end, verifying the second collected data based on the first collected data and data collection rules, and obtaining transmission data.
[0078] This embodiment provides a specific solution of a data acquisition device. In this embodiment, the data acquisition device can be a diagnostic device for performing vehicle diagnosis. When the vehicle engine is detected, the data acquisition device can send a data acquisition instruction to the vehicle end. The vehicle end performs data acquisition based on the data acquisition instruction to obtain a data acquisition result, and sends the data acquisition result back to the data acquisition device.
[0079] It is clear in the above embodiments that the data collection results include the first collected data, the second collected data and the collection rules. Therefore, after receiving the data collection results sent back by the vehicle end, the second collected data can be verified by the first collected data and the collection rules to obtain the transmission data. It should be clear that the final transmission data can be obtained by splicing the first collected data after verifying the second collected data, and the specific setting should be based on actual business needs.
[0080] Specifically, the above step S04, receiving the data collection result sent by the vehicle end, and calculating the second collected data based on the first collected data and the data collection rule to obtain the final data collection result, includes:
[0081] Step S041, analyzing the data collection rule based on the first collected data to obtain data segments and segment values;
[0082] Step S042, performing data verification on the second collected data through the data segmentation and segmentation value to obtain a verification result;
[0083] Step S043, when the verification result is passed, obtain the transmission data.
[0084] After the data acquisition device receives the time and value of each segmentation point replied by the engine ECU, the value corresponding to any time point can be calculated by an algorithm. For example, to calculate the value of time point timeX, first determine that the segmentation points before and after timeX are (time3, value3) and (time4, value4), respectively. Then, according to the calculation formula valueX=value3+(value4-value3) / (time4-time3)*(timeX-time3), the value of the second collected data can be obtained. In order to verify whether the result is correct, in this embodiment, the data acquisition rules are analyzed based on the first collected data to obtain data segmentation and segmentation values, and whether the data acquisition rules are reasonable are judged. Subsequently, data verification is performed on the second collected data through data segmentation and segmentation values to verify whether the second collected data complies with the data acquisition rules. If the verification is passed, the transmission data can be output based on the second collected data alone, or the first collected data and the second collected data can be combined to obtain the transmission data.
[0085] This embodiment uses the above scheme, specifically by sending a data collection instruction to the vehicle end, and the vehicle end performs data collection based on the data collection instruction to obtain a data collection result, and the data collection result includes the first collection data, the second collection data and the collection rule; the data collection result sent by the vehicle end is received, and the second collection data is verified based on the first collection data and the collection rule to obtain the transmission data. Therefore, when the data collection instruction of the collection device is received, the corresponding data collection is performed, and during the collection process, the data is synchronously extracted for rule analysis to obtain the corresponding collection rule, and the data is collected according to the collection rule when the data is subsequently collected, so that the amount of data subsequently transmitted becomes smaller, and the first collection data, the second collection data and the collection rule are all sent to the collection device, so that the collection device verifies the data, ensures the accuracy of the data, solves the problem of ECU data interaction delay caused by large data transmission volume, and improves the efficiency of data transmission.
[0086] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the data transmission method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0087] This application also provides a data transmission device, please refer to Figure 4 The device is applied to a vehicle end, and the device comprises:
[0088] A receiving module 10 is used to receive a data collection instruction sent by a data collection device, and to collect data based on the data collection instruction to obtain a data collection result, wherein the data collection result includes first collected data, second collected data and a data collection rule;
[0089] The verification module 20 is used to send the data collection result to the data collection device, and the data collection device verifies the second collected data based on the first collected data and data collection rules to obtain transmission data.
[0090] The data acquisition device provided by the present application adopts the data transmission method in the above embodiment, which can solve the technical problem of ECU data interaction delay caused by large data transmission volume. Compared with the prior art, the beneficial effects of the data acquisition device provided by the present application are the same as the beneficial effects of the data transmission method provided by the above embodiment, and other technical features in the data acquisition device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0091] The present application provides a data transmission device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data transmission method in the above-mentioned embodiment one.
[0092] Reference below Figure 5 , which shows a schematic diagram of the structure of a data transmission device suitable for implementing the embodiment of the present application. The data transmission device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The data transmission device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0093] like Figure 5 As shown, the data transmission device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the data transmission device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the data transmission device to communicate with other devices wirelessly or by wire to exchange data. Although the data transmission device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0094] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code 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 device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0095] The data transmission device provided by the present application adopts the data transmission method in the above embodiment, which can solve the technical problem of ECU data interaction delay caused by large data transmission volume. Compared with the prior art, the beneficial effects of the data transmission device provided by the present application are the same as the beneficial effects of the data transmission method provided by the above embodiment, and the other technical features in the data transmission device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0096] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0097] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0098] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the data transmission method in the above-mentioned embodiment.
[0099] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may 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 or 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 this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0100] The computer-readable storage medium may be included in the data transmission device; or may exist independently without being assembled into the data transmission device.
[0101] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the data transmission device, the data transmission device: receives the data collection instruction sent by the data collection device, performs data collection based on the data collection instruction to obtain the data collection result, and the data collection result includes the first collection data, the second collection data and the data collection rules; sends the data collection result to the data collection device, and the data collection device verifies the second collection data based on the first collection data and the data collection rules to obtain the transmission data.
[0102] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0103] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the 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 square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart 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.
[0104] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0105] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned data transmission method, and can solve the technical problem of ECU data interaction delay caused by large data transmission volume. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the data transmission method provided by the above-mentioned embodiment, and will not be repeated here.
[0106] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned data transmission method when executed by a processor.
[0107] The computer program product provided by the present application can solve the technical problem of ECU data interaction delay caused by large data transmission volume. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the data transmission method provided by the above embodiment, which will not be repeated here.
[0108] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A data transmission method, characterized in that: The method is applied to a vehicle side, and the method comprises: Receiving a data collection instruction sent by a data collection device, and performing data collection based on the data collection instruction to obtain a data collection result, wherein the data collection result includes first collected data, second collected data, and a data collection rule; The data collection result is sent to the data collection device, and the data collection device verifies the second collected data based on the first collected data and data collection rules to obtain transmission data.
2. The method according to claim 1, characterized in that The step of performing data acquisition based on the data acquisition instruction to obtain a data acquisition result comprises: Parsing the data acquisition instruction to obtain an ID code of an electronic controller unit ECU, an ID code of a collection signal DID code, a collection duration, and a collection frequency; Based on the DID code, the collection frequency and the collection duration, data is collected by the ECU to obtain first collected data; The first collected data is analyzed to obtain a data collection rule, and based on the data collection rule, data is collected through the ECU to obtain second collected data.
3. The method according to claim 2, characterized in that The step of acquiring first collected data by collecting data through the ECU based on the DID code, the collection frequency, and the collection duration includes: Analyzing the DID code by the ECU to obtain a collection signal value, and creating a data storage area based on the collection signal value; According to the acquisition frequency, data is collected on a signal source corresponding to the collected signal value by the ECU; When the collection time is reached, data collection is stopped, first collected data is obtained, and the first collected data is stored in the data storage area.
4. The method according to claim 3, characterized in that The step of analyzing the first collected data to obtain a data collection rule, and based on the data collection rule, collecting data through the ECU to obtain second collected data includes: Analyzing the first collected data to obtain data segments and segment values; Constructing data collection rules based on the data segments and segment values; Based on the data collection rule, the ECU collects data from the signal source to obtain second collected data.
5. A data transmission method, characterized in that: The method is applied to a data acquisition device, and the method comprises: Sending a data collection instruction to the vehicle end, and the vehicle end performs data collection based on the data collection instruction to obtain a data collection result, wherein the data collection result includes first collected data, second collected data and a data collection rule; Receive the data collection result sent by the vehicle end, verify the second collected data based on the first collected data and the data collection rule, and obtain transmission data.
6. The method according to claim 5, characterized in that The step of receiving the data collection result sent by the vehicle end, and calculating the second collected data based on the first collected data and the data collection rule to obtain the final data collection result comprises: Analyze the data collection rule based on the first collected data to obtain data segments and segment values; Performing data verification on the second collected data through the data segmentation and segmentation value to obtain a verification result; When the verification result is passed, transmission data is obtained.
7. A data acquisition device, characterized in that: The device is applied to a vehicle end, and comprises: A receiving module, used for receiving a data collection instruction sent by a data collection device, and performing data collection based on the data collection instruction to obtain a data collection result, wherein the data collection result includes first collection data, second collection data and a data collection rule; The verification module is used to send the data collection result to the data collection device, and the data collection device verifies the second collected data based on the first collected data and data collection rules to obtain transmission data.
8. A data transmission device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data transmission method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 6 are implemented.