A method for controlling home appliances, an intelligent bedding, and a storage medium
By configuring the main headset and the secondary headset on the smart bedding, detecting their status and distance values to determine the target home equipment and controlling it, the problem of low efficiency for users to control home equipment is solved, and convenient and efficient control is achieved.
Patent Information
- Application Number
- CN202211078739.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-05
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2042-09-05
AI Technical Summary
When using smart bedding, users need to leave the device to control the home equipment, resulting in inefficient control.
The smart bedding is equipped with a main headset and a secondary headset. By detecting the status and distance value of the headset, the target home equipment is determined, and the control is carried out when it meets the control distance range.
This enables users to easily control home equipment without leaving smart bedding, improving control efficiency.
Smart Images

Figure CN115356942B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of smart home, and particularly relates to a method for controlling home appliances, a smart bedding, and a storage medium. Background Art
[0002] With the rapid development of smart home technology, various smart bedding products have emerged continuously. Common smart bedding products may include smart mattresses, smart pillows, and smart quilts, etc.
[0003] It has been found in practice that when users use smart bedding (such as a smart mattress), they sometimes need to leave the smart bedding to control certain home appliances (such as turning on the bathtub faucet to fill the bathtub with water), which is not conducive to improving the control efficiency of home appliances. Summary of the Invention
[0004] Embodiments of this application disclose a method for controlling home appliances, a smart bedding, and a storage medium, which can enable users to conveniently control home appliances without leaving the smart bedding, and improve the control efficiency of home appliances.
[0005] In a first aspect, an embodiment of this application discloses a method for controlling home appliances. The smart bedding is configured with a main earphone and a sub - earphone. The method includes:
[0006] The smart bedding obtains an interaction message sent by the main earphone. The interaction message is a message sent by the main earphone to the smart bedding when the main earphone is in a first state, the sub - earphone is in a second state, and the distance between the main earphone and the sub - earphone is a certain instant distance value. The interaction message at least includes the instant distance value, a first mapping relationship between the unique ID of the main earphone and the status mark of the first state, and a second mapping relationship between the unique ID of the sub - earphone and the status mark of the second state;
[0007] The smart bedding determines the first state of the main earphone according to the first mapping relationship; and determines the second state of the sub - earphone according to the second mapping relationship;
[0008] The smart bedding determines a corresponding target home appliance based on the first state of the main earphone and the second state of the sub - earphone;
[0009] The smart bedding determines whether the instant distance value falls within the control distance range corresponding to the target home appliance; if so, controls the target home appliance.
[0010] As an alternative implementation, in the first aspect of the embodiments of the present application, the upper surface area of the intelligent bedding is divided into several sub-areas. The intelligent bedding determines the corresponding target home device based on the first state of the main earphone and the second state of the sub-earphone, including:
[0011] When the intelligent bedding identifies that the first state of the main earphone is the worn state and the second state of the sub-earphone is the non-worn state, it identifies the first device ID set corresponding to the unique ID of the sub-earphone; wherein each device ID in the first device ID set is associated with one of the several sub-areas, and the sub-areas associated with any two device IDs in the first device ID set are different;
[0012] In addition, the intelligent bedding detects the first sub-area touched by the sub-earphone, and the first sub-area is any one of the several sub-areas;
[0013] In addition, the intelligent bedding determines the first target device ID from the first device ID set, and the first target device ID is associated with the first sub-area;
[0014] In addition, the intelligent bedding takes the home device to which the first target device ID belongs as the corresponding target home device.
[0015] As another alternative implementation, in the first aspect of the embodiments of the present application, the method further includes:
[0016] When the intelligent bedding identifies that the first state of the main earphone is the non-worn state and the second state of the sub-earphone is the worn state, it identifies the second device ID set corresponding to the unique ID of the main earphone; wherein each device ID in the second device ID set is associated with one of the several sub-areas, and the sub-areas associated with any two device IDs in the second device ID set are different;
[0017] In addition, the intelligent bedding detects the second sub-area touched by the main earphone, and the second sub-area is any one of the several sub-areas;
[0018] In addition, the intelligent bedding determines the second target device ID from the second device ID set, and the second target device ID is associated with the second sub-area;
[0019] In addition, the intelligent bedding takes the home device to which the second target device ID belongs as the corresponding target home device.
[0020] As another alternative implementation, in the first aspect of the embodiments of the present application, the intelligent bedding detecting the first sub-region touched by the secondary earphone includes:
[0021] The intelligent bedding detecting the touched position of the first sub-region; and determining whether the unique ID of the secondary earphone is read by a touch reading method at the touched position of the first sub-region; if so, determining a first reading time point when the unique ID of the secondary earphone is read by the touch reading method at the touched position of the first sub-region; and determining a touch start time point and a touch end time point of the touched position of the first sub-region; determining whether the first reading time point is between the touch start time point and the touch end time point of the touched position of the first sub-region, and if so, determining that the secondary earphone touches the first sub-region.
[0022] As another alternative implementation, in the first aspect of the embodiments of the present application, the intelligent bedding detecting the second sub-region touched by the primary earphone includes:
[0023] The intelligent bedding detecting the touched position of the second sub-region; and determining whether the unique ID of the primary earphone is read by a touch reading method at the touched position of the second sub-region; if so, determining a second reading time point when the unique ID of the primary earphone is read by the touch reading method at the touched position of the second sub-region; and determining a touch start time point and a touch end time point of the touched position of the second sub-region; determining whether the second reading time point is between the touch start time point and the touch end time point of the touched position of the second sub-region, and if so, determining that the primary earphone touches the second sub-region.
[0024] A second aspect of the embodiments of the present application discloses an intelligent bedding, which is configured with a primary earphone and a secondary earphone, and includes:
[0025] An acquisition unit, configured to acquire an interaction message sent by the primary earphone, where the interaction message is a message sent by the primary earphone to the intelligent bedding under control when the primary earphone is in a first state, the secondary earphone is in a second state, and the primary earphone and the secondary earphone are at a certain instant distance value; the interaction message at least includes the instant distance value, a first mapping relationship between the unique ID of the primary earphone and the status marker of the first state, and a second mapping relationship between the unique ID of the secondary earphone and the status marker of the second state;
[0026] A status determination unit, configured to determine a first status of the main earphone according to the first mapping relationship; and determine a second status of the sub-earphone according to the second mapping relationship;
[0027] A device determination unit, configured to determine a corresponding target home device based on the first status of the main earphone and the second status of the sub-earphone;
[0028] A judgment unit, configured to judge whether the instant distance value falls within a control distance range corresponding to the target home device;
[0029] A control unit, configured to control the target home device when the judgment unit determines that the instant distance value falls within the control distance range corresponding to the target home device.
[0030] As an optional implementation manner, in the second aspect of the embodiments of the present application, an upper surface area of the intelligent bedding is divided into several sub-areas, and the device determination unit includes:
[0031] An identification module, configured to identify a first device ID set corresponding to the unique ID of the sub-earphone when it is identified that the first status of the main earphone is a worn state and the second status of the sub-earphone is an unworn state; wherein, each device ID in the first device ID set is associated with one of the several sub-areas, and any two device IDs in the first device ID set are associated with different sub-areas;
[0032] A detection module, configured to detect a first sub-area touched by the sub-earphone, where the first sub-area is any one of the several sub-areas;
[0033] A determination module, configured to determine a first target device ID from the first device ID set, where the first target device ID is associated with the first sub-area; and use the home device to which the first target device ID belongs as the corresponding target home device.
[0034] As another optional implementation manner, in the second aspect of the embodiments of the present application:
[0035] The identification module is further configured to identify a second device ID set corresponding to the unique ID of the main earphone when it is identified that the first status of the main earphone is an unworn state and the second status of the sub-earphone is a worn state; wherein, each device ID in the second device ID set is associated with one of the several sub-areas, and any two device IDs in the second device ID set are associated with different sub-areas;
[0036] The detection module is further configured to detect a second sub-region touched by the main earphone, where the second sub-region is any one of the several sub-regions;
[0037] The determination module is further configured to determine a second target device ID from the second device ID set, where the second target device ID is associated with the second sub-region; and use the home device to which the second target device ID belongs as the corresponding target home device.
[0038] As another optional implementation manner, in the second aspect of the embodiments of the present application, the manner in which the detection module detects the first sub-region touched by the slave earphone is as follows:
[0039] Detect the touched position of the first sub-region; and determine whether the unique ID of the slave earphone is read in the touched position of the first sub-region by means of touch reading; if so, determine a first reading time point at which the unique ID of the slave earphone is read in the touched position of the first sub-region by means of touch reading; and determine a touch start time point and a touch end time point of the touched position of the first sub-region; determine whether the first reading time point is between the touch start time point and the touch end time point of the touched position of the first sub-region, and if so, determine that the slave earphone touches the first sub-region.
[0040] As another optional implementation manner, in the second aspect of the embodiments of the present application, the manner in which the detection module detects the second sub-region touched by the main earphone is as follows:
[0041] Detect the touched position of the second sub-region; and determine whether the unique ID of the main earphone is read in the touched position of the second sub-region by means of touch reading; if so, determine a second reading time point at which the unique ID of the main earphone is read in the touched position of the second sub-region by means of touch reading; and determine a touch start time point and a touch end time point of the touched position of the second sub-region; determine whether the second reading time point is between the touch start time point and the touch end time point of the touched position of the second sub-region, and if so, determine that the main earphone touches the second sub-region.
[0042] A third aspect of the embodiments of the present application discloses an intelligent bedding, which is configured with a main earphone and a slave earphone, and the intelligent bedding includes:
[0043] A memory storing executable program code;
[0044] A processor coupled to the memory;
[0045] The processor invokes the executable program code stored in the memory and executes the following steps:
[0046] Obtain an interaction message sent by the main earphone. The interaction message is a message sent by the main earphone to the smart bedding when the main earphone is in a first state, the sub - earphone is in a second state, and the main earphone and the sub - earphone are at a certain instant distance value. The interaction message at least includes the instant distance value, a first mapping relationship between the unique ID of the main earphone and the status marker of the first state, and a second mapping relationship between the unique ID of the sub - earphone and the status marker of the second state;
[0047] According to the first mapping relationship, determine the first state of the main earphone; and according to the second mapping relationship, determine the second state of the sub - earphone;
[0048] Based on the first state of the main earphone and the second state of the sub - earphone, determine the corresponding target home device;
[0049] Judge whether the instant distance value falls within the control distance range corresponding to the target home device; if so, control the target home device.
[0050] As an optional implementation manner, in the third aspect of the embodiments of the present application, the upper surface area of the smart bedding is divided into several sub - areas. The manner in which the processor determines the corresponding target home device based on the first state of the main earphone and the second state of the sub - earphone is as follows:
[0051] When it is recognized that the first state of the main earphone is the worn state and the second state of the sub - earphone is the non - worn state, identify the first device ID set corresponding to the unique ID of the sub - earphone; wherein each device ID in the first device ID set is associated with one of the several sub - areas, and the sub - areas associated with any two device IDs in the first device ID set are different;
[0052] And detect the first sub - area touched by the sub - earphone, where the first sub - area is any one of the several sub - areas;
[0053] And determine a first target device ID from the first device ID set, where the first target device ID is associated with the first sub - area;
[0054] And use the home device to which the first target device ID belongs as the corresponding target home device.
[0055] As another alternative implementation, in the third aspect of the embodiments of the present application, the processor further performs the following steps:
[0056] When it is recognized that the first state of the main earphone is the non-worn state and the second state of the secondary earphone is the worn state, identify the second device ID set corresponding to the unique ID of the main earphone; wherein each device ID in the second device ID set is associated with one of the several sub-regions, and the sub-regions associated with any two device IDs in the second device ID set are different;
[0057] And, detect the second sub-region touched by the main earphone, the second sub-region being any one of the several sub-regions;
[0058] And, determine a second target device ID from the second device ID set, the second target device ID being associated with the second sub-region;
[0059] And, use the home device to which the second target device ID belongs as the corresponding target home device.
[0060] As another alternative implementation, in the third aspect of the embodiments of the present application, the way for the processor to detect the first sub-region touched by the secondary earphone is:
[0061] Detect the touched position of the first sub-region; and, determine whether the unique ID of the secondary earphone is read by the touch reading method at the touched position of the first sub-region; if so, determine the first reading time point when the unique ID of the secondary earphone is read by the touch reading method at the touched position of the first sub-region; and, determine the touch start time point and the touch end time point of the touched position of the first sub-region; determine whether the first reading time point is between the touch start time point and the touch end time point of the touched position of the first sub-region, and if so, determine that the secondary earphone touches the first sub-region.
[0062] As another alternative implementation, in the third aspect of the embodiments of the present application, the way for the processor to detect the second sub-region touched by the main earphone is:
[0063] Detect the touched position of the second sub-region; and, determine whether the unique ID of the master earphone is read in the touched position of the second sub-region by the touch reading method; if so, determine the second reading time point when the unique ID of the master earphone is read in the touched position of the second sub-region by the touch reading method; and, determine the touch start time point of the touched position of the second sub-region and the touch end time point of the touched position of the second sub-region; determine whether the second reading time point is between the touch start time point of the touched position of the second sub-region and the touch end time point of the touched position of the second sub-region, if so, determine that the master earphone touches the second sub-region.
[0064] A fourth aspect of the embodiments of the present application discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the home appliance control method disclosed in the first aspect of the embodiments of the present application or any optional implementation manner of the first aspect of the embodiments of the present application are implemented.
[0065] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0066] In the embodiments of the present application, the intelligent bedding is configured with a master earphone and a slave earphone, and the intelligent bedding can obtain the instant distance value between the master earphone and the slave earphone when the master earphone is in the first state and the slave earphone is in the second state, and can determine the corresponding target home appliance according to the first state of the master earphone and the second state of the slave earphone, and when it is determined that the instant distance value falls within the control distance range corresponding to the target home appliance, control the target home appliance. It can be seen that by implementing the embodiments of the present application, it is possible to conveniently control home appliances without the user leaving the intelligent bedding, improving the control efficiency of home appliances. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts.
[0068] Figure 1 is a flowchart of the first embodiment of the home appliance control method disclosed in the embodiments of the present application;
[0069] Figure 2 is a flowchart of the second embodiment of the home appliance control method disclosed in the embodiments of the present application;
[0070] Figure 3It is a schematic flowchart of the third embodiment of the home appliance control method disclosed in the embodiments of the present application;
[0071] Figure 4 It is a schematic structural diagram of the first embodiment of the intelligent bedding disclosed in the embodiments of the present application;
[0072] Figure 5 It is a schematic structural diagram of the second embodiment of the intelligent bedding disclosed in the embodiments of the present application;
[0073] Figure 6 It is a schematic structural diagram of the third embodiment of the intelligent bedding disclosed in the embodiments of the present application. Detailed implementation manners
[0074] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0075] It should be noted that the terms "include" and "have" and any variations thereof in the embodiments of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily limit to those clearly listed steps or units, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0076] The embodiments of the present application disclose a home appliance control method, an intelligent bedding and a storage medium, which can enable a user to conveniently control home appliances without leaving the intelligent bedding, and improve the control efficiency of home appliances. The following will be described in detail in conjunction with the accompanying drawings.
[0077] Please refer to Figure 1 , Figure 1 It is a schematic flowchart of the first embodiment of the home appliance control method disclosed in the embodiments of the present application. Among them, Figure 1 The home appliance control method shown is applied to an intelligent bedding, and the intelligent bedding is configured with a main earphone and a sub-earphone. Among them, after the main earphone and the sub-earphone are powered on respectively, they can establish a wireless connection (such as a Bluetooth wireless connection) between the main earphone and the sub-earphone by themselves. Among them, the intelligent bedding may include but is not limited to an intelligent mattress, an intelligent pillow or an intelligent quilt. As Figure 1 shown, the home appliance control method may include the following steps:
[0078] 101. The intelligent bedding obtains the interaction message sent by the main earphone. The interaction message is the message sent by the main earphone to the intelligent bedding under control when the main earphone is in the first state, the sub-earphone is in the second state, and the main earphone and the sub-earphone are at a certain instant distance value. The interaction message at least includes the instant distance value, the first mapping relationship between the unique ID of the main earphone and the status marker of the first state, and the second mapping relationship between the unique ID of the sub-earphone and the status marker of the second state.
[0079] In some embodiments, during the use of the intelligent bedding, the user can press the power-on button of the main earphone and the power-on button of the sub-earphone respectively to trigger the main earphone and the sub-earphone to power on and establish a wireless connection between the main earphone and the sub-earphone by themselves. On this basis, the user can control the main earphone to perform a touch operation with a smart ring worn on a certain finger of the user, so that the main earphone can read the access key and hotspot name of the hotspot of the intelligent bedding stored in the smart ring, and access the hotspot of the intelligent bedding according to the access key and hotspot name of the hotspot of the intelligent bedding, thereby establishing a wireless connection between the main earphone and the intelligent bedding. In some embodiments, the user can pre-configure the access key and hotspot name of the hotspot of the intelligent bedding into the smart ring for storage through a third-party application installed on the user terminal (such as a mobile phone or a tablet).
[0080] After establishing the wireless connection between the main earphone and the sub-earphone, and establishing the wireless connection between the main earphone and the intelligent bedding, when the main earphone is in the first state, the sub-earphone is in the second state, and the main earphone and the sub-earphone are at a certain instant distance value, the user can tap the main earphone once to control the main earphone to send an interaction message to the intelligent bedding, which at least includes the instant distance value, the first mapping relationship between the unique ID of the main earphone and the status marker of the first state, and the second mapping relationship between the unique ID of the sub-earphone and the status marker of the second state. Among them, the first state can be any one of the wearing state or the non-wearing state, and the second state can also be any one of the wearing state or the non-wearing state. Among them, the main earphone can detect its first state through a wearing sensor and determine the status marker of the first state; and the sub-earphone can also detect its second state through a wearing sensor and determine the status marker of the second state and send it to the main earphone. Exemplarily, when the first state is the wearing state, the status marker of the first state is "1", when the first state is the non-wearing state, the status marker of the first state is "0"; when the second state is the wearing state, the status marker of the second state is "1", when the second state is the non-wearing state, the status marker of the second state is "0". Among them, when the main earphone is in the first state and the sub-earphone is in the second state, the main earphone can use Ultra-Wide Band (UWB) technology to measure a certain instant distance value between the main earphone and the sub-earphone.
[0081] Exemplarily, the unique ID of the main earphone can be the unique serial number of the main earphone, and the unique ID of the secondary earphone can be the unique serial number of the secondary earphone; wherein, when the main earphone establishes a wireless connection with the secondary earphone, it can obtain the unique ID of the secondary earphone.
[0082] 102. The intelligent bedding determines the first state of the main earphone according to the first mapping relationship; and determines the second state of the secondary earphone according to the second mapping relationship.
[0083] Exemplarily, when the status flag of the first state in the first mapping relationship is "1", the intelligent bedding can determine that the first state of the main earphone is the worn state; when the status flag of the first state in the first mapping relationship is "0", the intelligent bedding can determine that the first state of the main earphone is the non-worn state; when the status flag of the second state in the second mapping relationship is "1", the intelligent bedding can determine that the second state of the secondary earphone is the worn state; when the status flag of the second state in the second mapping relationship is "0", the intelligent bedding can determine that the second state of the secondary earphone is the non-worn state.
[0084] 103. The intelligent bedding determines the corresponding target home device based on the first state of the main earphone and the second state of the secondary earphone.
[0085] In some embodiments, the intelligent bedding can be pre-configured with the corresponding relationship among the first state of the main earphone, the second state of the secondary earphone, the corresponding target home device, and the control type as shown in Table 1 below, that is:
[0086] Table 1
[0087] The first state of the main earphone The second state of the sub-earphone The corresponding target home device The corresponding control distance range Control type Wearing state Wearing state Smart door lock 10cm to 30cm Lock Wearing state Non-wearing state Smart bathtub 10cm to 50cm Fill with water Non-wearing state Wearing state Smart bathtub 55cm to 100cm Fill with water Non-wearing state Non-wearing state Smart TV 15cm to 40cm Shut down
[0088] After the intelligent bedding determines the first state of the main earphone and the second state of the secondary earphone, it can determine the corresponding target home device based on the first state of the main earphone and the second state of the secondary earphone from the corresponding relationship shown in Table 1 above.
[0089] It can be understood that when the first state of the main earphone is the worn state and the second state of the secondary earphone is also the worn state, the user wearing the main earphone and the user wearing the secondary earphone may not be the same user. For example, the user wearing the main earphone can be the user of the intelligent bedding, while the user wearing the secondary earphone can be another user who does not use the intelligent bedding.
[0090] 104. The intelligent bedding determines whether the instant distance value falls within the control distance range corresponding to the target home device; if so, controls the target home device.
[0091] In some embodiments, when the intelligent bedding determines that the instant distance value does not fall within the control distance range corresponding to the target home device, it is not necessary to control the target home device.
[0092] After the intelligent bedding determines the corresponding target home device from the corresponding relationship shown in Table 1 above based on the first state of the main earphone and the second state of the sub-earphone, it can further determine the control distance range and control type corresponding to the target home device from the corresponding relationship shown in Table 1 above, and when it determines that the instant distance value falls within the control distance range corresponding to the determined target home device, it performs the control corresponding to the determined control type on the target home device.
[0093] For example, when the first state of the main earphone is the non-wearing state and the second state of the sub-earphone is the wearing state, the intelligent bedding can determine that the corresponding target home device from the corresponding relationship shown in Table 1 above is the intelligent bathtub; further, it can determine the control distance range "30 cm to 60 cm" and the control type "water injection" corresponding to the intelligent bathtub from the corresponding relationship shown in Table 1 above; further, when the intelligent bedding determines that the instant distance value (such as 40 cm) falls within the control distance range "30 cm to 60 cm" corresponding to the determined intelligent bathtub, it can perform the control corresponding to the control type "water injection" on the intelligent bathtub, that is, inject water into the intelligent bathtub. Exemplarily, the way for the intelligent bedding to inject water into the intelligent bathtub is: the intelligent bedding sends a water injection instruction to the intelligent bathtub through the Internet of Things (IoT), and the intelligent bathtub responds to the water injection instruction to open the faucet of the intelligent bathtub to inject water into the intelligent bathtub.
[0094] In some embodiments, the above water injection instruction may include the unique identity information of the user wearing the sub-earphone. Correspondingly, the way for the intelligent bathtub to respond to the water injection instruction to open the faucet of the intelligent bathtub to inject water into the intelligent bathtub may be: the intelligent bathtub responds to the water injection instruction, identifies the specified water injection volume and the specified water temperature value corresponding to the unique identity information of the user wearing the sub-earphone stored in the intelligent bathtub; and, opens the faucet of the intelligent bathtub to inject water into the intelligent bathtub until the water injection volume of the intelligent bathtub reaches the specified water injection volume, then closes the faucet of the intelligent bathtub, and controls the electric heating component built in the intelligent bathtub to heat the water in the intelligent bathtub until the water in the intelligent bathtub is heated to the specified water temperature value, then controls the heating component to stop heating the water in the intelligent bathtub continuously, and uses the bathtub thermostat of the intelligent bathtub to keep the water in the intelligent bathtub at the specified water temperature value for the user to take a bath.
[0095] In some other embodiments, when the smart bathtub uses the bathtub thermostat of the smart bathtub to keep the water in the smart bathtub at the specified water temperature value, the smart bathtub can send a notification message to the smart bedding. The notification message is used to describe that the water injection volume of the smart bathtub has reached the specified water injection volume and the water in the smart bathtub is kept at the specified water temperature value. Correspondingly, the smart bedding can send the notification message to the main headset, and while playing the notification message, the main headset can send the notification message to the sub-headset for playing, so that the user wearing the sub-headset can go to the smart bathtub for a bath according to the notification message, thus avoiding the problem that the user wearing the sub-headset needs to wait when going to the smart bathtub for a bath too early.
[0096] In some embodiments, when the smart bedding determines that the first state of the main headset is the un-worn state while the second state of the sub-headset is the worn state, it can send instruction information to the main headset. The instruction information is used to instruct the sub-headset to measure the unique ear canal shape of the user wearing the sub-headset. Correspondingly, the main headset can send the instruction information to the sub-headset. After receiving the instruction information, the sub-headset can emit an ultrasonic signal into the ear canal of a certain ear of the user wearing the sub-headset to measure the unique ear canal shape of a certain ear of the user wearing the sub-headset, and send the unique ear canal shape of a certain ear of the user wearing the sub-headset to the main headset, so that the smart bedding can receive the unique ear canal shape of a certain ear of the user wearing the sub-headset sent by the main headset, and identify the unique identity information of the user wearing the sub-headset according to the unique ear canal shape of a certain ear of the user wearing the sub-headset.
[0097] It can be seen that implementing Figure 1 the home control method shown can enable the user to conveniently control home appliances without leaving the smart bedding, improving the control efficiency of home appliances.
[0098] Please refer to Figure 2 , Figure 2 which is a schematic flowchart of the second embodiment of the home appliance control method disclosed in the embodiments of the present application. In Figure 2 the home appliance control method shown, the upper surface area of the smart bedding (such as a smart mattress) is divided into several sub-areas. As Figure 2 shown, the home appliance control method may include the following steps:
[0099] 201. The smart bedding obtains an interaction message sent by the main headset. The interaction message is a message sent by the main headset to the smart bedding under control when the main headset is in the first state, the sub-headset is in the second state, and the main headset and the sub-headset are at a certain instant distance value. The interaction message at least includes the instant distance value, the first mapping relationship between the unique ID of the main headset and the status marker of the first state, and the second mapping relationship between the unique ID of the sub-headset and the status marker of the second state.
[0100] 202. The intelligent bedding determines the first state of the main earphone according to the first mapping relationship; and determines the second state of the sub-earphone according to the second mapping relationship.
[0101] 203. When the intelligent bedding identifies that the first state of the main earphone is the worn state while the second state of the sub-earphone is the non-worn state, it identifies the first device ID set corresponding to the unique ID of the sub-earphone; wherein, each device ID in the first device ID set is associated with one of the several sub-regions, and the sub-regions associated with any two device IDs in the first device ID set are different.
[0102] Wherein, each of the several sub-regions corresponds to a region identifier, which is used to represent the sub-region, and the region identifiers corresponding to any two sub-regions are different; correspondingly, the intelligent bedding can record the corresponding relationship between the unique ID of the sub-earphone and the first device ID set. When the intelligent bedding identifies that the first state of the main earphone is the worn state while the second state of the sub-earphone is the non-worn state, the intelligent bedding can identify the first device ID set corresponding to the unique ID of the sub-earphone from the corresponding relationship between the unique ID of the sub-earphone and the first device ID set.
[0103] Wherein, the association form that each device ID in the first device ID set is associated with one of the several sub-regions can be: each device ID in the first device ID set is associated with the region identifier of one of the several sub-regions.
[0104] 204. The intelligent bedding detects the first sub-region touched by the sub-earphone, and the first sub-region is any one of the several sub-regions.
[0105] In some embodiments, the way for the intelligent bedding to detect the first sub-region touched by the sub-earphone can be as follows:
[0106] The intelligent bedding detects the touched position of the first sub-region;
[0107] And, the intelligent bedding determines whether the unique ID of the sub-earphone is read at the touched position of the first sub-region through a touch reading method (such as NFC touch reading method); if so, determines the first reading time point when the unique ID of the sub-earphone is read at the touched position of the first sub-region through the touch reading method.
[0108] In addition, the intelligent bedding determines the touch start time point of the touched position of the first sub-region and the touch end time point of the touched position of the first sub-region, and determines whether the first reading time point is between the touch start time point of the touched position of the first sub-region and the touch end time point of the touched position of the first sub-region. If so, it can be determined that the secondary earphone touches the first sub-region.
[0109] Among them, by implementing the above-mentioned embodiment, the intelligent bedding can accurately determine that the secondary earphone touches the first sub-region, thereby reducing the misjudgment of the touch of the first sub-region.
[0110] 205. The intelligent bedding determines a first target device ID from the first device ID set, and the first target device ID is associated with the first sub-region; and, the home device to which the first target device ID belongs is used as the corresponding target home device.
[0111] 206. The intelligent bedding determines whether the instant distance value falls within the control distance range corresponding to the target home device; if so, controls the target home device.
[0112] Among them, by implementing the above steps 203 to 206, when the first state of the main earphone is the wearing state and the second state of the secondary earphone is the non-wearing state, the secondary earphone can trigger the intelligent bedding to control the home device to which any device ID in the first device ID set belongs, thereby improving the flexibility and convenience of controlling the home device.
[0113] In some embodiments, the above-mentioned target home device may be an intelligent bathtub; correspondingly, in the above step 206, the intelligent bedding determines whether the instant distance value falls within the control distance range corresponding to the intelligent bathtub; if so, controls the intelligent bathtub. Among them, the intelligent bedding's control of the intelligent bathtub may include the intelligent bedding filling water into the intelligent bathtub. Exemplarily, the way for the intelligent bedding to fill water into the intelligent bathtub is: the intelligent bedding sends a water injection instruction to the intelligent bathtub through IoT, and the intelligent bathtub responds to the water injection instruction to open the faucet of the intelligent bathtub to fill water into the intelligent bathtub.
[0114] In some embodiments, the above water injection instruction may include the unique identity information of the user wearing the main earphone. Correspondingly, the way for the smart bathtub to respond to the water injection instruction and open the faucet of the smart bathtub to fill the smart bathtub with water may be as follows: the smart bathtub responds to the water injection instruction, identifies the specified water injection volume and the specified water temperature value corresponding to the unique identity information of the user wearing the main earphone stored in the smart bathtub; and, opens the faucet of the smart bathtub to fill the smart bathtub with water until the water injection volume of the smart bathtub reaches the specified water injection volume, then closes the faucet of the smart bathtub, and controls the electric heating component built in the smart bathtub to heat the water in the smart bathtub until the water in the smart bathtub is heated to the specified water temperature value, then controls the heating component to stop heating the water in the smart bathtub continuously, and uses the bathtub thermostat of the smart bathtub to keep the water in the smart bathtub at the specified water temperature value for the user to take a bath.
[0115] In some other embodiments, when the smart bathtub uses the bathtub thermostat of the smart bathtub to keep the water in the smart bathtub at the specified water temperature value, the smart bathtub may send a notification message to the smart bedding. The notification message is used to describe that the water injection volume of the smart bathtub has reached the specified water injection volume and the water in the smart bathtub is kept at the specified water temperature value; correspondingly, the smart bedding may send the notification message to the main earphone, and the main earphone plays the notification message, so that the user wearing the main earphone can go to the smart bathtub to take a bath according to the notification message, thereby avoiding the problem that the user wearing the main earphone needs to wait when going to the smart bathtub to take a bath too early.
[0116] In some embodiments, at least two perfume containing cavities may be provided on the smart bathtub. Each perfume containing cavity is used to contain a kind of perfume, and each perfume containing cavity is provided with a perfume nozzle; after the smart bathtub sends a notification message for describing that the water injection volume of the smart bathtub has reached the specified water injection volume and the water in the smart bathtub is kept at the specified water temperature value to the smart bedding, it may identify whether there is a target perfume containing cavity among the above at least two perfume containing cavities according to the unique identity information of the user wearing the main earphone; wherein, the perfume contained in the target perfume containing cavity is the perfume preferred by the user wearing the main earphone; if it exists, control the perfume nozzle provided in the target perfume containing cavity to spray a specified quantity of the target perfume towards the water in the smart bathtub, so that the user wearing the main earphone can achieve the effect of soothing the mood when taking a bath in the smart bathtub. Among them, the smart bathtub may determine the specified quantity of the target perfume in a proportional relationship with the specified water injection volume according to the specified water injection volume.
[0117] In some embodiments, when the smart bedding determines that the first state of the main earphone is the worn state while the second state of the sub - earphone is the non - worn state, it can send command information to the main earphone. This command information is used to instruct the main earphone to measure the unique ear canal shape of the user wearing the main earphone. Correspondingly, the main earphone can emit ultrasonic signals into the ear canal of a certain ear of the user wearing the main earphone to measure the unique ear canal shape of a certain ear of the user wearing the main earphone, so that the smart bedding can receive the unique ear canal shape of a certain ear of the user wearing the main earphone sent by the main earphone, and identify the unique identity information of the user wearing the main earphone based on the unique ear canal shape of a certain ear of the user wearing the main earphone.
[0118] It can be seen that implementing Figure 2 the home control method shown can enable the user to conveniently control home appliances without leaving the smart bedding, improving the control efficiency of home appliances.
[0119] Please refer to Figure 3 , Figure 3 which is a schematic flowchart of the third embodiment of the home appliance control method disclosed in the embodiments of the present application. In Figure 3 the home appliance control method shown, the upper surface area of the smart bedding (such as a smart mattress) is divided into several sub - areas. As Figure 3 shown, the home appliance control method may include the following steps:
[0120] 301. The smart bedding obtains an interaction message sent by the main earphone. This interaction message is a message sent by the main earphone to the smart bedding under control when the main earphone is in the first state, the sub - earphone is in the second state, and the main earphone and the sub - earphone are at a certain instant distance value. The interaction message at least includes the instant distance value, the first mapping relationship between the unique ID of the main earphone and the status marker of the first state, and the second mapping relationship between the unique ID of the sub - earphone and the status marker of the second state.
[0121] 302. The smart bedding determines the first state of the main earphone according to the first mapping relationship, and determines the second state of the sub - earphone according to the second mapping relationship.
[0122] 303. When the smart bedding identifies that the first state of the main earphone is the non - worn state while the second state of the sub - earphone is the worn state, it identifies the second device ID set corresponding to the unique ID of the main earphone. Each device ID in the second device ID set is associated with one of the above - mentioned several sub - areas, and the sub - areas associated with any two device IDs in the second device ID set are different.
[0123] Among them, each of the several sub-regions corresponds to a region identifier, which is used to represent the sub-region, and the region identifiers corresponding to any two sub-regions are different; correspondingly, the intelligent bedding can record the correspondence between the unique ID of the main earphone and the set of second device IDs. When the intelligent bedding identifies that the first state of the main earphone is the non-wearing state while the second state of the sub-earphone is the wearing state, the intelligent bedding can identify the set of second device IDs corresponding to the unique ID of the main earphone from the correspondence between the unique ID of the main earphone and the set of second device IDs.
[0124] Among them, the association form in which each device ID in the set of second device IDs is associated with one of the several sub-regions can be: each device ID in the set of second device IDs is associated with the region identifier of one of the several sub-regions.
[0125] 304. The intelligent bedding detects the second sub-region touched by the main earphone, and the second sub-region is any one of the several sub-regions.
[0126] In some embodiments, the way for the intelligent bedding to detect the second sub-region touched by the main earphone can be:
[0127] The intelligent bedding detects the touched position of the second sub-region;
[0128] And, the intelligent bedding determines whether the unique ID of the main earphone is read by the touch reading method at the touched position of the second sub-region; if so, determines the second reading time point when the unique ID of the main earphone is read by the touch reading method at the touched position of the second sub-region.
[0129] And, the intelligent bedding determines the touch start time point of the touched position of the second sub-region and the touch end time point of the touched position of the second sub-region, and determines whether the second reading time point is between the touch start time point of the touched position of the second sub-region and the touch end time point of the touched position of the second sub-region. If so, determines that the main earphone touches the second sub-region.
[0130] Among them, by implementing the above embodiments, the intelligent bedding can accurately determine that the main earphone touches the second sub-region, thereby reducing the misjudgment of the touch of the second sub-region.
[0131] 305. The intelligent bedding determines the second target device ID from the set of second device IDs, and the second target device ID is associated with the second sub-region; and uses the home device to which the second target device ID belongs as the corresponding target home device.
[0132] 306. The intelligent bedding determines whether the instant distance value falls within the control distance range corresponding to the target home device; if so, controls the target home device.
[0133] Among them, when implementing the above-mentioned step 303 to step 306, when the first state of the main earphone is the non-worn state and the second state of the sub-earphone is the worn state, the main earphone can trigger the smart bedding to control the home appliance belonging to any device ID in the second device ID set, thereby improving the flexibility and convenience of controlling the home appliance.
[0134] In some embodiments, the above-mentioned target home appliance can be a smart bathtub; correspondingly, in the above-mentioned step 306, the smart bedding determines whether the instant distance value falls within the control distance range corresponding to the smart bathtub; if so, the smart bathtub is controlled. Among them, the smart bedding's control of the smart bathtub can include the smart bedding filling water into the smart bathtub. Exemplarily, the way for the smart bedding to fill water into the smart bathtub is: the smart bedding sends a water filling instruction to the smart bathtub through IoT, and the smart bathtub responds to this water filling instruction to turn on the faucet of the smart bathtub to fill water into the smart bathtub.
[0135] In some embodiments, the above-mentioned water filling instruction may include the unique identity information of the user wearing the sub-earphone. Correspondingly, the way for the smart bathtub to respond to this water filling instruction to turn on the faucet of the smart bathtub to fill water into the smart bathtub can be: the smart bathtub responds to this water filling instruction, identifies the specified water filling amount and the specified water temperature value corresponding to the unique identity information of the user wearing the sub-earphone stored in the smart bathtub; and, turns on the faucet of the smart bathtub to fill water into the smart bathtub until the water filling amount of the smart bathtub reaches the specified water filling amount, then closes the faucet of the smart bathtub, and controls the electric heating component built in the smart bathtub to heat the water in the smart bathtub until the water in the smart bathtub is heated to the specified water temperature value, then controls the heating component to stop heating the water in the smart bathtub continuously, and uses the bathtub thermostat of the smart bathtub to keep the water in the smart bathtub at the specified water temperature value for the user to take a bath.
[0136] In some other embodiments, when the smart bathtub uses the bathtub thermostat of the smart bathtub to keep the water in the smart bathtub at the specified water temperature value, the smart bathtub can send a notification message to the smart bedding. This notification message is used to describe that the water filling amount of the smart bathtub has reached the specified water filling amount and the water in the smart bathtub is kept at the specified water temperature value; correspondingly, the smart bedding can send this notification message to the main earphone, and the main earphone can send this notification message to the sub-earphone for playing while playing this notification message, so that the user wearing the sub-earphone can go to the smart bathtub to take a bath according to this notification message, thereby avoiding the problem that the user wearing the sub-earphone needs to wait when going to the smart bathtub to take a bath too early.
[0137] In some embodiments, at least two perfume holding chambers may be provided on the smart bathtub. Each perfume holding chamber is used to hold a kind of perfume, and each perfume holding chamber is provided with a perfume nozzle. After the smart bathtub sends a notification message to the smart bedding, which is used to describe that the water injection volume of the smart bathtub has reached the specified water injection volume and the water in the smart bathtub remains at the specified water temperature value, it can identify whether there is a target perfume holding chamber among the at least two perfume holding chambers according to the unique identity information of the user wearing the sub-headphone. The perfume held in the target perfume holding chamber is the perfume preferred by the user wearing the sub-headphone. If it exists, it controls the perfume nozzle provided in the target perfume holding chamber to spray a specified amount of the target perfume towards the water in the smart bathtub, so that the user wearing the sub-headphone can achieve the effect of soothing the mood when taking a bath in the smart bathtub. Among them, the smart bathtub can determine a specified amount of the target perfume that is in a direct proportional relationship with the specified water injection volume according to the specified water injection volume.
[0138] In some embodiments, when the smart bedding determines that the first state of the main headphone is the non-wearing state while the second state of the sub-headphone is the wearing state, it can send command information to the main headphone. The command information is used to command the sub-headphone to measure the unique ear canal shape of the user wearing the sub-headphone. Correspondingly, the main headphone can send the command information to the sub-headphone. After receiving the command information, the sub-headphone can emit an ultrasonic signal into the ear canal of a certain ear of the user wearing the sub-headphone to measure the unique ear canal shape of a certain ear of the user wearing the sub-headphone, and send the unique ear canal shape of a certain ear of the user wearing the sub-headphone to the main headphone, so that the smart bedding can receive the unique ear canal shape of a certain ear of the user wearing the sub-headphone sent by the main headphone, and identify the unique identity information of the user wearing the sub-headphone according to the unique ear canal shape of a certain ear of the user wearing the sub-headphone.
[0139] It can be seen that implementing Figure 3 the home control method shown can enable the user to conveniently control home appliances without leaving the smart bedding, and improve the control efficiency of home appliances.
[0140] Please refer to Figure 4 , Figure 4 which is a schematic structural diagram of the first embodiment of the smart bedding disclosed in the embodiments of the present application. As Figure 4 shown, the smart bedding includes:
[0141] An acquisition unit 401 is configured to acquire an interaction message sent by a master earphone. The interaction message is a message sent by the master earphone to a smart bedding when the master earphone is in a first state, the slave earphone is in a second state, and the master earphone and the slave earphone are at a certain instant distance value. Wherein, the interaction message at least includes the instant distance value, a first mapping relationship between the unique ID of the master earphone and the status marker of the first state, and a second mapping relationship between the unique ID of the slave earphone and the status marker of the second state;
[0142] A status determination unit 402 is configured to determine the first state of the master earphone according to the first mapping relationship; and determine the second state of the slave earphone according to the second mapping relationship;
[0143] A device determination unit 403 is configured to determine a corresponding target home device based on the first state of the master earphone and the second state of the slave earphone;
[0144] A judgment unit 404 is configured to judge whether the instant distance value falls within the control distance range corresponding to the target home device;
[0145] A control unit 405 is configured to control the target home device when the judgment unit 404 determines that the instant distance value falls within the control distance range corresponding to the target home device.
[0146] It can be seen that implementing Figure 4 the smart bedding shown can enable the user to conveniently control home devices without leaving the smart bedding, improving the control efficiency of home devices.
[0147] Please refer to Figure 5 , Figure 5 which is a schematic structural diagram of a second embodiment of the smart bedding disclosed in the embodiments of the present application. Wherein, Figure 5 the smart bedding shown is optimized from Figure 4 the smart bedding shown. Wherein, Figure 5 the upper surface area of the smart bedding shown is divided into several sub-areas ( Figure 5 not shown). Correspondingly, in Figure 5 the smart bedding shown, the device determination unit 403 includes:
[0148] An identification module 4031 is configured to identify a first device ID set corresponding to the unique ID of the slave earphone when it is identified that the first state of the master earphone is a worn state and the second state of the slave earphone is an unworn state. Wherein, each device ID in the first device ID set is associated with one of the several sub-areas, and the sub-areas associated with any two device IDs in the first device ID set are different;
[0149] A detection module 4032 for detecting a first sub-region touched by the secondary earphone, where the first sub-region is any one of the above-mentioned several sub-regions;
[0150] A determination module 4033 for determining a first target device ID from the first device ID set, where the first target device ID is associated with the first sub-region; and taking the home device to which the first target device ID belongs as the corresponding target home device.
[0151] Among them, by implementing the above-mentioned implementation manner, when the first state of the main earphone is the worn state and the second state of the secondary earphone is the non-worn state, the secondary earphone can trigger the smart bedding to control the home device to which any device ID in the first device ID set belongs, thereby improving the flexibility and convenience of controlling the home device.
[0152] As an optional implementation manner, in Figure 5 the smart bedding shown:
[0153] The recognition module 4031 is further configured to recognize a second device ID set corresponding to the unique ID of the main earphone when it is recognized that the first state of the main earphone is the non-worn state and the second state of the secondary earphone is the worn state; where each device ID in the second device ID set is associated with one of the above-mentioned several sub-regions, and the sub-regions associated with any two device IDs in the second device ID set are different;
[0154] The detection module 4032 is further configured to detect a second sub-region touched by the main earphone, where the second sub-region is any one of the above-mentioned several sub-regions;
[0155] The determination module 4033 is further configured to determine a second target device ID from the second device ID set, where the second target device ID is associated with the second sub-region; and taking the home device to which the second target device ID belongs as the corresponding target home device.
[0156] Among them, by implementing the above-mentioned implementation manner, when the first state of the main earphone is the non-worn state and the second state of the secondary earphone is the worn state, the main earphone can trigger the smart bedding to control the home device to which any device ID in the second device ID set belongs, thereby improving the flexibility and convenience of controlling the home device.
[0157] In some implementation manners, the manner in which the detection module 4032 detects the first sub-region touched by the secondary earphone is:
[0158] Detect the touched position of the first sub-region;
[0159] And, determine whether the touched position in the first sub-region reads the unique ID of the sub-headphone through the touch reading method; if so, determine the first reading time point when the unique ID of the sub-headphone is read through the touch reading method at the touched position in the first sub-region;
[0160] And, determine the touch start time point of the touched position in the first sub-region and the touch end time point of the touched position in the first sub-region;
[0161] Judge whether the first reading time point is between the touch start time point of the touched position in the first sub-region and the touch end time point of the touched position in the first sub-region; if so, determine that the sub-headphone touches the first sub-region.
[0162] Among them, by implementing the above implementation manner, the intelligent bedding can accurately determine that the sub-headphone touches the first sub-region, thereby reducing the misjudgment of the touch of the first sub-region.
[0163] In some other embodiments, the way for the detection module 4033 to detect the second sub-region touched by the main headphone is:
[0164] Detect the touched position in the second sub-region;
[0165] And, determine whether the touched position in the second sub-region reads the unique ID of the main headphone through the touch reading method; if so, determine the second reading time point when the unique ID of the main headphone is read through the touch reading method at the touched position in the second sub-region;
[0166] And, determine the touch start time point of the touched position in the second sub-region and the touch end time point of the touched position in the second sub-region;
[0167] Judge whether the second reading time point is between the touch start time point of the touched position in the second sub-region and the touch end time point of the touched position in the second sub-region; if so, determine that the main headphone touches the second sub-region.
[0168] Among them, by implementing the above implementation manner, the intelligent bedding can accurately determine that the main headphone touches the second sub-region, thereby reducing the misjudgment of the touch of the second sub-region.
[0169] Please refer to Figure 6 , Figure 6 which is the structural schematic diagram of the third embodiment of the intelligent bedding disclosed in the embodiments of the present application. As Figure 6 shown, the intelligent bedding includes:
[0170] A memory 601 storing executable program code;
[0171] A processor 602 coupled to the memory;
[0172] Among them, the processor 602 calls the executable program code stored in the memory 601 and executes the following steps:
[0173] Obtain the interaction message sent by the master earphone. The interaction message is a message sent by the master earphone to the intelligent bedding under control when the master earphone is in the first state, the slave earphone is in the second state, and the master earphone and the slave earphone are at a certain instant distance value; wherein, the interaction message at least includes the instant distance value, the first mapping relationship between the unique ID of the master earphone and the status marker of the first state, and the second mapping relationship between the unique ID of the slave earphone and the status marker of the second state;
[0174] According to the first mapping relationship, determine the first state of the master earphone; and, according to the second mapping relationship, determine the second state of the slave earphone;
[0175] Based on the first state of the master earphone and the second state of the slave earphone, determine the corresponding target home device;
[0176] Judge whether the instant distance value falls within the control distance range corresponding to the target home device; if so, control the target home device.
[0177] In some embodiments, Figure 6 The upper surface area of the shown intelligent bedding is divided into several sub-regions ( Figure 6 not shown). The way for the processor 602 to determine the corresponding target home device based on the first state of the master earphone and the second state of the slave earphone is as follows:
[0178] When it is recognized that the first state of the master earphone is the worn state while the second state of the slave earphone is the non-worn state, identify the first device ID set corresponding to the unique ID of the slave earphone; wherein, each device ID in the first device ID set is associated with one of the above-mentioned several sub-regions, and the sub-regions associated with any two device IDs in the first device ID set are different;
[0179] And, detect the first sub-region touched by the slave earphone, the first sub-region being any one of the above-mentioned several sub-regions;
[0180] And, determine the first target device ID from the first device ID set, the first target device ID being associated with the first sub-region;
[0181] And, use the home device to which the first target device ID belongs as the corresponding target home device.
[0182] Among them, when implementing the above embodiments, when the first state of the main earphone is the worn state and the second state of the sub-earphone is the unworn state, the sub-earphone can trigger the smart bedding to control the home appliances belonging to any device ID in the first device ID set, thereby improving the flexibility and convenience of controlling home appliances.
[0183] In some embodiments, the processor 602 also performs the following steps:
[0184] When it is recognized that the first state of the main earphone is the unworn state and the second state of the sub-earphone is the worn state, recognize the second device ID set corresponding to the unique ID of the main earphone; wherein, each device ID in the second device ID set is associated with one of the above-mentioned several sub-regions, and the sub-regions associated with any two device IDs in the second device ID set are different;
[0185] And, detect the second sub-region touched by the main earphone, the second sub-region being any one of the above-mentioned several sub-regions;
[0186] And, determine the second target device ID from the second device ID set, the second target device ID being associated with the second sub-region;
[0187] And, use the home appliance to which the second target device ID belongs as the corresponding target home appliance.
[0188] Among them, when implementing the above embodiments, when the first state of the main earphone is the unworn state and the second state of the sub-earphone is the worn state, the main earphone can trigger the smart bedding to control the home appliances belonging to any device ID in the second device ID set, thereby improving the flexibility and convenience of controlling home appliances.
[0189] In some embodiments, the way for the processor 602 to detect the first sub-region touched by the sub-earphone is:
[0190] Detect the touched position of the first sub-region;
[0191] And, determine whether the unique ID of the sub-earphone is read by the touch reading method at the touched position of the first sub-region; if so, determine the first reading time point when the unique ID of the sub-earphone is read by the touch reading method at the touched position of the first sub-region;
[0192] And, determine the touch start time point of the touched position of the first sub-region and the touch end time point of the touched position of the first sub-region;
[0193] Determine whether the first reading time point is between the touch start time point of the touched position of the first sub-region and the touch end time point of the touched position of the first sub-region. If so, determine that the secondary earphone touches the first sub-region.
[0194] Among them, by implementing the above-described embodiment, the intelligent bedding can accurately determine that the secondary earphone touches the first sub-region, thereby reducing the misjudgment of the touch of the first sub-region.
[0195] In some other embodiments, the way for the processor 602 to detect the second sub-region touched by the main earphone is as follows:
[0196] Detect the touched position of the second sub-region;
[0197] And, determine whether the unique ID of the main earphone is read by the touch reading method at the touched position of the second sub-region; if so, determine the second reading time point when the unique ID of the main earphone is read by the touch reading method at the touched position of the second sub-region;
[0198] And, determine the touch start time point of the touched position of the second sub-region and the touch end time point of the touched position of the second sub-region;
[0199] Determine whether the second reading time point is between the touch start time point of the touched position of the second sub-region and the touch end time point of the touched position of the second sub-region. If so, determine that the main earphone touches the second sub-region.
[0200] Among them, by implementing the above-described embodiment, the intelligent bedding can accurately determine that the main earphone touches the second sub-region, thereby reducing the misjudgment of the touch of the second sub-region.
[0201] It can be seen that by implementing Figure 6 the intelligent bedding shown, it is possible to conveniently control home appliances without the user leaving the intelligent bedding, improving the control efficiency of home appliances.
[0202] The embodiment of the present application further discloses a computer-readable storage medium, on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps in the home appliance control method described in the previous embodiments are implemented.
[0203] The above has introduced in detail a home appliance control method, an intelligent bedding, and a storage medium disclosed in the embodiments of the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the application.
Claims
1. A method for controlling a home appliance, characterized in that, The intelligent bedding is configured with a main earphone and a sub - earphone, and the method includes: The intelligent bedding obtains an interaction message sent by the main earphone. The interaction message is a message sent by the main earphone to the intelligent bedding under control when the main earphone is in a first state, the sub - earphone is in a second state, and the main earphone and the sub - earphone are at a certain instant distance value. The interaction message at least includes the instant distance value, a first mapping relationship between the unique ID of the main earphone and the status marker of the first state, and a second mapping relationship between the unique ID of the sub - earphone and the status marker of the second state; The intelligent bedding determines the first state of the main earphone according to the first mapping relationship; and determines the second state of the sub - earphone according to the second mapping relationship; The intelligent bedding determines a corresponding target home device based on the first state of the main earphone and the second state of the sub - earphone; The intelligent bedding determines whether the instant distance value falls within the control distance range corresponding to the target home device; if so, controls the target home device; The upper surface area of the intelligent bedding is divided into several sub - areas. The intelligent bedding determines a corresponding target home device based on the first state of the main earphone and the second state of the sub - earphone, including: When the intelligent bedding recognizes that the first state of the main earphone is the wearing state while the second state of the sub - earphone is the non - wearing state, it recognizes a first device ID set corresponding to the unique ID of the sub - earphone. Each device ID in the first device ID set is associated with one of the several sub - areas, and any two device IDs in the first device ID set are associated with different sub - areas; And, the intelligent bedding detects a first sub - area touched by the sub - earphone, and the first sub - area is any one of the several sub - areas; And, the intelligent bedding determines a first target device ID from the first device ID set, and the first target device ID is associated with the first sub - area; And, the intelligent bedding takes the home device to which the first target device ID belongs as the corresponding target home device.
2. The home appliance control method according to claim 1, wherein, The method further includes: When the intelligent bedding recognizes that the first state of the main earphone is the non - wearing state while the second state of the sub - earphone is the wearing state, it recognizes a second device ID set corresponding to the unique ID of the main earphone. Each device ID in the second device ID set is associated with one of the several sub - areas, and any two device IDs in the second device ID set are associated with different sub - areas; And, the intelligent bedding detects a second sub - area touched by the main earphone, and the second sub - area is any one of the several sub - areas; And, the intelligent bedding determines a second target device ID from the second device ID set, and the second target device ID is associated with the second sub - area; And, the intelligent bedding takes the home device to which the second target device ID belongs as the corresponding target home device.
3. The home appliance control method according to claim 1 or 2, characterized in that, The intelligent bedding detects a first sub-region touched by the secondary earphone, including: The intelligent bedding detects the touched position of the first sub-region; and, determines whether the unique ID of the secondary earphone is read by a touch reading method at the touched position of the first sub-region; if so, determines a first reading time point when the unique ID of the secondary earphone is read by the touch reading method at the touched position of the first sub-region; and, determines a touch start time point of the touched position of the first sub-region and a touch end time point of the touched position of the first sub-region; determines whether the first reading time point is between the touch start time point of the touched position of the first sub-region and the touch end time point of the touched position of the first sub-region, and if so, determines that the secondary earphone touches the first sub-region.
4. The home appliance control method according to claim 3, wherein, The intelligent bedding detects a second sub-region touched by the primary earphone, including: The intelligent bedding detects the touched position of the second sub-region; and, determines whether the unique ID of the primary earphone is read by a touch reading method at the touched position of the second sub-region; if so, determines a second reading time point when the unique ID of the primary earphone is read by the touch reading method at the touched position of the second sub-region; and, determines a touch start time point of the touched position of the second sub-region and a touch end time point of the touched position of the second sub-region; determines whether the second reading time point is between the touch start time point of the touched position of the second sub-region and the touch end time point of the touched position of the second sub-region, and if so, determines that the primary earphone touches the second sub-region.
5. An intelligent bedding, characterized in that, The intelligent bedding is configured with a primary earphone and a secondary earphone, including: An acquisition unit, configured to acquire an interaction message sent by the primary earphone, where the interaction message is a message sent by the primary earphone to the intelligent bedding under control when the primary earphone is in a first state, the secondary earphone is in a second state, and the primary earphone and the secondary earphone are at a certain instant distance value; the interaction message at least includes the instant distance value, a first mapping relationship between the unique ID of the primary earphone and a status marker of the first state, and a second mapping relationship between the unique ID of the secondary earphone and a status marker of the second state; A status determination unit, configured to determine the first state of the primary earphone according to the first mapping relationship; and, determine the second state of the secondary earphone according to the second mapping relationship; A device determination unit, configured to determine a corresponding target home device based on the first state of the primary earphone and the second state of the secondary earphone; A judgment unit, configured to judge whether the instant distance value falls within a control distance range corresponding to the target home device; A control unit, configured to control the target home device when the judgment unit judges that the instant distance value falls within the control distance range corresponding to the target home device; The upper surface area of the intelligent bedding is divided into several sub-regions, and the device determination unit includes: An identification module, configured to identify a first device ID set corresponding to the unique ID of the slave earphone when it is identified that the first state of the master earphone is the worn state and the second state of the slave earphone is the non-worn state; wherein, each device ID in the first device ID set is associated with one of the several sub-regions, and the sub-regions associated with any two device IDs in the first device ID set are different; A detection module, configured to detect a first sub-region touched by the slave earphone, where the first sub-region is any one of the several sub-regions; A determination module, configured to determine a first target device ID from the first device ID set, where the first target device ID is associated with the first sub-region; and use the home device to which the first target device ID belongs as the corresponding target home device.
6. The intelligent bedding according to claim 5, wherein: The identification module is further configured to identify a second device ID set corresponding to the unique ID of the master earphone when it is identified that the first state of the master earphone is the non-worn state and the second state of the slave earphone is the worn state; wherein, each device ID in the second device ID set is associated with one of the several sub-regions, and the sub-regions associated with any two device IDs in the second device ID set are different; The detection module is further configured to detect a second sub-region touched by the master earphone, where the second sub-region is any one of the several sub-regions; The determination module is further configured to determine a second target device ID from the second device ID set, where the second target device ID is associated with the second sub-region; and use the home device to which the second target device ID belongs as the corresponding target home device.
7. The intelligent bedding according to claim 5 or 6, characterized in that, The manner in which the detection module detects the first sub-region touched by the slave earphone is: Detect the touched position of the first sub-region; and determine whether the unique ID of the slave earphone is read in the touched position of the first sub-region by a touch reading method; If so, determine a first reading time point at which the unique ID of the slave earphone is read in the touched position of the first sub-region by a touch reading method; and determine the touch start time point and the touch end time point of the touched position of the first sub-region; determine whether the first reading time point is between the touch start time point and the touch end time point of the touched position of the first sub-region, and if so, determine that the slave earphone touches the first sub-region.
8. The intelligent bedding according to claim 7, characterized in that The manner in which the detection module detects the second sub-region touched by the master earphone is: Detect the touched position of the second sub-region; and, determine whether the unique ID of the main earphone is read in the touched position of the second sub-region by means of touch reading; if so, determine the second reading time point when the unique ID of the main earphone is read in the touched position of the second sub-region by means of touch reading; and, determine the touch start time point of the touched position of the second sub-region and the touch end time point of the touched position of the second sub-region; determine whether the second reading time point is between the touch start time point of the touched position of the second sub-region and the touch end time point of the touched position of the second sub-region, if so, determine that the main earphone touches the second sub-region.
9. An intelligent bedding, characterized in that, The intelligent bedding is configured with a main earphone and a sub-earphone, and the intelligent bedding includes: A memory storing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory and executes the following steps: Obtain an interaction message sent by the main earphone, where the interaction message is a message sent by the main earphone to the intelligent bedding under control when the main earphone is in a first state, the sub-earphone is in a second state, and the main earphone and the sub-earphone are at a certain instant distance value; the interaction message at least includes the instant distance value, the first mapping relationship between the unique ID of the main earphone and the status marker of the first state, and the second mapping relationship between the unique ID of the sub-earphone and the status marker of the second state; According to the first mapping relationship, determine the first state of the main earphone; and, according to the second mapping relationship, determine the second state of the sub-earphone; Based on the first state of the main earphone and the second state of the sub-earphone, determine the corresponding target home device; Determine whether the instant distance value falls within the control distance range corresponding to the target home device; if so, control the target home device; The upper surface area of the intelligent bedding is divided into several sub-regions, and the way for the processor to determine the corresponding target home device based on the first state of the main earphone and the second state of the sub-earphone is: When it is recognized that the first state of the main earphone is the worn state and the second state of the sub-earphone is the non-worn state, recognize the first device ID set corresponding to the unique ID of the sub-earphone; where each device ID in the first device ID set is associated with one of the several sub-regions, and the sub-regions associated with any two device IDs in the first device ID set are different; And, detect the first sub-region touched by the sub-earphone, where the first sub-region is any one of the several sub-regions; And, determine a first target device ID from the first device ID set, where the first target device ID is associated with the first sub-region; And, use the home device to which the first target device ID belongs as the corresponding target home device.
10. The intelligent bedding according to claim 9, characterized in that, The processor also executes the following steps: When it is recognized that the first state of the master earphone is the non-worn state and the second state of the slave earphone is the worn state, identify the second device ID set corresponding to the unique ID of the master earphone; wherein, each device ID in the second device ID set is associated with one of the several sub-regions, and the sub-regions associated with any two device IDs in the second device ID set are different; And, detect the second sub-region touched by the master earphone, the second sub-region being any one of the several sub-regions; And, determine a second target device ID from the second device ID set, the second target device ID being associated with the second sub-region; And, use the home device to which the second target device ID belongs as the corresponding target home device.
11. The intelligent bedding according to claim 9 or 10, characterized in that, The way for the processor to detect the first sub-region touched by the slave earphone is: Detect the touched position of the first sub-region; and, determine whether the unique ID of the slave earphone is read by the touch reading method at the touched position of the first sub-region; If so, determine the first reading time point when the unique ID of the slave earphone is read by the touch reading method at the touched position of the first sub-region; and, determine the touch start time point and the touch end time point of the touched position of the first sub-region; determine whether the first reading time point is between the touch start time point and the touch end time point of the touched position of the first sub-region, if so, determine that the slave earphone touches the first sub-region.
12. The intelligent bedding according to claim 11, wherein The way for the processor to detect the second sub-region touched by the master earphone is: Detect the touched position of the second sub-region; and, determine whether the unique ID of the master earphone is read by the touch reading method at the touched position of the second sub-region; if so, determine the second reading time point when the unique ID of the master earphone is read by the touch reading method at the touched position of the second sub-region; and, determine the touch start time point and the touch end time point of the touched position of the second sub-region; determine whether the second reading time point is between the touch start time point and the touch end time point of the touched position of the second sub-region, if so, determine that the master earphone touches the second sub-region.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps in the home device control method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Intelligent wearable device and control method and system of target device
CN113534715A
Intelligent safety headrest
WO2016173318A1