CN104571027A - BMS upper computer data recording method and data site reduction method - Google Patents

BMS upper computer data recording method and data site reduction method Download PDF

Info

Publication number
CN104571027A
CN104571027A CN201410801479.9A CN201410801479A CN104571027A CN 104571027 A CN104571027 A CN 104571027A CN 201410801479 A CN201410801479 A CN 201410801479A CN 104571027 A CN104571027 A CN 104571027A
Authority
CN
China
Prior art keywords
data
file
host computer
message
bms
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
CN201410801479.9A
Other languages
Chinese (zh)
Other versions
CN104571027B (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.)
Huizhou Epower Electronics Co Ltd
Original Assignee
Huizhou Epower Electronics 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 Huizhou Epower Electronics Co Ltd filed Critical Huizhou Epower Electronics Co Ltd
Priority to CN201410801479.9A priority Critical patent/CN104571027B/en
Publication of CN104571027A publication Critical patent/CN104571027A/en
Application granted granted Critical
Publication of CN104571027B publication Critical patent/CN104571027B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention discloses a BMS upper computer data recording method and a data site reduction method. The data recording method in which different BMS data are saved for multiple files by an upper computer comprises the following steps: a, recording the full message data of a communication channel and saving as the first file; b, analyzing the message data, detecting the validity of the message data, and dividing the message data into normal data and error data; c, saving the normal data as the second file seen by common users; d, saving the error data as the third file only seen by debugging personnel. In the data site reduction method based on the data recording method, the site receiving and analysis conditions of the upper computer are reduced by the method through utilizing the files produced by the data recording method. The error position of the BMS upper computer can be rapidly determined by debugging personnel with the method through file recording and site reduction, site data analysis is more convenient, and the error detecting efficiency of the upper computer is greatly improved.

Description

A kind of BMS host computer data record and the on-the-spot method of reducing of data thereof
Technical field
The present invention relates to host computer data management field, specifically refer to a kind of BMS host computer data record and the on-the-spot method of reducing of data thereof.
Background technology
Existing BMS host computer only can accept and resolve the historical failure data in BMS, and when receiving misdata, host computer cannot correctly process, and causes host computer frequently to report an error false information.Now, must manual confirmation error message be passed through, and last till and accepted all data.And for misdata, then cannot shield it because of the setting of host computer, user directly can see the misdata that host computer sends and information, is easy to cause the user being unfamiliar with system to produce erroneous judgement, reduces user to the trusting degree of system.
And the existing BMS host computer overwhelming majority is type field host computer, if depart from Commissioning field, host computer cannot be understood data voluntarily, once host computer breaks down at the scene, misdata just cannot be preserved smoothly.If at this moment when slip-stick artist detects with regard to this BMS, because misdata can not be saved, make slip-stick artist cannot orientation problem data Producing reason.But if data will be preserved, personnel after sale are then needed to use other softwares to preserve original CAN message at the scene, and late problems data are corresponding very difficult with original CAN message, artificial location can only be leaned on, BMS problem is caused to be difficult to be excluded, improve the investigation difficulty of problem, greatly reduce the investigation efficiency of BMS problem.
Summary of the invention
In view of this, problem to be solved by this invention is, provides a kind of data record method being convenient to problem investigation, and based on above-mentioned recording method for reappearing on-the-spot data restoration method.
In order to solve the problem, the invention provides following technical scheme: a kind of BMS host computer data record method, described host computer preserves many parts of files for different B MS data, comprises following performing step:
A. record the complete message data of communication channel, save as file one;
B. analytic message data, carry out legitimacy detection to message data, and described message data is divided into normal data and misdata;
C. described normal data is saved as file two, watch for general user;
D. described misdata is saved as file three, only for commissioning staff's viewing.
Preferably, in described step a, this file one is saved as TXT formatted file, as raw readings file.
Preferably, the normal data in described step b is detect through legitimacy the data meeting specific protocol standard, and described misdata is detect through legitimacy the data not meeting specific protocol standard.
Preferably, in described step c, file two is saved as CSV formatted file, as the data that general user can watch.
Preferably, the file three in described steps d also comprises the numerical value of this misdata, the position mark of corresponding message data and error reason, saves as the BAK formatted file of encryption.
Preferably, described communication channel is CAN passage or RS485 passage.
Based on above-mentioned BMS host computer data record method produce the on-the-spot method of reducing of BMS host computer data of file, use two sets of data reception mechanisms to receive data, then the data received are sent into parsing module resolve; Wherein first set data receiver mechanism is for receiving the conventional api interface data setting hardware, second sets of data reception mechanism for receive use file one simulated field after the simulated data that produces, finally adopt this second sets of data reception mechanism to receive simulated data for the reduction of data scene.
Preferably, described simulated field comprises following performing step:
A. file reading three, extracts the position marker information of message data corresponding to misdata;
B. the file one of reading and saving wrong data position message data;
C. read data transformations is become message data, the sending mode of analog communication passage, form virtual message data and receive for data receiver mechanism;
Preferably, described two sets of data reception mechanisms share same parsing module.
Compared with prior art, the present invention contains following beneficial effect:
1. host computer in use, never again because encounter problems data, and produce interface situation that is stuck or report warning message frequently, improve the friendly that host computer uses interface, and the data only shown after correct parsing, mislead after user can be avoided to touch misdata and make wrong reaction;
2. commissioning staff is when debugging, directly can obtain the message data of complete preservation, and the error message file only analyzed for commissioning staff preserved, this error message file is because there is the position mark of corresponding original message error in data information, the original message data this can being preserved misdata recall, and carry out scene reduction, determine rapidly error reason and position, substantially increase the efficiency that problem is got rid of;
3. because it has data convert function, even if personnel are at the scene this host computer not, also can preserve original message data by other special softwares, and carry out parsing reduction afterwards, so that commissioning staff locates and solves this problem afterwards, improve the degree of flexibility of issue handling.
Accompanying drawing explanation
Fig. 1 is the FB(flow block) of data record method embodiment of the present invention;
Fig. 2 is the FB(flow block) of the on-the-spot method of reducing embodiment of data of the present invention.
Embodiment
Below in conjunction with drawings and Examples, content of the present invention is described in further detail.
The present invention is based on a kind of BMS host computer data record of BMS host computer and the on-the-spot method of reducing of data thereof.
As shown in Figure 1, a kind of BMS host computer data record method preserves many parts of files for different B MS data, comprises the following steps:
S1, the complete message data of record communication channel, save as file one; In the present embodiment, adopt CAN passage as the communication channel of the present embodiment, after host computer one sends reading order, just start to record original CAN message data complete in CAN passage, and this message data is saved as TXT formatted file as raw readings file, be saved in host computer, this raw readings file can carry out sequencing numbers according to time or other quantification manners, can carry out fast finding to it when needing to check.
S2, after receiving unit data, according to the agreement of the historical failure data of particular preset, resolves the data after this reception, and carries out legitimacy detection to this part data.In the process of carrying out legitimacy detection, host computer can be classified to these data, meets the data of specific protocol standard as correct data, and do not meet the data of specific protocol standard as misdata using through legitimacy detection using through legitimacy detection.
S3, this correct data saves as CSV formatted file as file two, is user's visual data, by the display interface that is sent to control system after host computer process for user's viewing; And this this misdata is saved as the BAK formatted file of encryption as file three, this file can't be sent on the display interface of control system by host computer, avoid misleading after user touches misdata and making wrong reaction, this host computer also can be avoided because of error message to produce interface situation that is stuck or warning announcement frequently, improve the friendly that host computer uses.
In this file three, also comprise the numerical value of this misdata, the position mark of corresponding message data and error reason.Such as, when some variable formulated exceeds legal range, this can be exceeded the position mark of some variable place message data of legal range out, and the file one at this message data place is marked, again by this error reason " some variable of formulation exceeds legal range " and above-mentioned label record in file three, so that this error message can extract by commissioning staff smoothly facilitate find problem, and the host computer need not preserving this information as tradition, needing problem one by one again to investigate one time just can problem identificatioin position.
As shown in Figure 2, for a kind of based on above-mentioned BMS host computer data record method produce the on-the-spot method of reducing of data of file, the method uses two sets of data reception mechanisms to receive data, then the data received are sent into parsing module resolves; Wherein first set data receiver mechanism is for receiving the api interface data of conventional CAN device hardware, second sets of data reception mechanism for receive use file one simulated field after the simulated data that produces, finally adopt this second sets of data reception mechanism to receive simulated data for the reduction of data scene.
In the present embodiment, this simulated field comprises following performing step:
A. file reading three, extracts the position marker information of message data corresponding to misdata;
B. the file one of reading and saving wrong data position message data;
C. read data transformations is become message data, the sending mode of analog communication passage, form virtual message data and receive for data receiver mechanism.
Specifically, the file three that this is first saved as BAK form by step a reads, these file three guarantees contain the mark of misdata position, and the information of error reason, commissioning staff can find according to this error message the file one be associated with this error message fast, i.e. the original message data file at misdata place.The original message data file at the misdata place that this finds by step b, change into the CAN message data adapted with this communication channel, and simulate the sending mode of CAN passage, form virtual CAN message, then received by the data receiver mechanism of the second cover for the simulated data produced after receiving simulated field.
After the data receiver of data receiver mechanism, these data can be resolved by parsing module by data receiver mechanism, in the present embodiment, because what this simulated data adopted is the CAN message data simulating CAN channel transfer, so its data are identical with the data that routine data reception mechanism receives, so preferred, two sets of data reception mechanisms can corresponding same set of parsing module, can avoid the problem needing to adopt new parsing module because of the data receiver mechanism newly increased.
By the method that above data scene is reproduced, can by the resolving of these whole data, more complete reproduction is out, this reduces field condition to commissioning staff and plays great booster action, can allow commissioning staff fast and confirm erroneous point definitely.
In the present embodiment, the TXT original message data file of preservation, can be taken away from the scene and the data source used as off-line.Can when personnel have this host computer at the scene, by other CAN management softwares, preserve original CAN message data and take away from the scene, the on-the-spot method of reducing of data recycling above-mentioned host computer realizes on-the-spot reduction.Like this, can avoid not having at the scene to lose misdata record when can resolve this log file, miss the chance of the problem of locating errors.Preferably, for the CAN message data management software of different editions, the message data TXT formatted file stored also has done format compatible process, and during to ensure that scene does not have an above-mentioned BMS host computer, the original message data file that CAN message data management software can be made to preserve is applicable to host computer.
Above-described embodiment is only preferably implementation of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these apparent replacement forms all belong to protection scope of the present invention.

Claims (9)

1. a BMS host computer data record method, is characterized in that: described host computer preserves many parts of files for different B MS data, comprises following performing step:
A. record the complete message data of communication channel, save as file one;
B. analytic message data, carry out legitimacy detection to message data, and described message data is divided into normal data and misdata;
C. described normal data is saved as file two, watch for general user;
D. described misdata is saved as file three, only for commissioning staff's viewing.
2. BMS host computer data record method according to claim 1, is characterized in that: in described step a, this file one is saved as TXT formatted file, as raw readings file.
3. BMS host computer data record method according to claim 1, it is characterized in that: the normal data in described step b is detect through legitimacy the data meeting specific protocol standard, described misdata is detect through legitimacy the data not meeting specific protocol standard.
4. BMS host computer data record method according to claim 1, is characterized in that: in described step c, file two is saved as CSV formatted file, as the data that general user can watch.
5. BMS host computer data record method according to claim 1, is characterized in that: the file three in described steps d also comprises the numerical value of this misdata, the position mark of corresponding message data and error reason, saves as the BAK formatted file of encryption.
6. BMS host computer data record method according to claim 1, is characterized in that: described communication channel is CAN passage or RS485 passage.
7. one kind based on BMS host computer data record method described in claim 1-6 produce the on-the-spot method of reducing of BMS host computer data of file, it is characterized in that: use two sets of data reception mechanisms to receive data, then the data received feeding parsing module is resolved; Wherein first set data receiver mechanism is for receiving the conventional api interface data setting hardware, second sets of data reception mechanism for receive use file one simulated field after the simulated data that produces, finally adopt this second sets of data reception mechanism to receive simulated data for the reduction of data scene.
8. the on-the-spot method of reducing of BMS host computer data according to claim 7, is characterized in that: described simulated field comprises following performing step:
A. file reading three, extracts the position marker information of message data corresponding to misdata;
B. the file one of reading and saving wrong data position message data;
C. read data transformations is become message data, the sending mode of analog communication passage, form virtual message data and receive for data receiver mechanism.
9. the on-the-spot method of reducing of the BMS host computer data according to claim 7-8 any one, is characterized in that: described two sets of data reception mechanisms share same parsing module.
CN201410801479.9A 2014-12-22 2014-12-22 A kind of BMS host computers data record and its data scene restoring method Active CN104571027B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410801479.9A CN104571027B (en) 2014-12-22 2014-12-22 A kind of BMS host computers data record and its data scene restoring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410801479.9A CN104571027B (en) 2014-12-22 2014-12-22 A kind of BMS host computers data record and its data scene restoring method

Publications (2)

Publication Number Publication Date
CN104571027A true CN104571027A (en) 2015-04-29
CN104571027B CN104571027B (en) 2017-11-10

Family

ID=53087355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410801479.9A Active CN104571027B (en) 2014-12-22 2014-12-22 A kind of BMS host computers data record and its data scene restoring method

Country Status (1)

Country Link
CN (1) CN104571027B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030050841A1 (en) * 2001-08-28 2003-03-13 Preston Kevin W. Efficient collection of information from vending machines
CN101763293A (en) * 2009-12-30 2010-06-30 北京数码大方科技有限公司 Processing method and device of error message
CN202331594U (en) * 2011-12-14 2012-07-11 北京普莱德新能源电池科技有限公司 Electric automobile CAN (controller area network) bus data recorder
CN202817806U (en) * 2012-07-18 2013-03-20 西安冠通数源电子有限公司 Remote control system for transmitting BMS battery management system state information data back
CN103178998A (en) * 2013-03-20 2013-06-26 中国人民解放军91404部队 Test and control data transmission method and device
CN103568863A (en) * 2013-11-15 2014-02-12 合肥国轩高科动力能源股份公司 Real-time monitoring diagnostic system and diagnostic method for electromobile battery management system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030050841A1 (en) * 2001-08-28 2003-03-13 Preston Kevin W. Efficient collection of information from vending machines
CN101763293A (en) * 2009-12-30 2010-06-30 北京数码大方科技有限公司 Processing method and device of error message
CN202331594U (en) * 2011-12-14 2012-07-11 北京普莱德新能源电池科技有限公司 Electric automobile CAN (controller area network) bus data recorder
CN202817806U (en) * 2012-07-18 2013-03-20 西安冠通数源电子有限公司 Remote control system for transmitting BMS battery management system state information data back
CN103178998A (en) * 2013-03-20 2013-06-26 中国人民解放军91404部队 Test and control data transmission method and device
CN103568863A (en) * 2013-11-15 2014-02-12 合肥国轩高科动力能源股份公司 Real-time monitoring diagnostic system and diagnostic method for electromobile battery management system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杨刘倩,詹昌辉: "电动汽车BMS测试系统的数据通信", 《计算机与现代化》 *
王海英,等: "基于CAN总线的电动车动力电池组采集系统设计", 《电源技术》 *

Also Published As

Publication number Publication date
CN104571027B (en) 2017-11-10

Similar Documents

Publication Publication Date Title
CN101873259B (en) SCTP (Stream Control Transmission Protocol) message identification method and device
TW200739533A (en) Information playback system using information storage medium
CN106777060B (en) Node type seismograph data file management system and method
CN105159831A (en) Method for automatically monitoring quality of software code
WO2006065719A3 (en) Method and apparatus for implementing automatic display of help information with detection of error condition for meter connection
CN105468482A (en) Hard disk position identification and fault diagnosis method and server device
CN105160251A (en) Analysis method and device of APK (Android Packet) application software behavior
EP2416554A3 (en) Image reading apparatus, control method thereof and image reading system
CN102331487A (en) Device and method for automatically processing water quality monitoring data
CN112100634A (en) Data information security protection method
CN105142018A (en) Programme identification method and programme identification device based on audio fingerprints
CN105216454A (en) A kind of host computer implementation method of electric detonator production note decoding apparatus
CN205281498U (en) Experiment original gathers processing system based on mobile intelligent Terminal
WO2009064636A3 (en) Displaying server errors on the client machine that caused the failed request
EP3851963A3 (en) Incident detection and management
CN101762320B (en) Method for drawing audio waveform under MAC desktop and system thereof
CN107807862A (en) Detect the method, apparatus and server of hard disk failure point
CN104571027A (en) BMS upper computer data recording method and data site reduction method
CN106886471A (en) A kind of read-write fault detection method and system based on disk in linux
JP5788681B2 (en) Handwritten signature acquisition apparatus, handwritten signature acquisition program, and handwritten signature acquisition method
US7958405B1 (en) Automatic testing system and method for judging whether universal serial bus device is configured to computer
US20070294441A1 (en) Usb keystroke monitoring apparatus and method
CN103996282B (en) A kind of infrared waveform detection method
CN102404320A (en) SFF-8485 agreement fault-tolerant analyzing method based on sequence flow detecting
CN203490697U (en) Data collecting system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant