CN110389881A - A kind of SD card redundant data processing method based on warning function - Google Patents
A kind of SD card redundant data processing method based on warning function Download PDFInfo
- Publication number
- CN110389881A CN110389881A CN201910873371.3A CN201910873371A CN110389881A CN 110389881 A CN110389881 A CN 110389881A CN 201910873371 A CN201910873371 A CN 201910873371A CN 110389881 A CN110389881 A CN 110389881A
- Authority
- CN
- China
- Prior art keywords
- driving cycle
- data
- cycle
- warning message
- warning
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3031—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a motherboard or an expansion card
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
- G06F11/3072—Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/327—Alarm or error message display
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Mathematical Physics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention relates to car networking field, in particular to a kind of SD card redundant data processing method based on warning function.It whether there is warning message including real-time judge, when there are warning message, driving cycle before M driving cycle data of warning message is deleted, retain M nearest driving cycle data, if and driving cycle less than M when, retain all data, is uploaded to cloud platform after the data fault of reservation is backed up;When the driving cycle of storage is more than N, the driving cycle before M driving cycle is deleted.The present invention can satisfy the function that real time data is saved in R&D process, redundant data can be carried out deleting and alleviate SD card storage pressure, and can guarantee that obtaining valid data in alarm is analyzed.
Description
Technical field
The present invention relates to car networking field, in particular to a kind of SD card redundant data processing method based on warning function.
Background technique
Since alarm failure analysis needs high-frequency historical data, but upload the history real time data frequency of platform not at present
It is able to satisfy fault alarm analysis demand, flow consumption is larger if improving the frequency for uploading real time information, and for accident analysis
For demand, a large amount of historical datas uploaded when not breaking down are all redundancies, and high-frequency real time data is protected in this patent proposition
It is stored to SD card, and is handled in time for redundant data, reissues effective historical data when an error occurs.
Summary of the invention
The SD card redundant data processing method based on warning function that the embodiment of the invention provides a kind of, can satisfy research and development
Redundant data can be carried out deleting and alleviate SD card storage pressure, and can guarantee and reporting by the function of saving real time data in the process
Valid data are obtained when alert to be analyzed.
According to a first aspect of the embodiments of the present invention, a kind of SD card redundant data processing method based on warning function, packet
It includes
Real-time judge whether there is warning message,
When there are warning message, the driving cycle data before M driving cycle of warning message are deleted, nearest M is retained
The data of a driving cycle, and if driving cycle less than M when, retain all data, after the data fault of reservation is backed up on
Reach cloud platform;
When the driving cycle of storage is more than N, the driving cycle data before M driving cycle are deleted.
Described when there are warning message, the driving cycle data before M driving cycle of warning message are deleted, are protected
Stay the data of M nearest driving cycle, and if driving cycle less than M when, after retaining all data, judged apart from last time
The interval of fault message driving cycle, when the quantity interval of the driving cycle of fault message twice is less than M, by fault message
The driving cycle data at interval are uploaded to cloud platform.
M is 3-6.
N is 7-12.
A kind of SD card redundant data processing system based on warning function, including
Fault detection module, cycle criterion module, cloud platform,
Fault detection module whether there is warning message to real-time judge;
Upload and deletion of the cycle criterion module to determine driving cycle;
The data of driving cycle of the cloud platform to receive the upload of cycle criterion module.
When there are warning message, cycle criterion module is by the driving cycle data before M driving cycle of warning message
Delete, retain the data of M nearest driving cycle, and if driving cycle less than M when, retain all data, by reservation
Cloud platform is uploaded to after data fault backup;
When the driving cycle of storage is more than N, cycle criterion module deletes the driving cycle data before M driving cycle.
When there are warning message, cycle criterion module is by the driving cycle number before M driving cycle of warning message
According to deletion, retain the data of M nearest driving cycle, and if driving cycle less than M when, after retaining all data, judgement
Interval apart from last time fault message driving cycle, when the interval of fault message twice is less than M, cycle criterion module is by failure
The driving cycle data at the interval of information are uploaded to cloud platform.
M is 3-6.
N is 7-12.
Technical solution provided in an embodiment of the present invention can include the following benefits:
The present invention, which deletes redundant data, alleviates SD card storage pressure, and retains effective information, reissues valid data reduction flow and disappears
Consumption, the analysis of Lai Shixian alarm failure, and can guarantee that obtaining valid data in alarm is analyzed.
By periodic analysis SD data storage condition, redundant data is handled in time and alleviates storage pressure, by reissuing alarm
Preceding effective Backup Data reduces flow consumption, to realize accident analysis.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the deletion of SD card redundant data and valid data backup method schematic diagram;
Fig. 2 is a kind of SD card redundant data processing method flow chart based on warning function of the present invention;
Fig. 3 is a kind of SD card redundant data processing structure block diagram based on warning function of the present invention.
Specific embodiment
It due to SD card limited storage space, needs to delete redundant data in time, but alarms and need to analyze again when occurring to go through
History data, this patent propose data delete with backup method as shown in Figure 1, SD card store real time data during, often
One driving cycle creates a file, and every ten driving cycles are one and judge the period: when alarming, before retaining alarm
The historical data of five driving cycles, and reissue to platform, remainder data is considered as redundant data and is deleted;If alarm free, protect
Five driving cycle data after staying, first five driving cycle data is deleted.Guarantee to alarm by above scheme
When can reissue effective data and reduce flow waste and can guarantee that SD card possesses enough memory spaces.
As shown in Figure 1, the present invention provides a kind of SD card redundant data processing method based on warning function, comprising:
Real-time judge whether there is warning message,
When there are warning message, the driving cycle before M driving cycle data of warning message is deleted, nearest M is retained
A driving cycle data, and if driving cycle less than M when, retain all data, will reservation data fault back up after upload
To cloud platform;
When the driving cycle of storage is more than N, the driving cycle before M driving cycle is deleted.
Preferably, when the interval of fault message twice is less than M, the driving cycle data at the interval of fault message are uploaded
To cloud platform.In this way, the problem of repetition uploads can be effectively reduced, flow loss is reduced.
Preferably, M can be 3-6, it is preferred that can be 5, N can be 7-12, it is preferred that can be 10.
Embodiment two
As shown in Fig. 2, a kind of SD card redundant data processing method based on warning function of the present invention, comprising the following steps:
Step 1: initialization, counter i=0 creates a driving cycle file, and saves data in real time;
Step 2: judging whether is new driving cycle, if it is counter i+1, then carry out next step judgement, otherwise, nothing
New files are needed, continue to save real time information.
Step 3: judging whether there is warning message, whether driving cycle counter is then judged if there is warning message
Greater than five, first five driving cycle of point occurs if it is greater than five items retention faults, driving cycle information deletion before,
And accident analysis is carried out, if driving cycle counter i < 5, retains all data and carry out accident analysis;If do not deposited
In warning message, then judge whether current driving cycle counter i is greater than 10, if continuing to save real time data no more than 10,
Otherwise, retain last five driving cycle information to delete remaining driving cycle data.
It reissues step 4: carrying out failover backup data to platform, terminates after the completion of reissuing.
SD card real-time data memory carries out as procedure described above, until failover backup data reissue completion.
As shown in figure 3, a kind of SD card redundant data processing system based on warning function, including fault detection module, follow
Ring determination module, cloud platform,
Fault detection module whether there is warning message to real-time judge;
Upload and deletion of the cycle criterion module to determine driving cycle;
The data of driving cycle of the cloud platform to receive the upload of cycle criterion module.
Preferably, when there are warning message, cycle criterion module is by driving before M driving cycle data of warning message
Sail circulation delete, retain M nearest driving cycle data, and if driving cycle less than M when, retain all data, will protect
Cloud platform is uploaded to after the data fault backup stayed;
When the driving cycle of storage is more than N, cycle criterion module deletes the driving cycle before M driving cycle.
Preferably, when the interval of fault message twice is less than M, cycle criterion module is by the driving at the interval of fault message
Loop-around data is uploaded to cloud platform.
Preferably, M 3-6, N 7-12.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (9)
1. a kind of SD card redundant data processing method based on warning function, which is characterized in that including
Real-time judge whether there is warning message,
When there are warning message, the driving cycle data before M driving cycle of warning message are deleted, nearest M is retained
The data of a driving cycle, and if driving cycle less than M when, retain all data, after the data fault of reservation is backed up on
Reach cloud platform;
When the driving cycle of storage is more than N, the driving cycle data before M driving cycle are deleted.
2. a kind of SD card redundant data processing method based on warning function as described in claim 1, which is characterized in that in institute
It states when there are warning message, the driving cycle data before M driving cycle of warning message is deleted, retain nearest M
The data of driving cycle, and if driving cycle less than M when, after retaining all data, judge to drive apart from last time fault message
The interval for sailing circulation, when the quantity interval of the driving cycle of fault message twice is less than M, by the driving at the interval of fault message
Loop-around data is uploaded to cloud platform.
3. a kind of SD card redundant data processing method based on warning function as described in claim 1, which is characterized in that M is
3-6。
4. a kind of SD card redundant data processing method based on warning function as described in claim 1, which is characterized in that N is
7-12。
5. a kind of SD card redundant data processing system based on warning function, which is characterized in that including
Fault detection module, cycle criterion module, cloud platform,
Fault detection module whether there is warning message to real-time judge;
Upload and deletion of the cycle criterion module to determine driving cycle;
The data of driving cycle of the cloud platform to receive the upload of cycle criterion module.
6. a kind of SD card redundant data processing system based on warning function as claimed in claim 5, which is characterized in that when depositing
In warning message, cycle criterion module deletes the driving cycle data before M driving cycle of warning message, retains nearest
M driving cycle data, and if driving cycle less than M when, retain all data, after the data fault of reservation is backed up
It is uploaded to cloud platform;
When the driving cycle of storage is more than N, cycle criterion module deletes the driving cycle data before M driving cycle.
7. a kind of SD card redundant data processing system based on warning function as claimed in claim 6, which is characterized in that working as
There are when warning message, cycle criterion module deletes the driving cycle data before M driving cycle of warning message, retains most
The data of M close driving cycle, and if driving cycle less than M when, after retaining all data, judge apart from last time failure believe
The interval for ceasing driving cycle, when the interval of fault message twice is less than M, cycle criterion module is driven the interval of fault message
It sails loop-around data and is uploaded to cloud platform.
8. a kind of SD card redundant data processing system based on warning function as claimed in claim 5, which is characterized in that M is
3-6。
9. a kind of SD card redundant data processing system based on warning function as claimed in claim 5, which is characterized in that N is
7-12。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910873371.3A CN110389881A (en) | 2019-09-17 | 2019-09-17 | A kind of SD card redundant data processing method based on warning function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910873371.3A CN110389881A (en) | 2019-09-17 | 2019-09-17 | A kind of SD card redundant data processing method based on warning function |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110389881A true CN110389881A (en) | 2019-10-29 |
Family
ID=68289662
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910873371.3A Pending CN110389881A (en) | 2019-09-17 | 2019-09-17 | A kind of SD card redundant data processing method based on warning function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110389881A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113793531A (en) * | 2021-10-21 | 2021-12-14 | 青岛海信智慧生活科技股份有限公司 | Parking space management method, equipment and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104933773A (en) * | 2015-05-28 | 2015-09-23 | 燕山大学 | Real-time road condition information monitoring vehicle data recorder and recording method for same |
CN105427403A (en) * | 2015-11-03 | 2016-03-23 | 深圳市凯立德科技股份有限公司 | Automobile traveling record data storage method and automobile traveling data recorder |
CN106408684A (en) * | 2016-09-30 | 2017-02-15 | 北京新能源汽车股份有限公司 | Fault information storage method and device |
CN106790367A (en) * | 2016-11-15 | 2017-05-31 | 山东省科学院自动化研究所 | The vehicle safety hidden danger early warning of big data treatment and accident reproduction system and method |
US20180281598A1 (en) * | 2017-04-04 | 2018-10-04 | Kuang-I Shu | Apparatuses and methods of an in-vehicle gateway system for monitoring and controling in-vehicle subsystems |
CN109376878A (en) * | 2018-10-19 | 2019-02-22 | 杭州和利时自动化有限公司 | A kind of acquisition method and relevant apparatus of SOE event |
CN109581998A (en) * | 2018-10-30 | 2019-04-05 | 中国汽车技术研究中心有限公司 | A kind of cloud diagnostic system for coping with vehicle trouble |
-
2019
- 2019-09-17 CN CN201910873371.3A patent/CN110389881A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104933773A (en) * | 2015-05-28 | 2015-09-23 | 燕山大学 | Real-time road condition information monitoring vehicle data recorder and recording method for same |
CN105427403A (en) * | 2015-11-03 | 2016-03-23 | 深圳市凯立德科技股份有限公司 | Automobile traveling record data storage method and automobile traveling data recorder |
CN106408684A (en) * | 2016-09-30 | 2017-02-15 | 北京新能源汽车股份有限公司 | Fault information storage method and device |
CN106790367A (en) * | 2016-11-15 | 2017-05-31 | 山东省科学院自动化研究所 | The vehicle safety hidden danger early warning of big data treatment and accident reproduction system and method |
US20180281598A1 (en) * | 2017-04-04 | 2018-10-04 | Kuang-I Shu | Apparatuses and methods of an in-vehicle gateway system for monitoring and controling in-vehicle subsystems |
CN109376878A (en) * | 2018-10-19 | 2019-02-22 | 杭州和利时自动化有限公司 | A kind of acquisition method and relevant apparatus of SOE event |
CN109581998A (en) * | 2018-10-30 | 2019-04-05 | 中国汽车技术研究中心有限公司 | A kind of cloud diagnostic system for coping with vehicle trouble |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113793531A (en) * | 2021-10-21 | 2021-12-14 | 青岛海信智慧生活科技股份有限公司 | Parking space management method, equipment and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108869264B (en) | Pump station unit fault diagnosis early warning system | |
CN106338987B (en) | A kind of method and device of real-time fault diagnosis | |
CN101656013A (en) | Vehicle-mounted monitoring alarm terminal, system and alarm method | |
CN113779574B (en) | APT detection method based on context behavior analysis | |
WO2006114871A1 (en) | Data collection device and gateway device | |
US20030060964A1 (en) | Electronic control unit for vehicle having operation monitoring function and fail-safe function | |
CN111966518A (en) | Fault data recording method, system, automobile and storage medium | |
CN110389881A (en) | A kind of SD card redundant data processing method based on warning function | |
CN111103072A (en) | Urea tank fault diagnosis method and device, vehicle and storage medium | |
CN112922700A (en) | Device and method for detecting poor urea of SCR (Selective catalytic reduction) system | |
CN112435449A (en) | Full-digital intelligent fishery illegal ship identification and troubleshooting system and method | |
CN112099065A (en) | Redundant fault-tolerant system for state estimator of ship dynamic positioning system | |
CN116106618A (en) | Alarm method and device of electric equipment and alarm system of Internet of things | |
CN111102053B (en) | Diagnostic system and method for preventing mounting position of NOx sensor from being tampered | |
CN113147776A (en) | Hot backup fault processing system and method for vehicle and vehicle adopting hot backup fault processing system | |
CN109726080B (en) | Method and device for monitoring working state of heterogeneous computing system | |
CN113377573A (en) | Abnormity processing method, device, equipment and storage medium for automatic driving vehicle | |
CN109254898B (en) | Software module execution sequence monitoring method and system | |
CN103019219A (en) | Device and method for monitoring and warning of ship engine room | |
CN115878338A (en) | Market situation task processing method and device, computer equipment and readable storage medium | |
CN115767309A (en) | Intelligent management system, method and equipment for chemical tanker | |
CN114995339A (en) | Vehicle water pump fault processing method and device, control equipment and storage medium | |
CN107590647A (en) | The servo supervisory systems of ship-handling system | |
CN110972210B (en) | LoRa gateway offline decision method and device based on agricultural Internet of things | |
CN112383601A (en) | Ship tail gas data cloud synchronization method and system based on database index marks |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191029 |
|
RJ01 | Rejection of invention patent application after publication |