Sampling time delay method of adjustment and device
Technical field
The present invention relates to electronic information designing technique, more particularly to a kind of sampling time delay method of adjustment and device.
Background technology
Traffic rate more and more higher between the emmc controllers and emmc peripheral hardwares of Soc chips.At present during the interface of main flow
Clock has reached 200Mhz.Plate level environment such as temperature, humidity can cause relative phase between clock signal and data-signal
Change, cause data sampling to malfunction, then just need targetedly to adjust to sampling time delay.
The method of prior art is to send one by drive software configuration emmc controllers and order to give emmc peripheral hardwares, allows emmc
The data that peripheral hardware replys a particular sequence give emmc controllers.Then drive software is read from the data buffer zone of emmc controllers
The data for taking emmc controllers to sample, contrasted, judged whether consistent with particular sequence data.Adjusted if consistent
Finish, if inconsistent continue to adjust, during sampling time delay is adjusted, system can not access disk.Thus caused by meeting
Problem is, if the scene of the violent go of temperature humidity, then may result in needs constantly adjustment sampling time delay, leads
Cause for a long time the phenomenon of disk can not be used to occur.
In view of this, it is necessary to a kind of technical scheme is provided, to avoid the occurrence of humiture acute variation band mentioned above
The system disk come accesses the phenomenon of interim card.
The content of the invention
Therefore, the embodiment of the present invention provides a kind of sampling time delay method of adjustment and device, to avoid the occurrence of due to warm and humid
The system disk that degree acute variation is brought accesses the phenomenon of interim card.
The embodiment of the present invention adopts the following technical scheme that:
First aspect, there is provided a kind of sampling time delay method of adjustment, including:
Detection plate level environment works as foreboard level temperature and when foreboard level humidity, and according to preset temperature delay relation and presets
Humidity delay relation, the first delay and the second delay corresponding to acquisition;Wherein, the preset temperature delay relation is used for display plate
The corresponding relation of level temperature range and sampling time delay, the default humidity delay relation are used for display plate level humidity section and sampling
The corresponding relation of delay;
Judge whether less delay is consistent with the delay of last time adjustment between the first delay and the second delay;
If it is determined that it is inconsistent, then system break is triggered, and less delay between the first delay and the second delay is set
For the delay of newest adjustment.
In first aspect in the first possible implementation, when foreboard level temperature and work as in the detection plate level environment
Also include before foreboard level humidity:When it is determined that enter delay adjustment modes when, detection plate level environment when foreboard level temperature and work as
Foreboard level humidity.
In second of possible implementation of first aspect, gone back described before during it is determined that entering delay adjustment modes
Including:When it is determined that being malfunctioned into data sampling, it is determined that entering delay adjustment modes.
In first aspect in the third possible implementation, the preset temperature delay relation obtains in the following manner
Arrive:
Multiple different temperature are gathered, detect sampling time delay corresponding to each temperature;
According to sampling time delay corresponding to the multiple different temperature and each temperature, temperature duration curve is obtained.
In the 4th kind of possible implementation method of first aspect, the default humidity delay relation obtains in the following manner
Arrive:
Multiple different humidity are gathered, detect sampling time delay corresponding to each humidity;
According to sampling time delay corresponding to the multiple different humidity and each humidity, humidity duration curve is obtained.
Second aspect, there is provided a kind of sampling time delay adjusting apparatus, including it is controller, temperature sensor, humidity sensor, interior
Deposit, register, the temperature sensor, humidity sensor, internal memory, register are electrically connected with controller, and the internal memory is used
In storage preset temperature delay relation and default humidity delay relation;Wherein, the preset temperature delay relation is used for display plate
The corresponding relation of level temperature range and sampling time delay, the default humidity delay relation are used for display plate level humidity section and sampling
The corresponding relation of delay;
The temperature sensor, the plate level temperature for detection plate level environment;
The humidity sensor, the plate level humidity for detection plate level environment;
The controller, for receive temperature sensor transmission when foreboard level temperature and moisture sensors transmission it is current
Plate level humidity, and according to preset temperature delay relation in internal memory and default humidity delay relation, obtain when foreboard level temperature and work as
First delay corresponding to foreboard level humidity and the second delay;Judge first delay second delay between it is less delay whether with
The last time delay of adjustment is consistent;And if it is determined that inconsistent, then control the register triggering system break, and by first
Less be delayed is arranged to the delay of newest adjustment between delay and the second delay.
In second aspect in the first possible implementation, the controller is additionally operable to:When it is determined that the register enters
Enter to be delayed adjustment modes when, that triggers the temperature sensor detection plate level environment works as foreboard level temperature, and triggers the humidity
Plate detecting sensor level environment works as foreboard level humidity.
In second of possible implementation of second aspect, the controller is additionally operable to:When it is determined that into data sampling
During error, it is determined that entering delay adjustment modes.
In second aspect in the third possible implementation, in addition to temperature delay generation module, it is multiple for gathering
Different temperature, detect sampling time delay corresponding to each temperature;And according to corresponding to the multiple different temperature and each temperature
Sampling time delay, obtain temperature duration curve.
In the 4th kind of possible implementation method of second aspect, in addition to humidity delay generation module, it is multiple for gathering
Different humidity, detect sampling time delay corresponding to each humidity;And according to corresponding to the multiple different humidity and each humidity
Sampling time delay, obtain humidity duration curve.
The embodiment of the present invention passes through the less delay between the first delay and the second delay and the upper delay once adjusted
When inconsistent, trigger system break and less delay between the first delay and the second delay is arranged to prolonging for newest adjustment
When, i.e., only first delay second delay between it is less delay it is inconsistent with the upper delay once adjusted when adjust sampling prolong
When, it is achieved thereby that only once being judged the adjustment of sampling time delay can be achieved, the time of sampling time delay adjustment is very of short duration,
Greatly reduce the holding time of disk.Compared to prior art, when the violent go of temperature humidity, the present embodiment reduces
The situation that long-time system disk accesses.
Brief description of the drawings
The schematic flow sheet of sampling time delay method of adjustment one that Fig. 1 is applicable by the embodiment of the present invention one;
The schematic flow sheet of sampling time delay method of adjustment one that Fig. 2 is applicable by the embodiment of the present invention two;
The schematic flow sheet of sampling time delay method of adjustment one that Fig. 3 is applicable by the embodiment of the present invention three;
The construction module figure of sampling time delay adjusting apparatus one that Fig. 4 is applicable by the embodiment of the present invention four.
Embodiment
To describe the technology contents of technical scheme, construction feature, the objects and the effects in detail, below in conjunction with specific reality
Apply example and coordinate accompanying drawing to be explained in detail.
In implementation column of the present invention, the plate electrode environment refers to the environment of circuit board.
Embodiment one
Referring to Fig. 1, providing a kind of sampling time delay method of adjustment, can include:
102nd, detection plate level environment when foreboard level temperature and when foreboard level humidity, and according to preset temperature be delayed relation and
Default humidity delay relation, the first delay and the second delay corresponding to acquisition;Wherein, the preset temperature delay relation is used for table
Show the corresponding relation of plate level temperature range and sampling time delay, the default humidity delay relation be used for display plate level humidity section with
The corresponding relation of sampling time delay;
104th, judge whether less delay is consistent with the delay of last time adjustment between the first delay and the second delay;
106th, it is if it is determined that inconsistent, then trigger system break, and by less delay between the first delay and the second delay
It is arranged to the delay of newest adjustment.
The embodiment of the present invention passes through the less delay between the first delay and the second delay and the upper delay once adjusted
When inconsistent, trigger system break and less delay between the first delay and the second delay is arranged to prolonging for newest adjustment
When, i.e., only first delay second delay between it is less delay it is inconsistent with the upper delay once adjusted when adjust sampling prolong
When, it is achieved thereby that only once being judged the adjustment of sampling time delay can be achieved, the time of sampling time delay adjustment is very of short duration,
Greatly reduce the holding time of disk.Compared to prior art, when the violent go of temperature humidity, the present embodiment reduces
The situation that long-time system disk accesses.
Further, if the amplitude of temperature humidity change is larger in the prior art, then the sampling time delay of required adjustment is just
It is bigger, it is necessary to multiple transmission order and read data to be judged just be adjusted in place.The present embodiment no matter temperature
Whether the amplitude of humidity change is larger, only needs once to judge the adjustment that sampling time delay can be achieved, without repeatedly adjustment.
Further, since preset temperature is delayed, what relation represented is the corresponding relation of plate level temperature range and sampling time delay,
A sampling time delay corresponding to multiple plate level temperature in a certain plate level temperature range with regard to explanation, when when foreboard level temperature with
When upper plate level temperature belongs to same plate level temperature range, the adjustment of sampling time delay can't be carried out, if therefore front and rear panel level temperature
The adjustment of sampling time delay will not be typically carried out when being more or less the same.Compared to prior art, when the violent go of temperature humidity,
This embodiment reduces the adjustment number of sampling time delay, electric power and system cost are saved.
It should be appreciated that if it is determined that first delay second delay between it is less delay be with last time adjustment prolong
When it is consistent, then show the sampling time delay for for foreboard level environment without adjustment.Now return to step 102, and continue to hold
The step 104 and 106 of row below.Due to can't now carry out the adjustment of sampling time delay, therefore the occupancy of disk will not be caused.
Embodiment two
Referring to Fig. 2, showing the sampling time delay method of adjustment that the present embodiment provides, can include:
200th, when it is determined that being malfunctioned into data sampling, it is determined that entering delay adjustment modes.In the present embodiment, delay is adjusted
Integral pattern refers to changing adjustment sampling time delay with delay corresponding relation according to corresponding default humiture, i.e., according to default temperature
Spend delay relation and default humidity delay relation carries out the pattern of sampling time delay adjustment, can reach and once adjust sampling time delay
The effect of completion.
202nd, detection plate level environment when foreboard level temperature and when foreboard level humidity, and according to preset temperature be delayed relation and
Default humidity delay relation, the first delay and the second delay corresponding to acquisition;Wherein, the preset temperature delay relation is used for table
Show the corresponding relation of plate level temperature range and sampling time delay, the default humidity delay relation be used for display plate level humidity section with
The corresponding relation of sampling time delay.
Specifically, the preset temperature delay relation obtains in the following manner:
Multiple different temperature are gathered, detect sampling time delay corresponding to each temperature;
According to sampling time delay corresponding to the multiple different temperature and each temperature, temperature duration curve, the temperature are obtained
Degree duration curve is preset temperature delay relation.
Specifically, the default humidity delay relation obtains in the following manner:
Multiple different humidity are gathered, detect sampling time delay corresponding to each humidity;
According to sampling time delay corresponding to the multiple different humidity and each humidity, humidity duration curve is obtained, it is described wet
It is default humidity delay relation to spend duration curve.
204th, judge whether less delay is consistent with the delay of last time adjustment between the first delay and the second delay.
206th, it is if it is determined that inconsistent, then trigger system break, and by less delay between the first delay and the second delay
It is arranged to the delay of newest adjustment.
The embodiment of the present invention passes through the less delay between the first delay and the second delay and the upper delay once adjusted
When inconsistent, trigger system break and less delay between the first delay and the second delay is arranged to prolonging for newest adjustment
When, i.e., only first delay second delay between it is less delay it is inconsistent with the upper delay once adjusted when adjust sampling prolong
When, it is achieved thereby that only once being judged the adjustment of sampling time delay can be achieved, the time of sampling time delay adjustment is very of short duration,
Greatly reduce the holding time of disk.Compared to prior art, when the violent go of temperature humidity, the present embodiment reduces
The situation that long-time system disk accesses.
Further, if the amplitude of temperature humidity change is larger in the prior art, then the sampling time delay of required adjustment is just
It is bigger, it is necessary to multiple transmission order and read data to be judged just be adjusted in place.The present embodiment no matter temperature
Whether the amplitude of humidity change is larger, only needs once to judge the adjustment that sampling time delay can be achieved, without repeatedly adjustment.
Further, since preset temperature is delayed, what relation represented is the corresponding relation of plate level temperature range and sampling time delay,
A sampling time delay corresponding to multiple plate level temperature in a certain plate level temperature range with regard to explanation, when when foreboard level temperature with
When upper plate level temperature belongs to same plate level temperature range, the adjustment of sampling time delay can't be carried out, if therefore front and rear panel level temperature
The adjustment of sampling time delay will not be typically carried out when being more or less the same.Compared to prior art, when the violent go of temperature humidity,
This embodiment reduces the adjustment number of sampling time delay, electric power and system cost are saved.
It should be appreciated that if it is determined that first delay second delay between it is less delay be with last time adjustment prolong
When it is consistent, then show the sampling time delay for for foreboard level environment without adjustment, now return to step 202, and continue to hold
The step 204 and 206 of row below.Due to can't now carry out the adjustment of sampling time delay, therefore the occupancy of disk will not be caused.
Embodiment three
Referring to Fig. 3, showing the sampling time delay method of adjustment that the present embodiment provides, its available application scenarios includes control
Device processed, temperature sensor, humidity sensor, register, internal memory, I/O module.Be preset with internal memory preset temperature delay relation and
Default humidity delay relation, it can be indicated by way of shown in Fig. 3.The method of adjustment tool of sampling time delay shown in Fig. 3
Body is as follows.
(1) will be wet between temperature range between the plate tested in advance and sampling time delay relation (i.e. preset temperature delay relation), plate
Degree section and the data of sampling time delay relation (i.e. default humidity delay relation) are stored in one section of physical address of internal memory, and will
This two physical address are stored in the temperature curve memory address position and moisture curve memory address position of register interface.
Specifically, the preset temperature delay relation obtains in the following manner:
Multiple different temperature are gathered, detect sampling time delay corresponding to each temperature;
According to sampling time delay corresponding to the multiple different temperature and each temperature, temperature duration curve, the temperature are obtained
Degree duration curve is preset temperature delay relation.
Specifically, the default humidity delay relation obtains in the following manner:
Multiple different humidity are gathered, detect sampling time delay corresponding to each humidity;
According to sampling time delay corresponding to the multiple different humidity and each humidity, humidity duration curve is obtained, it is described wet
It is default humidity delay relation to spend duration curve.
(2) by the model selection of register interface, the adjustment modes that are delayed are configured to.
(3) in system operation, the humiture poll pattern of controller constantly reads temperature sensor and humidity
The data message of sensor detection, the epidemic disaster information for gathering current Soc plates level environment (i.e. when foreboard level temperature and work as foreboard
Level humidity).
(4) controller humiture poll pattern inquiry register interface, determine be currently configured be delay adjustment mould
Formula, then the corresponding write-in register of the epidemic disaster information currently collected (i.e. when foreboard level temperature and when foreboard level humidity) is connect
In the epidemic disaster information bit of mouth.
(5) humiture poller module obtains epidemic disaster curve memory address from register interface, using the address from internal memory
It is middle to obtain default epidemic disaster curved line relation, the sampling time delay corresponding to the epidemic disaster information currently collected is parsed, such as
The temperature information currently collected is t1 (belonging to temperature range T1), humidity information is h1 (belonging to humidity section H1), and it is corresponding
Sampling time delay be respectively ST1 (first delay), SH1 (the second delay).
(6) humiture poller module compares ST1 and SH1, takes less one (being assumed to be SH1).Remember with preceding once adjustment
The sampling time delay data of record are compared, if it is different, changing interrupt flag bit, triggering with regard to the humiture of configuration register interface
One system break.Then this sampling time delay SH1 is configured to I/O module, the sampling time delay as newest adjustment.
It should be appreciated that if the model selection of drive software configuration register interface is non-delayed adjustment modes,
The humiture poller module of controller will not work, and drive software can use the side that constantly detection judges after traditional, error
Method is adjusted.
The embodiment of the present invention passes through the less delay between the first delay and the second delay and the upper delay once adjusted
When inconsistent, trigger system break and less delay between the first delay and the second delay is arranged to prolonging for newest adjustment
When, i.e., only first delay second delay between it is less delay it is inconsistent with the upper delay once adjusted when adjust sampling prolong
When, it is achieved thereby that only once being judged the adjustment of sampling time delay can be achieved, the time of sampling time delay adjustment is very of short duration,
Greatly reduce the holding time of disk.Compared to prior art, when the violent go of temperature humidity, the present embodiment reduces
The situation that long-time system disk accesses.
Further, if the amplitude of temperature humidity change is larger in the prior art, then the sampling time delay of required adjustment is just
It is bigger, it is necessary to multiple transmission order and read data to be judged just be adjusted in place.The present embodiment no matter temperature
Whether the amplitude of humidity change is larger, only needs once to judge the adjustment that sampling time delay can be achieved, without repeatedly adjustment.
Further, since preset temperature is delayed, what relation represented is the corresponding relation of plate level temperature range and sampling time delay,
A sampling time delay corresponding to multiple plate level temperature in a certain plate level temperature range with regard to explanation, when when foreboard level temperature with
When upper plate level temperature belongs to same plate level temperature range, the adjustment of sampling time delay can't be carried out, if therefore front and rear panel level temperature
The adjustment of sampling time delay will not be typically carried out when being more or less the same.Compared to prior art, when the violent go of temperature humidity,
This embodiment reduces the adjustment number of sampling time delay, electric power and system cost are saved.
Example IV
Referring to Fig. 4, a kind of sampling time delay adjusting apparatus is provided, including controller 401, temperature sensor 402, humidity pass
Sensor 403, internal memory 404, register 405, the temperature sensor 402, humidity sensor 403, internal memory 404, register 405 are equal
It is electrically connected with controller 401, the internal memory 404 is used to store preset temperature delay relation and default humidity delay relation;Its
In, the preset temperature delay relation is used for the corresponding relation of display plate level temperature range and sampling time delay, the default humidity
Delay relation is used for the corresponding relation of display plate level humidity section and sampling time delay;
The temperature sensor 402, the plate level temperature for detection plate level environment;
The humidity sensor 403, the plate level humidity for detection plate level environment;
The controller 401, for receive temperature sensor 402 transmission work as foreboard level temperature and moisture sensors 403
Foreboard level humidity is worked as in transmission, and according to preset temperature delay relation in internal memory 404 and default humidity delay relation, obtains current
Plate level temperature and when corresponding to foreboard level humidity first delay and second delay;Judge smaller between the first delay and the second delay
Delay whether with last time adjustment delay it is consistent;And if it is determined that inconsistent, then control the triggering of register 405 system
System is interrupted, and less be delayed between the first delay and the second delay is arranged into the delay of newest adjustment.
In the first possible implementation, the controller 401 is additionally operable to:When it is determined that the register 405 enters
During the adjustment modes that are delayed, that triggers the detection plate level environment of temperature sensor 402 works as foreboard level temperature, and triggers the humidity
The detection plate level environment of sensor 403 works as foreboard level humidity.
In second of possible implementation, the controller 401 is additionally operable to:When it is determined that being malfunctioned into data sampling
When, control register 405 enters delay adjustment modes.
In the third possible implementation, in addition to temperature delay generation module, for gathering multiple different temperature
Degree, detects sampling time delay corresponding to each temperature;And the sampling time delay according to corresponding to the multiple different temperature and each temperature,
Obtain temperature duration curve.
In the 4th kind of possible implementation method, in addition to humidity delay generation module, it is multiple different wet for gathering
Degree, detects sampling time delay corresponding to each humidity;And the sampling time delay according to corresponding to the multiple different humidity and each humidity,
Obtain humidity duration curve.
Operation principle and corresponding beneficial effect and the preceding method embodiment theory of equipment/device embodiment of the present invention
Unanimously, foregoing content is specifically see, will not be repeated here.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with
The difference of other embodiment, between each embodiment identical similar part mutually referring to.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability includes, so that process, method, article or terminal device including a series of elements not only include those
Key element, but also the other element including being not expressly set out, or it is this process, method, article or end also to include
The intrinsic key element of end equipment.In the absence of more restrictions, limited by sentence " including ... " or " including ... "
Key element, it is not excluded that other key element in the process including the key element, method, article or terminal device also be present.This
Outside, herein, " being more than ", " being less than ", " exceeding " etc. are interpreted as not including this number;" more than ", " following ", " within " etc. understand
It is to include this number.
It should be understood by those skilled in the art that, the various embodiments described above can be provided as method, apparatus or computer program production
Product.These embodiments can use the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.All or part of step in the method that the various embodiments described above are related to can by program come instruct the hardware of correlation come
Complete, described program can be stored in the storage medium that computer equipment can be read, for performing the various embodiments described above side
All or part of step described in method.The computer equipment, include but is not limited to:Personal computer, server, general-purpose computations
It is machine, special-purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, wearable
Smart machine, vehicle intelligent equipment etc.;Described storage medium, include but is not limited to:RAM, ROM, magnetic disc, tape, CD, sudden strain of a muscle
Deposit, USB flash disk, mobile hard disk, storage card, memory stick, webserver storage, network cloud storage etc..
The various embodiments described above are with reference to method, equipment (system) and the computer program product according to embodiment
Flow chart and/or block diagram describe.It should be understood that can be by every in computer program instructions implementation process figure and/or block diagram
One flow and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computers can be provided
Programmed instruction is to the processor of computer equipment to produce a machine so that passes through the finger of the computing device of computer equipment
Order, which produces, to be used to realize what is specified in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames
The device of function.
These computer program instructions may be alternatively stored in the computer that computer equipment can be guided to work in a specific way and set
In standby readable memory so that the instruction being stored in the computer equipment readable memory produces the manufacture for including command device
Product, the command device is realized to be referred in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames
Fixed function.
These computer program instructions can be also loaded on computer equipment so that performed on a computing device a series of
Operating procedure is to produce computer implemented processing, so as to which the instruction performed on a computing device is provided for realizing in flow
The step of function of being specified in one flow of figure or multiple flows and/or one square frame of block diagram or multiple square frames.
Although the various embodiments described above are described, those skilled in the art once know basic wound
The property made concept, then other change and modification can be made to these embodiments, so embodiments of the invention are the foregoing is only,
Not thereby the scope of patent protection of the present invention, every equivalent structure made using description of the invention and accompanying drawing content are limited
Or equivalent flow conversion, or other related technical areas are directly or indirectly used in, similarly it is included in the patent of the present invention
Within protection domain.