Mattress temperature control method, device, equipment and storage medium
Technical field
The present invention relates to smart home fields, more particularly to a kind of mattress temperature control method, device, equipment and storage
Medium.
Background technique
With the fast development of smart home technology, diversified smart home device is continuously emerged, wherein intelligent bed
The appearance of pad effectively improves the sleep experience of people, and adjusting intelligent mattress temperature is the sleep matter that desired value can promote people
Amount.
The existing mode for adjusting intelligent mattress temperature is to be set by the user mattress target temperature, and mattress detects own temperature,
It is adjusted according to the difference of own temperature and target temperature, so that mattress temperature be made to reach target temperature.Existing temperature tune
Section mode needs user oneself to set target temperature value, needs to be manually operated, and user is difficult to hold suitable target temperature value,
Easily target temperature value is set too high or too low, user needs to adjust set temperature repeatedly to find suitable target temperature value,
It is complicated for operation, poor user experience.
Summary of the invention
Present invention generally provides a kind of mattress temperature control methods, and existing mattress temperature regulation mechanism can be overcome because needing
User is manually operated and brings problem complicated for operation to user.
In order to solve the above technical problems, one technical scheme adopted by the invention is that: a kind of mattress temperature adjusting side is provided
Method, the mattress temperature control method include:
Obtain the environmental parameter of mattress present position;
The target temperature value of the mattress is obtained according to the environmental parameter and the target temperature concordance list prestored;
Obtain the current temperature value of the mattress;
The mattress temperature is controlled according to the difference of the target temperature value and the current temperature value to adjust to the mesh
Mark temperature value.
It is described obtain mattress present position environmental parameter the step of include:
Receive the power-on signal of mattress or receive mattress temperature adjust request signal after, obtain the mattress
The environmental parameter of present position.
The environmental parameter includes the room humidity value and room temperature in season, geographical location, room locating for the mattress
Value.
It is described that the mattress temperature adjusting is controlled to institute according to the difference of the target temperature value and the current temperature value
The step of stating target temperature value include:
If the difference of the target temperature value and the current temperature value less than the first preset threshold, controls the mattress
Temperature is adjusted in the first preset time to the target temperature value;
If the difference of the target temperature value and the current temperature value is greater than or equal to first preset threshold, control
It makes the mattress temperature to be adjusted in the first preset time to the first temperature value, is adjusted in the second preset time and arrive the target
The difference of temperature value, first temperature value and the target temperature value is less than the second preset threshold.
In order to solve the above technical problems, another technical solution used in the present invention is: providing a kind of mattress temperature adjusting
Device, the mattress temperature-adjusting device include:
Environmental parameter obtains module, for obtaining the environmental parameter of mattress present position;
Target temperature obtains module, for obtaining the bed according to the environmental parameter and the target temperature concordance list prestored
The target temperature value of pad;
Mattress temperature acquisition module, for obtaining the current temperature value of the mattress;
Temperature control modules, for controlling the mattress according to the difference of the target temperature value and the current temperature value
Temperature is adjusted to the target temperature value.
The environmental parameter obtains module and is specifically used for:
Receive the power-on signal of mattress or receive mattress temperature adjust request signal after, obtain the mattress
The environmental parameter of present position.
The environmental parameter includes the room humidity value and room temperature in season, geographical location, room locating for the mattress
Value.
The temperature control modules include:
First temperature control modules, if pre- less than first for the difference of the target temperature value and the current temperature value
If threshold value, then controls the mattress temperature and adjusted in the first preset time to the target temperature value;
Second temperature control module, if being greater than or equal to for the target temperature value and the difference of the current temperature value
First preset threshold then controls the mattress temperature and is adjusted in the first preset time to the first temperature value, pre- second
The target temperature value is arrived if adjusting in the time, the difference of first temperature value and the target temperature value is default less than second
Threshold value.
In order to solve the above technical problems, another technical solution used in the present invention is: providing a kind of mattress temperature adjusting
Equipment, the mattress temperature control equipment include processor and memory, and the processor couples the memory, the place
Reason device is executed instruction at work to realize above-mentioned mattress temperature control method.
In order to solve the above technical problems, another technical solution used in the present invention is: providing a kind of storage medium, thereon
It is stored with computer program, the computer program is executed by processor to realize above-mentioned mattress temperature control method.
The beneficial effects of the present invention are: being in contrast to the prior art, the ring of mattress present position is obtained in the present invention
Border parameter obtains the target temperature value of mattress according to environmental parameter and the target temperature concordance list prestored, according to target temperature value
It adjusts with the difference control mattress temperature of mattress current temperature value to target temperature value.It can be according to mattress present position in the present invention
Environmental parameter automatically derive the target temperature value of mattress, which more meets user demand, promote user experience, with
And mattress temperature can be automatically adjusted to target temperature value, and it is not necessarily to user's manual setting, it is easy to operate.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing, in which:
Fig. 1 is the flow chart for the mattress temperature control method that one embodiment of the invention provides;
Fig. 2 be another embodiment of the present invention provides the thermostatic structural schematic diagram of mattress;
Fig. 3 be another embodiment of the present invention provides mattress temperature control equipment structural schematic diagram;
Fig. 4 be another embodiment of the present invention provides storage medium structural schematic diagram.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that the described embodiments are merely a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is the mattress temperature control method that one embodiment of the invention provides, and concrete methods of realizing includes the following steps.
Step S100: the environmental parameter of mattress present position is obtained.
Specifically, being obtained after the power-on signal for receiving mattress or the temperature for receiving mattress adjust request signal
Take the environmental parameter of mattress present position.The environmental parameter of mattress present position includes season, geographical location, room locating for mattress
Room humidity value and room temperature value, wherein season includes spring, summer, autumn, winter, geographical location be province locating for mattress or
City, room humidity value (can be rh value) and room temperature value can by the ambient humidity sensor that is set on mattress and
Environment temperature sensor is measured or is measured by environment humidity sensor.
Step S200: the target temperature value of mattress is obtained according to environmental parameter and the target temperature concordance list prestored.
Specifically, the target temperature concordance list prestored includes multiple target temperature indexes identical with province or city numbers
The corresponding target temperature in sublist, i.e., each province or city indexes sublist, in each target temperature index sublist, including season
The corresponding relationship of section, room humidity value (can be rh value) range, room temperature value range and target temperature value.It is obtaining
When taking mattress target temperature value, the geographical location according to locating for mattress searches corresponding target temperature and indexes sublist, in the target
Temperature indexes in sublist, searches corresponding target according to season, room humidity value (can be rh value) and room temperature value
Temperature value.
A concrete application scene is given below: if the environmental parameter of mattress present position includes: winter, Beijing, room
19 DEG C of rh value 30%, room temperature value include winter, room humidity in the index sublist of target temperature corresponding to Beijing
It is worth the corresponding relationship of range 20%-40%, 15 DEG C -20 DEG C of room temperature value range, 25 DEG C of target temperature value, therefore, according to bed
The information in the environmental parameter and target index sublist of present position is padded, determines that target temperature value is 25 DEG C.
Step S300: the current temperature value of mattress is obtained.
Specifically, the settable temperature sensor for detecting mattress temperature on mattress, temperature sensor is in real time or interval is default
The current temperature value of time upload mattress.
Step S400: mattress temperature is controlled according to the difference of target temperature value and current temperature value and is adjusted to target temperature
Value.
Specifically, control mattress temperature is increased to target temperature value when target temperature value is greater than current temperature value;Work as mesh
When marking temperature value less than current temperature value, control mattress temperature is reduced to target temperature value.
Specifically, if the difference of target temperature value and current temperature value controls mattress temperature less than the first preset threshold
It is adjusted in the first preset time and arrives target temperature value.If the difference of target temperature value and current temperature value is greater than or equal to first
Preset threshold then controls mattress temperature and adjusts in the first preset time to the first temperature value, adjusts in the second preset time
To target temperature value, the difference of the first temperature value and target temperature value is less than the second preset threshold.
Further specifically, the first preset time may be configured as the short period, such as 1 minute, the second preset time was settable
It is 2 minutes (preset time can be adjusted according to user experience effect), the first temperature value is close to target temperature value, the second preset threshold
Less than the first preset threshold, the first preset threshold may be configured as 5 DEG C, and the second preset threshold may be configured as 2 DEG C.Work as target temperature value
When with the difference of current temperature value less than the first preset threshold, so that mattress temperature reached target temperature value in 1 minute;Work as mesh
When marking the difference of temperature value and current temperature value more than or equal to the first preset threshold, so that mattress temperature reaches in 1 minute
Close to the first temperature value of target temperature value, in this way, quickly regulating mattress temperature falls into a long wait to target temperature without user
Temperature adjustment process promotes user experience.
In embodiments of the present invention, the environmental parameter for obtaining mattress present position, according to environmental parameter and the target prestored
Temperature concordance list obtains the target temperature value of mattress, controls mattress temperature according to the difference of target temperature value and mattress current temperature value
Degree, which is adjusted, arrives target temperature value.The target temperature of mattress can be automatically derived in the present invention according to the environmental parameter of mattress present position
Value, the target temperature value more meet user demand, promote user experience, and can automatically adjust mattress temperature to target temperature
Value is not necessarily to user's manual setting, easy to operate.
Embodiment two
Fig. 2 be another embodiment of the present invention provides mattress temperature-adjusting device, mattress temperature-adjusting device includes environment
Parameter acquisition module 100, target temperature obtain module 200, mattress temperature acquisition module 300 and temperature control modules 400.
Environmental parameter obtains module 100, for obtaining the environmental parameter of mattress present position.
Specifically, environmental parameter obtains module 100 in the power-on signal for receiving mattress or the temperature for receiving mattress
After degree adjusts request signal, the environmental parameter of mattress present position is obtained.The environmental parameter of mattress present position include season,
Manage the room humidity value and room temperature value in room locating for position, mattress, wherein season includes spring, summer, autumn, winter, geographical location
For province locating for mattress or city, room humidity value (can be rh value) and room temperature value can be by being set on mattress
Ambient humidity sensor and environment temperature sensor measure or measured by environment humidity sensor.
Target temperature obtains module 200, for obtaining mattress according to environmental parameter and the target temperature concordance list prestored
Target temperature value.
Specifically, the target temperature concordance list prestored includes multiple target temperature indexes identical with province or city numbers
The corresponding target temperature in sublist, i.e., each province or city indexes sublist, in each target temperature index sublist, including season
The corresponding relationship of section, room humidity value (can be rh value) range, room temperature value range and target temperature value.It is obtaining
When taking mattress target temperature value, the geographical location according to locating for mattress searches corresponding target temperature and indexes sublist, in the target
Temperature indexes in sublist, searches corresponding target according to season, room humidity value (can be rh value) and room temperature value
Temperature value.
A concrete application scene is given below: if the environmental parameter of mattress present position includes: winter, Beijing, room
19 DEG C of rh value 30%, room temperature value include winter, room humidity in the index sublist of target temperature corresponding to Beijing
It is worth the corresponding relationship of range 20%-40%, 15 DEG C -20 DEG C of room temperature value range, 25 DEG C of target temperature value, therefore, according to bed
The information in the environmental parameter and target index sublist of present position is padded, determines that target temperature value is 25 DEG C.
Mattress temperature acquisition module 300, for obtaining the current temperature value of mattress.
Specifically, the settable temperature sensor for detecting mattress temperature on mattress, temperature sensor is in real time or interval is default
Time uploads the current temperature value of mattress to mattress temperature acquisition module 300.
Temperature control modules 400 are adjusted for controlling mattress temperature according to the difference of target temperature value and current temperature value
To target temperature value.
Specifically, control mattress temperature is increased to target temperature value when target temperature value is greater than current temperature value;Work as mesh
When marking temperature value less than current temperature value, control mattress temperature is reduced to target temperature value.
Specifically, if the difference of target temperature value and current temperature value controls mattress temperature less than the first preset threshold
It is adjusted in the first preset time and arrives target temperature value.If the difference of target temperature value and current temperature value is greater than or equal to first
Preset threshold then controls mattress temperature and adjusts in the first preset time to the first temperature value, adjusts in the second preset time
To target temperature value, the difference of the first temperature value and target temperature value is less than the second preset threshold.
Further specifically, the first preset time may be configured as the short period, such as 1 minute, the second preset time was settable
It is 2 minutes (preset time can be adjusted according to user experience effect), the first temperature value is close to target temperature value, the second preset threshold
Less than the first preset threshold, the first preset threshold may be configured as 5 DEG C, and the second preset threshold may be configured as 2 DEG C.Work as target temperature value
When with the difference of current temperature value less than the first preset threshold, so that mattress temperature reached target temperature value in 1 minute;Work as mesh
When marking the difference of temperature value and current temperature value more than or equal to the first preset threshold, so that mattress temperature reaches in 1 minute
Close to the first temperature value of target temperature value, in this way, quickly regulating mattress temperature falls into a long wait to target temperature without user
Temperature adjustment process promotes user experience.
In the embodiment of the present invention, environmental parameter obtains the environmental parameter that module 100 obtains mattress present position, target temperature
The target temperature value that module 200 obtains mattress according to environmental parameter and the target temperature concordance list prestored is obtained, mattress temperature obtains
Modulus block 300 obtains mattress current temperature value, and temperature control modules 400 are according to the difference of target temperature value and mattress current temperature value
Value control mattress temperature is adjusted to target temperature value.In the present invention bed can be automatically derived according to the environmental parameter of mattress present position
The target temperature value of pad, the target temperature value more meet user demand, promote user experience, and can automatically adjust mattress temperature
To target temperature value, it is not necessarily to user's manual setting, it is easy to operate.
It is the schematic diagram of mattress temperature control equipment embodiment provided by the present application refering to Fig. 3, Fig. 3, in the present embodiment
Mattress temperature control equipment includes processor 500 and memory 600, and processor 500 is coupled with memory 600, processor 500
It is executed instruction at work to realize the mattress temperature control method in any of the above-described embodiment.
Wherein, processor 500 can also be known as CPU (Central Processing Unit, central processing unit).Place
Managing device 500 may be a kind of IC chip, the processing capacity with signal.Processor 500 can also be general processor,
Digital signal processor (DSP), specific integrated circuit (ASIC), ready-made programmable gate array (FPGA) or other programmable patrol
Collect device, discrete gate or transistor logic, discrete hardware components.General processor can be microprocessor or this at
Reason device is also possible to any conventional processor, but is not limited only to this.
It is the schematic diagram of storage medium embodiment provided by the present application refering to Fig. 4, Fig. 4, the computer in the present embodiment can
It reads storage medium and is stored with computer program 700, which can be executed by processor 500 to realize above-mentioned
Mattress temperature control method in one embodiment.
Optionally, which can be USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The terminal devices such as the medium or computer of sequence code, server, mobile phone, plate.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.