CN114546291A - Method, device and system for circularly storing vehicle bus data - Google Patents
Method, device and system for circularly storing vehicle bus data Download PDFInfo
- Publication number
- CN114546291A CN114546291A CN202210192205.9A CN202210192205A CN114546291A CN 114546291 A CN114546291 A CN 114546291A CN 202210192205 A CN202210192205 A CN 202210192205A CN 114546291 A CN114546291 A CN 114546291A
- Authority
- CN
- China
- Prior art keywords
- data
- vehicle bus
- memory
- storage
- full
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 230000015654 memory Effects 0.000 claims abstract description 92
- 238000013500 data storage Methods 0.000 claims abstract description 12
- 238000004590 computer program Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 claims description 4
- 125000004122 cyclic group Chemical group 0.000 claims 1
- 230000007547 defect Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0614—Improving the reliability of storage systems
- G06F3/0619—Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0683—Plurality of storage devices
- G06F3/0688—Non-volatile semiconductor memory arrays
-
- 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
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Traffic Control Systems (AREA)
- Time Recorders, Dirve Recorders, Access Control (AREA)
Abstract
The invention discloses a method, a device and a system for circularly storing vehicle bus data, wherein the method comprises the steps of storing received external vehicle bus data into a first EMMC memory; the first EMMC memory adopts a sequential storage mode, sequentially records the latest data, and jumps to the starting position to record again after the memory is full; storing the received external vehicle bus data into a second EMMC memory, wherein the second EMMC memory adopts an interval storage mode, starts to store data of the 2 nd turn after the data is stored for 1 turn, relocates to the initial storage position of the memory at the moment, and records a new data every 1 data; when the data storage of the 2 nd turn is full, recording 1 new data every 2 data of the 3 rd turn, and so on; the invention is used for researching the historical state data of the vehicle, and can draw the historical trend chart of each parameter by using data analysis software, thereby analyzing the operation habits of users, the defects of parts and the like in the life cycle of the vehicle.
Description
Technical Field
The invention relates to a method, a device and a system for circularly storing vehicle bus data, and belongs to the technical field of vehicle bus data recording.
Background
The vehicle bus data recorded by the data recorder has important significance for analyzing the historical state of the vehicle, and the prior art is difficult to ensure that a data storage area is not damaged. Meanwhile, with the improvement of the vehicle intelligence level, the data transmission quantity of a vehicle bus is larger and larger, the limited storage space of a data recorder is easy to store fully, and the data can be covered from the earliest data under the general condition after the data is stored fully, so that the data stored all the time is the data in the latest time, a data curve in the life cycle of the vehicle cannot be reflected, and if only one storage area is provided, the data is lost completely after the storage area is damaged.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provides a method, a device and a system for circularly storing vehicle bus data, so that when one memory chip is damaged, the other memory chip can still normally operate, and the stored data on the other memory chip is still effective; at the same time, different memory strategies are employed on each memory chip. Sequentially storing data on a memory chip, full of slave head overlays; on the other memory chip, data are stored at intervals, and on the premise that the storage capacity is fixed, early history data are kept as far as possible. Because important data on the vehicle bus are sent in a cycle timing mode, the sending period is very short, approximately 20ms-200ms, and a plurality of pieces of data before and after the same parameter are the same or have small variation range. If the data is used as early data, the reference meaning of the data is not large, and if the historical data can be erased at intervals according to the time line, the integrity of the new data can be ensured, and partial historical data of each parameter can be reserved.
In order to achieve the purpose, the invention is realized by adopting the following technical scheme:
in a first aspect, the invention provides a method for vehicle bus data cycle storage, which comprises the following steps:
receiving external vehicle bus data;
storing the received external vehicle bus data in a first EMMC memory;
the received external vehicle bus data is stored in the second EMMC memory.
Furthermore, the first EMMC memory adopts a sequential storage mode, sequentially records the latest data, and jumps to the starting position to record again after the memory is full.
Further, the second EMMC memory adopts an interval storage mode, when the data storage is full of 1 circle, the 2 nd circle of data is stored, at the moment, the data is relocated to the initial storage position of the memory, and a new data is recorded every 1 data; when the 2 nd data is full, 1 new data is recorded in every 2 data in the 3 rd circle, and so on.
In a second aspect, the present invention provides a vehicle bus data cycle storage device, including:
a receiving unit for receiving external vehicle bus data;
a first storage unit for storing the received external vehicle bus data into the first EMMC memory; the first EMMC memory adopts a sequential storage mode, sequentially records the latest data, and jumps to the starting position to record again after the memory is full;
a second storage unit for storing the received external vehicle bus data into a second EMMC memory;
the second EMMC memory adopts an interval storage mode, when the data storage is full of 1 circle, the 2 nd circle of data is stored, the data is relocated to the initial storage position of the memory, and a new data is recorded every 1 data; when the 2 nd data is full, 1 new data is recorded in every 2 data in the 3 rd circle, and so on.
In a third aspect, the present invention provides a system for vehicle bus data cycle storage, comprising:
the processor receives external vehicle bus data through a communication interface, and stores the received external vehicle bus data into the first EMMC memory and the second EMMC memory through an internal bus of the equipment.
Further, the first EMMC memory and the second EMMC memory adopt different storage strategies.
Furthermore, the first MMC memory adopts a sequential storage mode to record the latest data sequentially, and jumps to the start position to record again after the memory is full.
Further, the second EMMC memory adopts an interval storage mode, when the data storage is full of 1 circle, the 2 nd circle of data is stored, at the moment, the data is relocated to the initial storage position of the memory, and a new data is recorded every 1 data; when the 2 nd data is full, 1 new data is recorded in every 2 data in the 3 rd circle, and so on.
In a fourth aspect, the invention provides an electronic device comprising a plurality of memories for storing vehicle bus data, and a processor implementing the steps of any of the preceding methods when the processor executes the computer program.
In a fifth aspect, the invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of any one of the preceding claims.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention provides a vehicle bus data cycle storage method, which is characterized in that an EMMC memory chip is added in a data recorder to realize that data is stored in two memories at the same time, so that the data loss caused by the damage of the memory chip when only one memory chip is used is prevented;
2. the invention provides a vehicle bus data cycle storage method, which adopts different storage strategies on different chips, wherein one chip is sequentially stored, and the full storage is covered from the beginning; in a limited storage space, the other chip can be used for researching the historical state data of the vehicle due to the fact that the early historical data of the vehicle is reserved, and historical trend graphs of all parameters can be drawn by means of data analysis software, so that the operation habits of users, defects of parts and the like in the life cycle of the vehicle can be analyzed.
Drawings
Fig. 1 is a schematic diagram of an interval storage method of a circular storage method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
Example 1
The embodiment introduces a method for circularly storing vehicle bus data, which comprises the following steps:
receiving external vehicle bus data;
storing the received external vehicle bus data in a first EMMC memory; the first MMC memory adopts a sequential storage mode, sequentially records the latest data, and jumps to the starting position to re-record after the memory is full;
storing the received external vehicle bus data into a second EMMC (embedded media card) memory, wherein the second EMMC memory adopts an interval storage mode, starts to store data of the 2 nd turn after the data is stored for 1 turn, relocates to the initial storage position of the memory at the moment, and records a new data every 1 data; when the 2 nd data is full, 1 new data is recorded in every 2 data in the 3 rd circle, and so on.
The contents designed in the above embodiments will be described below with reference to a preferred embodiment.
As shown in FIG. 2, 2 EMMC memories are used to simultaneously record bus update data, and different memories use different storage strategies.
The memory 1 adopts a sequential storage mode, sequentially records the latest data, and jumps to the starting position to record again after the memory is full. This method preferentially covers the oldest data. The memory 2 adopts an interval storage method, as shown in fig. 1, from a data storage area start position to a storage area end position of the memory, as a loop, that is, a turn. When the data storage area of the memory is traversed or stored, the next storage position jumps to the initial position of the memory to restart the calculation, which indicates that a new circle starts. In round 1, data is normally stored sequentially, one by one. When the 1 st circle is stored and the 2 nd circle is entered, the newly received data will be stored in the 2 nd, 4 th, 6 th and so on positions, and the data stored in the original 1 st circle will be covered in these positions. When the 2 nd circle is stored, and the 3 rd circle is started to be stored, the newly received data will be stored in the 3 rd, 6 th, 9 th and so on positions, and the original data stored in the 1 st circle or the 2 nd circle in the positions will be covered. By analogy, when the nth circle is stored, the data of the current time period is completely recorded and is not covered, and the data of the current time period has important research value; meanwhile, data are stored in each circle, and the whole data still have important research value and can be used for researching data change in the life cycle of the vehicle.
The processor in fig. 2 runs a program, receives external vehicle bus data through the communication interface, and stores the data in the 2 pieces of memory according to the 2 storage strategies through the internal bus of the device.
Example 2
The embodiment provides a vehicle bus data cycle storage device, which comprises:
a receiving unit for receiving external vehicle bus data;
a first storage unit for storing the received external vehicle bus data into the first EMMC memory; the first EMMC memory adopts a sequential storage mode, sequentially records the latest data, and jumps to the starting position to record again after the memory is full;
a second storage unit for storing the received external vehicle bus data into a second EMMC memory;
the second EMMC memory adopts an interval storage mode, when the data storage is full of 1 circle, the 2 nd circle of data is stored, the initial storage position of the memory is relocated at the moment, and a new data is recorded every 1 data; when the 2 nd data is full, 1 new data is recorded in every 2 data in the 3 rd circle, and so on.
Example 3
The embodiment provides a system for vehicle bus data cycle storage, which comprises:
the processor receives external vehicle bus data through a communication interface, and stores the received external vehicle bus data into the first EMMC memory and the second EMMC memory through an internal bus of the equipment.
Further, the first EMMC memory and the second EMMC memory adopt different storage strategies.
Furthermore, the first MMC memory adopts a sequential storage mode to sequentially record the latest data, and jumps to the start position to record again after the storage is full.
Further, the second EMMC memory adopts an interval storage mode, when the data storage is full of 1 circle, the 2 nd circle of data is stored, at the moment, the data is relocated to the initial storage position of the memory, and a new data is recorded every 1 data; when the 2 nd data is full, 1 new data is recorded in every 2 data in the 3 rd circle, and so on.
Example 4
The present embodiment provides an electronic device, comprising a plurality of memories and a processor, wherein the memories are used for storing vehicle bus data, and the processor implements the steps of any one of the following methods when executing the computer program:
receiving external vehicle bus data;
storing the received external vehicle bus data in a first EMMC memory; the first MMC memory adopts a sequential storage mode, sequentially records the latest data, and jumps to the starting position to record again after the memory is full;
storing the received external vehicle bus data into a second EMMC (embedded media card) memory, wherein the second EMMC memory adopts an interval storage mode, starts to store data of the 2 nd turn after the data is stored for 1 turn, relocates to the initial storage position of the memory at the moment, and records a new data every 1 data; when the 2 nd data is full, 1 new data is recorded in every 2 data in the 3 rd circle, and so on.
Example 5
The present embodiments provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of any of the methods:
receiving external vehicle bus data;
storing the received external vehicle bus data in a first EMMC memory; the first MMC memory adopts a sequential storage mode, sequentially records the latest data, and jumps to the starting position to record again after the memory is full;
storing the received external vehicle bus data into a second EMMC (embedded media card) memory, wherein the second EMMC memory adopts an interval storage mode, starts to store data of the 2 nd turn after the data is stored for 1 turn, relocates to the initial storage position of the memory at the moment, and records a new data every 1 data; when the 2 nd data is full, 1 new data is recorded in every 2 data in the 3 rd circle, and so on.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.
Claims (10)
1. A method for circularly storing vehicle bus data is characterized by comprising the following steps:
receiving external vehicle bus data;
storing the received external vehicle bus data in a first EMMC memory;
the received external vehicle bus data is stored in the second EMMC memory.
2. The method for cyclically storing vehicle bus data according to claim 1, wherein: the first EMMC memory adopts a sequential storage mode, sequentially records the latest data, and jumps to the starting position to record again after the memory is full.
3. The method for cyclically storing vehicle bus data according to claim 1, wherein: the second EMMC memory adopts an interval storage mode, when the data storage is full of 1 circle, the 2 nd circle of data is stored, at the moment, the initial storage position of the memory is relocated, and a new data is recorded every 1 data; when the 2 nd data is full, 1 new data is recorded in every 2 data in the 3 rd circle, and so on.
4. An apparatus for cyclically storing vehicle bus data, comprising:
a receiving unit for receiving external vehicle bus data;
a first storage unit for storing the received external vehicle bus data into the first EMMC memory; the first EMMC memory adopts a sequential storage mode, sequentially records the latest data, and jumps to the starting position to record again after the memory is full;
a second storage unit for storing the received external vehicle bus data into a second EMMC memory;
the second EMMC memory adopts an interval storage mode, when the data storage is full of 1 circle, the 2 nd circle of data is stored, the data is relocated to the initial storage position of the memory, and a new data is recorded every 1 data; when the 2 nd data is full, 1 new data is recorded in every 2 data in the 3 rd circle, and so on.
5. A system for cyclic storage of vehicle bus data, comprising:
the processor receives external vehicle bus data through a communication interface, and stores the received external vehicle bus data into the first EMMC memory and the second EMMC memory through an internal bus of the equipment.
6. The vehicle bus data cycle storage system of claim 5, wherein: the first EMMC memory and the second EMMC memory adopt different storage strategies.
7. The vehicle bus data cycle storage system of claim 6, wherein: and the first EMMC memory adopts a sequential storage mode, sequentially records the latest data, and jumps to the starting position to re-record after the memory is full.
8. The vehicle bus data cycle storage system of claim 6, wherein: the second EMMC memory adopts an interval storage mode, when the data storage is full of 1 circle, the 2 nd circle of data is stored, at the moment, the initial storage position of the memory is relocated, and a new data is recorded every 1 data; when the 2 nd data is full, 1 new data is recorded in every 2 data in the 3 rd circle, and so on.
9. An electronic device, characterized in that: comprising a plurality of memories for storing vehicle bus data, a processor for implementing the steps of the method according to any one of claims 1 to 3 when executing said computer program.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the program when executed by a processor implements the steps of the method of any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210192205.9A CN114546291A (en) | 2022-02-28 | 2022-02-28 | Method, device and system for circularly storing vehicle bus data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210192205.9A CN114546291A (en) | 2022-02-28 | 2022-02-28 | Method, device and system for circularly storing vehicle bus data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114546291A true CN114546291A (en) | 2022-05-27 |
Family
ID=81662312
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210192205.9A Pending CN114546291A (en) | 2022-02-28 | 2022-02-28 | Method, device and system for circularly storing vehicle bus data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114546291A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674444A (en) * | 2009-10-15 | 2010-03-17 | 杭州华三通信技术有限公司 | Storage method of video data, system and encoder thereof |
CN203084546U (en) * | 2012-12-21 | 2013-07-24 | 上海大郡动力控制技术有限公司 | Fault diagnosis support system of motor control system of electric automobile |
CN103886732A (en) * | 2014-03-27 | 2014-06-25 | 中国科学院成都生物研究所 | High-reliability ecological environmental parameter wireless-sensing system |
CN110223418A (en) * | 2019-06-24 | 2019-09-10 | 深圳市森国科科技股份有限公司 | The audio-video storage method of automobile data recorder |
CN210377573U (en) * | 2019-06-24 | 2020-04-21 | 深圳市森国科科技股份有限公司 | Vehicle event data recorder with two storages |
CN113689909A (en) * | 2021-08-22 | 2021-11-23 | 南京泰立瑞信息科技有限公司 | Wear-balanced FLASH read-write method with variable data page width |
-
2022
- 2022-02-28 CN CN202210192205.9A patent/CN114546291A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674444A (en) * | 2009-10-15 | 2010-03-17 | 杭州华三通信技术有限公司 | Storage method of video data, system and encoder thereof |
CN203084546U (en) * | 2012-12-21 | 2013-07-24 | 上海大郡动力控制技术有限公司 | Fault diagnosis support system of motor control system of electric automobile |
CN103886732A (en) * | 2014-03-27 | 2014-06-25 | 中国科学院成都生物研究所 | High-reliability ecological environmental parameter wireless-sensing system |
CN110223418A (en) * | 2019-06-24 | 2019-09-10 | 深圳市森国科科技股份有限公司 | The audio-video storage method of automobile data recorder |
CN210377573U (en) * | 2019-06-24 | 2020-04-21 | 深圳市森国科科技股份有限公司 | Vehicle event data recorder with two storages |
CN113689909A (en) * | 2021-08-22 | 2021-11-23 | 南京泰立瑞信息科技有限公司 | Wear-balanced FLASH read-write method with variable data page width |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107609014A (en) | A kind of drive recorder and its video storage method, storage medium | |
CN102117240B (en) | A kind of method and device obtaining progress blocking information | |
CN102652313B (en) | Flash memory controller and operation method | |
CN105302478B (en) | A kind of date storage method and electronic equipment | |
CN103186471B (en) | The management method of bad block and system in storage device | |
CN104811645B (en) | A kind of embedded Video data storage method | |
CN108228093B (en) | Method and apparatus for monitoring memory using background media scanning | |
CN106600750B (en) | A kind of method of circulation recording, system and automobile data recorder | |
CN112631515B (en) | Self-adaptive flash memory data rereading method, device and medium | |
CN116303119B (en) | Method, system and storage medium for identifying cold and hot data | |
CN103226965A (en) | Time-bitmap-based audio/video data access method | |
CN114116795B (en) | Data storage and query method, device, storage medium and electronic equipment | |
US20080244173A1 (en) | Storage device using nonvolatile cache memory and control method thereof | |
CN114546291A (en) | Method, device and system for circularly storing vehicle bus data | |
CN109061585B (en) | Radar data storage method and device | |
CN104391804B (en) | A kind of NAND flash data storage methods | |
CN103544975B (en) | A kind of guard method of vehicle-mounted hard disks | |
CN110781166B (en) | Data management method and device in storage system | |
CN102722378B (en) | A kind of method of non intelligent mobile phone and its system program of upgrading | |
CN110110502B (en) | Anti-copy method and device for audio files and mobile storage device | |
JP2002070637A (en) | Data recorder | |
CN105139870A (en) | Real-time recording method of optical disc and device | |
US20200097215A1 (en) | Adaptive solid state device management based on data expiration time | |
CN114661624A (en) | Method, system, equipment and storage medium for efficiently acquiring and storing data | |
CN112908390B (en) | Data storage method, device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |