Storage device and storage method of vehicle-mounted mechanical hard disk

文档序号:1546343 发布日期:2020-01-17 浏览:25次 中文

阅读说明:本技术 一种车载机械硬盘的存储装置及其存储方法 (Storage device and storage method of vehicle-mounted mechanical hard disk ) 是由 孟庆栋 贾建鑫 边卓越 陈建龙 于 2019-09-26 设计创作,主要内容包括:本发明公开一种车载机械硬盘的存储装置及其存储方法,本发明集处理器、机械硬盘、加速度传感器、防震动的非易失性存储器、车速输入、电源状态输入、机械硬盘读写通道、机械硬盘电源控制开关、标定状态输入和需要保存的数据输入为一体,通过将加速度传感器和车速输入的数据进行融合判断车辆是否在行驶中。当判断车辆在行驶中时,处理器将控制不进行机械硬盘操作及关闭其电源,将当前所有需要存储的数据存入防震动非易失性存储器中;当判断为车辆静止时,处理器将控制对机械硬盘进行操作及开启其电源,将当前所有需要存储的数据存入机械硬盘中,并将所有在防震动非易失性存储器中的数据按需要导入机械硬盘中。本发明可有效降低机械硬盘在车辆移动过程中的损坏率。(The invention discloses a storage device and a storage method of a vehicle-mounted mechanical hard disk, which integrates a processor, the mechanical hard disk, an acceleration sensor, an anti-vibration nonvolatile memory, a vehicle speed input, a power state input, a mechanical hard disk read-write channel, a mechanical hard disk power control switch, a calibration state input and a data input to be stored into a whole, and judges whether a vehicle is in running or not by fusing data input by the acceleration sensor and the vehicle speed. When the vehicle is judged to be running, the processor controls not to carry out mechanical hard disk operation and turns off the power supply of the vehicle, and stores all data needing to be stored currently into the anti-vibration nonvolatile memory; when the vehicle is judged to be static, the processor controls the mechanical hard disk to operate and power on, stores all the data needing to be stored into the mechanical hard disk at present, and leads all the data in the anti-vibration nonvolatile memory into the mechanical hard disk as required. The invention can effectively reduce the damage rate of the mechanical hard disk in the moving process of the vehicle.)

1. The storage device of the vehicle-mounted mechanical hard disk is characterized by comprising a processor, the mechanical hard disk, an acceleration sensor and an anti-vibration nonvolatile memory which are connected with the processor, wherein one end of the processor is provided with a vehicle speed input interface, a power state input interface, a calibration state input interface and a data input interface which needs to be stored; and a mechanical hard disk reading and writing channel and a mechanical hard disk power supply control switch are arranged between the processor and the mechanical hard disk.

2. The storage method implemented by the storage device according to claim 1, comprising the steps of:

1) internal calibration parameter matrix when factory setting<X0,Y0,Z0>=<0,0,0>(ii) a After the storage device is started, the processor reads the calibration parameter matrix from the vibration-proof nonvolatile memory<X0,Y0,Z0>(ii) a The vehicle is kept still in a horizontal and flat place, a motive is not developed, and the input of a calibration state is carried out, namely the vehicle enters a calibration process; otherwise, entering the operation process;

2) in the calibration process, the processor acquires acceleration vector data from the acceleration sensor, acquires one group every A milliseconds and acquires N groups in total, wherein A is the interval for acquiring the acceleration data of each group, N is the number of groups for acquiring the acceleration data, namely A multiplied by N milliseconds in total, and the index of each group of data combined into a matrix is represented by<X1,Y1,Z1>,<X2,Y2,Z2>,……<XN-1,YN-1,ZN-1>,<XN,YN,ZN>New calibration parameter matrix<X,Y,Z>Wherein X is X1,X2,……XN-1,XNIs a harmonic mean of (A), Y is Y1,Y2,……YN-1,YNZ is Z1,Z2,……ZN-1,ZNThe harmonic mean value of (A) is expressed by the following formula

Figure FDA0002217212780000011

The above-mentioned<X,Y,Z>As new calibration parameters<X0,Y0,Z0>Writing into a shock-resistant non-volatile memory;

3) during said operation, the processor senses from the accelerationThe acceleration data is acquired by the device, one group is acquired every A milliseconds, N groups are acquired in total, wherein A is the interval for acquiring the acceleration data of each group, N is the number of groups for acquiring the acceleration data, namely A multiplied by N milliseconds in total, and the label of each group of data is<X1,Y1,Z1>,<X2,Y2,Z2>,……<XN-1,YN-1,ZN-1>,<XN,YN,ZN>Current set of acceleration parameters<X,Y,Z>Wherein X is X1,X2,……XN-1,XNIs an arithmetic mean of (A), Y is Y1,Y2,……YN-1,YNIs an arithmetic mean of Z1,Z2,……ZN-1,ZNIs expressed as follows

Figure FDA0002217212780000021

4) From the current calibration parameters<X0,Y0,Z0>As the origin, for the current acceleration parameter set<X,Y,Z>Performing coordinate axis translation conversion to obtain<X’,Y’,Z’>Wherein X' ═ X + X0,Y’=Y+Y0,Z’=Z+Z0The expression formula is as follows

Figure FDA0002217212780000022

When the value of X ' or Y ' is larger than or equal to the upper vibration threshold value or the value of the vector sum R ' of X ' and Y ' is larger than or equal to the upper vibration threshold value,

Figure FDA0002217212780000023

if the state is judged to be abnormal, executing the abnormal state data processing process; otherwise, the processor obtains vehicle speed data S from the vehicle speed input, and when S is larger than the upper limit of the vehicle running speed threshold, the state is also judged to be abnormal, and an abnormal state processing data process needs to be executed; otherwise, judging the state to be normal, and executing a normal state data processing process;

5) in the process of processing data in the abnormal state, the processor does not operate the mechanical hard disk read-write channel and performs power-off control on the mechanical hard disk power supply control switch;

6) and in the normal state data processing process, the processor controls the power supply of the mechanical hard disk power supply control switch to be turned on, and operates the mechanical hard disk read-write channel.

3. The storage method according to claim 2, wherein in the step 4), the processor does not operate the mechanical hard disk read-write channel, and performs power-off control on a mechanical hard disk power control switch, obtains all data to be stored from data input to be stored, and arranges all data in a strip; and the processor acquires the storage information of the anti-vibration nonvolatile memory, judges whether all data can be written, deletes the earliest pieces of data in the anti-vibration nonvolatile memory if all data cannot be written, and writes all data into the anti-vibration nonvolatile memory according to pieces.

4. The storage method according to claim 2, wherein in the step 5), the processor performs power-on control on power switch control of the mechanical hard disk, operates the mechanical hard disk read-write channel, obtains all data from data input to be stored and writes the data into the mechanical hard disk through the mechanical hard disk read-write channel, the processor transfers the earliest data in the vibration-proof nonvolatile memory to the mechanical hard disk, and completes the above operation, and the processor deletes the corresponding data in the vibration-proof nonvolatile memory.

Technical Field

The invention relates to the technical field of automobiles, in particular to a storage device and a storage method for a vehicle-mounted mechanical hard disk.

Background

With the mature development of network technology, identification technology, microelectronic technology, encoding and decoding technology, operating system technology and the like, the embedded vehicle-mounted hard disk video recorder is promoted to develop towards intellectualization, integration, wireless, high-definition, individuation and interaction, and networking functions such as automatic tracking, specific target identification, shooting, processing and the like are successfully developed.

With the improvement of the transportation process and the digitization requirement of video safety management of all countries in the world, the demand of the vehicle-mounted hard disk video recorder is more and more increased. Various vehicle-mounted hard disk video recorders with various varieties appear in the market, the technology of the vehicle-mounted hard disk video recorder is mature day by day, the product structure is richer, and the market competition is fierce day by day.

The hard disk shockproof and shock absorption technology is a key technology of the vehicle-mounted hard disk video recorder and is a special function of the vehicle-mounted hard disk video recorder which is different from the traditional embedded hard disk video recorder. The traditional hard disk damping and reinforcing technology generally adopts a mechanical means to suspend a hard disk in a specially-made hard disk damper, and the damper absorbs vibration and impact energy of the outside to the hard disk, so that the fragile parts such as a hard disk magnetic head and the like are not influenced by outside mechanical vibration. In addition, some manufacturers adopt an electronic damping scheme, obtain vibration information through an external acceleration sensor, intervene in the read-write cycle of the hard disk according to the strength of vibration, and protect the magnetic head of the hard disk from normal read-write.

The vehicle-mounted hard disk video recorder uses the mechanical hard disk, and if no protective measures are taken, the damage rate of the mechanical hard disk is extremely high due to the fact that the vehicle is vibrated and data are read and written at the same time in the running process of the vehicle.

Disclosure of Invention

Due to the problems in the prior art, the invention aims to provide a storage device and a storage method of a vehicle-mounted mechanical hard disk according to the technical principle of automobiles.

In order to achieve the purpose, the invention can be realized by the following technical scheme:

the invention relates to a storage device of a vehicle-mounted mechanical hard disk, which comprises a processor, a mechanical hard disk, an acceleration sensor and an anti-vibration nonvolatile memory, wherein the mechanical hard disk, the acceleration sensor and the anti-vibration nonvolatile memory are connected with the processor; and a mechanical hard disk reading and writing channel and a mechanical hard disk power supply control switch are arranged between the processor and the mechanical hard disk.

The invention also provides a storage method realized by the storage device, which comprises the following steps:

1) internal calibration parameter matrix when factory setting<X0,Y0,Z0>=<0,0,0>(ii) a After the storage device is started, the processor reads the calibration parameter matrix from the vibration-proof nonvolatile memory<X0,Y0,Z0>(ii) a The vehicle is kept still in a horizontal and flat place, a motive is not developed, and the input of a calibration state is carried out, namely the vehicle enters a calibration process; otherwise, entering the operation process;

2) in the calibration process, the processor acquires acceleration vector data from the acceleration sensor, acquires one group every A milliseconds and acquires N groups in total, wherein A is the interval for acquiring the acceleration data of each group, N is the number of groups for acquiring the acceleration data, namely A multiplied by N milliseconds in total, and the index of each group of data combined into a matrix is represented by<X1,Y1,Z1>,<X2,Y2,Z2>,……<XN-1,YN-1,ZN-1>,<XN,YN,ZN>New calibration parameter matrix<X,Y,Z>Wherein X is X1,X2,……XN-1,XNIs a harmonic mean of (A), Y is Y1,Y2,……YN-1,YNZ is Z1,Z2,……ZN-1,ZNIs a harmonious levelMean value, expressed as follows

Figure BDA0002217212790000021

The above-mentioned<X,Y,Z>As new calibration parameters<X0,Y0,Z0>Writing into a shock-resistant non-volatile memory;

3) in the operation process, the processor acquires acceleration data from the acceleration sensor, acquires one group every A milliseconds and acquires N groups in total, wherein A is the interval for acquiring the acceleration data of each group, N is the number of groups for acquiring the acceleration data, namely A multiplied by N milliseconds in total, and the label of each group of data is<X1,Y1,Z1>,<X2,Y2,Z2>,……<XN-1,YN-1,ZN-1>,<XN,YN,ZN>Current set of acceleration parameters<X,Y,Z>Wherein X is X1,X2,……XN-1,XNIs an arithmetic mean of (A), Y is Y1,Y2,……YN-1,YNIs an arithmetic mean of Z1,Z2,……ZN-1,ZNIs expressed as follows

4) From the current calibration parameters<X0,Y0,Z0>As the origin, for the current acceleration parameter set<X,Y,Z>Performing coordinate axis translation conversion to obtain<X’,Y’,Z’>Wherein X' ═ X + X0,Y’=Y+Y0,Z’=Z+Z0The expression formula is as follows

Figure BDA0002217212790000031

When the value of X ' or Y ' is larger than or equal to the upper vibration threshold value or the value of the vector sum R ' of X ' and Y ' is larger than or equal to the upper vibration threshold value,

Figure BDA0002217212790000032

if the state is judged to be abnormal, executing the abnormal state data processing process; otherwise, the processor obtains vehicle speed data S from the vehicle speed input, and when S is larger than the upper limit of the vehicle running speed threshold, the state is also judged to be abnormal, and an abnormal state processing data process needs to be executed; otherwise, judging the state to be normal, and executing a normal state data processing process;

5) in the process of processing data in the abnormal state, the processor does not operate the mechanical hard disk read-write channel and performs power-off control on the mechanical hard disk power supply control switch;

6) and in the normal state data processing process, the processor controls the power supply of the mechanical hard disk power supply control switch to be turned on, and operates the mechanical hard disk read-write channel.

In the step 4), the processor does not operate the read-write channel of the mechanical hard disk, and performs power off control on a power control switch of the mechanical hard disk, obtains all data to be stored from data input to be stored, and arranges all the data in a strip; and the processor acquires the storage information of the anti-vibration nonvolatile memory, judges whether all data can be written, deletes the earliest pieces of data in the anti-vibration nonvolatile memory if all data cannot be written, and writes all data into the anti-vibration nonvolatile memory according to pieces.

In the step 5), the processor performs power-on control on the power control switch of the mechanical hard disk, operates the read-write channel of the mechanical hard disk, obtains all data from the data input to be stored and writes all the data into the mechanical hard disk through the read-write channel of the mechanical hard disk, the processor transfers the earliest data in the vibration-proof nonvolatile memory to the mechanical hard disk to complete the above operation, and the processor deletes the corresponding data in the vibration-proof nonvolatile memory

The invention has the advantages of

The invention integrates a processor, a mechanical hard disk, an acceleration sensor, an anti-vibration nonvolatile memory, a vehicle speed input, a power state input, a mechanical hard disk read-write channel, a mechanical hard disk power control switch, a calibration state input and a data input to be stored into a whole, and judges whether a vehicle is running or not by fusing the data input by the acceleration sensor and the vehicle speed. When the vehicle is judged to be running, the processor controls not to carry out the reading and writing operation of the mechanical hard disk and closes the power supply of the mechanical hard disk, and stores all the data needing to be stored into the anti-vibration nonvolatile memory; when the vehicle is judged to be static, the processor controls the mechanical hard disk to operate and power on, stores all the data needing to be stored into the mechanical hard disk at present, and leads all the data in the anti-vibration nonvolatile memory into the mechanical hard disk as required. The invention can effectively reduce the damage rate of the mechanical hard disk in the moving process of the vehicle and prolong the service life of the mechanical hard disk in the moving process of the vehicle.

Drawings

FIG. 1 is a system configuration diagram of the present invention

FIG. 2 is a general flow chart of the present invention

FIG. 3 is a flowchart of the calibration process mentioned in the general flowchart of the present invention

FIG. 4 is a flow chart of the operation process mentioned in the general flow chart of the present invention

FIG. 5 is a flow chart of the exception status handling data process mentioned in the operational flow chart of the present invention

FIG. 6 is a flow chart of the normal state processing data process mentioned in the flow chart of the operation process of the present invention

Detailed Description

The invention is described in further detail below with reference to the accompanying drawings:

referring to fig. 1, the storage device for a vehicle-mounted mechanical hard disk of the present invention comprises a processor, a mechanical hard disk connected to the processor, an acceleration sensor, and an anti-vibration nonvolatile memory, wherein one end of the processor is provided with a vehicle speed input interface, a power state input interface, a calibration state input interface, and a data input interface to be stored; a mechanical hard disk reading and writing channel and a mechanical hard disk power supply control switch are arranged between the processor and the mechanical hard disk.

The invention also provides a storage method realized by the storage device, which comprises the following steps:

1) internal calibration parameter matrix when factory setting<X0,Y0,Z0>=<0,0,0>(ii) a After the storage device is started, the processor reads the calibration parameter matrix from the vibration-proof nonvolatile memory<X0,Y0,Z0>(ii) a The vehicle is kept still in a horizontal and flat place, a motive is not developed, and the input of a calibration state is carried out, namely the vehicle enters a calibration process; otherwise, entering the operation process;

7) in the calibration process, the processor acquires acceleration vector data from the acceleration sensor, acquires one group every A milliseconds and acquires N groups in total, wherein A is the interval for acquiring each group of acceleration data, N is the number of groups for acquiring the acceleration data, namely A multiplied by N milliseconds in total, and the index of a matrix formed by combining each group of data is A<X1,Y1,Z1>,<X2,Y2,Z2>,……<XN-1,YN-1,ZN-1>,<XN,YN,ZN>New calibration parameter matrix<X,Y,Z>Wherein X is X1,X2,……XN-1,XNIs an arithmetic mean of (A), Y is Y1,Y2,……YN-1,YNIs an arithmetic mean of Z1,Z2,……ZN-1,ZNThe arithmetic mean of (a); the expression formula is as follows

Figure BDA0002217212790000051

The above-mentioned<X,Y,Z>As new calibration parameters<X0,Y0,Z0>Writing into a shock-resistant non-volatile memory;

2) in the operation process, the processor acquires acceleration data from the acceleration sensor, acquires one group every A milliseconds and acquires N groups in total, wherein A is the interval for acquiring the acceleration data of each group, N is the number of groups for acquiring the acceleration data, namely A multiplied by N milliseconds in total, and the label of each group of data is<X1,Y1,Z1>,<X2,Y2,Z2>,……<XN-1,YN-1,ZN-1>,<XN,YN,ZN>Current set of acceleration parameters<X,Y,Z>Wherein X is X1,X2,……XN-1,XNIs an arithmetic mean of (A), Y is Y1,Y2,……YN-1,YNIs an arithmetic mean of Z1,Z2,……ZN-1,ZNIs expressed as follows

Figure BDA0002217212790000052

8) From the current calibration parameters<X0,Y0,Z0>As the origin, for the current acceleration parameter set<X,Y,Z>Performing coordinate axis translation conversion to obtain<X’,Y’,Z’>Wherein X' ═ X + X0,Y’=Y+Y0,Z’=Z+Z0(ii) a The expression formula is as follows

Figure BDA0002217212790000061

When the value of X ' or Y ' is larger than or equal to the upper vibration threshold value or the value of the vector sum R ' of X ' and Y ' is larger than or equal to the upper vibration threshold value,

Figure BDA0002217212790000062

if the state is judged to be abnormal, executing the abnormal state data processing process; otherwise, the processor obtains vehicle speed data S from the vehicle speed input, and when S is larger than the upper limit of the vehicle running speed threshold, the state is also judged to be abnormal, and an abnormal state processing data process needs to be executed; otherwise, judging the state to be normal, and executing a normal state data processing process;

3) in the process of processing data in an abnormal state, the processor does not operate a mechanical hard disk read-write channel, and performs power-off control on a mechanical hard disk power supply control switch, obtains all data to be stored from data input to be stored, and arranges all the data in a strip manner; the processor acquires the storage information of the anti-vibration nonvolatile memory, judges whether all data can be written in, if not, deletes the earliest data in the anti-vibration nonvolatile memory to finish the work, and writes all data into the anti-vibration nonvolatile memory in strips;

4) in the process of processing data in a normal state, the processor performs power-on control on the power control switch of the mechanical hard disk, operates the read-write channel of the mechanical hard disk, obtains all data from data input to be stored and writes the data into the mechanical hard disk through the read-write channel of the mechanical hard disk, the processor stores the earliest data in the anti-vibration nonvolatile memory to the mechanical hard disk, and deletes the corresponding data in the anti-vibration nonvolatile memory after the work is finished.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种计算机存储器

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!