CN105808730A - CAN storage module based data analysis method - Google Patents

CAN storage module based data analysis method Download PDF

Info

Publication number
CN105808730A
CN105808730A CN201610133389.6A CN201610133389A CN105808730A CN 105808730 A CN105808730 A CN 105808730A CN 201610133389 A CN201610133389 A CN 201610133389A CN 105808730 A CN105808730 A CN 105808730A
Authority
CN
China
Prior art keywords
data
received
serial ports
stored
analysing method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610133389.6A
Other languages
Chinese (zh)
Inventor
谢志丹
李宁
周宝田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HARBIN VITI ELECTRONICS CO Ltd
Original Assignee
HARBIN VITI 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 HARBIN VITI ELECTRONICS CO Ltd filed Critical HARBIN VITI ELECTRONICS CO Ltd
Priority to CN201610133389.6A priority Critical patent/CN105808730A/en
Publication of CN105808730A publication Critical patent/CN105808730A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices

Abstract

The present invention discloses a CAN storage module based data analysis method. Running data of an electric vehicle is stored in a CAN storage module, and the running data of the vehicle is downloaded and displayed by means of an RS232 serial port or a USB port. The data analysis method comprises the following steps: when a command of downloading data is received, performing serial port loading, and determining whether a serial port is occupied, and if no, opening each thread for receiving and processing data; when a user selects to download the data from the serial port, starting a timer for processing data, storing the received data, and performing state determining according to the received data; and determining whether a header requirement is met, and after a success, continuing performing a next step of state determining until verification succeeds, and when a set number of frames is received, storing data received by different processes into different files.

Description

A kind of data analysing method based on CAN memory module
Technical field
The present invention relates to new-energy automobile field, in particular to a kind of data analysing method based on CAN memory module.
Background technology
With being continually changing of Domestic Environment, the application of electric automobile is more and more extensive, it is necessary to the data of storage also increase substantially.For how efficiently, accurately show the mass data stored, and how correctly to judge that the transport condition of vehicle is still problem demanding prompt solution according to the mass data stored.
Summary of the invention
The present invention provides a kind of data analysing method based on CAN memory module, in order to the mass data of display storage efficient, accurate.
For reaching above-mentioned purpose, the invention provides a kind of data analysing method based on CAN memory module, the service data of electric automobile is stored in CAN memory module, is downloaded by RS232 serial ports or USB port, is shown vehicle operation data, and described data analysing method comprises the following steps:
When receiving the order downloading data, carry out serial ports loading, it is judged that whether serial ports is occupied, as occupied in not having, open each thread receiving and processing data;
When user selects to download data from serial ports, startup processes the intervalometer of data, the data received is stored, and carries out condition adjudgement according to received data;
Judge whether to meet prefix requirement, after success, be further continued for carrying out next step condition adjudgement, until verifying successfully, when, after the frame number receiving setting, the data that different processes receive being stored as different files.
Further, when data all finish receiving, automatic jump to the display interface of correspondence.
Further, described file is dri file.
Instant invention overcomes the common problems such as current and writing function module communication:
1, in the process that data are downloaded, adopt status mechanism, solve the problem that speed of download is made mistakes slowly and easily.
2, after analyzing, data store in the way of trip file, can obtain the data showing each period flexibly.
3, conventional software can analytical data amount few and display interface is dumb, not humane, this software can analyze and show substantial amounts of vehicle data, up to 280 battery informations.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 and Fig. 2 is the part interface sectional drawing of invention software;
Fig. 3 is the data analysing method flow chart based on CAN memory module of one embodiment of the invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not paying creative work premise, broadly fall into the scope of protection of the invention.
Fig. 1 illustrates: these part data include speed, traction fault, 15KwU/V/W cross streams voltage, 15KwU/V/W cross streams electric current, power failure, feedback current line limit value etc..
Fig. 2 is the battery information display interface sectional drawing of the software of the present invention;
Fig. 2 illustrates: as it can be seen, battery information can be checked by two ways, one is by selecting different trip file, carrying out video data;Two is by setting the time needing to check, showing run-length data.These part data can also be passed through EXCEL derivation and check.This part packet is containing 280 battery pack informations, and the information of 20 kinds of analog quantity numerical value such as traction electric machine temperature, driving inverter temperature and 18 quantity of states.This part, data rich, data volume is big, processes and adopts multiple threads, it is prevented that page deadlock phenomenon.
Fig. 3 is the data analysing method flow chart based on CAN memory module of one embodiment of the invention;The service data of electric automobile is stored in CAN memory module, is downloaded by RS232 serial ports or USB port, is shown vehicle operation data, and described data analysing method comprises the following steps:
When receiving the order downloading data, carry out serial ports loading, it is judged that whether serial ports is occupied, as occupied in not having, open each thread receiving and processing data;
When user selects to download data from serial ports, startup processes the intervalometer of data, the data received is stored, and carries out condition adjudgement according to received data;
Judge whether to meet prefix requirement, after success, be further continued for carrying out next step condition adjudgement, until verifying successfully, when, after the frame number receiving setting, the data that different processes receive being stored as different files (as being dri file).
Wherein, the return file in Fig. 3 is environ (return function) .dat file, and index file is index (index) .dat file.
Further, when data all finish receiving, automatic jump to the display interface of correspondence.
Above-mentioned downloading process is safe and accurate, quick, and the data of storage can be taked encryption.When display, just it is decrypted process.Increase the safety of its archive..
Above-described embodiment adopts serial port, it is possible in real time by the running status of serial acquisition vehicle.Adopting Indexing Mechanism, carry out the download of different pieces of information, then the mode to the data acquisition state machine of transmission, carries out sequential processing to different conditions, finally all data is being carried out byte verification, can be stored by the data verified.
Meanwhile, the file of each storage all represents different strokes;Distinguished the data of each period by trip file, and store it in information of vehicles in.And the data at Downloadable different time interval store respectively.
Adopt USB port download scenarios (being equivalent to off-line download), may finally check, by the software of PC, the data resolved after downloading.Agreement is flexible, and by the verification mode of security word, the data at different time interval divide, and carries out dissection process and storage respectively.
Additionally, the present invention may also display figure table function, adopt the data of the form display transmission of form.Time and numerical value including running data.Analysis to concrete numerical value, according to after the message protocol of each quantity of state and corresponding resolution and threshold process, just can need to display.Data volume is big, analyzes precisely, according to different requirements, can show different precision.
The present invention can be realized by Fig. 1, the software shown in 2, has the following characteristics that
1, carried convenient under data, speed is fast, and this software provides serial ports, USB port two ways to download.Wherein serial communication adopts the Indexing Mechanism of safety to be downloaded, and adopts the state machine mode of error correction to resolve.USB port then can pass through the quick resolution data of analysis mode of security word.
2, there is visual figure table function, adopt the mode of multi-page to display up to the state of 280 cells.
3, this data analysis software, it is possible to by the serial acquisition data to any some day.User is easy to use, by the selection of run-length data, can show that a certain phase data provides convenient to searching in mass data, it is possible to make client better monitor the running status of vehicle.
Compared with prior art, the invention have the advantages that
1, by the communication with CAN memory module, both can the configuration information such as the time of flexible configuration module, information of vehicles, can provide the user again the platform checking storage data, convenient accurately.
2, data volume is downloaded big, it is possible to resolve the data of travel condition of vehicle of 168 hours of interval storage of 200ms, 1s and 20s respectively.
3, data are downloaded provides serial ports, USB port two ways to download, and is downloaded by serial ports, adopts the mode that status mechanism and XOR negate to verify, and data are downloaded accurately and reliably.And USB flash disk speed of download is ultrafast, the total data of parsing module can complete for several seconds.
4, the serial ports for storage data downloads part, adopts the mode by index data, by the analyzing and processing to every index, is just read out the data of correspondence, accurately and reliably.Data transmission fault or time-out have all been processed.
One of ordinary skill in the art will appreciate that: accompanying drawing is the schematic diagram of an embodiment, module or flow process in accompanying drawing are not necessarily implemented necessary to the present invention.
One of ordinary skill in the art will appreciate that: the module in device in embodiment can describe in the device being distributed in embodiment according to embodiment, it is also possible to carries out respective change and is disposed other than in one or more devices of the present embodiment.The module of above-described embodiment can merge into a module, it is also possible to is further split into multiple submodule.
Last it is noted that above example is only in order to illustrate technical scheme, it is not intended to limit;Although the present invention being described in detail with reference to previous embodiment, it will be understood by those within the art that: the technical scheme described in previous embodiment still can be modified by it, or wherein portion of techniques feature is carried out equivalent replacement;And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of embodiment of the present invention technical scheme.

Claims (3)

1. the data analysing method based on CAN memory module, it is characterized in that, the service data of electric automobile is stored in CAN memory module, is downloaded by RS232 serial ports or USB port, is shown vehicle operation data, and described data analysing method comprises the following steps:
When receiving the order downloading data, carry out serial ports loading, it is judged that whether serial ports is occupied, as occupied in not having, open each thread receiving and processing data;
When user selects to download data from serial ports, startup processes the intervalometer of data, the data received is stored, and carries out condition adjudgement according to received data;
Judge whether to meet prefix requirement, after success, be further continued for carrying out next step condition adjudgement, until verifying successfully, when, after the frame number receiving setting, the data that different processes receive being stored as different files.
2. data analysing method according to claim 1, it is characterised in that when data all finish receiving, automatic jumps to the display interface of correspondence.
3. data analysing method according to claim 1, it is characterised in that described file is dri file.
CN201610133389.6A 2016-03-09 2016-03-09 CAN storage module based data analysis method Pending CN105808730A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610133389.6A CN105808730A (en) 2016-03-09 2016-03-09 CAN storage module based data analysis method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610133389.6A CN105808730A (en) 2016-03-09 2016-03-09 CAN storage module based data analysis method

Publications (1)

Publication Number Publication Date
CN105808730A true CN105808730A (en) 2016-07-27

Family

ID=56467899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610133389.6A Pending CN105808730A (en) 2016-03-09 2016-03-09 CAN storage module based data analysis method

Country Status (1)

Country Link
CN (1) CN105808730A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995258A (en) * 2017-11-03 2018-05-04 长安大学 Connect equipment and data transmission method
CN109802759A (en) * 2018-12-27 2019-05-24 北京航天福道高技术股份有限公司 The method of data receiver processing

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103293008A (en) * 2013-06-27 2013-09-11 长城汽车股份有限公司 Automobile diagnosing device
CN103795618A (en) * 2014-02-18 2014-05-14 北京腾控科技有限公司 Communication system of intelligent device, programmable protocol gateway device and communication method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103293008A (en) * 2013-06-27 2013-09-11 长城汽车股份有限公司 Automobile diagnosing device
CN103795618A (en) * 2014-02-18 2014-05-14 北京腾控科技有限公司 Communication system of intelligent device, programmable protocol gateway device and communication method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995258A (en) * 2017-11-03 2018-05-04 长安大学 Connect equipment and data transmission method
CN107995258B (en) * 2017-11-03 2021-01-05 长安大学 Connection device and data transmission method
CN109802759A (en) * 2018-12-27 2019-05-24 北京航天福道高技术股份有限公司 The method of data receiver processing

Similar Documents

Publication Publication Date Title
CN110197072B (en) Method and system for discovering software security vulnerability, storage medium and computer equipment
CN110008129B (en) Reliability test method, device and equipment for storage timing snapshot
CN105223889A (en) A kind of method being applicable to the automatic monitoring PMC RAID card daily record of producing line
CN105808730A (en) CAN storage module based data analysis method
CN103997514A (en) File parallel transmission method and system
CN109766205A (en) Abnormality eliminating method, device, computer equipment and storage medium
CN106201811A (en) The fault recovery method of application program and terminal
CN105786539A (en) File downloading method and device
CN106874196B (en) Automatic test exception handling method and automatic test system
CN109918221B (en) Hard disk error reporting analysis method, system, terminal and storage medium
CN116701317A (en) File storage and downloading method, device and equipment
CN113386609A (en) Charging pile maintenance method and related equipment
CN116561818A (en) Industrial control system internal logic analysis method, system, equipment and medium
CN116257397A (en) Pressure testing method, pressure testing device, storage medium and pressure testing equipment
CN110119335A (en) Server NTP process monitoring method, electronic device and storage medium
CN110866380A (en) Method and terminal for filling in information field content
CN112765041B (en) Game automation testing method and device and electronic equipment
CN112463596B (en) Test case data processing method, device and equipment and processing equipment
CN114879647A (en) ECU fault code test system, electronic controller and car
CN114519025A (en) Method and system for automatically analyzing CAN bus data of intelligent network-connected automobile
CN112445669B (en) Storage performance testing method and device and electronic equipment
CN102970651B (en) Processing method and device and mobile terminal for weather forecast data
CN107491287B (en) Instruction execution method and device
CN112752154A (en) Software upgrading method and device and smart television
CN115357458B (en) Method and device for testing TISDM display information

Legal Events

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

Application publication date: 20160727

RJ01 Rejection of invention patent application after publication