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 PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000009467 reduction Effects 0.000 title claims abstract description 10
- 238000004891 communication Methods 0.000 claims abstract description 11
- 230000007246 mechanism Effects 0.000 claims description 23
- 238000001514 detection method Methods 0.000 claims description 6
- 239000000284 extract Substances 0.000 claims description 4
- 238000013501 data transformation Methods 0.000 claims description 3
- 239000003550 marker Substances 0.000 claims description 3
- 238000004458 analytical method Methods 0.000 abstract 1
- 238000007405 data analysis Methods 0.000 abstract 1
- 230000008569 process Effects 0.000 description 4
- 238000011835 investigation Methods 0.000 description 3
- 238000004321 preservation Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000013523 data management Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009472 formulation Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000011002 quantification Methods 0.000 description 1
- 238000004064 recycling Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total 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] or computer integrated manufacturing [CIM]
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Manufacturing & Machinery (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Computer And Data Communications (AREA)
- Debugging And Monitoring (AREA)
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
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.
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)
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 |
-
2014
- 2014-12-22 CN CN201410801479.9A patent/CN104571027B/en active Active
Patent Citations (6)
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)
Title |
---|
杨刘倩,詹昌辉: "电动汽车BMS测试系统的数据通信", 《计算机与现代化》 * |
王海英,等: "基于CAN总线的电动车动力电池组采集系统设计", 《电源技术》 * |
Also Published As
Publication number | Publication date |
---|---|
CN104571027B (en) | 2017-11-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109960642A (en) | Automatic test approach and device | |
CN106777060B (en) | Node type seismograph data file management system and method | |
CN103200395B (en) | A kind of intelligent newspapers barrier optical transmitter and receiver and network management client end system thereof | |
CN103488488A (en) | Text input check method, device ad mobile terminal | |
CN104915668A (en) | Character information identification method for medical image and device thereof | |
CN105631361A (en) | Application program channel source identification method and device | |
CN105468482A (en) | Hard disk position identification and fault diagnosis method and server device | |
CN104252531A (en) | File type identification method and device | |
WO2018069950A1 (en) | Method, system, and program for analyzing logs | |
CN103886258A (en) | Method and device for detecting viruses | |
CN105142018A (en) | Programme identification method and programme identification device based on audio fingerprints | |
CN205281498U (en) | Experiment original gathers processing system based on mobile intelligent Terminal | |
CN101833496A (en) | Detection device based on host anti-object reusability of hard disk and detection method thereof | |
CN101762320B (en) | Method for drawing audio waveform under MAC desktop and system thereof | |
TW200632720A (en) | Method and apparatus for implementing automatic display of help information with detection of error condition for meter connection | |
CN104571027A (en) | BMS upper computer data recording method and data site reduction method | |
CN107807862A (en) | Detect the method, apparatus and server of hard disk failure point | |
US7958405B1 (en) | Automatic testing system and method for judging whether universal serial bus device is configured to computer | |
CN104331945B (en) | A kind of data collection task station and its control method with pre- input function | |
CN106886471A (en) | A kind of read-write fault detection method and system based on disk in linux | |
CN102737175A (en) | Equipment access method and user equipment and device in data security protection and control | |
US20070294441A1 (en) | Usb keystroke monitoring apparatus and method | |
CN103996282B (en) | A kind of infrared waveform detection method | |
EP3851963A3 (en) | Incident detection and management | |
CN102404320A (en) | SFF-8485 agreement fault-tolerant analyzing method based on sequence flow detecting |
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 |