CN113515239A - Battery-powered temperature recording method, device, equipment and storage medium - Google Patents
Battery-powered temperature recording method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN113515239A CN113515239A CN202110852086.0A CN202110852086A CN113515239A CN 113515239 A CN113515239 A CN 113515239A CN 202110852086 A CN202110852086 A CN 202110852086A CN 113515239 A CN113515239 A CN 113515239A
- Authority
- CN
- China
- Prior art keywords
- temperature
- stored
- temperature data
- battery
- power supply
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000001514 detection method Methods 0.000 claims abstract description 24
- 238000003491 array Methods 0.000 claims description 14
- 238000001931 thermography Methods 0.000 claims description 9
- 239000000284 extract Substances 0.000 claims description 5
- 238000002372 labelling Methods 0.000 claims description 3
- 238000012545 processing Methods 0.000 abstract description 11
- 230000006870 function Effects 0.000 description 24
- 230000008569 process Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 9
- 238000007906 compression Methods 0.000 description 8
- 230000006835 compression Effects 0.000 description 8
- 238000013500 data storage Methods 0.000 description 7
- 230000002159 abnormal effect Effects 0.000 description 4
- 230000002035 prolonged effect Effects 0.000 description 4
- 238000005259 measurement Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 230000002238 attenuated effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000009529 body temperature measurement Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000013144 data compression Methods 0.000 description 1
- 238000013075 data extraction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001052 transient effect Effects 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/0604—Improving or facilitating administration, e.g. storage management
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01K—MEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
- G01K1/00—Details of thermometers not specially adapted for particular types of thermometer
- G01K1/02—Means for indicating or recording specially adapted for thermometers
- G01K1/022—Means for indicating or recording specially adapted for thermometers for recording
-
- 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/062—Securing storage systems
- G06F3/0622—Securing storage systems in relation to access
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Secondary Cells (AREA)
Abstract
The invention relates to the technical field of battery detection, and discloses a battery power supply temperature recording method, device, equipment and storage medium. The method comprises the following steps: the environment temperature is detected by using a sensor, the detected temperature data is transmitted to a controller for judgment processing, whether the detected temperature data value is lower than a preset limit temperature or not is further judged, if the detected temperature data value is lower than the limit temperature value, the temperature data to be stored is compressed and stored into a first storage through the controller, whether the power supply state of the current device meets a preset power supply condition or not is further judged, and if the power supply condition is met, the temperature data stored in the first storage is stored into a second storage. The invention reduces the working temperature of the battery-powered temperature recording device and prolongs the service life of the battery-powered temperature recording device.
Description
Technical Field
The invention relates to the technical field of battery detection, in particular to a battery power supply temperature recording method, device, equipment and storage medium.
Background
With the development of science and technology, especially on the aspect of recording external environment temperature change, the temperature recording device gradually replaces the traditional manual timing temperature measurement and recording, and is widely applied.
At present, the measurement and the recording of the temperature data of the external environment are realized, the measured temperature data can be detected and stored in real time by using a temperature recording device, the effective power supply current is reduced due to the fact that the internal resistance of a battery in a power supply module changes along with the fluctuation of the temperature and the internal resistance is increased when the temperature is reduced, and when the temperature is lower than a threshold value TL, the voltage and the current output by the battery are not enough to support the whole device to work. If the system does not perform protection processing, the chip of the device is reset, even after the system is restarted and enters work again, the continuous discharge circulation of the battery is formed, and finally the power supply is exhausted, so that the recording of the environmental temperature data is influenced.
Disclosure of Invention
The invention mainly aims to solve the technical problem that a battery-powered temperature recording device cannot normally record data in a limit low-temperature environment.
The invention provides a battery power supply temperature recording method in a first aspect, which comprises the following steps: s1, detecting the temperature of the deployment environment of the battery-powered temperature recording device through the sensor to obtain temperature data to be stored, and judging whether the temperature data to be stored is lower than a preset limit temperature through the controller; s2, if the temperature data to be stored is lower than the limit temperature, temporarily compressing the temperature data to be stored through the first memory and storing the temperature data; s3, detecting the power supply state of the battery in real time through the controller, and judging whether the power supply state meets the preset power supply condition; and S4, if the power supply state meets the power supply condition, writing the compressed temperature data stored in the volatile memory into the second memory. .
Optionally, in a first implementation manner of the first aspect of the present invention, after step S1, the method further includes: s11, if the temperature data to be stored is higher than the limit temperature, determining that the power supply of the battery power supply temperature recording device is normal, and judging whether historical temperature data are stored in the first storage through the controller; s12, if the historical temperature data are stored, storing the historical temperature data and the temperature data to be stored into the second memory through the controller; and S13, if the historical temperature data are not stored, storing the temperature data to be stored into the second memory through the controller.
Optionally, in a second implementation manner of the first aspect of the present invention, the step S2 further includes: s21, judging whether a residual storage space exists in a memory array space corresponding to the temperature data to be stored through the controller, wherein the first storage comprises at least one memory array space; s22, if the residual storage space exists, storing the temperature data to be stored into the memory array through the controller, and realizing the temporary storage of the temperature data to be stored by the first storage; s23, if the residual storage space does not exist, the controller extracts the stored temperature data in the memory array space; s24, calculating the average thermodynamic temperature of the extracted temperature data, and taking the thermodynamic average temperature as the mean value of the stored temperature data; and S25, clearing the stored temperature data in the memory array space, and storing the average value and the temperature data to be stored in the memory array space through the controller.
Optionally, in a third implementation manner of the first aspect of the present invention, before step S21, the method further includes: s2101, identifying an idle storage space block in the first storage through the controller, and calling the idle storage space to construct a corresponding memory array; s2102, marking the memory arrays in sequence, and constructing a memory array space by using the memory arrays marked in sequence.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the step S22 further includes: s221, if the residual storage space exists, traversing the residual storage space through the controller to obtain sequential labeling of the memory arrays in the residual storage space; s222, storing the temperature data to be stored to a first memory array sequentially marked in the residual storage space through the controller.
Optionally, in a fifth implementation manner of the first aspect of the present invention, after step S25, the method further includes: s2501, judging whether the temperature data stored in the first storage meets preset temperature acquisition conditions or not through the controller; s2502, if the temperature acquisition condition is not met, the sensor detects the temperature of the deployment environment of the battery-powered temperature recording device again to obtain new temperature data and temporarily compress and store the new temperature data.
Optionally, in a sixth implementation manner of the first aspect of the present invention, the step S3 further includes: s31, comparing a battery power supply parameter with the storage power consumption of the second memory, wherein the battery power supply parameter is the detection result; s32, if the storage power consumption of the second memory is larger than the battery power supply parameter, determining that the battery power supply state meets a preset power supply condition; and S33, if the storage power consumption of the second memory is smaller than the battery power supply parameter, determining that the battery power supply state does not meet the preset power supply condition.
A second aspect of the present invention provides a battery-powered temperature recording apparatus comprising: the sensor is used for detecting the temperature of the deployment environment of the battery-powered temperature recording device to obtain temperature data to be stored; the controller is used for judging whether the temperature data to be stored is lower than a preset limit temperature or not; the first memory temporarily compresses and stores the temperature data to be stored if the temperature data to be stored is lower than the limit temperature; the controller is also used for judging whether the power supply state meets the preset power supply condition or not by detecting the power supply state of the battery in real time; and the second memory writes the compressed temperature data stored in the first memory if the power supply state meets the power supply condition.
Optionally, in a first implementation manner of the second aspect of the present invention, the sensor is further configured to: if the temperature data to be stored is higher than the limit temperature, determining that the battery power supply temperature recording device supplies power normally, and judging whether historical temperature data are stored in the first storage through the controller; if the historical temperature data is stored, storing the historical temperature data and the temperature data to be stored into the second memory through the controller; and if the historical temperature data is not stored, storing the temperature data to be stored into the second memory through the controller.
Optionally, in a second implementation manner of the second aspect of the present invention, the first memory includes: the space judgment unit is used for judging whether a residual storage space exists in a memory array space corresponding to the temperature data to be stored through the controller, wherein the first storage comprises at least one memory array space; the temporary storage unit is used for storing the temperature data to be stored into the memory array through the controller if the residual storage space exists, so that the first storage device can temporarily store the temperature data to be stored; the data extracting unit is used for extracting the stored temperature data in the memory array space by the controller if the residual storage space does not exist; the mean value calculating unit is used for calculating the average thermodynamic temperature of the extracted temperature data and taking the thermodynamic average temperature as the mean value of the stored temperature data; and the data storage unit is used for clearing the stored temperature data in the memory array space and storing the mean value and the temperature data to be stored in the memory array space through the controller.
Optionally, in a third implementation manner of the second aspect of the present invention, the first memory is further configured to: identifying a free storage space block in the first storage through the controller, and calling the free storage space to construct a corresponding memory array; and marking the memory arrays in sequence, and constructing a memory array space by adopting the memory arrays marked in sequence.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the temporary storage unit is further configured to: if the residual storage space exists, traversing the residual storage space through the controller to obtain sequential labels of the memory arrays in the residual storage space; and storing the temperature data to be stored to a first memory array marked in sequence in the residual storage space through the controller.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the controller is further configured to: judging whether the temperature data stored in the first memory meets a preset temperature acquisition condition or not through the controller; if the temperature acquisition condition is not met, the deployment environment of the battery-powered temperature recording device is subjected to temperature detection again through the sensor, and new temperature data are obtained and are temporarily compressed and stored.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the controller includes: the comparison unit is used for comparing a battery power supply parameter with the storage power consumption of the second memory, wherein the battery power supply parameter is the detection result; the condition satisfying unit is used for determining that the battery power supply state satisfies a preset power supply condition if the storage power consumption of the second memory is larger than the battery power supply parameter; and the condition unsatisfied unit is used for determining that the battery power supply state does not satisfy the preset power supply condition if the storage power consumption of the second memory is smaller than the battery power supply parameter.
A third aspect of the present invention provides a battery-powered thermographic apparatus comprising: a memory and at least one processor, the memory having instructions stored therein; the at least one processor invokes the instructions in the memory to cause the battery-powered thermographic device to perform the steps of the battery-powered thermographic method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the above-described battery-powered thermography method.
In the technical scheme provided by the invention, after a sensor detects the temperature of a deployed environment, the measured temperature data to be stored is transmitted to a controller, the controller firstly compares the temperature data with a preset limit temperature, if the temperature data is lower than the limit temperature value, the surplus degree of the current memory array space is further judged, if the surplus degree is certain, the temperature data is directly stored into a memory array, if the memory array does not have the surplus storage space, the stored temperature data is firstly compressed, and the compressed temperature data and the temperature data to be stored are stored into a first storage device together, so that the defects that the temperature data cannot be stored and repeatedly reset when the measured temperature is lower than the limit temperature are overcome, and the function of storing the data at the limit temperature is realized.
And then whether the temperature collected at present meets the collection condition is judged, if not, the temperature data is continuously collected and compressed for temporary storage, if the collection condition is met, whether the power supply of the current device is normal is judged, if the power supply is abnormal, the temperature data is continuously collected and compressed for temporary storage, and if the power supply is normal, the temperature data temporarily compressed and stored in the first storage is stored in the second storage, so that the temperature data is stored. Based on the method, the working temperature of the device can be further reduced by using the method under the same battery power supply, the device can work under lower temperature, and the power for writing data into the storage module is equivalent to the total power consumption of the controller and the sensor under the general condition, so that when the temperature is lower than the limit temperature, the battery power supply pressure is halved, and when the device is below the limit temperature for a long time, the device can have longer working time, and the service life of the device is prolonged.
Drawings
FIG. 1 is a schematic diagram of a first embodiment of a battery-powered temperature recording method in an embodiment of the invention;
FIG. 2 is a schematic diagram of a second embodiment of a battery-powered temperature recording method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a third embodiment of a battery-powered temperature recording method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a fourth embodiment of a battery-powered temperature recording method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a fifth embodiment of a battery-powered temperature recording method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of one embodiment of a battery-powered temperature recording apparatus in an embodiment of the present invention;
FIG. 7 is a schematic diagram of another embodiment of a battery-powered temperature recording apparatus in an embodiment of the present invention;
fig. 8 is a schematic diagram of an embodiment of a battery-powered temperature recording device in an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a battery power supply temperature recording method, device, equipment and storage medium, and a battery power supply technology at a low limit temperature.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For ease of understanding, a detailed flow of an embodiment of the present invention is described below, and referring to fig. 1, a first embodiment of a battery-powered temperature recording method according to an embodiment of the present invention includes:
s1, detecting the temperature of the deployment environment of the battery-powered temperature recording device through a sensor to obtain temperature data to be stored, and judging whether the temperature data to be stored is lower than a preset limit temperature through a controller;
in this embodiment, the sensor is a temperature sensor, which can detect the ambient temperature in real time, collect the ambient temperature at intervals to obtain ambient temperature data, and detect the ambient temperature in real time through the sensor in the battery-powered temperature recording device, that is, measure the ambient temperature through a commonly used thermocouple temperature sensor, when the working end of the thermocouple contacts the ambient temperature, there is a temperature difference with the temperature of the free end of the thermocouple, because the temperature difference at the two ends of the thermocouple can generate a thermal electromotive force in the loop, and the direction and magnitude of the thermal electromotive force are related to the material of the conductor and the temperatures of the two junctions, and further through a thermocouple graduation chart made by the functional relationship of the thermal electromotive force temperature, the thermocouple temperature sensor can calculate the measured ambient temperature data to obtain the temperature data to be stored.
The limit temperature is the environmental temperature of the battery in the temperature detection device, the output voltage and current of the battery are reduced when the temperature is lower than the critical temperature condition, so that the critical temperature condition of the whole device cannot be supported, the temperature data to be stored obtained by the temperature sensor is transmitted to the controller through the connecting circuit, a limit temperature value is preset in the controller, the transmitted temperature data to be stored is converted into a data type which can be processed by the controller, the controller compares the ratio of the temperature data to be stored and the limit temperature through a comparison function, and judges whether the temperature data value to be stored is lower than the limit temperature, namely, a digital-analog converter in the controller converts the temperature data transmitted as an analog signal by the sensor into a digital signal which can be identified and processed by the controller, and then the temperature data in the type of the digital signal is compared with the limit temperature value by calling the comparison function, the comparison of the two values can know whether the temperature data value currently input into the controller is lower than the limit temperature value.
S2, detecting the temperature of the deployment environment of the battery-powered temperature recording device through a sensor to obtain temperature data to be stored, and judging whether the temperature data to be stored is lower than a preset limit temperature through a controller;
in this embodiment, the first memory is a volatile memory, which is a random access memory (i.e., RAM) for temporarily storing programs and data in the controller for direct exchange and temporary storage, and can achieve read and write at any time, and has a high speed, the largest difference between the first memory and the nonvolatile memory is data volatility, that is, data stored in the nonvolatile memory is lost along with power failure, when the temperature data to be stored obtained by comparing the controller through a comparison function is lower than a limit temperature value, because the power supplied by a battery is not enough to provide normal operation of the whole temperature recording device, while the stored data in the nonvolatile memory is not easy to lose, the power consumed by the nonvolatile memory is almost half of that of the whole device, at this time, the operation of the nonvolatile memory is stopped first, and the volatile memory with lower power consumption is used to achieve temporary compression storage of the temperature data, thereby solving the storage of the temperature data at the limit temperature, the controller firstly judges the surplus degree of the memory array space, if the memory array space is not fully stored, the temperature data to be stored is stored in the memory array, if the memory array space is fully stored, the temperature data stored in the memory array is firstly compressed in a mean value calculation mode, and the temperature data obtained by compression and the temperature data to be stored are stored in the memory array.
In the practical application processing process, when the controller calls a comparison function to compare and obtain that the temperature data to be stored is lower than the limit temperature data value, the surplus degree of the memory array space is detected, the memory array identifies the used and called storage space in the volatile memory through the controller, the memory array space is established by identifying the storage space which is not used in the volatile memory, if the controller detects that the memory array space is not fully stored, the temperature data to be stored is stored in the memory array space, and if the memory array space is completely stored, the temperature data which are already stored in the memory array space are merged.
S3, detecting the power supply state of the battery in real time through the controller, and judging whether the power supply state meets the preset power supply condition;
in this embodiment, the power supply state refers to the operating state of the battery current and the battery voltage provided by the battery at this time, and the controller in the temperature recording device determines whether the power consumption of the nonvolatile memory that can normally store data is satisfied by detecting the power consumption of the battery provided to the nonvolatile memory at this time, and further determines whether the power consumption of the nonvolatile memory that can normally store data satisfies the normal operation of the entire device, so as to store the measured temperature data in the nonvolatile memory.
In practical application, when the battery provides voltage and current for the temperature recording device, the controller can detect the provided voltage and current of the battery in real time through the current detection circuit and the voltage detection circuit on the periphery of the controller, so that the controller can know the values of the voltage and the current provided by the battery in real time, and the current and the voltage values are compared with the voltage value and the current value required by the temperature recording device in a normal working state according to the values of the current and the voltage, so that whether the power supply state of the battery meets the condition of normal working operation of the whole temperature recording device at the moment can be obtained, and the recording function of storing the detected temperature data into the nonvolatile memory is realized.
And S4, if the power supply state meets the power supply condition, writing the compressed temperature data stored in the first memory into the second memory.
In this embodiment, the second storage is a nonvolatile storage, and can implement a long-term storage function of temperature data, if the controller detects that the battery power supply state satisfies the normal operation of the temperature recording device, and implements a recording function of storing the measured temperature data into the nonvolatile storage, it is determined whether temperature data is still stored in a memory array constructed by the volatile storage, if temperature data stored in a temporary compression mode is also stored, the temporary temperature data in the memory array is stored and written into the nonvolatile storage and the storage of the data is terminated, and if storage spaces in the memory array are all empty arrays, the operation of the program is terminated.
In practical application, through the judgment processing of a current and voltage monitoring circuit and a controller in the temperature recording device, if the voltage and the current provided by the battery meet the normal operation of the temperature recording device, whether the memory array space stores data is judged firstly, the controller traverses all the memory array spaces by accessing the first address of the memory array space constructed by the volatile memory, if the second address of the array memory is non-empty data, the traversal is continued until the array address of the empty data is found, and the empty data refers to a mark that the array space temporarily does not store the temperature data when the corresponding array memory space does not store the temperature data. When the empty data mark is judged, storing all the temperature data stored with temporary compressed storage in the front of the array into a nonvolatile memory, ending the program after the storage is finished, and if the second address of the array memory is empty data, indicating that the measured temperature data is stored into the nonvolatile memory, ending the operation of the program.
In this embodiment, after the sensor detects the temperature of the deployed environment, the measured temperature data to be stored is transmitted to the controller, the controller compares the temperature data with a preset limit temperature, if the temperature data is lower than the limit temperature value, the remaining degree of the current memory array space is determined, if the remaining degree is certain, the temperature data is directly stored into the memory array, if the memory array does not have the remaining storage space, the stored temperature data is compressed, and the compressed temperature data and the temperature data to be stored are stored into the volatile memory together.
And then judging whether the power supply of the current device is normal, if the power supply is abnormal, continuously acquiring and compressing the temperature data for temporary storage, and if the power supply is normal, storing the temperature data temporarily compressed and stored in the volatile memory into the nonvolatile memory to realize the storage of the temperature data. Based on the method, the working temperature of the device can be further reduced by using the method under the same battery power supply, the device can work under lower temperature, and the power for writing data into the storage module is equivalent to the total power consumption of the controller and the sensor under the general condition, so that when the temperature is lower than the limit temperature, the battery power supply pressure is halved, and when the device is below the limit temperature for a long time, the device can have longer working time, and the service life of the device is prolonged.
Referring to fig. 2, a second embodiment of the method for recording battery-powered temperature according to the embodiment of the present invention includes:
s1, detecting the temperature of the deployment environment of the battery-powered temperature recording device through a sensor to obtain temperature data to be stored, and judging whether the temperature data to be stored is lower than a preset limit temperature through a controller;
s11, if the temperature data to be stored is higher than the limit temperature, determining that the power supply of the battery power supply temperature recording device is normal, and judging whether the historical temperature data are stored in the first storage through the controller;
in the embodiment, the preset limit temperature is that the limit temperature value changes due to the fact that the power supply capacity of the battery is attenuated along with use, a corresponding temperature function is established through a comparison relation between the use process of the electric quantity obtained through actual measurement and the limit temperature, the temperature function is used as a preset limit temperature parameter, the controller judges and obtains a current limit temperature value, the controller in the temperature recording device compares the temperature data to be stored detected by the sensor with the limit temperature value, if the temperature data value to be stored is higher than the limit temperature value, the current limit temperature value can be known to be normal in power supply of the battery, and then the controller judges whether historical temperature data are stored in the volatile memory or not;
s12, if the historical temperature data are stored, storing the historical temperature data and the temperature data to be stored into a second memory through the controller;
in this embodiment, if the value of the temperature data to be stored is higher than the limit temperature value, it is known that the power supply of the battery is normal at that time, the temperature recording device may store the measured temperature data in the nonvolatile memory, and if the temperature data temporarily compressed and stored due to the temperature being lower than the limit temperature is stored in the volatile memory at that time, the controller extracts the data stored in the volatile memory and stores the data in the nonvolatile memory together with the temperature data to be stored at that time.
S13, if the historical temperature data are not stored, storing the temperature data to be stored into a second memory through the controller;
in this embodiment, if the temporarily compressed and stored temperature data is not stored in the volatile memory at this time, the temperature data to be stored this time is stored in the nonvolatile memory.
In practical application, the data measured by the sensor in the temperature recorder is converted to obtain temperature data to be stored, the temperature data to be stored is transmitted into the controller, the temperature data to be stored is further compared with a limit temperature value, the limit temperature can be-40 ℃ by taking the working limit temperature of a CR2450 battery as an example, if the temperature data to be stored is higher than-40 ℃, whether the volatile memory stores the temporarily compressed and stored temperature data generated by being lower than-40 ℃ is judged, the controller judges whether the volatile memory is empty data by accessing the 2 nd address of the volatile memory, if the volatile memory is non-empty data, the array space address of the memory array space built by the volatile memory is traversed through a traversal function, and when one is traversed to be empty data, the temperature data before the array space is empty data is extracted through traversal, and storing the extracted temperature data which is temporarily compressed and stored and the temperature data to be stored into a nonvolatile memory together, and if the controller is empty data for the 2 nd address which accesses the volatile memory, storing the temperature data to be stored into the nonvolatile memory without storing the temperature data which is temporarily compressed and stored in the volatile memory.
S2, if the temperature data to be stored is lower than the limit temperature, temporarily compressing the temperature data to be stored through a first memory and storing the temperature data;
s3, detecting the power supply state of the battery in real time through the controller, and judging whether the power supply state meets the preset power supply condition;
and S4, if the power supply state meets the power supply condition, writing the compressed temperature data stored in the first memory into the second memory.
In this embodiment, it is described in detail that the controller compares and determines temperature data to be stored with a preset limit temperature value, if the temperature data is higher than the limit temperature value, the power supply of the device is normal at this time, it is determined whether temporary compressed data is stored in the volatile memory at this time, if the temporary compressed data is present, the temperature data to be stored and the temporary compressed data are stored in the nonvolatile memory, and if the temporary compressed data is not present, the data to be stored is directly stored in the nonvolatile memory, so that the temperature data is stored. Compared with the prior art, the method can judge whether the current measured temperature is lower than the limit temperature or not, further judge whether the temporary compression volatile memory storage operation is required or not, realize the judgment before the device data storage operation under the limit low temperature, and is beneficial to preventing the device from resetting and realizing the temperature data storage under the condition of the limit low temperature.
Referring to fig. 3, a third embodiment of the method for recording battery-powered temperature according to the embodiment of the present invention includes:
s1, detecting the temperature of the deployment environment of the battery-powered temperature recording device through a sensor to obtain temperature data to be stored, and judging whether the temperature data to be stored is lower than a preset limit temperature through a controller;
s21, judging whether a memory array space corresponding to the temperature data to be stored has a residual storage space or not through the controller, wherein the first storage comprises at least one memory array space;
in this embodiment, after comparing the temperature data acquired by the sensor with the limit temperature data, if the temperature data to be stored is lower than the limit temperature, the controller determines the remaining degree of the memory array space formed by the volatile memory component.
S221, if the residual storage space exists, traversing the residual storage space through the controller to obtain sequential labels of the memory arrays in the residual storage space;
in this embodiment, the controller obtains, through traversal identification, that a storage space exists in the memory array space, and in the traversal process of the memory array space, the controller marks, from the beginning, data of the temperature data stored in traversal according to the arabic number, starting from 1, and traverses the data until the first empty data appears, and then stores the temperature data to be stored into the array space address corresponding to the empty data mark, thereby implementing the function of storing the data to be stored into the volatile memory.
S222, storing the temperature data to be stored to a first memory array sequentially marked in the residual storage space through the controller;
in this embodiment, if there is a remaining storage space in the memory array space, the temperature data to be stored is stored in the memory array space in the volatile memory, so as to implement storage of temporary temperature data generated by the limit low temperature by the volatile memory.
In practical application, a controller in the temperature recording device calls a comparison function to compare temperature data to be stored, which is acquired by a sensor and transmitted to the controller, with a limit temperature value, if the temperature data to be stored is lower than the limit temperature data, the controller judges the remaining degree of a memory array space constructed by a volatile memory, assuming that the temperature recording device only acquires temperature, the temperature data storage occupies 2Bytes, the memory array continuous whole block storage space occupies 52Bytes, namely, the memory array can store 25 groups of temperature data and one temperature quantity data, when the temperature data is not stored, the memory array space is empty data 0xFF, when the controller stores the first temperature data, the temperature data is stored into the 2 nd address of the memory array and covers the original empty data, the number of the first address recording data is changed into 1, and if the empty data are stored in the memory array space, indicating that a certain residual degree exists in the memory array space for storing the data, and further storing the temperature data to be stored in the memory array space in the nonvolatile memory.
S23, if the residual storage space does not exist, the controller extracts the stored temperature data in the memory array space;
in this embodiment, if there is no remaining storage space in the memory array space, the controller extracts the stored temperature data in the memory array space.
S24, calculating the average thermodynamic temperature of the extracted temperature data, and taking the thermodynamic average temperature as the mean value of the stored temperature data;
in this embodiment, the controller obtains that there is no remaining storage space in the memory array space through traversal identification, and compresses all temporary temperature data stored in the memory array space through a traversal function, that is, traverses all temporary temperature data in the memory array space from a first address one by one in a storage direction through the traversal function, and then calls a thermodynamic average temperature function, and calculates thermodynamic average temperature values of the traversed temporary temperature data to obtain an average value of the stored temperature data.
The actual processing process of the part of program in the controller, when the controller in the temperature recording device has no empty data by traversing the memory array space, namely, the memory array space has no residual storage space, all the temperature data stored in the memory array space are extracted by calling a traversal function, in the traversal process, the 2 nd address is marked as an Arabic numeral 1, the next traversal is a numeral plus one, all the temperature data and the number of the stored temperature data are obtained, further, a thermodynamic average temperature function is called, so that the average value of the stored temperature is obtained, in addition, if the current address is the average value of the first compression temperature data, the total number of the stored and collected temperature data is recorded, if the current address is not the average value of the first temperature data, the number collected at the current time is added with the number of the previously stored and collected temperature data, and outputting the number of the total temperature data and the obtained average value to further obtain the average value of the stored temperature data and the total number of the collected temperature data.
S25, clearing the stored temperature data in the memory array space, and storing the mean value and the temperature data to be stored in the memory array space through the controller;
in this embodiment, the stored temperature data in the memory array space is cleared, and the obtained average temperature data and the temperature data to be stored are stored in the memory array together, so that the temporary temperature data is compressed and stored by the nonvolatile memory.
In practical application, if non-empty data does not exist in the memory array space, it is indicated that the memory array space is full of temporarily compressed temperature data, the controller sums the temperature data in the memory array space through traversal and an averaging function, and then obtains an average value by dividing the sum by the number of the stored temperature data, so as to obtain the average temperature data of the temporarily compressed temperature data, then clears the temporarily compressed temperature data stored in the memory array space, all addresses are covered by the empty data, then obtains the average temperature data and the temperature data to be stored, and stores the two data into the first address and the 2 nd address of the cleared memory array space together, thereby realizing the function of compressing the temporary temperature data and storing the data into the volatile memory.
S3, detecting the power supply state of the battery in real time through the controller, and judging whether the power supply state meets the preset power supply condition;
and S4, if the power supply state meets the power supply condition, writing the compressed temperature data stored in the first memory into the second memory.
In this embodiment, on the basis of the second embodiment, when the controller determines that the temperature data to be stored is lower than the preset limit temperature, the remaining degree of the memory array space is further determined, if the memory array space has a remaining storage space, the temperature data is temporarily stored in the memory array, if the memory array is fully stored, the stored temperature data is extracted first, then the average thermodynamic temperature is calculated, the total number of the stored and acquired temperature data is recorded, the temperature data storage memory space is cleared, and finally the calculated average thermodynamic temperature, the temperature to be stored, and the acquired number are stored in the emptied memory array space, so that the temporary compressed storage of the temperature data at the limit temperature is realized. Compared with the prior art, the method can realize temporary storage of the data, and under the limited storage space, the average thermodynamic temperature of the fully stored temperature data is calculated, so that temporary compression storage of the data is realized, the continuous storage of the temperature data in the limited volatile storage space is realized, and the temperature data at the limit temperature is not lost.
Referring to fig. 4, a fourth embodiment of the method for recording battery-powered temperature according to the embodiment of the present invention includes:
s1, detecting the temperature of the deployment environment of the battery-powered temperature recording device through a sensor to obtain temperature data to be stored, and judging whether the temperature data to be stored is lower than a preset limit temperature through a controller;
s2, if the temperature data to be stored is lower than the limit temperature, temporarily compressing the temperature data to be stored through a first memory and storing the temperature data;
s2501, judging whether the temperature data stored in the first storage meets preset temperature acquisition conditions or not through the controller;
in this embodiment, the preset temperature collecting condition is usually a design index of data collecting amount, for example, the index 15000 group, the collecting is not continued enough, and after the temperature data to be stored is collected and stored, the controller detects the stored temperature data to be stored, and detects whether the stored temperature data meets the preset temperature collecting condition or not.
S2502, if the temperature acquisition condition is not met, the deployment environment of the battery-powered temperature recording device is subjected to temperature detection again through the sensor, and new temperature data are obtained and are temporarily compressed and stored;
in this embodiment, by determining whether the temperature acquisition condition is currently met, if the temperature acquisition condition is not met, the controller performs acquisition and temporary data compression and storage again, and if the temperature acquisition condition is met, determines whether the power supply of the device is normal.
In the actual processing process, the controller detects temperature data of temperature data to be stored which has finished storage operation, judges whether the current temperature data acquisition amount reaches the maximum acquisition amount according to preset temperature data acquisition conditions, can perform the next judgment operation of whether the power supply of the device is normal or not only after the temperature acquisition conditions are met, and if the temperature data acquisition conditions are not met, the controller controls the sensor to perform re-acquisition of deployment environment temperature and performs the cycle operation of temporary compression storage processing on the acquired temperature again.
S3, detecting the power supply state of the battery in real time through the controller, and judging whether the power supply state meets the preset power supply condition;
and S4, if the power supply state meets the power supply condition, writing the compressed temperature data stored in the first memory into the second memory.
In this embodiment, on the basis of the third embodiment, after the temperature data is temporarily compressed and stored in the volatile memory, it is determined whether the current temperature acquisition condition satisfies the acquisition condition, and whether the required maximum acquisition amount and other acquisition requirements have been met, if the current temperature acquisition condition does not satisfy the acquisition condition, the temperature acquisition and temporary compression storage are continued, and if the current temperature acquisition condition satisfies the acquisition condition, the determination of whether the power supply of the device is normal is performed. Compared with the prior art, the method can avoid the abnormal acquired temperature data and the situation whether the acquired temperature data reaches the required temperature data amount, so that the electric energy of the device is wasted due to excessive acquisition operation, the accuracy of acquiring and storing the temperature data is favorably ensured, and the acquisition and storage efficiency of the device is improved.
Referring to fig. 5, a fifth embodiment of the method for recording battery-powered temperature according to the embodiment of the present invention includes:
s1, detecting the temperature of the deployment environment of the battery-powered temperature recording device through a sensor to obtain temperature data to be stored, and judging whether the temperature data to be stored is lower than a preset limit temperature through a controller;
s2, if the temperature data to be stored is lower than the limit temperature, temporarily compressing the temperature data to be stored through a first memory and storing the temperature data;
s31, comparing the battery power supply parameter with the storage power consumption of the second memory, wherein the battery power supply parameter is a detection result;
in this embodiment, the preset power supply condition is a power consumption condition that the power consumption condition of the nonvolatile memory for storing the collected temperature data is satisfied when the whole temperature recording device normally operates, and the controller detects the voltage and current data of the battery power supply state through the peripheral voltage monitoring circuit and the peripheral current detection circuit.
S32, if the storage power consumption of the second memory is larger than the battery power supply parameter, determining that the battery power supply state meets the preset power supply condition;
in this embodiment, the voltage and current data obtained by the measurement circuit are transmitted to the controller of the apparatus, and the controller performs determination according to the preset power supply condition, and if the power consumption of the nonvolatile memory is greater than the detected battery power supply parameter, the preset power supply condition is satisfied.
S33, if the storage power consumption of the second memory is smaller than the battery power supply parameter, determining that the battery power supply state does not meet the preset power supply condition;
in this embodiment, the obtained voltage and current data are transmitted to the controller of the apparatus, and the controller performs determination according to the preset power supply condition, and if the power consumption of the nonvolatile memory is smaller than the detected battery power supply parameter, the preset power supply condition is not satisfied.
In practical application, the temperature recording device can detect the output voltage of the battery through related voltage and current detection circuits, for example, the voltage detection circuit can detect the output voltage of the battery through a simple circuit of the TL431, the current detection circuit can also detect the output current of the battery through a current feedback circuit constructed by the TL431, the output voltage and the output current of the battery are detected through two constructed detection circuits, and the detected data are transmitted to the controller, the controller processes the detected voltage and current data according to preset power supply conditions, because the power consumption of the nonvolatile memory is about half of the power consumption of the whole temperature recording device, the battery power supply parameter corresponding to half of the power consumption of the detected data can be obtained through the primary processing of the controller, if the power consumption of the nonvolatile memory is greater than the battery power supply parameter obtained through the detection processing, and if the power consumption of the nonvolatile memory is less than the battery power supply parameter obtained by the detection processing, the power supply state of the battery does not meet the preset power supply condition, and the temperature data cannot be stored in the nonvolatile memory.
And S4, if the power supply state meets the power supply condition, writing the compressed temperature data stored in the first memory into the second memory.
In this embodiment, on the basis of the fourth embodiment, after it is determined that the temperature acquisition condition is satisfied, it is determined whether the power supply state of the current device is normal, and the power consumption of the electric energy provided by the battery of the current device is obtained by using a simple voltage and current detection circuit. Compared with the prior art, the power supply device has the advantages that the detection circuit in the power supply equipment is utilized to realize the function of current and voltage detection, and then whether the current power supply state meets the preset power supply condition or not is judged by combining the characteristics of the nonvolatile memory in the device, so that the function of power supply detection is realized simply and efficiently.
In the above description of the method for recording battery-powered temperature in the embodiment of the present invention, referring to fig. 6, a battery-powered temperature recording apparatus in the embodiment of the present invention is described below, where a first embodiment of the battery-powered temperature recording apparatus in the embodiment of the present invention includes:
the sensor 601 is used for detecting the temperature of the deployment environment of the battery-powered temperature recording device to obtain temperature data to be stored;
a controller 602, configured to determine whether temperature data to be stored is lower than a preset limit temperature;
the first memory 603, if the temperature data to be stored is lower than the limit temperature, the first memory 603 temporarily compresses the temperature data to be stored and stores the temperature data;
the controller 602 is further configured to detect a power supply state of the battery in real time, and determine whether the power supply state meets a preset power supply condition;
and the second memory 604 writes the compressed temperature data stored in the first memory into the second memory 604 if the power supply state meets the power supply condition.
In this embodiment, after a sensor of the device detects a temperature of a deployed environment, the measured temperature data to be stored is transmitted to a controller, the controller compares the temperature data with a preset limit temperature, if the temperature data is lower than the limit temperature, the remaining degree of a current memory array space is further determined, if the remaining degree is certain, the temperature data is directly stored into a memory array, if the memory array does not have a remaining storage space, the stored temperature data is compressed, and the compressed temperature data and the temperature data to be stored are stored into a volatile memory together, so that the defect that the temperature data cannot be stored and reset repeatedly when the measured temperature is lower than the limit temperature is overcome, and a function of storing the data at the limit temperature is realized.
And then judging whether the power supply of the current device is normal, if the power supply is abnormal, continuously acquiring and compressing the temperature data for temporary storage, and if the power supply is normal, storing the temperature data temporarily compressed and stored in the volatile memory into the nonvolatile memory to realize the storage of the temperature data. Based on the method, the working temperature of the device can be further reduced by using the method under the same battery power supply, the device can work under lower temperature, and the power for writing data into the storage module is equivalent to the total power consumption of the controller and the sensor under the general condition, so that when the temperature is lower than the limit temperature, the battery power supply pressure is halved, and when the device is below the limit temperature for a long time, the device can have longer working time, and the service life of the device is prolonged.
Referring to fig. 7, a battery-powered temperature recording apparatus according to a second embodiment of the present invention specifically includes:
the sensor 601 is used for detecting the temperature of the deployment environment of the battery-powered temperature recording device to obtain temperature data to be stored;
a controller 602, configured to determine whether temperature data to be stored is lower than a preset limit temperature;
the first memory 603, if the temperature data to be stored is lower than the limit temperature, the first memory 603 temporarily compresses the temperature data to be stored and stores the temperature data;
the controller 602 is further configured to determine whether the power supply state meets a preset power supply condition by detecting the power supply state of the battery in real time;
the second memory 604 writes the compressed temperature data stored in the first memory if the power supply state satisfies the power supply condition.
Specifically, the sensor 601 is further configured to:
if the temperature data to be stored is higher than the preset limit temperature, determining that the power supply of the battery is normal, and judging whether the historical temperature data are stored in the volatile memory through the controller; if the volatile memory stores historical temperature data, the historical temperature data and the temperature data to be stored are stored in the nonvolatile memory through the controller; and if the volatile memory does not store the historical temperature data, storing the temperature data to be stored into the nonvolatile memory through the controller.
Specifically, the first memory 603 includes:
a space determining unit 6031, configured to determine, by using the controller 602, whether a memory array space corresponding to temperature data to be stored has a remaining storage space, where the first storage 603 includes at least one memory array space;
a temporary storage unit 6032, which stores the temperature data to be stored into the memory array through the controller 602 if there is a remaining storage space, so as to temporarily store the temperature data to be stored in the first storage 603;
a data extraction unit 6033, configured to extract stored temperature data in the memory array space by the controller 602 if there is no remaining storage space;
a mean value calculation unit 6034 configured to calculate an average thermodynamic temperature of the extracted temperature data, and take the thermodynamic average temperature as a mean value of the stored temperature data;
and a data storage unit 6035, configured to clear the stored temperature data in the memory array space, and store the average value and the temperature data to be stored in the memory array space through the controller 602.
Specifically, the first memory 603 is further configured to:
identifying an idle storage space block in the volatile memory through the controller, and calling the idle storage space to construct a corresponding memory array; and marking the memory arrays in sequence, and constructing a memory array space by adopting the memory arrays marked in sequence.
Specifically, the temporary storage unit 6032 is also configured to:
if the residual storage space exists, traversing the residual storage space through the controller to obtain the sequential labeling of the memory arrays in the residual storage space; and storing the temperature data to be stored into a first memory array which is sequentially marked in the residual storage space through the controller.
Specifically, the controller 602 is further configured to:
judging whether the temperature data stored in the volatile memory meets a preset temperature acquisition condition or not through the controller; if the temperature acquisition condition is not met, the deployment environment of the battery-powered temperature recording device is subjected to temperature detection again through the sensor, and new temperature data are obtained and are temporarily compressed and stored.
Specifically, the controller 602 includes:
the comparison unit 6021 is used for comparing the battery power supply parameter with the storage power consumption of the nonvolatile memory, wherein the battery power supply parameter is a detection result;
the condition satisfying unit 6022 determines that the battery power supply state satisfies the preset power supply condition if the storage power consumption of the nonvolatile memory is greater than the battery power supply parameter;
the condition unsatisfying unit 6023 determines that the battery power supply state does not satisfy the preset power supply condition if the storage power consumption of the nonvolatile memory is less than the battery power supply parameter.
The present embodiment describes the specific functions of each module and the unit structure of a part of the modules in detail on the basis of the previous embodiment, and by the present device, under the condition of a low temperature limit, the volatile memory is controlled by the controller to temporarily compress and store the temperature data, and then after the power supply of the device is normal, the temporarily stored temperature data is stored in the nonvolatile memory. Compared with the recording method of the existing temperature recording device, the method can realize the same battery power supply, the working temperature of the device can be further reduced by using the method, the device can work at lower temperature, and the power for writing data into the storage module is equivalent to the total power consumption of the controller and the sensor in general conditions, so when the temperature is lower than TL, the battery power supply pressure is halved, and when the device is below TL for a long time, the device can have longer working time, and the service life of the device is prolonged.
The battery-powered temperature recording apparatus in the embodiment of the present invention is described in detail below from the viewpoint of hardware processing.
Fig. 8 is a schematic structural diagram of a battery-powered temperature recording device according to an embodiment of the present invention, where the battery-powered temperature recording device 800 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 810 (e.g., one or more processors), a memory 820, and a storage medium 830 (e.g., one or more mass storage devices), where the storage medium 830 includes one or more application programs 833 and data 832. Memory 820 and storage medium 830 may be, among other things, transient or persistent storage. The program stored on storage medium 830 may include one or more modules (not shown), each of which may include a sequence of instructions operating on battery-powered thermography device 800. Still further, processor 810 may be configured to communicate with storage medium 830 to perform a series of instructional operations on storage medium 830 on battery powered thermographic device 800.
Battery-powered thermographic device 800 may also include one or more power supplies 840, one or more wired or wireless network interfaces 850, one or more input-output interfaces 860, and/or one or more operating systems 831, such as Windows service, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that the battery powered temperature recording apparatus configuration shown in fig. 8 does not constitute a limitation of the battery powered temperature recording apparatus, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The invention further provides a battery-powered temperature recording device, wherein the computer device comprises a memory and a processor, and computer readable instructions are stored in the memory, and when being executed by the processor, the computer readable instructions cause the processor to execute the steps of the battery-powered temperature recording method in the above embodiments.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, which may also be a volatile computer readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the battery-powered thermography method.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A battery-powered temperature recording method is applied to a battery-powered temperature recording device, and is characterized in that the battery-powered temperature recording device comprises a sensor, a controller, a first memory and a second memory, and comprises the following steps:
s1, detecting the temperature of the deployment environment of the battery-powered temperature recording device through the sensor to obtain temperature data to be stored, and judging whether the temperature data to be stored is lower than a preset limit temperature through the controller;
s2, if the temperature data to be stored is lower than the limit temperature, temporarily compressing the temperature data to be stored through the first memory and storing the temperature data;
s3, detecting the power supply state of the battery in real time through the controller, and judging whether the power supply state meets the preset power supply condition;
and S4, if the power supply state meets the power supply condition, writing the compressed temperature data stored in the first memory into the second memory.
2. The battery-powered thermography method of claim 1, further comprising, after step S1:
s11, if the temperature data to be stored is higher than the limit temperature, determining that the power supply of the battery power supply temperature recording device is normal, and judging whether historical temperature data are stored in the first storage through the controller;
s12, if the historical temperature data are stored, storing the historical temperature data and the temperature data to be stored into the second memory through the controller;
and S13, if the historical temperature data are not stored, storing the temperature data to be stored into the second memory through the controller.
3. The battery-powered thermography method of claim 1 wherein step S2 further comprises:
s21, judging whether a residual storage space exists in a memory array space corresponding to the temperature data to be stored through the controller, wherein the first storage comprises at least one memory array space;
s22, if the residual storage space exists, storing the temperature data to be stored into the memory array through the controller, and realizing the temporary storage of the temperature data to be stored by the first storage;
s23, if the residual storage space does not exist, the controller extracts the stored temperature data in the memory array space;
s24, calculating the average thermodynamic temperature of the extracted temperature data, and taking the thermodynamic average temperature as the mean value of the stored temperature data;
and S25, clearing the stored temperature data in the memory array space, and storing the average value and the temperature data to be stored in the memory array space through the controller.
4. The battery-powered temperature recording method according to claim 3, further comprising, before step S21:
s2101, identifying an idle storage space block in the first storage through the controller, and calling the idle storage space to construct a corresponding memory array;
s2102, marking the memory arrays in sequence, and constructing a memory array space by using the memory arrays marked in sequence.
5. The battery-powered temperature recording method according to claim 4, wherein step S22 further comprises:
s221, if the residual storage space exists, traversing the residual storage space through the controller to obtain sequential labeling of the memory arrays in the residual storage space;
s222, storing the temperature data to be stored to a first memory array sequentially marked in the residual storage space through the controller.
6. The battery-powered temperature recording method according to claim 3, further comprising, after step S25:
s2501, judging whether the temperature data stored in the first storage meets preset temperature acquisition conditions or not through the controller;
s2502, if the temperature acquisition condition is not met, the sensor detects the temperature of the deployment environment of the battery-powered temperature recording device again to obtain new temperature data and temporarily compress and store the new temperature data.
7. The battery-powered thermography method of claim 1 wherein step S3 further comprises:
s31, comparing a battery power supply parameter with the storage power consumption of the second memory, wherein the battery power supply parameter is the detection result;
s32, if the storage power consumption of the second memory is larger than the battery power supply parameter, determining that the battery power supply state meets a preset power supply condition;
and S33, if the storage power consumption of the second memory is smaller than the battery power supply parameter, determining that the battery power supply state does not meet the preset power supply condition.
8. A battery-powered temperature recording device, characterized in that the battery-powered temperature recording device comprises:
the sensor is used for detecting the temperature of the deployment environment of the battery-powered temperature recording device to obtain temperature data to be stored;
the controller is used for judging whether the temperature data to be stored is lower than a preset limit temperature or not;
the first memory temporarily compresses and stores the temperature data to be stored if the temperature data to be stored is lower than the limit temperature;
the controller is also used for judging whether the power supply state meets the preset power supply condition or not by detecting the power supply state of the battery in real time;
and the second memory writes the compressed temperature data stored in the first memory if the power supply state meets the power supply condition.
9. A battery-powered temperature recording device, characterized in that the battery-powered temperature recording device comprises: a memory and at least one processor, the memory having instructions stored therein;
at least one of the processors invoking the instructions to cause the battery powered thermography device to perform the steps of the battery powered thermography method of any of claims 1-7.
10. A computer readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of the battery powered thermography method according to any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110852086.0A CN113515239B (en) | 2021-07-27 | 2021-07-27 | Battery-powered temperature recording method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110852086.0A CN113515239B (en) | 2021-07-27 | 2021-07-27 | Battery-powered temperature recording method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113515239A true CN113515239A (en) | 2021-10-19 |
CN113515239B CN113515239B (en) | 2024-06-21 |
Family
ID=78067909
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110852086.0A Active CN113515239B (en) | 2021-07-27 | 2021-07-27 | Battery-powered temperature recording method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113515239B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114546262A (en) * | 2022-01-17 | 2022-05-27 | 珠海美佳音科技有限公司 | Data storage method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107810530A (en) * | 2015-09-08 | 2018-03-16 | 西部数据技术公司 | Temperature treatment in data storage device |
US20190094927A1 (en) * | 2017-09-22 | 2019-03-28 | Toshiba Memory Corporation | Memory system and method of controlling nonvolatile memory |
CN111028877A (en) * | 2018-10-09 | 2020-04-17 | 群联电子股份有限公司 | Data access method, memory storage device and memory control circuit unit |
CN113125966A (en) * | 2021-03-29 | 2021-07-16 | 深圳市优必选科技股份有限公司 | Battery monitoring data storage method, battery management system and battery monitoring device |
-
2021
- 2021-07-27 CN CN202110852086.0A patent/CN113515239B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107810530A (en) * | 2015-09-08 | 2018-03-16 | 西部数据技术公司 | Temperature treatment in data storage device |
CN110853681A (en) * | 2015-09-08 | 2020-02-28 | 西部数据技术公司 | Temperature management in data storage devices |
US20190094927A1 (en) * | 2017-09-22 | 2019-03-28 | Toshiba Memory Corporation | Memory system and method of controlling nonvolatile memory |
CN111028877A (en) * | 2018-10-09 | 2020-04-17 | 群联电子股份有限公司 | Data access method, memory storage device and memory control circuit unit |
CN113125966A (en) * | 2021-03-29 | 2021-07-16 | 深圳市优必选科技股份有限公司 | Battery monitoring data storage method, battery management system and battery monitoring device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114546262A (en) * | 2022-01-17 | 2022-05-27 | 珠海美佳音科技有限公司 | Data storage method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113515239B (en) | 2024-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107870301B (en) | A kind of detection method and device for battery micro-short circuit | |
CN108931725A (en) | A kind of method and device of battery failures detection | |
CN111666273B (en) | Meter reading system data validity analysis method and device | |
CN101222735B (en) | Method and device for testing standby time of mobile terminal | |
CN117093943B (en) | Power consumption monitoring and early warning method and device | |
CN113515239A (en) | Battery-powered temperature recording method, device, equipment and storage medium | |
KR102536026B1 (en) | Smart battery device | |
CN107037367A (en) | Battery uses the measuring method and measuring system of electricity | |
CN107015153B (en) | Voltage and current sampling control method for storage battery SOH | |
CN1213505C (en) | Judgment method of charging and discharging state of storage battery | |
CN204301252U (en) | The service data storage device of equipment | |
CN114915667A (en) | Method for storing data file in electricity consumption information acquisition terminal | |
US7529947B2 (en) | Determining power consumption of an application | |
CN116995782B (en) | Passive equalization method and system for battery, electronic equipment and storage medium | |
CN109901481B (en) | Data acquisition and storage system and method for intelligent multichannel digital signals | |
KR102136183B1 (en) | Method and apparatus for recording time series data | |
CN113075556B (en) | Battery voltage early warning threshold evaluation method, wireless sensor and sensor network | |
JPH06147612A (en) | Air conditioning control system | |
US6950041B2 (en) | Real time date compression method and apparatus for a data recorder | |
CN113589200B (en) | Super capacitor connection fault detection method and system | |
CN208398926U (en) | A kind of data collection and transmission | |
KR20180111626A (en) | Method and apparatus for recording time series data | |
CN111077453A (en) | Battery electric quantity detection system and method | |
CN106679850B (en) | A method of temperature measurement accuracy when improving the thermal starting of air box | |
CN221351974U (en) | Safety protection device under wireless communication module over-wet environment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |