CN104881329A - Battery assembly offline detection platform multithreading time synchronization method - Google Patents

Battery assembly offline detection platform multithreading time synchronization method Download PDF

Info

Publication number
CN104881329A
CN104881329A CN201410069587.1A CN201410069587A CN104881329A CN 104881329 A CN104881329 A CN 104881329A CN 201410069587 A CN201410069587 A CN 201410069587A CN 104881329 A CN104881329 A CN 104881329A
Authority
CN
China
Prior art keywords
thread
battery assembly
data
signal
communication
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.)
Granted
Application number
CN201410069587.1A
Other languages
Chinese (zh)
Other versions
CN104881329B (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

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

Abstract

The invention provides a battery assembly offline detection platform multithreading time synchronization method. A battery assembly offline detection platform generates verification signals through hardware and provides the verification signals to a battery assembly, data acquired by the battery assembly is read through CAN communication, after the output/input data is compared, whether each function of the battery assembly reach the standard or not is judged. Synchronous operation of a signal generation thread and a CAN communication thread of the battery assembly offline detection platform is hard to achieve, data comparison errors are liable to occur, and the detection result is unqualified. Aiming at the above problem, the invention provides a time synchronization method. The time synchronization method comprises that 1. a main thread creates the signal generation thread and the CAN communication thread; 2. initial synchronization of the signal generation thread and the CAN communication thread is carried out; 3. the CAN communication thread carries out data sampling through a time warping method; and 4. the main thread compares data of the signal generation thread with data of the CAN communication thread, and the detection result is obtained.

Description

A kind of method of battery assembly off-line test platform multithreading time synchronized
Technical field
The invention belongs to vehicle electric field, particularly relate to a kind of method of battery assembly off-line test platform multithreading time synchronized.
Background technology
In the enhancing realized energy saving standard along with the whole world, the development trend of pure electric automobile is increasing.Battery assembly is the critical component of pure electric automobile, needs to carry out Real-Time Monitoring to it.The whether realistic requirement of function for battery assembly, must carry out off-line test to it, thus the defect of Timeliness coverage battery assembly, have an accident when avoiding car load to run.At present, battery assembly off-line test platform adopts hardware in loop pattern to detect battery assembly various functions, namely detection platform produces validation signal by hardware and is supplied to battery assembly, simultaneously by the data that CAN communication reading battery assembly gathers, after contrast input/output data, judge that whether battery assembly various functions is up to standard.And in battery assembly off-line test platform development process, it is very difficult that signal generation thread and CAN communication thread realize synchronous operation, easily shine into Data Comparison mistake, test result is defective; Therefore, it is significant that the effective multithreading method for synchronizing time of proposition one solves this difficult point.
Also the associated description to multithreading method for synchronizing time was once had in existing patent, as name is called a kind of patent (patent No. ZL201310452463.7) of the multi-Channels Data Acquisition based on time synchronized, this patent provides a kind of multi-Channels Data Acquisition based on time synchronized, carry out the multi-Channels Data Acquisition after time adjustment by VCO conditioning module and carry out data acquisition, and by parallel data transmission between FPGA and processor, the data gathered by sensor are preserved in memory, carry out follow-up data process by the data reading pin-saving chip or carry out data interaction by network interface and host computer, carry out host computer data processing.Name is called the patent (patent No. ZL200920085598.3) of all-hardware time synchronizer, this patent proposes a system be made up of the multiple data collectors distributed, need configuration one accept reference clock source conversion outputting standard pair time signal time synchronism apparatus, for the clock of device each in system is consistent; This patent adopts decoding and the coding of hardware implementing time signal, the fine compensation of the selection of reference source and switching and time delay; Hardware comprises motherboard, power insert, optical fiber plug-in unit, major clock plug-in unit, punctual plug-in unit and at least one expansion output inserter; Each plug-in unit is connected with motherboard, carries out signal transmission and power supply supply by motherboard.Name is called pole line fast fault locating method based on time synchronized and device (patent No. ZL201110438732.5), this patent is by being arranged on the some distributed data acquisition unit on power frame ceases to be busy, Time synchronization technique is adopted to gather the voltage of power frame ceases to be busy and the current signal of each branch, pass main website back with the data of time tag carry out computing by gathering, judge out of order branch, the display positional information of fault section and the malfunction of circuit, its device is by distributed data acquisition unit, time reference unit, communication system, main station system forms, this device utilizes the method can the fault section of automatic decision supply line, and provide the positional information of fault section, in particular improve the accuracy rate that singlephase earth fault judges, the Little Current Ground Connection System of transformer station can be substituted, power failure range can be reduced, shorten circuit emergency repair time, improve the power supply reliability of electric power system.
Compared with above-mentioned patent, realized the time synchronized of multithreading by development time synchronous device in above-mentioned patent, and traditional time synchronism apparatus adopts microprocessor to realize the coding of the decoding of clock source signals, the selection of reference source and output signal, exist and be easily disturbed, time delay is difficult to the shortcomings such as accurate compensation.Adopt development time synchronous device in above-mentioned patent simultaneously, increase the complexity of system, also improve cost of manufacture, shine into the wasting of resources.Battery assembly off-line test platform described in this patent utilizes PC system time to carry out the time synchronized of multithreading, has higher reliability and stability.
Summary of the invention
The present invention is a kind of method of battery assembly off-line test platform multithreading time synchronized, by aliging with PC system time, make the multiple thread of battery assembly off-line test platform realize synchronous operation, thus reach off-line test platform and accurately battery assembly various functions is detected.
The present invention proposes a kind of method of battery assembly off-line test platform multithreading time synchronized, this multithreading time synchronized is a kind of control strategy in battery assembly off-line test platform, main realization generates the synchronous operation of thread and CAN communication thread, so that main thread carries out Data Comparison to signal; It comprises the following steps: main thread creates signal and generates thread and CAN communication thread; Signal generates thread and CAN communication thread carries out initial synchronisation; CAN communication thread carries out data sampling by a kind of time warping method; Finally, main thread generates thread-data to signal and CAN communication thread-data contrasts, and reaches a conclusion.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of the method for a kind of battery assembly off-line test platform multithreading time synchronized that the present invention proposes.
Fig. 2 is the synchronous schematic diagram of multithreading initial launch in the present invention.
Fig. 3 is CAN time warping data sampling method schematic diagram in the present invention.
Embodiment
Below in conjunction with accompanying drawing, the invention will be further described.
As shown in Figure 1, the square ratio juris of a kind of battery assembly off-line test platform multithreading time synchronized of the present invention's proposition is: first main thread creates signal and generates thread and CAN communication thread; Signal generation thread and CAN communication thread carry out initial synchronisation afterwards; Again, CAN communication thread carries out data sampling by a kind of time warping method; Finally, main thread generates thread-data to signal and CAN communication thread-data contrasts, and reaches a conclusion.Concrete steps are as follows:
1. main thread creates signal and generates thread and CAN communication thread; Signal generates thread for providing the physical signalling detected needed for each function of battery assembly; CAN communication thread with the data (as voltage, electric current, temperature etc.) receiving signal that battery assembly gathers and generate thread.
2. signal generation thread and CAN communication thread carry out initial synchronisation; Synchronous method is the system time that two threads wait for next second of PC simultaneously, and when next second system time arrives, then bring into operation each operating mode respectively, realizes initial synchronisation.
3.CAN communication thread carries out data sampling by a kind of time warping method; The method of sampling is the data variation operating mode generating thread according to signal, utilizes time warping method, collects intermediate point, and avoids the data variation critical point that signal generates operating mode.
4. main thread contrasts signal generation thread-data and CAN communication thread-data, and by the change of the every data of man-machine interactive platform interface real-time display system and the result of battery system, and record and preserve test data, obtain the test result of battery assembly various functions.
Accompanying drawing 2 is that multithreading initial launch is synchronous; After main thread creates signal generation thread and CAN communication thread, signal generates between thread and CAN communication thread exists a mistiming Δ T, synchronous in order to allow two threads realize initial launch, this patent adopts two threads next second time of waiting system simultaneously, align with PC system time, it is T1 that signal generates thread latency, and CAN communication thread latency is there is relational expression between T2, T1 and T2 | T1-T2|=Δ T; When system next second system time arrives, then bring into operation each operating mode respectively, realizes initial synchronisation.
Accompanying drawing 3 is CAN time warping data sampling method; It is a setting operating condition that signal generates operating mode, within T1, T2, T3, T4 each time period, is respectively unlike signal value and exports; Shine into Data Comparison for avoiding CAN communication floor data sampled acquisition to the critical point that signal value changes to make mistakes, this patent adopts when the time arrives T1/2, T2/2, T3/2, T4/2 each point, carry out data sampling and store, collect intermediate point, and avoid the data variation critical point that signal generates operating mode.

Claims (5)

1. the method for a battery assembly off-line test platform multithreading time synchronized, this multithreading time synchronized is a kind of control strategy in battery assembly off-line test platform, main realization generates the synchronous operation of thread and CAN communication thread, so that main thread carries out Data Comparison to signal; It comprises the following steps: first, and main thread creates signal and generates thread and CAN communication thread; Secondly, signal generation thread and CAN communication thread carry out initial synchronisation; Again, CAN communication thread carries out data sampling by a kind of time warping method; Finally, main thread generates thread-data to signal and CAN communication thread-data contrasts, and reaches a conclusion.
2. the method for a kind of battery assembly off-line test platform multithreading time synchronized according to claim 1, is characterized in that: main thread creates signal and generates thread and CAN communication thread; Signal generates thread for providing the physical signalling detected needed for each function of battery assembly; CAN communication thread with the data (as voltage, electric current, temperature etc.) receiving signal that battery assembly gathers and generate thread.
3. the method for a kind of battery assembly off-line test platform multithreading time synchronized according to claim 1, is characterized in that: signal generates thread and CAN communication thread carries out initial synchronisation; Synchronous method is the system time that two threads wait for next second of PC simultaneously, and when next second system time arrives, then bring into operation each operating mode respectively, realizes initial synchronisation.
4. the method for a kind of battery assembly off-line test platform multithreading time synchronized according to claim 1, is characterized in that: CAN communication thread carries out data sampling by a kind of time warping method; The method of sampling is the data variation operating mode generating thread according to signal, utilizes time warping method, collects intermediate point, and avoids the data variation critical point that signal generates operating mode.
5. the method for a kind of battery assembly off-line test platform multithreading time synchronized according to claim 1, is characterized in that; Main thread generates thread-data to signal and CAN communication thread-data contrasts, and pass through the change of the every data of interface real-time display system and the result of battery system of man-machine interactive platform, and record and preserve test data, obtain 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 true CN104881329A (en) 2015-09-02
CN104881329B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109842575A (en) * 2017-11-27 2019-06-04 中国航空工业集团公司西安航空计算技术研究所 A kind of big tolerance sample circuit of 429 bus receiving nodes

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

Cited By (2)

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

Also Published As

Publication number Publication date
CN104881329B (en) 2018-08-21

Similar Documents

Publication Publication Date Title
CN106708168B (en) multiprocessor system and clock synchronization method
CN103605023B (en) A kind of combining unit time response measuring method and measurement apparatus
CN103278791B (en) The electronic mutual inductor amplitude phase error check system that Networkable detects
CN103869182B (en) The combining unit transient test system controlled based on the Precise Discrete time
CN103197978B (en) Controller, multiple redundancy control system and synchronisation control means thereof
CN103345192B (en) Intelligent clock synchronous-control circuit used for photoelectric tracker
CN102315985B (en) Time synchronization precision test method for intelligent device adopting IEEE1588 protocols
CN102590619A (en) Method for detecting time synchronization capacity of real-time measurement equipment based on timing variable
CN103760439A (en) Automatic test system of avionic system
CN102967846A (en) Fault self-checking method for intelligent ammeter
CN105388751B (en) A kind of method and system for clock transition anti-in EMU
CN201072597Y (en) Automatic detection instrument for aviation electronic flight instrument
CN103616591A (en) Simulation device and method of characters of merging unit of intelligent transformer substation
CN203259610U (en) Merging unit accurate time testing instrument based on analog signal digital transmission
CN101931580A (en) System on chip adopting ARINC 659 rear panel data bus interface chip
CN105699789A (en) Identification method of fault indicator installation phase sequence
CN105446197A (en) Train control ground key data detecting device
CN204065697U (en) A kind of automatic testing equipment of avionics system
CN103439597A (en) Merging unit synchronous punctual tester based on analog quantity digitized transmission and method therefore
CN102724033A (en) Method and main control veneer for realizing alignment of phase positions of master clock and reserved clock
CN202486606U (en) Adaptive multi-signal-source timing equipment in intelligent power grid and report analysis system
CN104881329A (en) Battery assembly offline detection platform multithreading time synchronization method
CN106451323B (en) It is a kind of solve intelligent substation difference combining unit between latency issue on-site calibrating method
CN106849346B (en) A kind of system for testing power distribution automation equipment time adjustment function and timekeeping performance
CN103983935A (en) Indicating instrument detecting system 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
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

CI03 Correction of invention patent
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

TR01 Transfer of patent right
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.