Child sleep inducing control method based on electric bed, electric bed and storage medium
By integrating sleep coaxing detection and control modules on the electric bed, and using a remote control to control the electric bed to perform multiple sleep coaxing operations, the problem of the single sleep coaxing function of the existing crib is solved, and intelligent sleep coaxing and efficient sleep for children is achieved.
Patent Information
- Application Number
- CN202411972650.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-18
AI Technical Summary
The existing crib has a single swing function, which cannot effectively coax children to sleep, and is inconvenient to operate.
By integrating the sleep coax detection module and the sleep coax control module on the electric bed, the electric bed is controlled to turn on the sleep coax mode with a remote control, and perform a variety of sleep coax operations including massage and swaying until the user enters a sleep state.
It realizes intelligent sleep coaxing for children, which is simple and convenient to operate, and improves the effect of children falling asleep through various sleep coaxing operations.
Smart Images

Figure CN119847033A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electric beds, and in particular to a method for controlling a child to sleep based on an electric bed, an electric bed and a storage medium. Background Art
[0002] The emergence of rocking cribs has brought more convenience to raising infants and children. Although cribs have a rocking function and can coax infants to sleep, they can only control the entire mattress to rock horizontally, which is a relatively simple method and the effect needs to be improved. Summary of the invention
[0003] The embodiment of the present application discloses a child coaxing to sleep control method based on an electric bed, an electric bed and a storage medium. The electric bed is controlled by a remote controller to realize intelligent coaxing to sleep, which is easy to operate and has a better coaxing effect.
[0004] In a first aspect, the embodiment of the present application discloses a method for controlling a child to sleep based on an electric bed, which may include:
[0005] Detect whether the sleep command sent by the remote control is received;
[0006] After receiving the sleep instruction, the sleep coaxing mode of the electric bed is turned on, and the electric bed is controlled to cyclically execute a first series of sleep coaxing operations and a second series of sleep coaxing operations in the sleep coaxing mode, wherein the first series of sleep coaxing operations realize at least massage and / or rocking effects, and the second series of sleep coaxing operations realize at least massage and / or rocking effects;
[0007] After detecting that the user on the electric bed falls into a sleeping state, the lulling-to-sleep mode is turned off.
[0008] In some feasible implementations, the first series of coaxing-to-sleep operations includes:
[0009] The motor of the electric bed is controlled to operate under a first working parameter within a first preset time period to perform back massage in a fixed frequency mode, and the motor is controlled to operate alternately under a second working parameter and the first working parameter within a second preset time period to achieve the rocking and coaxing effect of the electric bed to sleep. When the motor operates under the first working parameter, the mattress area where the upper body of the user is located is raised to a first height and the mattress area where the legs of the user are located is raised to a second height. When the motor operates under the second working parameter, the mattress area where the upper body of the user is located is raised to the second height and the mattress area where the legs of the user are raised to the first height.
[0010] In some feasible implementations, the second series of coaxing-to-sleep operations includes:
[0011] When the mattress of the electric bed is laid flat, the variable frequency mode is used for back massage and leg massage within a third preset time period, and the fixed frequency mode is used for leg massage under the third working parameters by controlling the motor to operate within a fourth preset time period. The motor operates under the third working parameters to obtain the effect of raising the mattress area where the upper body of the user is located to the first height.
[0012] In some feasible implementations, the method further includes:
[0013] In the process of controlling the electric bed to cyclically execute the first series of coaxing-to-sleep operations and the second series of coaxing-to-sleep operations in the coaxing-to-sleep mode, detecting whether a coaxing-to-sleep closing instruction sent by the remote controller is received;
[0014] If the coaxing to sleep closing instruction is detected, the step of closing the coaxing to sleep mode is executed.
[0015] In some feasible implementations, turning off the coaxing-to-sleep mode includes:
[0016] Controlling the motor of the electric bed to operate under the first operating parameter to obtain an effect that the mattress area where the upper body of the user is located is raised by the first height and the mattress area where the legs of the user are located is raised by the second height;
[0017] During a fifth preset time period, the mattress area where the upper body of the user is located and the mattress area where the legs of the user are located are controlled to be flat.
[0018] In some feasible implementations, after receiving the sleep instruction, the method further includes:
[0019] The electric bed is controlled to send a light adjustment instruction to a table lamp controller on a bedside table, so as to adjust the table lamp to a sleeping light.
[0020] In some feasible implementations, after the coaxing mode is turned on, the method further includes:
[0021] Detecting whether the coaxing-to-sleep mode is associated with a reading mode;
[0022] If yes, sending a reading start instruction to the connected and bound electronic device, so that the electronic device turns on the reading function to read the story in a voice suitable for sleep;
[0023] After detecting that the user on the electric bed enters a sleeping state, the method further includes:
[0024] A reading closing instruction is sent to the electronic device so that the electronic device closes the reading function.
[0025] In a second aspect, an embodiment of the present application discloses an electric bed, which may include:
[0026] The sleep detection module is used to detect whether the sleep command sent by the remote control is received;
[0027] A sleep coaxing control module is used to, after receiving the sleep instruction, turn on the sleep coaxing mode of the electric bed, and control the electric bed to cyclically execute a first series of sleep coaxing operations and a second series of sleep coaxing operations in the sleep coaxing mode; the first series of sleep coaxing operations realize at least massage and / or rocking effects, and the second series of sleep coaxing operations realize at least massage and / or rocking effects;
[0028] The coaxing-to-sleep detection module is further used to turn off the coaxing-to-sleep mode after detecting that the user on the electric bed has entered a sleeping state.
[0029] In a third aspect, an embodiment of the present application discloses an electric bed, which may include:
[0030] A memory storing executable program code;
[0031] a processor coupled to the memory;
[0032] The processor calls the executable program code stored in the memory to execute a child sleeping control method based on an electric bed disclosed in the first aspect of the embodiment of the present application.
[0033] In a fourth aspect, an embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute a child-lulling-to-sleep control method based on an electric bed disclosed in the first aspect of the embodiment of the present application.
[0034] In a fifth aspect, an embodiment of the present application discloses a computer program product. When the computer program product is run on a computer, the computer is enabled to execute part or all of the steps of any one of the methods of the first aspect.
[0035] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0036] In an embodiment of the present application, the electric bed detects whether a sleep command sent by a remote control is received. After receiving the sleep command, the sleep coaxing mode of the electric bed is turned on, and the electric bed is controlled to cyclically execute a first series of sleep coaxing operations and a second series of sleep coaxing operations in the sleep coaxing mode. The first series of sleep coaxing operations achieve at least massage and / or rocking effects, and the second series of sleep coaxing operations achieve at least massage and / or rocking effects. After detecting that the user on the electric bed falls asleep, the sleep coaxing mode is turned off. It can be seen that by implementing the embodiment of the present application, the electric bed can be controlled by a remote control, and the operation is simple and convenient. The electric bed is provided with a sleep coaxing mode. After the sleep coaxing mode is turned on according to the instruction of the remote control, a series of sleep coaxing operations can be performed to coax children to sleep by massaging and / or rocking, and the series of sleep coaxing operations help children fall asleep and improve the sleep coaxing effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A schematic diagram of an application scenario of the method for controlling a child sleeping on an electric bed disclosed in an embodiment of the present application;
[0039] Figure 2 This is a flow chart of a method for controlling a child sleeping on an electric bed according to the first embodiment of the present application;
[0040] Figure 3 This is a flow chart of a method for controlling a child sleeping on an electric bed according to the second embodiment of the present application;
[0041] Figure 4 This is a flow chart of a method for controlling a child sleeping on an electric bed according to Embodiment 3 of the present application;
[0042] Figure 5 This is a schematic diagram of the structure of the electric bed disclosed in Example 1 of the present application;
[0043] Figure 6 This is a schematic diagram of the structure of the electric bed disclosed in Example 2 of the present application. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0045] It should be noted that the terms "first", "second", "third" and "fourth" in the specification and claims of the present application are used to distinguish different objects rather than to describe a specific order. The terms "including" and "having" in the embodiments of the present application and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device including a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0046] First, if Figure 1 As shown, Figure 1 A schematic diagram of an application scenario of the method for controlling a child sleeping on an electric bed disclosed in an embodiment of the present application; Figure 1The application scenario shown includes an electric bed and a remote control, and the electric bed is connected to the remote control. The electric bed includes a mattress, and the mattress includes an upper layer and a lower layer. The lower layer has a built-in controller, a communication module, and a motor. The controller is connected to the communication module and the motor. The electric bed can realize communication connection with the remote control through the communication module. The upper layer includes a number of mattress units. The motor is connected to each mattress unit. Any adjacent mattress units form an area, which can be raised and laid flat under the control of the motor. Each mattress unit has a built-in sensor connected to the controller, such as a pressure sensor, a heart rate sensor, etc. Each mattress unit also has a built-in massager connected to the controller. The electric bed can also control the massager of one or more mattress units through the controller to massage the user. For the massage of the massager, multiple massage modes can be set, such as continuous fixed frequency massage and variable frequency massage, and corresponding gears are also set. The massage strength of different gears is different. The higher the gear, the greater the massage strength. For example, the massage strength corresponding to the second gear is greater than the massage strength of the first gear. The remote control is provided with a power button, a "one-button coaxing to sleep" button, a reading button, a separate swing button, a back massage button, a leg massage button, a fixed frequency massage button, a variable frequency massage button, etc. Among them, pressing the power button once can turn on the intelligent function of the electric bed, and pressing the power button again can turn off the intelligent function of the electric bed. Pressing the "one-button coaxing to sleep" button can turn on the coaxing mode of the electric bed and execute the series of coaxing operations preset on the electric bed. After pressing the reading button, the reading mode of the electric bed is turned on, and the electric bed can be controlled to play a preset story, or the story can be read aloud through the electronic device bound to the electric bed. Pressing the separate rocking button can control the electric bed to rock and coax to sleep. Pressing the back massage button can control the electric bed to only massage the user's back. Pressing the leg massage button can control the electric bed to only massage the user's legs. After pressing the fixed frequency massage button, the electric bed is controlled to use the preset fixed frequency to massage the corresponding parts. After pressing the variable frequency massage button, the electric bed is controlled to use the preset variable frequency to massage the corresponding parts.
[0047] It is understood that the structure disclosed in the embodiment of the present application does not constitute a specific limitation on the electric bed. In other embodiments of the present application, the electric bed may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0048] Therefore, the embodiment of the present application discloses a child coaxing sleep control method based on an electric bed, an electric bed and a storage medium, which are used to coax children to sleep by massaging and / or rocking, and a series of coaxing sleep operations help children fall asleep and provide a coaxing sleep effect. The electric bed can also be controlled by a remote control, and the operation is simple and convenient. The embodiment of the present application is described in detail from the perspective of the electric bed.
[0049] See also Figure 2 , Figure 2 Schematic diagram of the process of the child coaxing sleep control method based on the electric bed disclosed in the first embodiment of the present application; Figure 2 As shown, the child sleeping control method based on the electric bed may include:
[0050] 201. The electric bed detects whether a sleep instruction sent by the remote control is received; when the sleep instruction sent by the remote control is received, steps 202-203 are executed; otherwise, when the sleep instruction is not received, step 201 is continued.
[0051] For example, the electric bed provided in the embodiment of the present application is as follows: Figure 1 introduce.
[0052] The electric bed is communicatively connected with the matching remote controller, and the electric bed detects in real time whether a sleep command sent by the remote controller is received, wherein the sleep command is sent by the remote controller, and correspondingly, in the remote controller, the remote controller generates a sleep command in response to the user pressing the "one-key lull to sleep" button, and then sends it to the electric bed; remote control of the electric bed by the remote controller makes the operation more convenient.
[0053] Optionally, before the electric bed detects whether it has received the sleep command sent by the remote control, it detects whether it has received the power-on command sent by the remote control, and after detecting the power-on command, it turns on the intelligent function of the electric bed. Correspondingly, in the remote control, the remote control generates a power-on command in response to the user pressing the power button, and then sends it to the electric bed; remote control of the electric bed by the remote control makes the operation more convenient.
[0054] 202. The electric bed turns on the sleep-coaxing mode, and controls the electric bed to cyclically execute the first series of sleep-coaxing operations and the second series of sleep-coaxing operations in the sleep-coaxing mode; the first series of sleep-coaxing operations realize at least the effects of massage and / or rocking, and the second series of sleep-coaxing operations realize at least the effects of massage and / or rocking.
[0055] Among them, in step 201, the sleep command can be generated by the remote control in response to the user pressing the "one-key coaxing to sleep" button on the remote control. According to the sleep command, the electric bed will turn on the coaxing to sleep mode, and then execute a series of coaxing to sleep operations corresponding to the coaxing to sleep mode, including a first series of coaxing to sleep operations and a second series of coaxing to sleep operations, wherein the first series of coaxing to sleep operations and the second series of coaxing to sleep operations will be executed in a cycle.
[0056] Preferably, the above-mentioned first series of sleep-coaxing operations include: controlling the motor of the electric bed to operate under the first working parameters for a first preset time period and adopting a fixed frequency mode to perform back massage, and controlling the motor to operate alternately under the second working parameters and the first working parameters for a second preset time period to realize the rocking of the electric bed to coax the user to sleep, the motor operating under the first working parameters to obtain an effect that the mattress area where the upper body of the user is located is raised to a first height and the mattress area where the legs of the user are located is raised to a second height, and the motor operating under the second working parameters to obtain an effect that the mattress area where the upper body of the user is located is raised to a second height and the mattress area where the legs of the user are raised to the first height.
[0057] Among them, the motor is arranged on the lower layer of the mattress of the electric bed, and the motor includes at least two motors, which are a back motor and a leg motor according to their service parts. Exemplarily, the first working parameter is a lifting angle of 15° for the back motor and a lifting angle of 35° for the leg motor, so that the mattress area where the upper body of the user on the mattress of the electric bed is located is raised to a first height, and the mattress area where the legs are located is raised to a second height, and the second height is greater than the first height.
[0058] When the mattress area where the user's upper body is located is raised to a first height and the mattress area where the user's legs are located is raised to a second height, the massager of the electric bed is turned on to continuously massage the user's upper body at a fixed frequency for a first preset time. The massage gear can be the first gear, and the first preset time can be set in advance. For example, the first preset time is 2 minutes.
[0059] The second working parameter is that the back motor raises the angle of 35° and the leg motor raises the angle of 15°, so that the mattress area where the user's upper body is located on the mattress of the electric bed is raised to a second height, and the mattress area where the legs are located is raised to a first height, and the second height is greater than the first height.
[0060] The second preset time length can also be preset, and for example, the second preset time length is 2 minutes. Within the second preset time length, the motor is alternately operated under the first working parameter and the second working parameter. After controlling the frequency of the alternating switch, when the mattress area where the user's upper body is located is raised, the mattress area where the user's legs are located is lowered. Conversely, when the mattress area where the user's upper body is located is lowered, the mattress area where the user's legs are located is raised, thereby coaxing the user to sleep.
[0061] It should be noted that the mattress area where the user's buttocks are located is between the mattress area where the user's upper body is located and the mattress area where the user's legs are located, that is, the mattress area where the user's upper body is located, the mattress area where the user's buttocks are located, and the mattress area where the user's legs are located. In the embodiment of the present application, no operation is performed on the user's buttocks.
[0062] Preferably, the above-mentioned second series of coaxing sleep operations include: when the mattress of the electric bed is laid flat, back massage and leg massage are performed in variable frequency mode within a third preset time period, and leg massage is performed in fixed frequency mode under the third working parameters of the motor is controlled within a fourth preset time period, and the motor operates under the third working parameters to obtain the effect of raising the mattress area where the upper body of the user is located to a first height.
[0063] In step 202, the first series of coaxing sleep operations and the second series of coaxing sleep operations are executed in a cycle. Therefore, when the first series of coaxing sleep operations are executed, the mattress of the electric bed may not be in a flat state. When executing the second series of coaxing sleep operations, the mattress of the electric bed is first flattened, and then the variable frequency mode is used to massage the back and legs. The massage gear can be the first gear by default. After the third preset time of the variable frequency massage, the back motor is controlled to increase the angle by 15°, and the legs are massaged using the fixed frequency mode.
[0064] The third preset time length may be preset. For example, the third preset time length may be 3 minutes.
[0065] When the second series of coaxing operations are executed in a loop, corresponding instructions are sent to the back motor and the leg motor through the controller of the electric bed to restore the back motor and the leg motor to 0 angle, thereby flattening the mattress area where the user's upper body and the user's legs are located.
[0066] When the operation performed is massage, the electric bed sends an opening instruction to the corresponding back massager and / or leg massager through the motor to control the opening of the corresponding massager.
[0067] It can be seen that by realizing the above-mentioned first series of coaxing the user to sleep and the second series of coaxing the user to sleep, the electric bed can not only perform massage to coax the user to sleep, but also can accurately determine the user's position on the mattress when rocking to coax the user to sleep, and distinguish the mattress area where the user's upper body is located and the mattress area where the user's legs are located, and then use the connection point of these two mattress areas as the rocking base point to achieve a small up and down rocking, which is beneficial to improving the rocking effect.
[0068] In some optional embodiments, after receiving the sleep instruction is detected in step 201 and before executing step 202, the electric bed detects the pressure position on the mattress through the pressure sensor built into the mattress unit, thereby determining the position of the user on the mattress. Furthermore, the position of the user on the mattress can be divided into the mattress area where the upper body of the user is located and the mattress area where the legs of the user are located from the position of the user on the mattress by cooperating with an infrared sensor or a camera provided on the electric bed. When determining the position of the user on the mattress according to the pressure situation, the mattress unit is used as the smallest unit. Correspondingly, when dividing the mattress area where the upper body of the user is located and the mattress area where the legs of the user are located, the mattress unit is also used as the smallest unit. Similarly, the mattress area where the user's buttocks are located is also obtained with the mattress unit as the smallest unit.
[0069] Correspondingly, when performing a massage, the controller on the electric bed controls the massagers in the corresponding mattress units to massage the user. For example, when massaging the user's back, the massagers in all mattress units in the mattress area where the user's upper body is located are controlled to massage the user's back.
[0070] 203. After the electric bed detects that the user on the electric bed falls asleep, the coaxing-to-sleep mode is turned off.
[0071] After the user falls asleep, the lull mode can be turned off.
[0072] In some feasible implementations, the electric bed can detect the user's heart rate through a heart rate sensor built into the mattress, and determine whether the user has entered a sleep state by analyzing the heart rate. It can be understood that after the user enters a sleep state, the user's heart rate will be more stable than usual.
[0073] It should be noted that after turning off the coaxing mode, any coaxing operations will stop.
[0074] In implementing the embodiment of the present application, the electric bed detects whether it has received a sleep command sent by the remote control. After receiving the sleep command, the sleep coaxing mode of the electric bed is turned on, and the electric bed is controlled to cyclically execute the first series of sleep coaxing operations and the second series of sleep coaxing operations in the sleep coaxing mode. The first series of sleep coaxing operations achieve at least massage and / or rocking effects, and the second series of sleep coaxing operations achieve at least massage and / or rocking effects. After detecting that the user on the electric bed falls asleep, the sleep coaxing mode is turned off. It can be seen that by implementing the embodiment of the present application, the electric bed can be controlled by the remote control, and the operation is simple and convenient. The electric bed is provided with a sleep coaxing mode. After the sleep coaxing mode is turned on according to the instruction of the remote control, a series of sleep coaxing operations can be performed to coax children to sleep by massaging and / or rocking, and the series of sleep coaxing operations help children fall asleep and improve the sleep coaxing effect.
[0075] Furthermore, during the process of coaxing the user to sleep, the electric bed can determine the user's upper body and legs, and only control the massagers corresponding to the user's back and legs to perform massage. In addition, the mattress area where the user's upper body is located and the mattress area where the user's legs are located can swing up and down, thereby coaxing the user to sleep, which is conducive to improving the effect of coaxing the user to sleep.
[0076] See also Figure 3 , Figure 3 Schematic diagram of the flow of the child coaxing sleep control method based on the electric bed disclosed in the second embodiment of the present application; Figure 3 As shown, the child sleeping control method based on the electric bed may include:
[0077] 301. The electric bed detects whether a sleep command sent by the remote control is received; when a sleep command sent by the remote control is received, steps 302-303 are executed, and step 304 is synchronously turned to be executed. Otherwise, when the sleep command is not received, step 301 is continued to be executed.
[0078] For example, the electric bed provided in the embodiment of the present application is as follows: Figure 1 introduce.
[0079] The electric bed is communicatively connected with the matching remote controller, and the electric bed detects in real time whether a sleep command sent by the remote controller is received, wherein the sleep command is sent by the remote controller, and correspondingly, in the remote controller, the remote controller generates a sleep command in response to the user pressing the "one-key lull to sleep" button, and then sends it to the electric bed; remote control of the electric bed by the remote controller makes the operation more convenient.
[0080] 302. The electric bed turns on the sleep-coaxing mode, and controls the electric bed to cyclically execute the first series of sleep-coaxing operations and the second series of sleep-coaxing operations in the sleep-coaxing mode; the first series of sleep-coaxing operations realize at least the effects of massage and / or rocking, and the second series of sleep-coaxing operations realize at least the effects of massage and / or rocking.
[0081] Optionally, during the process of controlling the electric bed to cyclically execute the first series of coaxing sleep operations and the second series of coaxing sleep operations in the coaxing sleep mode executed in step 2, it is detected whether a coaxing sleep off instruction sent by the remote control is received; if the coaxing sleep off instruction is detected, the step of shutting down the coaxing sleep mode is executed. It is understandable that during the execution of the coaxing sleep operation, if a coaxing sleep off instruction sent by the remote control is detected, the coaxing sleep mode can be directly shut down, that is, during the execution of the coaxing sleep operation, the user can shut down the coaxing sleep operation at any time through the remote control.
[0082] Optionally, after sending the sleep command, if the remote control detects that the user presses a separate rocking button, or a back massage button, or a leg massage button, or a fixed frequency massage button, or a variable frequency massage button, it sends a corresponding control instruction to the electric bed. Therefore, step 302 of the electric bed may include: after the electric bed receives the corresponding control instruction, the electric bed controls the electric bed to perform a corresponding operation. For example, after receiving the separate rocking button, the electric bed detects the pressure position through the pressure sensor built into the mattress, determines the user's upper body, the user's buttocks and the user's legs according to the pressure position, and then controls the mattress area where the user's upper body is located to rock up and down, and controls the mattress area where the user's legs are located to rock up and down.
[0083] 303. The electric bed controls the motor to operate under the first working parameters to obtain an effect that the mattress area where the user's upper body is located is raised to a first height and the mattress area where the user's legs are located is raised to a second height, and controls the mattress area where the user's upper body is located and the mattress area where the user's legs are located to be flat within a fifth preset time period.
[0084] Among them, turning off the coaxing mode includes the above-mentioned step 303. First, the motor is controlled to work under the first working parameter to obtain the effect that the mattress area where the user's upper body is located is raised to a first height and the mattress area where the user's legs are located is raised to a second height. Exemplarily, the first working parameter is a back motor raising angle of 15° and a leg motor raising angle of 35°, so that the mattress area where the user's upper body is located on the mattress of the electric bed is raised to a first height, and the mattress area where the legs are located is raised to a second height, and the second height is greater than the first height.
[0085] Then, within the fifth preset time period, the mattress area where the user's upper body is located is slowly flattened first, and then the mattress area where the user's legs are located is slowly flattened, so as to achieve a state of slowly laying the user flat, avoiding laying the user flat all at once and waking the user up.
[0086] Optionally, the fifth preset time length may be pre-set, and illustratively, the fifth preset time length may be 5 minutes.
[0087] 304. The electric bed sends a light adjustment instruction to the table lamp controller on the bedside table to adjust the table lamp to a sleeping light.
[0088] In an embodiment of the present application, the electric bed is connected to a desk lamp controller on a bedside table, and after receiving a sleep instruction, a light adjustment instruction is sent to the desk lamp controller, and then the desk lamp is adjusted to a sleep light. Optionally, controlling the desk lamp to be adjusted to a sleep light includes: if the desk lamp is not turned on, when the desk lamp is connected to a power source, turning on the desk lamp and setting it to a sleep light; if the desk lamp is turned on, switching the desk lamp from the current light mode to the sleep light, so that the soft light is more conducive to the user falling asleep and accelerating the sleep speed.
[0089] In implementing the embodiment of the present application, the electric bed detects whether it has received a sleep command sent by the remote control. After receiving the sleep command, the sleep coaxing mode of the electric bed is turned on, and the electric bed is controlled to cyclically execute the first series of sleep coaxing operations and the second series of sleep coaxing operations in the sleep coaxing mode. The first series of sleep coaxing operations achieve at least massage and / or rocking effects, and the second series of sleep coaxing operations achieve at least massage and / or rocking effects. After detecting that the user on the electric bed falls asleep, the sleep coaxing mode is turned off. It can be seen that by implementing the embodiment of the present application, the electric bed can be controlled by the remote control, and the operation is simple and convenient. The electric bed is provided with a sleep coaxing mode. After the sleep coaxing mode is turned on according to the instruction of the remote control, a series of sleep coaxing operations can be performed to coax children to sleep by massaging and / or rocking, and the series of sleep coaxing operations help children fall asleep and improve the sleep coaxing effect.
[0090] Furthermore, during the process of coaxing the user to sleep, the electric bed can determine the user's upper body and legs, and only control the massagers corresponding to the user's upper body and legs to perform massage. In addition, the mattress area where the user's upper body is located can swing up and down, and the mattress area where the user's legs are located can swing up and down, and the two can be realized alternately up and down, thereby coaxing the user to sleep, which is conducive to improving the effect of coaxing the user to sleep.
[0091] See also Figure 4 , Figure 4 Schematic diagram of the process of the child coaxing sleep control method based on the electric bed disclosed in the third embodiment of the present application; Figure 4 As shown, the child sleeping control method based on the electric bed may include:
[0092] 401. The electric bed detects whether a sleep instruction sent by a remote controller is received; steps 402-404 are executed. Otherwise, when the sleep instruction is not received, step 401 is continued.
[0093] For example, the electric bed provided in the embodiment of the present application is as follows: Figure 1 introduce.
[0094] The electric bed is communicatively connected with the matching remote controller, and the electric bed detects in real time whether a sleep command sent by the remote controller is received, wherein the sleep command is sent by the remote controller, and correspondingly, in the remote controller, the remote controller generates a sleep command in response to the user pressing the "one-key lull to sleep" button, and then sends it to the electric bed; remote control of the electric bed by the remote controller makes the operation more convenient.
[0095] 402. The electric bed turns on the sleep-lubricating mode.
[0096] After executing step 402, steps 403-404 may be executed, and steps 405-406 may also be executed synchronously.
[0097] 403. In the sleep-coaxing mode, the electric bed controls the electric bed to cyclically execute the first series of sleep-coaxing operations and the second series of sleep-coaxing operations in the sleep-coaxing mode; the first series of sleep-coaxing operations realize at least the effects of massage and / or rocking, and the second series of sleep-coaxing operations realize at least the effects of massage and / or rocking.
[0098] 404. The electric bed controls the motor to operate under the first working parameters to obtain an effect that the mattress area where the user's upper body is located is raised to a first height and the mattress area where the user's legs are located is raised to a second height, and controls the mattress area where the user's upper body is located and the mattress area where the user's legs are located to be flat within a fifth preset time period.
[0099] 405. The electric bed detects whether the coaxing mode is associated with the reading mode; if so, execute step 406; if not, do nothing.
[0100] 406. The electric bed sends a reading start instruction to the connected electronic device, so that the electronic device turns on the reading function and reads the story in a voice suitable for sleep.
[0101] Among them, the electric bed is provided with a reading mode, which can be a separate function or associated with the sleep-coaxing mode. If the sleep-coaxing mode is associated with the reading mode, then after the sleep-coaxing mode is turned on, a reading start instruction is also sent to the connected electronic device. The reading function is turned on by the electronic device to read stories in a voice suitable for sleep. It can be combined with bedtime stories to help increase the speed of falling asleep, improve the quality of sleep, and achieve effective sleep coaxing.
[0102] Optionally, after receiving the lulling-to-sleep instruction, if the electric bed also receives a reading instruction, it can also turn on the reading mode separately and send a reading start instruction to the electronic device, so that the electronic device turns on the reading function and reads stories in a voice suitable for sleep.
[0103] In some feasible implementations, step 406 may include: the electric bed plays a preset story; in this implementation, the story audio may be built into the electric bed, and after detecting that the reading mode is turned on, the preset story audio will be automatically played in sequence to improve sleep quality and effectively coax people to sleep.
[0104] Furthermore, when the electric bed plays a story by itself or an electronic device reads a story, the electric bed will turn off the reading mode or send a reading shutdown instruction to the electronic device after detecting that the user on the electric bed falls asleep, so that the electronic device turns off the reading function.
[0105] In the above implementation, after the user enters a sleeping state, the reading mode can be turned off to provide a quiet environment for the user to rest.
[0106] In implementing the embodiment of the present application, the electric bed detects whether it has received a sleep command sent by the remote control. After receiving the sleep command, the sleep coaxing mode of the electric bed is turned on, and the electric bed is controlled to cyclically execute the first series of sleep coaxing operations and the second series of sleep coaxing operations in the sleep coaxing mode. The first series of sleep coaxing operations achieve at least massage and / or rocking effects, and the second series of sleep coaxing operations achieve at least massage and / or rocking effects. After detecting that the user on the electric bed falls asleep, the sleep coaxing mode is turned off. It can be seen that by implementing the embodiment of the present application, the electric bed can be controlled by the remote control, and the operation is simple and convenient. The electric bed is provided with a sleep coaxing mode. After the sleep coaxing mode is turned on according to the instruction of the remote control, a series of sleep coaxing operations can be performed to coax children to sleep by massaging and / or rocking, and the series of sleep coaxing operations help children fall asleep and improve the sleep coaxing effect.
[0107] Furthermore, during the process of coaxing the user to sleep, the electric bed can determine the user's upper body and legs, and only control the massagers corresponding to the user's back and legs to perform massage. Moreover, the mattress area where the user's upper body is located and the mattress area where the user's legs are located can be swung up and down, thereby coaxing the user to sleep, which is conducive to improving the effect of coaxing the user to sleep.
[0108] Furthermore, during the process of coaxing a child to sleep, story audio can be used, which can not only provide knowledge enlightenment, but also help users fall asleep faster, improve sleep quality, and improve the effect of coaxing the child to sleep.
[0109] See also Figure 5 , Figure 5 Schematic diagram of the structure of the electric bed disclosed in Example 1 of the present application; Figure 5 As shown, the electric bed may include:
[0110] The sleep coaxing detection module 501 is used to detect whether a sleep instruction sent by the remote controller is received;
[0111] The sleep coaxing control module 502 is used to start the sleep coaxing mode of the electric bed after receiving the sleep instruction, and control the electric bed to cyclically execute the first series of sleep coaxing operations and the second series of sleep coaxing operations in the sleep coaxing mode; the first series of sleep coaxing operations realize at least massage and / or rocking effects, and the second series of sleep coaxing operations realize at least massage and / or rocking effects;
[0112] The coaxing-to-sleep detection module 501 is further used to turn off the coaxing-to-sleep mode after detecting that the user on the electric bed has entered a sleeping state.
[0113] When implementing the above-mentioned electric bed, the coaxing sleep detection module 501 detects whether a sleep instruction sent by the remote control is received. After receiving the sleep instruction, the coaxing sleep mode of the electric bed is turned on. The coaxing sleep control module 502 controls the electric bed to cyclically execute the first series of coaxing sleep operations and the second series of coaxing sleep operations in the coaxing sleep mode. The first series of coaxing sleep operations achieve at least massage and / or rocking effects, and the second series of coaxing sleep operations achieve at least massage and / or rocking effects. The coaxing sleep detection module 501 turns off the coaxing sleep mode after detecting that the user on the electric bed enters a sleep state. It can be seen that by implementing the embodiments of the present application, the electric bed can be controlled by a remote control, and the operation is simple and convenient. The electric bed is provided with a coaxing sleep mode. After the coaxing sleep mode is turned on according to the instruction of the remote control, a series of coaxing sleep operations can be performed to coax children to sleep by massaging and / or rocking, and the series of coaxing sleep operations help children fall asleep and improve the coaxing sleep effect.
[0114] Optionally, the first series of coaxing sleep operations include:
[0115] The motor of the electric bed is controlled to operate under a first working parameter within a first preset time period to perform back massage in a fixed frequency mode, and the motor is controlled to operate alternately under a second working parameter and the first working parameter within a second preset time period to achieve the rocking and coaxing effect of the electric bed to sleep. When the motor operates under the first working parameter, the mattress area where the upper body of the user is located is raised to a first height and the mattress area where the legs of the user are located is raised to a second height. When the motor operates under the second working parameter, the mattress area where the upper body of the user is located is raised to the second height and the mattress area where the legs of the user are raised to the first height.
[0116] Alternatively, the second series of coaxing-to-sleep operations may include:
[0117] When the mattress of the electric bed is laid flat, the variable frequency mode is used for back massage and leg massage within a third preset time period, and the fixed frequency mode is used for leg massage under the third working parameters by controlling the motor to operate within a fourth preset time period. The motor operates under the third working parameters to obtain the effect of raising the mattress area where the upper body of the user is located to the first height.
[0118] In some feasible implementations, the above-mentioned coaxing sleep detection module 501 is also used to detect whether the coaxing sleep shutdown instruction sent by the remote control is received during the process of controlling the electric bed to cyclically execute the first series of coaxing sleep operations and the second series of coaxing sleep operations in the coaxing sleep mode; and if the coaxing sleep shutdown instruction is detected, execute the step of closing the coaxing sleep mode.
[0119] In some feasible implementations, the above-mentioned coaxing sleep detection module 501 is used to turn off the coaxing sleep mode in the following specific ways:
[0120] The motor of the electric bed is controlled to operate under the first operating parameter to obtain the effect that the mattress area where the user's upper body is located is raised to the first height and the mattress area where the user's legs are located is raised to the second height; and the mattress area where the user's upper body is located is controlled to be flat and the mattress area where the user's legs are located is controlled to be flat within a fifth preset time.
[0121] Optionally, the above-mentioned coaxing to sleep detection module 501 is also used to control the electric bed to send a light adjustment instruction to the table lamp controller on the bedside table after receiving the sleep instruction, so as to control the table lamp to be adjusted to a sleep light.
[0122] Optionally, the sleep coaxing detection module 501 is further used to detect whether the sleep coaxing mode is associated with a reading mode after the sleep coaxing mode is turned on; if so, send a reading start instruction to the connected and bound electronic device, so that the electronic device turns on the reading function to read stories in a voice suitable for sleep;
[0123] Furthermore, the above-mentioned coaxing-to-sleep detection module 501 is also used to send a reading shutdown instruction to the electronic device after detecting that the user on the electric bed enters a sleeping state, so that the electronic device turns off the reading function.
[0124] Therefore, during the process of coaxing a child to sleep, story audio can be used, which can not only provide knowledge enlightenment, but also help users fall asleep faster, improve sleep quality, and improve the effect of coaxing the child to sleep.
[0125] See also Figure 6 , Figure 6 Schematic diagram of the structure of the electric bed disclosed in the second embodiment of the present application; Figure 6 As shown, the electric bed may include:
[0126] A memory 601 storing a computer program;
[0127] a processor 602 coupled to the memory;
[0128] The processor calls the computer program stored in the memory to execute Figures 2 to 4 Any partial or complete steps of a method for controlling a child's sleep based on an electric bed.
[0129] The present application also discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute Figures 2 to 4 A method for controlling the lulling of children to sleep based on an electric bed is disclosed.
[0130] The present application also discloses a computer program product, which, when executed on a computer, enables the computer to execute Figures 2 to 4 Part or all of the steps of any disclosed method.
[0131] The embodiment of the present application also discloses an application publishing platform, which is used to publish a computer program product, wherein when the computer program product is run on a computer, the computer executes Figures 2 to 4 Part or all of the steps of any disclosed method.
[0132] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0133] The above is a detailed introduction to a child sleeping control method based on an electric bed, an electric bed and a storage medium disclosed in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for coaxing children to sleep based on an electric bed, characterized in that: include: Detect whether the sleep command sent by the remote control is received; After receiving the sleep instruction, the sleep coaxing mode of the electric bed is turned on, and the electric bed is controlled to cyclically execute a first series of sleep coaxing operations and a second series of sleep coaxing operations in the sleep coaxing mode; the first series of sleep coaxing operations realize at least massage and / or rocking effects, and the second series of sleep coaxing operations realize at least massage and / or rocking effects; After detecting that the user on the electric bed falls into a sleeping state, the lulling-to-sleep mode is turned off.
2. The method according to claim 1, characterized in that The first series of sleep-to-sleep operations include: The motor of the electric bed is controlled to operate under a first working parameter within a first preset time period to perform back massage in a fixed frequency mode, and the motor is controlled to operate alternately under a second working parameter and the first working parameter within a second preset time period to achieve the rocking and coaxing effect of the electric bed to sleep. When the motor operates under the first working parameter, the mattress area where the upper body of the user is located is raised to a first height and the mattress area where the legs of the user are located is raised to a second height. When the motor operates under the second working parameter, the mattress area where the upper body of the user is located is raised to the second height and the mattress area where the legs of the user are raised to the first height.
3. The method according to claim 2, characterized in that The second series of sleep-to-sleep operations include: When the mattress of the electric bed is laid flat, the variable frequency mode is used for back massage and leg massage within a third preset time period, and the fixed frequency mode is used for leg massage under the third working parameters by controlling the motor to operate within a fourth preset time period. The motor operates under the third working parameters to obtain the effect of raising the mattress area where the upper body of the user is located to the first height.
4. The method according to claim 3, characterized in that The method further comprises: In the process of controlling the electric bed to cyclically execute the first series of coaxing-to-sleep operations and the second series of coaxing-to-sleep operations in the coaxing-to-sleep mode, detecting whether a coaxing-to-sleep closing instruction sent by the remote controller is received; If the coaxing to sleep closing instruction is detected, the step of closing the coaxing to sleep mode is executed.
5. The method according to claim 4, characterized in that The step of turning off the coaxing-to-sleep mode comprises: Controlling the motor of the electric bed to operate under the first operating parameter to obtain an effect that the mattress area where the upper body of the user is located is raised by the first height and the mattress area where the legs of the user are located is raised by the second height; During a fifth preset time period, the mattress area where the upper body of the user is located and the mattress area where the legs of the user are located are controlled to be flat.
6. The method according to any one of claims 1 to 5, characterized in that: After receiving the sleep instruction, the method further includes: The electric bed is controlled to send a light adjustment instruction to a table lamp controller on a bedside table, so as to adjust the table lamp to a sleeping light.
7. The method according to any one of claims 1 to 5, characterized in that: After the coaxing mode is turned on, the method further includes: Detecting whether the coaxing-to-sleep mode is associated with a reading mode; If yes, sending a reading start instruction to the connected and bound electronic device, so that the electronic device turns on the reading function to read the story in a voice suitable for sleep; After detecting that the user on the electric bed enters a sleeping state, the method further includes: A reading closing instruction is sent to the electronic device so that the electronic device closes the reading function.
8. An electric bed, characterized in that: include: The sleep detection module is used to detect whether the sleep command sent by the remote control is received; A sleep coaxing control module is used to, after receiving the sleep instruction, turn on the sleep coaxing mode of the electric bed, and control the electric bed to cyclically execute a first series of sleep coaxing operations and a second series of sleep coaxing operations in the sleep coaxing mode; the first series of sleep coaxing operations realize at least massage and / or rocking effects, and the second series of sleep coaxing operations realize at least massage and / or rocking effects; The coaxing-to-sleep detection module is further used to turn off the coaxing-to-sleep mode after detecting that the user on the electric bed has entered a sleeping state.
9. An electric bed, characterized in that: include: a memory storing a computer program; a processor coupled to the memory; The processor calls the computer program stored in the memory to execute the child sleeping control method based on an electric bed as described in any one of claims 1-7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.