CN104881329B - A kind of method of battery assembly off-line test platform multithreading time synchronization - Google Patents

A kind of method of battery assembly off-line test platform multithreading time synchronization Download PDF

Info

Publication number
CN104881329B
CN104881329B CN201410069587.1A CN201410069587A CN104881329B CN 104881329 B CN104881329 B CN 104881329B CN 201410069587 A CN201410069587 A CN 201410069587A CN 104881329 B CN104881329 B CN 104881329B
Authority
CN
China
Prior art keywords
battery assembly
data
signal generate
thread
test platform
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.)
Active
Application number
CN201410069587.1A
Other languages
Chinese (zh)
Other versions
CN104881329A (en
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.)
Rosedale Automotive Trim Design Beijing Co ltd
Rosedale Intelligent Automobile Chongqing Co ltd
Original Assignee
Chongqing University of Post and Telecommunications
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 Chongqing University of Post and Telecommunications filed Critical Chongqing University of Post and Telecommunications
Priority to CN201410069587.1A priority Critical patent/CN104881329B/en
Publication of CN104881329A publication Critical patent/CN104881329A/en
Application granted granted Critical
Publication of CN104881329B publication Critical patent/CN104881329B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Emergency Protection Circuit Devices (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

The present invention is a kind of method of battery assembly off-line test platform multithreading time synchronization.Battery assembly off-line test platform generates checking signal by hardware and is supplied to battery assembly, while reading the data that battery assembly is acquired by CAN communication, judges whether battery assembly various functions are up to standard after comparing input/output data.And the signal generate line journey of battery assembly off-line test platform realizes that synchronous operation is extremely difficult with CAN communication thread, be easy to cause data comparison mistake, test result is unqualified;In view of the above problems, the present invention proposes a kind of method for synchronizing time;This method is:1. main thread creates signal generate line journey and CAN communication thread;2. signal generate line journey carries out initial synchronisation with CAN communication thread;3.CAN communication threads carry out data sampling by a kind of time warping method;4. main thread, according to being compared with CAN communication thread-data, obtains test result to signal generate line number of passes.

Description

A kind of method of battery assembly off-line test platform multithreading time synchronization
Technical field
The invention belongs to vehicle electric field more particularly to a kind of battery assembly off-line test platform multithreading time synchronizations Method.
Background technology
As the whole world is to energy saving and environmental consciousness enhancing, the development trend of pure electric automobile is increasing.Battery is total At the critical component for being pure electric automobile, need to monitor it in real time.Whether meet reality for the function of battery assembly It is required that, it is necessary to off-line test is carried out to it, to find the defect of battery assembly in time, accident occurs when vehicle being avoided to run. Currently, battery assembly off-line test platform is detected battery assembly various functions using hardware in loop pattern, i.e. detection is flat Platform generates checking signal by hardware and is supplied to battery assembly, while reading the data that battery assembly is acquired by CAN communication, Judge whether battery assembly various functions are up to standard after comparison input/output data.And in battery assembly off-line test platform development In the process, signal generate line journey realizes that synchronous operation is extremely difficult with CAN communication thread, be easy to cause data comparison mistake, examines It is unqualified to survey conclusion;It is therefore proposed that a kind of effective multithreading method for synchronizing time is of great significance to solve this difficult point.
Also once there is the associated description to multithreading method for synchronizing time in having patent, it is such as entitled a kind of based on the time The patent (patent No. ZL201310452463.7) of synchronous multi-Channels Data Acquisition, the patent provide a kind of same based on the time The multi-Channels Data Acquisition of step carries out the multi-Channels Data Acquisition after time adjustment by VCO conditioning modules and carries out data Acquisition, and by parallel data transmission between FPGA and processor, the data of sensor acquisition are preserved in memory, are passed through The data for reading pin-saving chip carry out follow-up data processing or carry out data interaction by network interface and host computer, carry out Position machine data processing.The patent (patent No. ZL200920085598.3) of entitled all-hardware time synchronizer, the patent carry Go out a system being made of the multiple data acquisition devices being distributed, needs to configure one and receive reference clock source conversion output mark The time synchronism apparatus of quasi- clock synchronization signal, for the clock of each device in system to be consistent;The patent uses hardware realization The decoding of time signal and coding, the accurate compensation of selection and switching and the delay of a reference source;Hardware include motherboard, power supply insert Part, optical fiber plug-in unit, master clock plug-in unit, punctual plug-in unit and at least one extension output inserter;Each plug-in unit is connected with motherboard, passes through mother Plate carries out signal and transmits and power supply supply.Entitled overhead line fast fault locating method and device based on time synchronization are (specially Profit ZL201110438732.5), which is adopted by several distributed data acquisition units being arranged on distribution overhead line The current signal that the voltage and each branch of distribution overhead line are acquired with Time synchronization technique, by data of the acquisition with time tag It passes main website back and carries out operation, judge out of order branch, show the location information of fault section and the malfunction of circuit, fill It sets and is made of distributed data acquisition unit, time reference unit, communication system, main station system, the present apparatus utilizes this method Can be with the fault section of automatic decision supply line, and the location information of fault section is provided, in particular improve single-phase earthing The accuracy rate of breakdown judge can substitute the Little Current Ground Connection System of substation, can reduce scope of power outage, shortening circuit is robbed The time is repaiied, the power supply reliability of power supply system is improved.
Compared with above-mentioned patent, realize that the time of multithreading is same by development time synchronizing device in above-mentioned patent Step, and traditional time synchronism apparatus realizes the decoding of clock source signals, the selection of a reference source and output letter using microprocessor Number coding, exist and be easily disturbed, delay the shortcomings of being difficult to accurate compensation.Dress is synchronized using the development time in above-mentioned patent simultaneously It sets, increases the complexity of system, also improve cost of manufacture, result in waste of resources.Under battery assembly described in this patent Line detection platform carries out the time synchronization of multithreading using PC machine system time, has higher reliability and stability.
Invention content
The present invention is a kind of method of battery assembly off-line test platform multithreading time synchronization, when by with PC machine system Between be aligned, so that the multiple threads of battery assembly off-line test platform is realized synchronous operation, to reach the accurate nothing of off-line test platform That misses is detected battery assembly various functions.
The present invention proposes that a kind of method of battery assembly off-line test platform multithreading time synchronization, the multithreading time are same Step is a kind of control strategy in battery assembly off-line test platform, main to realize to signal generate line journey and CAN communication thread Synchronous operation, so as to main thread carry out data comparison;It includes the following steps:Main thread creates signal generate line journey and CAN Communication thread;Signal generate line journey carries out initial synchronisation with CAN communication thread;CAN communication thread passes through a kind of time warping side Method carries out data sampling;Finally, main thread obtains knot to signal generate line number of passes according to being compared with CAN communication thread-data By.
Description of the drawings
Fig. 1 is a kind of principle of the method for battery assembly off-line test platform multithreading time synchronization proposed by the present invention Figure.
Fig. 2 is that multithreading initial launch synchronizes schematic diagram in the present invention.
Fig. 3 is CAN communication module time warping data sampling method schematic diagram in the present invention.
Specific implementation mode
Below in conjunction with attached drawing, the invention will be further described.
As shown in Fig. 1, the method for a kind of battery assembly off-line test platform multithreading time synchronization proposed by the present invention Principle be:Main thread creates signal generate line journey and CAN communication thread first;Signal generate line journey and CAN communication line later Cheng Jinhang initial synchronisations;Again, CAN communication thread carries out data sampling by a kind of time warping method;Finally, main thread pair Signal generate line number of passes evidence is compared with CAN communication thread-data, it was therefore concluded that.It is as follows:
1. main thread creates signal generate line journey and CAN communication thread;Signal generate line journey is total for providing detection battery At the physical signal needed for each function;CAN communication thread is used to receive the data for the signal generate line journey that battery assembly is acquired.
2. signal generate line journey carries out initial synchronisation with CAN communication thread;Synchronous method is that two threads wait for PC machine simultaneously Next second system time, when next second system time arrives, then bring into operation each operating mode respectively, realizes initial synchronisation.
3.CAN communication threads carry out data sampling by a kind of time warping method;The method of sampling is to be generated according to signal The data variation operating mode of thread collects intermediate point using time warping method, and avoids the data variation that signal generates operating mode Critical point.
4. main thread compares signal generate line number of passes evidence with CAN communication thread-data, and flat by human-computer interaction The verification result of the variation and battery system of each item data of platform interface real-time display system, and test data is recorded and preserves, Obtain the test result of battery assembly various functions.
Attached drawing 2 synchronizes for multithreading initial launch;After main thread creates signal generate line journey and CAN communication thread, signal There are a time difference Δ T between generation thread and CAN communication thread, and in order to allow two threads to realize, initial launch synchronizes, this is specially Profit is aligned, the signal generate line journey stand-by period is using two threads lower second time of waiting system simultaneously with PC machine system time T1, CAN communication thread latency are T2, and there are relational expressions between T1 and T2 | T1-T2 |=Δ T;When lower second system of system Time arrives, then bring into operation each operating mode respectively, realizes initial synchronisation.
Attached drawing 3 is CAN communication module time warping data sampling method;It is a setting operating condition that signal, which generates operating mode, Within T1, T2, T3, T4 each period, respectively unlike signal value exports;To avoid CAN communication floor data sampled acquisition from arriving The critical point of signal value variation causes data comparison to malfunction, and this patent is used when time arrival T1/2, T2/2, T3/2, T4/2 are each It when point, carries out data sampling and stores, collect intermediate point, and avoid the data variation critical point that signal generates operating mode.

Claims (5)

1. a kind of method of battery assembly off-line test platform multithreading time synchronization, which is battery assembly A kind of control strategy in off-line test platform, the main synchronous operation realized to signal generate line journey and CAN communication thread, with Just main thread carries out data comparison;It includes the following steps:First, main thread creates signal generate line journey and CAN communication thread; Secondly, signal generate line journey is made to carry out initial synchronisation with CAN communication thread using time PC machine second;Again, CAN communication thread is logical Cross a kind of time warping method progress data sampling;Finally, main thread is to signal generate line number of passes evidence and CAN communication thread-data It is compared, it was therefore concluded that.
2. a kind of method of battery assembly off-line test platform multithreading time synchronization according to claim 1, feature It is:Main thread creates signal generate line journey and CAN communication thread;Signal generate line journey is for providing detection each work(of battery assembly Physical signal needed for energy;CAN communication thread is used to receive the data for the signal generate line journey that battery assembly is acquired.
3. a kind of method of battery assembly off-line test platform multithreading time synchronization according to claim 1, feature It is:Signal generate line journey carries out initial synchronisation with CAN communication thread;Synchronous method is that two threads wait for PC machine lower second simultaneously System time, when next second system time arrives, then bring into operation each operating mode respectively, realizes initial synchronisation.
4. a kind of method of battery assembly off-line test platform multithreading time synchronization according to claim 1, feature It is:CAN communication thread carries out data sampling by a kind of time warping method;The method of sampling is according to signal generate line journey Data variation operating mode collects intermediate point using time warping method, and the data variation for avoiding signal generation operating mode is critical Point.
5. a kind of method of battery assembly off-line test platform multithreading time synchronization according to claim 1, feature It is:Main thread is to signal generate line number of passes according to the boundary for comparing with CAN communication thread-data, and passing through man-machine interactive platform The verification result of the variation and battery system of each item data of face real-time display system, and test data is recorded and preserves, it obtains The test result of battery assembly various functions.
CN201410069587.1A 2014-02-28 2014-02-28 A kind of method of battery assembly off-line test platform multithreading time synchronization Active CN104881329B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410069587.1A CN104881329B (en) 2014-02-28 2014-02-28 A kind of method of battery assembly off-line test platform multithreading time synchronization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410069587.1A CN104881329B (en) 2014-02-28 2014-02-28 A kind of method of battery assembly off-line test platform multithreading time synchronization

Publications (2)

Publication Number Publication Date
CN104881329A CN104881329A (en) 2015-09-02
CN104881329B true CN104881329B (en) 2018-08-21

Family

ID=53948835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410069587.1A Active CN104881329B (en) 2014-02-28 2014-02-28 A kind of method of battery assembly off-line test platform multithreading time synchronization

Country Status (1)

Country Link
CN (1) CN104881329B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109842575B (en) * 2017-11-27 2021-08-03 中国航空工业集团公司西安航空计算技术研究所 429 bus receiving node large-tolerance sampling circuit

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101846728A (en) * 2010-05-31 2010-09-29 重庆长安汽车股份有限公司 Incoming inspection device of power battery for hybrid electric vehicle and inspection method
CN201616004U (en) * 2009-05-11 2010-10-27 武汉国电武仪电力自动化设备有限公司 All-hardware time synchronizer
CN102590700A (en) * 2011-12-23 2012-07-18 山东电力集团公司淄博供电公司 Method and device for quickly locating faults of overhead line on basis of time synchronization
US8412974B2 (en) * 2009-11-13 2013-04-02 International Business Machines Corporation Global synchronization of parallel processors using clock pulse width modulation
CN103488112A (en) * 2013-09-29 2014-01-01 成都天奥测控技术有限公司 Multichannel data acquisition instrument based on time synchronization

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201616004U (en) * 2009-05-11 2010-10-27 武汉国电武仪电力自动化设备有限公司 All-hardware time synchronizer
US8412974B2 (en) * 2009-11-13 2013-04-02 International Business Machines Corporation Global synchronization of parallel processors using clock pulse width modulation
CN101846728A (en) * 2010-05-31 2010-09-29 重庆长安汽车股份有限公司 Incoming inspection device of power battery for hybrid electric vehicle and inspection method
CN102590700A (en) * 2011-12-23 2012-07-18 山东电力集团公司淄博供电公司 Method and device for quickly locating faults of overhead line on basis of time synchronization
CN103488112A (en) * 2013-09-29 2014-01-01 成都天奥测控技术有限公司 Multichannel data acquisition instrument based on time synchronization

Also Published As

Publication number Publication date
CN104881329A (en) 2015-09-02

Similar Documents

Publication Publication Date Title
CN104102122B (en) A kind of hand-held time synchronization tester
CN101441585B (en) Accurate synchronizing method of three-module redundant fault tolerant computer
CN108333477A (en) Photovoltaic access electrical power distribution network fault location method based on synchronized timestamp and device
CN102590619A (en) Method for detecting time synchronization capacity of real-time measurement equipment based on timing variable
CN103763085B (en) A kind of multichannel data high speed acquisition merges method and device
CN102053883A (en) Control cycle synchronizer of triple-modular redundancy fault-tolerant computer
CN103197978A (en) Controller, multi-redundancy control system and synchronous control method thereof
CN108227561A (en) A kind of markers alignment schemes of multiplicated system data acquisition
CN109947030A (en) The method in dynamic following EtherCat bus synchronous period in servo internal control period
CN104724145B (en) A kind of locomotive velocity measuring range-measurement system
CN109672473A (en) A kind of embedded large capacity parallel duplex optical module error code testing system and its test method
CN104881329B (en) A kind of method of battery assembly off-line test platform multithreading time synchronization
CN203338127U (en) Dual-redundancy control system for AGV
CN107239433A (en) A kind of triple redundance computer synchronous method
CN108206683A (en) A kind of dynamic compensated pulse circuit
CN102724033A (en) Method and main control veneer for realizing alignment of phase positions of master clock and reserved clock
CN104297593A (en) Punctuality error detection method for intelligent substation merging unit
CN102201908B (en) EAST central timing system based on PXI (extension for instrumentation)
CN108983036B (en) Traveling wave distance measurement system based on electronic transformer
CN206363300U (en) A kind of battery management chip daisy chain communication system
CN104506270A (en) Time and frequency synchronization integration implementation system and method
CN102707174B (en) Detection system and method of operation state of resistor type superconductive current limiter
CN201497873U (en) IRIG-B signal decoding timing card device based on CPCI bus
CN106814596B (en) A kind of Hardware-in-the-Loop Simulation in Launch Vehicle test ground installation method for synchronizing time
CN104052160B (en) The harvester of power equipment data and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220507

Address after: 101100 building 24, yard 2, huanke Middle Road, Jinqiao Science and technology industrial base, Zhongguancun Science and Technology Park, Tongzhou District, Beijing

Patentee after: Rosedale automotive trim design (Beijing) Co.,Ltd.

Patentee after: Rosedale intelligent automobile (Chongqing) Co.,Ltd.

Address before: Chongqing University of Posts and telecommunications, Chongwen Road, Nan'an District, Chongqing 400065

Patentee before: CHONGQING University OF POSTS AND TELECOMMUNICATIONS

TR01 Transfer of patent right
CI03 Correction of invention patent

Correction item: Patentee|Address|Patentee

Correct: Chongqing University of Posts and Telecommunications|Chongqing University of Posts and telecommunications, Chongwen Road, Nan'an District, Chongqing 400065

False: Rosedale automotive trim design (Beijing) Co.,Ltd.|101100 building 24, yard 2, huanke Middle Road, Jinqiao Science and technology industrial base, Zhongguancun Science and Technology Park, Tongzhou District, Beijing|Rosedale intelligent automobile (Chongqing) Co.,Ltd.

Number: 20-01

Volume: 38

CI03 Correction of invention patent
TR01 Transfer of patent right

Effective date of registration: 20220530

Address after: 101100 building 24, yard 2, huanke Middle Road, Jinqiao Science and technology industrial base, Zhongguancun Science and Technology Park, Tongzhou District, Beijing

Patentee after: Rosedale automotive trim design (Beijing) Co.,Ltd.

Address before: Chongqing University of Posts and telecommunications, Chongwen Road, Nan'an District, Chongqing 400065

Patentee before: CHONGQING University OF POSTS AND TELECOMMUNICATIONS

Effective date of registration: 20220530

Address after: 401121 No. 22, Jinyu Avenue, Liangjiang New Area, Yubei District, Chongqing (floor 3, building 9, Jintai Intelligent Industrial Park)

Patentee after: Rosedale intelligent automobile (Chongqing) Co.,Ltd.

Address before: 101100 building 24, yard 2, huanke Middle Road, Jinqiao Science and technology industrial base, Zhongguancun Science and Technology Park, Tongzhou District, Beijing

Patentee before: Rosedale automotive trim design (Beijing) Co.,Ltd.

TR01 Transfer of patent right