Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
The first embodiment of the invention relates to an intelligent temperature control method of a heating ground mat. The heating floor mat described here has a plurality of piezoresistors built therein for detecting whether the heating floor mat is subjected to pressure, and a flowchart of the intelligent temperature control method in the present embodiment is shown in fig. 1. The method comprises the following steps:
step 101, judging whether the heating ground mat is stressed. If the heating floor mat is judged to be stressed, the step 102 is carried out; otherwise, the process ends.
Specifically speaking, because the ground mat that generates heat embeds has a plurality of piezo-resistors, if a plurality of piezo-resistors respectively with same control chip communication connection, whether the ground mat that generates heat receives pressure can be judged through control chip's output result then. The schematic connection diagram of the piezoresistor and the control chip can be as shown in fig. 2, and in fig. 2, the piezoresistor includes N piezoresistors (B in each case)1,B2,B3,B4To BN) And a control chip A. For example, when the piezoresistors B1 and B2 detect pressure, the resistances of B1 and B2 become small, and the General Purpose input/output port (GPIO port) corresponding to the control chip a is pulled down from the high level of the initial value to the low level (GPIO port is well known to those skilled in the art and is not shown in the figure). Therefore, if the GPIO port is pulled down to low level, the heating ground mat can be judged to be stressed. When the heating ground mat is subjected to pressure from the presence to the absence, the resistances of the piezoresistors B1 and B2 are changed from large to small, and the level of the GPIO port corresponding to the control chip A is changed from low level to high level. Based on the determination method provided above, when it is determined that the heating floor mat is subjected to the pressure, the process proceeds to step 102.
And 102, acquiring the step pitch of the user according to the position of the piezoresistor with the resistance value changed in the preset time period.
Specifically, the distance between the piezoresistors is prestored in the heating floor mat, referring to fig. 2, for example, N may be equal to 10, the distance between B1 and B2 may be 3 cm, the distance between B2 and B3 may be 4 cm, the distance between B3 and B4 may be 5 cm, the distance between B4 and B5 may be 6 cm … …, and so on, the distance between the piezoresistors is known, and generally, when a user walks in tandem, the resistance value of the heating floor mat of the front foot changes, the resistance value of the heating floor mat of the rear foot changes, and the resistance value of the heating floor mat of the two feet does not change, so that the step distance of the user can be calculated. For example, when the left foot is in front and the right foot is in back, the total distance between the foremost end of the left foot and the rearmost end of the right foot is calculated, and the step distance of the user can be obtained by subtracting the distance between the resistance values with unchanged resistance values from the total distance.
And 103, obtaining the identity information of the user corresponding to the acquired step distance according to the first corresponding relation between the preset step distance and the identity information of the user.
Specifically, since there is a large difference in the step sizes of men, women, and children in a general household, such as a family of four, the first correspondence between the preset step size and the identity information of the user is pre-stored in the heating floor mat, and the identity information of the user corresponding to the obtained step size can be obtained from the step size obtained in step 102.
And 104, acquiring temperature setting information matched with the user according to the identity information of the user.
Specifically speaking, different users have different requirements on temperature setting information, when the temperature setting information is specifically the target temperature, some users want higher temperature setting and some users want lower temperature setting, and according to the identity information of the users, the temperature setting information matched with the users is obtained, so that the personalized requirements of the users can be met, the target temperature preset by the users can be automatically adjusted without manual control, and the user experience can be improved.
And 105, adjusting the temperature according to the temperature setting information.
For example, when the temperature setting information is specifically the target temperature, if the target temperature matched with the user is obtained to be 26 ℃ according to the identity information of the user, the target temperature is automatically set to be 26 ℃ for temperature adjustment.
Compared with the prior art, the embodiment obtains the step pitch of the user according to the position of the piezoresistor with the changed resistance value in the preset time period when the heating ground mat is judged to be stressed according to the change of the resistance values of the piezoresistors; obtaining the identity information of the user corresponding to the acquired step distance according to a first corresponding relation between the preset step distance and the identity information of the user; acquiring temperature setting information matched with a user according to the identity information of the user; and adjusting the temperature according to the temperature setting information.
The second embodiment of the invention relates to an intelligent temperature control method of a heating ground mat. The embodiment is further improved on the basis of the first embodiment, and the specific improvement is as follows: in this embodiment, if the obtained identity information of the user is more than one according to the first corresponding relationship, the foot size of the user is obtained according to the position of the piezoresistor with the changed resistance value; obtaining the identity information of the user corresponding to the obtained foot size according to a second corresponding relation between the preset foot size and the identity information of the user; and selecting one identity information which is the same as the identity information obtained according to the second corresponding relation from the identity information obtained according to the first corresponding relation, and obtaining temperature setting information matched with the user according to the selected identity information. The identity information of the user is confirmed by combining the foot size and the step pitch of the user, so that the accuracy of confirming the identity information of the user is improved, and the condition that the temperature setting information corresponding to the identity information cannot be confirmed specifically when a plurality of identity information are obtained only according to the step pitch is avoided. The specific flow chart is shown in fig. 3, and includes:
step 201, judging whether the heating ground cushion is stressed. If the heating floor mat is judged to be stressed, the step 202 is carried out; otherwise, the process ends.
Step 202, obtaining the step distance of the user according to the position of the piezoresistor with the resistance value changing in the preset time period.
Preferably, in the plurality of piezoresistors, the distance between any two piezoresistors is smaller than the preset distance. Those skilled in the art can understand that if the distance between any two piezoresistors is relatively large, the accuracy of the step distance cannot be guaranteed, and therefore, the distance between any two piezoresistors is smaller than the preset distance, which is beneficial to improving the accuracy of the obtained step distance of the user.
Further, referring to fig. 4, fig. 4 is a schematic diagram of a plurality of piezoresistors arranged in the heating ground mat at equal intervals, where the intervals may be greater than 4 cm and less than 6 cm. For example, the spacing may be equal to 5 centimeters. In practical application, the direct distance of the piezoresistors is as compact as possible, but in this way, a large number of piezoresistors can be arranged in the heating ground mat, which is not beneficial to saving cost. When the distance between the piezoresistors is equal to 5 cm, the quantity of the piezoresistors is saved, the cost is saved, and the accuracy of measuring the step distance of the user can be ensured.
Step 203, obtaining the identity information of the user corresponding to the acquired step distance according to the first corresponding relationship between the preset step distance and the identity information of the user.
It should be noted that the preset step distance may be a specific value or a range, and is not limited herein.
Step 204, judging whether the obtained identity information of the user is more than one. If the obtained identity information of the user is more than one, entering step 205; otherwise, step 209 is entered.
That is, if the step distances of the two users are the same and equal to 0.8 m, that is, the step distance of the user a is 0.8 m, and the step distance of the user B is also 0.8 m, the number of the user identification information corresponding to the obtained step distance (0.8 m) obtained in step 203 is two, that is, the user a and the user B, at this time, it cannot be determined whether to perform temperature adjustment according to the temperature setting information of the user a or the temperature adjustment according to the temperature setting information of the user B, and therefore, the process proceeds to step 205; otherwise, step 209 is entered.
Step 205, obtaining the foot size of the user according to the position of the piezoresistor with the changed resistance value.
For example, if the distances between the piezoresistors are all 5 cm, and the positions of the piezoresistors with changed resistance values are detected to correspond to 3 piezoresistors, the foot size of the user can be about 15 cm.
And step 206, obtaining the identity information of the user corresponding to the obtained foot size according to a second corresponding relation between the preset foot size and the identity information of the user.
That is, the user's identity information corresponding to the acquired foot size is obtained from the user's foot size acquired in step 205
Step 207, selecting one identity information which is the same as the identity information obtained according to the second corresponding relation from the identity information obtained according to the first corresponding relation.
Specifically, the user identity information corresponding to the step pitch of 0.8 m is the user a and the user B, and the user identity information corresponding to the foot size (15 cm) is the user a, and the identity information of the user a is selected.
And step 208, acquiring temperature setting information matched with the user according to the selected identity information.
In connection with step 207, temperature setting information matching the identity information of the a user is obtained.
And step 209, acquiring temperature setting information matched with the user according to the identity information of the user.
Preferably, the temperature setting information may include one or a combination of the following: the target temperature of heating of the heating ground mat and the duration of heating of the heating ground mat. For example, the user a only sets the target temperature to be 26 ℃, the user B only sets the duration of heating of the heating mat to be 30 minutes, the user C sets the target temperature to be 27 ℃, and the duration of heating of the heating mat to be 1 hour, which are only examples, and the user can set the temperature setting information according to the actual requirements.
And step 2010, adjusting the temperature according to the temperature setting information.
Since steps 201 to 203 and steps 209 to 2010 in the present embodiment are substantially the same as steps 101 to 105 in the first embodiment, when it is determined that the heating floor mat is under pressure according to the changes of the resistance values of the plurality of piezoresistors, the step distance of the user is obtained according to the position of the piezoresistor with the changed resistance value in the preset time period; according to a first corresponding relation between a preset step and the identity information of the user, obtaining the identity information of the user corresponding to the obtained step, and according to the identity information of the user, obtaining temperature setting information matched with the user; and adjusting the temperature according to the temperature setting information. To avoid repetition, further description is omitted here.
Compared with the prior art, according to the intelligent temperature control method for the heating ground mat, if the number of the obtained user identity information is more than one according to the first corresponding relation, the foot size of the user is obtained according to the position of the piezoresistor with the resistance value changed; obtaining the identity information of the user corresponding to the obtained foot size according to a second corresponding relation between the preset foot size and the identity information of the user; and selecting one identity information which is the same as the identity information obtained according to the second corresponding relation from the identity information obtained according to the first corresponding relation, and obtaining temperature setting information matched with the user according to the selected identity information. The identity information of the user is confirmed by combining the foot size and the step pitch of the user, so that the accuracy of confirming the identity information of the user is improved, and the condition that the temperature setting information corresponding to the identity information cannot be confirmed specifically when a plurality of identity information are obtained only according to the step pitch is avoided.
The third embodiment of the invention relates to an intelligent temperature control method of a heating ground mat. This embodiment is substantially the same as the second embodiment, and mainly differs in that: in a second embodiment, if the obtained identity information of the user is more than one according to the first corresponding relationship, the size of the foot of the user is obtained according to the position of the piezoresistor with the changed resistance value, and secondary confirmation is performed by combining the size of the foot to determine the identity information of the user; in the third embodiment of the present invention, if the obtained identity information of the user is more than one according to the first corresponding relationship, the walking frequency of the user is obtained according to the pressing frequency detected by the piezoresistor with the changed resistance value; the method and the device for confirming the identity information of the user are combined with walking frequency of the user to confirm the identity information of the user, the identity information of the user is confirmed according to the walking frequency and the step pitch of the user, accuracy of confirming the identity information of the user is improved, and the situation that temperature setting information corresponding to the identity information cannot be confirmed specifically when a plurality of identity information are obtained only according to the step pitch is avoided. As shown in fig. 5, a specific flow of the present embodiment includes:
step 301, judging whether the heating mat is stressed. If the heating floor mat is judged to be stressed, the step 302 is carried out; otherwise, the process ends.
Preferably, after the heating ground mat is judged to be stressed, whether the number of the area blocks stressed by the heating ground mat at the same time is more than two can also be judged; if the number of the area blocks of the heating floor mat which are stressed at the same time is larger than two, the step distances of all users are respectively obtained according to the positions of the piezoresistors with the resistance values changing in the preset time period; obtaining identity information of each user according to a first corresponding relation between a preset step distance and the identity information of the user; selecting the identity information of the user with the highest priority level from the identity information of each user, wherein the priority level of the identity information of each user is preset; and acquiring temperature setting information matched with the identity information of the user with the highest priority level.
For example, if it is detected that there are two users a and B on the heating floor mat, and the temperature setting information of the user a is different from the temperature setting information of the user B, at this time, it may be determined by obtaining a preset priority level (for example, the user a is a child, and the priority level of the child may be preset to be higher than the priority level of a parent) which user performs temperature adjustment according to the temperature setting information of the user, which is beneficial to improving user experience.
Step 302, obtaining the step distance of the user according to the position of the piezoresistor with the resistance value changed in the preset time period.
Step 303, obtaining the identity information of the user corresponding to the obtained step distance according to the first corresponding relationship between the preset step distance and the identity information of the user.
Step 304, determine whether the obtained identity information of the user is greater than one. If the obtained identity information of the user is more than one, entering step 305; otherwise, step 309 is entered.
And 305, obtaining the walking frequency of the user according to the pressing frequency detected by the piezoresistor with the changed resistance value.
For example, the walking frequency of the user can be recorded by the frequency of pressing the piezoresistor, and the walking frequency of the user can be calculated by recording the number of steps taken by the user on the heat-generating mat within one minute, wherein the piezoresistor is pressed once and counted as one step.
Step 306, obtaining the identity information of the user corresponding to the obtained walking frequency according to a third corresponding relationship between the preset walking frequency and the identity information of the user.
Since the walking frequency of each user is different, the identity information of the user corresponding to the obtained walking frequency can be obtained according to the third corresponding relationship between the preset walking frequency and the identity information of the user.
Step 307, selecting one identity information which is the same as the identity information obtained according to the third corresponding relationship from the identity information obtained according to the first corresponding relationship.
Specifically, the user identity information corresponding to the step pitch of 0.8 m is the user a and the user B, and the user identity information corresponding to the walking frequency (1 step and a half/s) is the user B, and the identity information of the user B is selected.
And 308, acquiring temperature setting information matched with the user according to the selected identity information.
Step 309, obtaining temperature setting information matched with the user according to the identity information of the user.
And step 3010, adjusting the temperature according to the temperature setting information.
Since steps 301 to 304 and steps 308 to 3010 in this embodiment are substantially the same as steps 201 to 204 and steps 208 to 2010 in the second embodiment, it is intended to obtain the step pitch of the user according to the position of the varistor with the changed resistance value in the preset time period when the heating floor mat is judged to be stressed according to the change of the resistance values of the plurality of varistors; according to a first corresponding relation between a preset step and the identity information of the user, obtaining the identity information of the user corresponding to the obtained step, and according to the identity information of the user, obtaining temperature setting information matched with the user; and adjusting the temperature according to the temperature setting information. To avoid repetition, further description is omitted here.
Compared with the prior art, according to the intelligent temperature control method for the heating ground mat, if the number of the obtained identity information of the user is more than one according to the first corresponding relation, the walking frequency of the user is obtained according to the pressing frequency detected by the piezoresistor with the changed resistance value; obtaining the identity information of the user corresponding to the obtained walking frequency according to a third corresponding relation between the preset walking frequency and the identity information of the user; selecting one identity information which is the same as the identity information obtained according to the third corresponding relation from the identity information obtained according to the first corresponding relation; and acquiring temperature setting information matched with the user according to the selected identity information. The identity information of the user is confirmed according to the walking frequency and the step pitch of the user, so that the accuracy of confirming the identity information of the user is improved, and the condition that the temperature setting information corresponding to the identity information cannot be confirmed specifically when a plurality of identity information are obtained only according to the step pitch is avoided.
A fourth embodiment of the present invention relates to a heating floor mat, as shown in fig. 6, comprising: at least one processor 601; and a memory 602 communicatively coupled to the at least one processor 601; the memory 602 stores instructions executable by the at least one processor 601, and the instructions are executed by the at least one processor 601 to enable the at least one processor 601 to execute the intelligent temperature control method as described above.
Where the memory 602 and the processor 601 are coupled by a bus, the bus may comprise any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 601 and the memory 602 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 601 is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor 601.
The processor 601 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. While memory 602 may be used to store data used by processor 601 in performing operations.
Those skilled in the art will understand that all or part of the steps in the method according to the above embodiments may be implemented by a program instructing related hardware to complete, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, etc.) or a processor (processor) to execute all or part of the steps in the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.