[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108871782A - A kind of engine data acquisition method and device - Google Patents

A kind of engine data acquisition method and device Download PDF

Info

Publication number
CN108871782A
CN108871782A CN201811140641.1A CN201811140641A CN108871782A CN 108871782 A CN108871782 A CN 108871782A CN 201811140641 A CN201811140641 A CN 201811140641A CN 108871782 A CN108871782 A CN 108871782A
Authority
CN
China
Prior art keywords
engine data
engine
data
time interval
acquisition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811140641.1A
Other languages
Chinese (zh)
Inventor
王栋
张延良
李升建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weichai Power Co Ltd
Original Assignee
Weichai Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weichai Power Co Ltd filed Critical Weichai Power Co Ltd
Priority to CN201811140641.1A priority Critical patent/CN108871782A/en
Publication of CN108871782A publication Critical patent/CN108871782A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M15/00Testing of engines

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

This application discloses a kind of engine data acquisition methods and device, this method to include:Obtain constant transmissions period and the acquisition time interval of engine data;Data are sent to engine controller and send instruction, send the engine data to control the engine controller according to the constant transmissions period;When receiving the first packet engine data, whether the number that judgement receives the engine data is greater than or equal to the acquisition time interval;If so, the engine data being currently received is stored, and the number that docking receives the engine data again is counted.Engine data only when the number for receiving engine data meets acquisition time interval, is just stored, is unsatisfactory for the engine data of the requirement without storage by flexible setting collection period by this method.And then the adjustable of data collection cycle is realized indirectly, improve the flexibility of data acquisition.

Description

A kind of engine data acquisition method and device
Technical field
The present invention relates to data acquisition technology fields, more specifically to a kind of engine data acquisition method and dress It sets.
Background technique
XCP/CCP agreement is a kind of general vehicle network calibration agreement, can be realized calibration, writes with a brush dipped in Chinese ink and transmit etc. with data Function.Synchronous data transmission is a kind of data acquisition function that XCP/CCP agreement is supported, configured data acquisition information it Afterwards, processor can send message, transmission data according to some cycles automatically.
That is, XCP/CCP synchronous data transmission mode is usually to be transmitted with the fixed period, then data are adopted It is also that data acquisition is carried out with the fixed cycle during collection, it is poor that data acquire flexibility.
Summary of the invention
In view of this, to solve the above problems, the present invention provides a kind of engine data acquisition method and device, technical side Case is as follows:
The present invention provides a kind of engine data acquisition method, the engine data acquisition method includes:
Obtain constant transmissions period and the acquisition time interval of engine data;
Data are sent to engine controller and send instruction, to control the engine controller according to the constant transmissions Period sends the engine data;
When receiving the first packet engine data, whether the number that judgement receives the engine data is greater than Or it is equal to the acquisition time interval;
If so, the engine data being currently received is stored, and docking receives the engine again The number of data is counted.
Preferably, the engine data acquisition method further includes:
If it is not, then abandoning the engine data being currently received, the engine data is persistently received, until receiving Number to the engine data is greater than or equal to the acquisition time interval.
Preferably, the constant transmissions period for obtaining engine data and acquisition time interval, including:
Obtain the constant transmissions period and collection period;
According to the collection period and the constant transmissions period, the acquisition time interval is obtained.
Preferably, described when receiving the first packet engine data, judgement receives the engine data Whether number is greater than or equal to the acquisition time interval, including:
When receiving the first packet engine data, the number for receiving the engine data is counted, Whether the number that judgement receives the engine data is greater than or equal to the acquisition time interval.
The present invention also provides a kind of engine data acquisition device, the engine data acquisition device includes:
Module is obtained, for obtaining constant transmissions period and the acquisition time interval of engine data;
Transmission module, for engine controller send data send instruction, with control the engine controller according to The engine data is sent according to the constant transmissions period;
Judgment module, for when receiving the first packet engine data, judgement to receive the engine data Number whether be greater than or equal to the acquisition time interval;
First execution module, for if so, the engine data being currently received is stored, and it is again right The number for receiving the engine data is counted.
Preferably, the engine data acquisition device further includes:
Second execution module, for persistently receiving the hair if it is not, then abandon the engine data being currently received Motivation data, until the number for receiving the engine data is greater than or equal to the acquisition time interval.
Preferably, the tool for obtaining module and being used to obtain the constant transmissions period and acquisition time interval of engine data Body method includes:
Obtain the constant transmissions period and collection period;
According to the collection period and the constant transmissions period, the acquisition time interval is obtained.
Preferably, the judgment module is used for when receiving the first packet engine data, and judgement receives described The specific method whether number of engine data is greater than or equal to the acquisition time interval includes:
When receiving the first packet engine data, the number for receiving the engine data is counted, Whether the number that judgement receives the engine data is greater than or equal to the acquisition time interval.
Compared to the prior art, what the present invention realized has the beneficial effect that:
In the engine data acquisition method, engine controller carries out data transmission according to the constant transmissions period, and Engine data acquire during when receiving the first packet engine data, judgement receives the engine data Number whether be greater than or equal to the acquisition time interval, if so, by the engine data being currently received carry out Storage, and the number that docking receives the engine data again is counted.
That is, engine controller transmits a bag engine data in each constant transmissions period, that is, receive one Secondary engine data, it is received by the 5th time if the number for receiving engine data meets acquisition time interval, such as at five times Engine data is stored, and preceding engine data received several times is without storage.And then data acquisition week is realized indirectly Phase it is adjustable, improve data acquisition flexibility.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow diagram of engine data acquisition method provided in an embodiment of the present invention;
Fig. 2 is another flow diagram of engine data acquisition method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram that engine data provided in an embodiment of the present invention uploads cloud platform;
Fig. 4 is a kind of structural schematic diagram of engine data acquisition device provided in an embodiment of the present invention;
Fig. 5 is another structural schematic diagram of engine data acquisition device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
With reference to Fig. 1, Fig. 1 is a kind of flow diagram of engine data acquisition method provided in an embodiment of the present invention;Institute Stating engine data acquisition method includes:
S10:Obtain constant transmissions period and the acquisition time interval of engine data;
Specifically, the constant transmissions period of the engine data is that the fixed of XCP/CCP synchronous data transmission mode passes Defeated period, for example, 10ms or 100ms, but the constant transmissions period be cannot adjust or be continuously 10ms progress Data, which are transmitted or are continuously 100ms, to be carried out data transmission.
In order to meet in real data collection process to the needs in different acquisition period, the acquisition time interval ginseng is introduced Number, the acquisition methods at the acquisition time interval are specially:
Obtain the constant transmissions period and collection period;
According to the collection period and the constant transmissions period, the acquisition time interval is obtained.
Specifically, the collection period is the real data collection period of setting, such as collection period is 1000ms, fixed to pass The defeated period is 10ms, then acquisition time interval is just 100.
That is, being just acquired to the engine data that the constant transmissions period for going to the 100th time is transmitted.
S11:Data are sent to engine controller and send instruction, to control the engine controller according to the fixation Transmission cycle sends the engine data;
S12:When receiving the first packet engine data, judgement receive the engine data number whether More than or equal to the acquisition time interval;
Specifically, when receiving the first packet engine data, to receive the number of the engine data into Row counts, and whether the number that judgement receives the engine data is greater than or equal to the acquisition time interval.
The number for receiving the engine data is expressed as the fixed biography that engine sends the engine data The number in defeated period.
S13:If so, the engine data being currently received is stored, and docking receives the hair again The number of motivation data is counted.
Specifically, for example, being divided between acquisition time 5 times, then the 5th constant transmissions periodic transfer of engine is started Machine data are stored, and after the completion of storage, are counted to the number for receiving the engine data, are persistently followed again Ring.
As can be seen from the above description, even if engine controller carries out engine data transmission according to the constant transmissions period, But the engine data acquisition method passes through flexible setting collection period, only when the number for receiving engine data meets Acquisition time interval, such as at five times, the 5th received engine data is stored, preceding engine number received several times According to without storage.And then the adjustable of data collection cycle is realized indirectly, improve the flexibility of data acquisition.
Based on the above embodiment of the present invention, in an alternative embodiment of the invention, mentioned with reference to Fig. 2, Fig. 2 for the embodiment of the present invention Another flow diagram of the engine data acquisition method of confession;The engine data acquisition method further includes:
S14:If it is not, then abandoning the engine data being currently received, and return step S12;
Specifically, the engine data is persistently received, until the number for receiving the engine data is greater than or waits In the acquisition time interval.
Specifically, for example, being divided between acquisition time 5 times, then the 1-4 constant transmissions period of engine controller is passed Defeated engine data abandons, and the engine data is persistently received, by the 5th constant transmissions periodic transfer of engine controller Engine data stored, after the completion of storage, the number for receiving the engine data is counted again, is held Continuous circulation.
It should be noted that needing the engine data of storage being uploaded to cloud platform after the completion of data storage, refer to Fig. 3, Fig. 3 are the flow diagram that engine data provided in an embodiment of the present invention uploads cloud platform, particularly spread journey such as Under:
S20:Judge whether the engine data of upload in need;
Specifically, the upload period due to engine data is not defined, to upload state in real time, work as acquisition time Between when being divided into 5, then there will be no the engine datas that needs upload, therefore are uploading within first constant transmissions period When engine data, need to judge whether the engine data of upload in need.
S21:If so, obtaining the engine data, and execute step S22;
It should be noted that if no, then return step S20.
S22:Judge whether data transfer communications are in normal operating conditions;
S23:If so, uploading engine data to cloud platform, and execute step S24;
It should be noted that if no, then return step S22.
S24:Judge whether the engine data sends success;
Specifically, due in engine data transmission process, it may appear that the case where going offline, it is therefore desirable to engine number According to whether sending and successfully judged;
S25:If so, judging whether the engine data uploads completion;If it is not, then return step S22, again on It passes;
S26:If so, return step S20;
Specifically, return step S20 starts to transmit next bag engine data after the completion of a bag data uploads, continue Circulation completes the upload to engine data to cloud platform.
It should be noted that if no, then return step S21, i.e., persistently obtain present engine data and uploaded.
Based on the above-mentioned whole embodiments of the present invention, a kind of engine data is additionally provided in an alternative embodiment of the invention and is adopted Acquisition means, with reference to Fig. 4, Fig. 4 is a kind of structural schematic diagram of engine data acquisition device provided in an embodiment of the present invention, described Engine data acquisition device includes:
Module 31 is obtained, for obtaining constant transmissions period and the acquisition time interval of engine data;
Specifically, the acquisition module 31 includes, but are not limited to CPU processor.
Transmission module 32 sends instruction for sending data to engine controller, to control the engine controller The engine data is sent according to the constant transmissions period;
Specifically, the transmission module 32 includes, but are not limited to CAN module, issued by CAN protocol to Engine ECU Configuration CAN message, request Engine ECU send the engine data according to the constant transmissions period.
Judgment module 33, for when receiving the first packet engine data, judgement to receive the engine number According to number whether be greater than or equal to the acquisition time interval;
First execution module 34, for if so, the engine data being currently received is stored, and again The number for receiving the engine data is counted.
Specifically, first execution module 34 further includes storage unit, the storage unit will be for that will be currently received The engine data stored.
Further, the engine data acquisition device further includes:
Second execution module 35, for if it is not, the engine data being currently received then is abandoned, described in lasting reception Engine data, until the number for receiving the engine data is greater than or equal to the acquisition time interval.
Further, constant transmissions period and the acquisition time interval for obtaining module 31 and being used to obtain engine data Specific method include:
Obtain the constant transmissions period and collection period;
According to the collection period and the constant transmissions period, the acquisition time interval is obtained.
Further, the judgment module 33 is used for when receiving the first packet engine data, and judgement receives The specific method whether number of the engine data is greater than or equal to the acquisition time interval includes:
When receiving the first packet engine data, the number for receiving the engine data is counted, Whether the number that judgement receives the engine data is greater than or equal to the acquisition time interval.
It further, is another structure of engine data acquisition device provided in an embodiment of the present invention with reference to Fig. 5, Fig. 5 Schematic diagram, the engine data acquisition device further include:Data uploading module 36;
The data uploading module 36 is used to the engine data stored into the storage unit being uploaded to cloud Platform.
It should be noted that the original of the principle of the engine data acquisition device and the engine data acquisition method Manage identical, details are not described herein.
As can be seen from the above description, even if the engine data acquisition method and device driving engine are according to constant transmissions Period carries out engine data transmission, still, by flexible setting collection period, only when the number for receiving engine data is full Sufficient acquisition time interval, such as at five times, the 5th received engine data is stored, preceding engine received several times Data are without storage.And then the adjustable of data collection cycle is realized indirectly, improve the flexibility of data acquisition.
A kind of engine data acquisition method provided by the present invention and device are described in detail above, herein Apply that a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to help Understand method and its core concept of the invention;At the same time, for those skilled in the art, according to the thought of the present invention, There will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as to this The limitation of invention.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, phase Place is closed referring to method part illustration.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain Lid non-exclusive inclusion, so that the element that the process, method, article or equipment including a series of elements is intrinsic, It further include either the element intrinsic for these process, method, article or equipments.In the absence of more restrictions, The element limited by sentence "including a ...", it is not excluded that in the process, method, article or equipment including the element In there is also other identical elements.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (8)

1. a kind of engine data acquisition method, which is characterized in that the engine data acquisition method includes:
Obtain constant transmissions period and the acquisition time interval of engine data;
Data are sent to engine controller and send instruction, to control the engine controller according to the constant transmissions period Send the engine data;
When receiving the first packet engine data, whether the number that judgement receives the engine data is greater than or waits In the acquisition time interval;
If so, the engine data being currently received is stored, and docking receives the engine data again Number counted.
2. engine data acquisition method according to claim 1, which is characterized in that the engine data acquisition method Further include:
If it is not, then abandoning the engine data being currently received, the engine data is persistently received, until receiving institute The number for stating engine data is greater than or equal to the acquisition time interval.
3. engine data acquisition method according to claim 1, which is characterized in that described to obtain consolidating for engine data Determine transmission cycle and acquisition time interval, including:
Obtain the constant transmissions period and collection period;
According to the collection period and the constant transmissions period, the acquisition time interval is obtained.
4. engine data acquisition method according to claim 1, which is characterized in that described to receive described in the first packet When engine data, whether the number that judgement receives the engine data is greater than or equal to the acquisition time interval, wraps It includes:
When receiving the first packet engine data, the number for receiving the engine data is counted, is judged Whether the number for receiving the engine data is greater than or equal to the acquisition time interval.
5. a kind of engine data acquisition device, which is characterized in that the engine data acquisition device includes:
Module is obtained, for obtaining constant transmissions period and the acquisition time interval of engine data;
Transmission module sends instruction for sending data to engine controller, to control the engine controller according to institute State the constant transmissions period transmission engine data;
Judgment module, for when receiving the first packet engine data, judgement to receive time of the engine data Whether number is greater than or equal to the acquisition time interval;
First execution module, for if so, the engine data being currently received is stored, and docking is received again Number to the engine data is counted.
6. engine data acquisition device according to claim 5, which is characterized in that the engine data acquisition device Further include:
Second execution module, for persistently receiving the engine if it is not, then abandon the engine data being currently received Data, until the number for receiving the engine data is greater than or equal to the acquisition time interval.
7. engine data acquisition device according to claim 5, which is characterized in that the acquisition module is for obtaining hair The constant transmissions period of motivation data and the specific method at acquisition time interval include:
Obtain the constant transmissions period and collection period;
According to the collection period and the constant transmissions period, the acquisition time interval is obtained.
8. engine data acquisition device according to claim 5, which is characterized in that the judgment module is used for when reception When wrapping the engine data to first, whether the number that judgement receives the engine data is greater than or equal to the acquisition The specific method of time interval includes:
When receiving the first packet engine data, the number for receiving the engine data is counted, is judged Whether the number for receiving the engine data is greater than or equal to the acquisition time interval.
CN201811140641.1A 2018-09-28 2018-09-28 A kind of engine data acquisition method and device Pending CN108871782A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811140641.1A CN108871782A (en) 2018-09-28 2018-09-28 A kind of engine data acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811140641.1A CN108871782A (en) 2018-09-28 2018-09-28 A kind of engine data acquisition method and device

Publications (1)

Publication Number Publication Date
CN108871782A true CN108871782A (en) 2018-11-23

Family

ID=64324759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811140641.1A Pending CN108871782A (en) 2018-09-28 2018-09-28 A kind of engine data acquisition method and device

Country Status (1)

Country Link
CN (1) CN108871782A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111337259A (en) * 2020-03-13 2020-06-26 洛阳拖拉机研究所有限公司 Engine continuous data acquisition and display method
CN115343049A (en) * 2022-08-12 2022-11-15 潍柴动力股份有限公司 Control method and control device for engine data acquisition

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013170986A (en) * 2012-02-22 2013-09-02 Honda Motor Co Ltd Vehicle data collecting device, and vehicle data collecting method
CN103728964A (en) * 2012-10-12 2014-04-16 北汽福田汽车股份有限公司 Automatic testing method and device for monitoring port state of controller
CN103810768A (en) * 2012-11-08 2014-05-21 厦门雅迅网络股份有限公司 Method for acquiring vehicle state signals
CN106056697A (en) * 2016-06-06 2016-10-26 北京汇通天下物联科技有限公司 Event monitoring method, device and system
CN106227096A (en) * 2016-08-23 2016-12-14 北汽福田汽车股份有限公司 New-energy automobile monitoring method, device and car-mounted terminal
CN106885601A (en) * 2017-01-09 2017-06-23 北京理工大学 Unmanned vehicle multi-sensor data synchronous

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013170986A (en) * 2012-02-22 2013-09-02 Honda Motor Co Ltd Vehicle data collecting device, and vehicle data collecting method
CN103728964A (en) * 2012-10-12 2014-04-16 北汽福田汽车股份有限公司 Automatic testing method and device for monitoring port state of controller
CN103810768A (en) * 2012-11-08 2014-05-21 厦门雅迅网络股份有限公司 Method for acquiring vehicle state signals
CN106056697A (en) * 2016-06-06 2016-10-26 北京汇通天下物联科技有限公司 Event monitoring method, device and system
CN106227096A (en) * 2016-08-23 2016-12-14 北汽福田汽车股份有限公司 New-energy automobile monitoring method, device and car-mounted terminal
CN106885601A (en) * 2017-01-09 2017-06-23 北京理工大学 Unmanned vehicle multi-sensor data synchronous

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111337259A (en) * 2020-03-13 2020-06-26 洛阳拖拉机研究所有限公司 Engine continuous data acquisition and display method
CN115343049A (en) * 2022-08-12 2022-11-15 潍柴动力股份有限公司 Control method and control device for engine data acquisition

Similar Documents

Publication Publication Date Title
CN108871782A (en) A kind of engine data acquisition method and device
CN105960778B (en) It is used for transmission the method and apparatus, bridge and storage medium of data
JP2005210694A5 (en)
JP2020503725A5 (en)
JP2004129042A5 (en)
CN110519412A (en) A kind of Internet of Things module loading method and device
CN101242219A (en) Method and apparatus for reference signal generation in wireless communications system
WO2013097500A1 (en) Method and device for transmitting channel state information
CN110221842A (en) Data write with a brush dipped in Chinese ink method, apparatus, equipment and computer readable storage medium
WO2022095628A1 (en) Vehicle data transmission method, apparatus and system, and device and storage medium
JP2018511275A5 (en)
CN104410587A (en) Method and device for controlling capacity of receive buffer zone
JP2018504820A5 (en)
CN106656642A (en) Round trip time measurement method, round trip time measurement device and round trip time measurement system
RU2019143877A (en) DEVICE AND METHOD OF TRANSMISSION RATE CONTROL
CN103841218B (en) Method for determining duration of public network access by user terminal and net access server
DE112006002202T5 (en) System and method for optimizing the bandwidth of a time-triggered communication protocol with homogeneous slot sizes
JP2020518875A5 (en)
CN105101308B (en) A kind of radio-frequency channel switching method and device
CN104767591B (en) A kind of data transmission method for uplink and device
JP2003289576A5 (en)
CN106502865A (en) Power consumption dynamic trend analysis method and device based on frequent Sensor monitoring
CN103138894A (en) Method and nodes and data network of data transmission
CN103368871B (en) A kind of bandwidth allocation methods and device
CN103974390B (en) Starting method, user equipment, base station and the system of DRX mode

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181123