Disclosure of Invention
In order to solve the technical problems that at night, dangerous behaviors such as collision and the like are likely to occur when a user manually opens a lamp on a traveling route, and user experience is poor, the embodiment of the invention provides an intelligent lighting method, an intelligent lighting device, a server and a storage medium. The specific technical scheme is as follows:
in a first aspect of an embodiment of the present invention, there is provided a smart lighting method, including:
determining a position of the target object within the current region;
determining a force distribution of the target object on a first smart floor at the location;
predicting a travel route of the target object according to the force distribution;
and sending a control instruction to a second intelligent floor on the traveling route so that the second intelligent floor controls the brightness of the lamp in the second intelligent floor control area according to the control instruction.
In an alternative embodiment, the determining the position of the target object in the current region includes:
under the condition of receiving a notification message sent by the intelligent mattress, determining the position of the target object in the current area;
wherein the notification message is used for notifying the server that the target object leaves the intelligent mattress.
In an alternative embodiment, the determining the position of the target object in the current region includes:
determining the current moment;
and if the current time is within a preset time period, determining the position of the target object in the current area.
In an alternative embodiment, the determining the position of the target object in the current region includes:
calling electromagnetic wave equipment to perform electromagnetic wave scanning on the current area;
and calling an electromagnetic wave device to process an echo signal generated by scanning the current area, and determining the position of the target object in the current area.
In an optional embodiment, the notification message includes:
and triggering and sending the target object under the condition that the intelligent mattress determines that the target object leaves the intelligent mattress according to the signal change trend detected by the internal sensor.
In an alternative embodiment, the determining the force distribution of the target object on the first smart floor at the location includes:
and calling a first intelligent floor internal sensor on the position, and determining the force distribution of the target object on the first intelligent floor on the position.
In an optional embodiment, the first intelligent floor controls the brightness of the lamps in the first intelligent floor control area, and the brightness of the lamps in the first intelligent floor control area is greater than the brightness of the lamps in the second intelligent floor control area.
In a second aspect of the embodiments of the present invention, there is also provided a smart lighting device, the device including:
a position determination module for determining a position of the target object within the current area;
a distribution determination module for determining a force distribution of the target object on the first smart floor at the location;
the route prediction module is used for predicting a traveling route of the target object according to the force distribution;
and the brightness control module is used for sending a control instruction to a second intelligent floor on the traveling route so that the second intelligent floor controls the brightness of the lamp in the second intelligent floor control area according to the control instruction.
In a third aspect of the embodiments of the present invention, there is further provided a server, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
a processor, configured to implement the intelligent lighting method according to any one of the first aspect when executing a program stored in the memory.
In a fourth aspect of the embodiments of the present invention, there is also provided a storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the intelligent lighting method according to any one of the first aspects.
In a fifth aspect of the embodiments of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any one of the intelligent lighting methods described above.
According to the technical scheme provided by the embodiment of the invention, the position of the target object in the current area is determined, the force distribution of the first intelligent floor of the target object at the position is determined, the traveling route of the target object is predicted according to the force distribution, and the second intelligent floor on the traveling route controls the brightness of the lamp in the control area of the second intelligent floor according to the control instruction. Therefore, the user does not need to manually open the lamp on the advancing route, dangerous behaviors such as collision are avoided, and the user experience is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
In the embodiment of the present invention, the target object may be a user, and may also be another object, which is not limited in the embodiment of the present invention, and the technical solution provided in the embodiment of the present invention is described below with the target object as the user.
In order to avoid the situation that a user manually opens lamps on a traveling route, dangerous behaviors such as collision are avoided, and user experience is improved, the embodiment of the invention predicts the traveling route of the user according to force distribution by determining the position of the user in a current area, determining the force distribution of a first intelligent floor of the user on the position, and controlling the brightness of the lamps in a control area of a second intelligent floor according to a control instruction by a second intelligent floor on the traveling route.
As shown in fig. 1, an intelligent lighting system according to an embodiment of the present invention is shown, where the intelligent lighting system includes a server, an intelligent mattress, an electromagnetic wave device (e.g., microwave radar), an intelligent floor, and a plurality of lamps, and a connection relationship between the server, the intelligent mattress, the electromagnetic wave device, the intelligent floor, and the plurality of lamps is shown in fig. 1.
Based on the above-mentioned intelligent lighting system, as shown in fig. 2, an implementation flow diagram of an intelligent lighting method provided by the embodiment of the present invention is applied to a server, and the method specifically includes the following steps:
s201, determining the position of the target object in the current area;
when the target object is a user, in order to achieve intelligent lighting, the user does not need to manually open a lamp on the travelling route, dangerous behaviors such as collision are avoided, the user experience is improved, and the position of the user in the current area needs to be determined so as to facilitate subsequent prediction of the travelling route of the user.
The current area may be, for example, an indoor area or an office area, which is not limited in the embodiment of the present invention. For example, for an indoor area, embodiments of the present invention determine the location of a user in the indoor area.
In particular, embodiments of the present invention may determine the location of a user within a current area in the following cases:
1. and determining the position of the target object in the current area under the condition of receiving a notification message sent by the intelligent mattress, wherein the notification message is used for notifying the server-end user that the server-end user leaves the intelligent mattress.
For the intelligent mattress, the body movement information of the user during sleeping can be collected and analyzed according to the signal change trend detected by the internal sensors (such as the pressure sensor and the gravity sensor), so as to determine the sitting-up behavior of the user and the getting-off behavior of the user, and thus, whether the user leaves the intelligent mattress, namely, the getting-off behavior of the user can be determined according to the signal change trend detected by the internal sensors.
And under the condition that the intelligent mattress determines that the user leaves the intelligent mattress according to the signal change trend detected by the internal sensor, triggering and sending a notification message for notifying the server that the user leaves the intelligent mattress. Therefore, for the service end, the intelligent lighting service can be provided for the user.
For a smart mattress, it is also possible to determine from which bedside the user specifically leaves the smart mattress, based on the trend of the signal changes detected by the internal sensors (e.g., pressure sensors and gravity sensors).
Specifically, the intelligent mattress determines the sitting-up behavior of the user according to the signal variation trend detected by the internal sensors (such as the pressure sensor and the gravity sensor), and determines which bedside the user specifically leaves from the intelligent mattress according to the distance from the sitting-up position of the user to the bedside of the intelligent mattress after determining the sitting-up behavior of the user.
For example, the user's sitting position is closest to the smart mattress bedside a, and the user's departure from the smart mattress bedside a may be determined.
2. And determining the current time, and if the current time is within a preset time period, determining the position of the user in the current area.
In the embodiment of the invention, a time period is preset, and the preset time period corresponds to a night time period. The preset time period is different due to different regions and different due to different seasons.
Determining the current time, searching a preset time period corresponding to the current area and the current time, judging whether the current time is within the preset time period, and if the current time is within the preset time period, determining the position of the user in the current area.
For example, the correspondence between the current area and the current time and the preset time period is shown in table 1 below.
TABLE 1
As shown in table 1, the current time 1 is determined, and the time period preset with the indoor time 1 (located in beijing) and the current time 1 is night 6: 00-12: 00. in the morning, 00: 00-6: 00, judging whether the current moment 1 is in the evening 6: 00-12: 00. in the morning, 00: 00-6: 00, if the current time 1 is in evening 6: 00-12: 00. in the morning, 00: 00-6: 00, the user's location in the current area is determined.
3. And under the condition that the notification message sent by the intelligent mattress is received and the current time is within a preset time period, determining the position of the user in the current area.
In the embodiment of the invention, under the condition that the notification message sent by the intelligent mattress is received and the current time is within the preset time period, the current time is at night and the requirement of the user on intelligent lighting exists, the embodiment of the invention can determine the position of the user in the current area, thereby subsequently providing the intelligent lighting service for the user.
Specifically, the server monitors whether a notification message sent by the intelligent mattress is received, determines the current time, judges whether the current time is within a preset time period, and determines the position of the user in the current area under the condition that the notification message sent by the intelligent mattress is received and the current time is within the preset time period.
In the embodiment of the present invention, the specific implementation manner for determining the position of the user in the current area is as follows: calling electromagnetic wave equipment to perform electromagnetic wave scanning on the current area; and calling an electromagnetic wave device to process an echo signal generated by scanning the current area, and determining the position of the target object in the current area.
For the electromagnetic wave device, for example, the device may be a microwave radar, in the embodiment of the present invention, the microwave radar is used to perform microblog scanning on an indoor area, a microwave signal changes after encountering an obstacle, and an echo signal is fed back to the microwave radar, and the microwave radar may receive the echo signal and process the echo signal, so as to determine the position of the user in the indoor area, as shown in fig. 3.
S202, determining the force distribution of the target object on the first intelligent floor at the position;
for a user's location within a current area, embodiments of the present invention determine the force distribution of the first smart floor at the user's location.
Specifically, the embodiment of the invention calls the first intelligent floor internal sensor at the position to determine the force distribution of the first intelligent floor of the user at the position.
The first intelligent floor internal sensor may be, for example, a pressure sensor, and may be a gravity sensor, which is not limited in this embodiment of the present invention.
For example, for the first intelligent floor at position a, as shown in fig. 4, 5 pressure sensors are present inside, and the detected pressure is different due to different foot force distribution of the user;
assuming that the user travels in the direction A, the pressure detected by the pressure sensor in the corresponding direction A is larger, and the pressures detected in the other directions are smaller;
based on the principle, the embodiment of the invention calls the internal pressure sensor or the gravity sensor of the first intelligent floor at the position to determine the force distribution of the first intelligent floor of the user at the position, so that the travelling route of the user can be predicted according to the force distribution of the first intelligent floor of the user at the position.
S203, predicting the traveling route of the target object according to the force distribution;
for the determined force distribution of the first intelligent floor of the user at the position, the embodiment of the invention can predict the travel route of the user according to the force distribution.
For example, the force distribution of the first intelligent floor at the location of the user is shown in fig. 5, and the force distribution of the first intelligent floor at the location of the user points to the direction a, so that the traveling direction of the user can be predicted to be the direction a, and the corresponding predicted traveling route of the user is shown in fig. 4.
S204, sending a control instruction to a second intelligent floor on the travelling route so that the second intelligent floor controls the brightness of the lamp in the control area of the second intelligent floor according to the control instruction.
For the predicted travel route of the user, the embodiment of the present invention may generate a control command to the second smart floor on the travel route.
Therefore, the second intelligent floor can receive the control command and control the brightness of the lamp in the control area of the second intelligent floor according to the control command.
Specifically, the second intelligent floor can control the lamps in the control area of the second intelligent floor to be turned on according to the control instruction, the brightness is low, and the lamps are controlled to operate in a low-light mode.
Meanwhile, the position of the user in the current area controls the brightness of the lamp in the first intelligent floor control area for the first intelligent floor at the position. Therefore, when a user travels to a certain intelligent floor, the corresponding intelligent floor controls the brightness of the lamp in the intelligent floor control area.
It should be noted that, for the brightness of the lamp in the first intelligent floor control area, the brightness of the lamp in the second intelligent floor control area may be greater than the brightness of the lamp in the first intelligent floor control area. Therefore, the brightness of the lamp at the current position of the user is strong, the brightness of the lamp on the advancing route is weak, and the energy can be effectively saved by adopting a weak light mode.
Through the above description of the technical solution provided by the embodiment of the present invention, the position of the target object in the current area is determined, the force distribution of the first intelligent floor of the target object at the position is determined, the traveling route of the target object is predicted according to the force distribution, and the second intelligent floor on the traveling route is made to control the lamp brightness in the second intelligent floor control area according to the control instruction. Therefore, the user does not need to manually open the lamp on the advancing route, dangerous behaviors such as collision are avoided, and the user experience is improved.
Corresponding to the above method embodiment, an embodiment of the present invention further provides an intelligent lighting device, as shown in fig. 6, the intelligent lighting device may include: a location determination module 610, a distribution determination module 620, a route prediction module 630, and a brightness control module 640.
A location determination module 610 for determining a location of the target object within the current region;
a distribution determination module 620 for determining a force distribution of the target object on the first smart floor at the location;
a route prediction module 630, configured to predict a travel route of the target object according to the exertion distribution;
and the brightness control module 640 is configured to send a control instruction to a second intelligent floor on the travel route, so that the second intelligent floor controls the brightness of the lamp in the second intelligent floor control area according to the control instruction.
In a specific implementation manner of the embodiment of the present invention, the position determining module 610 is specifically configured to:
under the condition of receiving a notification message sent by the intelligent mattress, determining the position of the target object in the current area;
wherein the notification message is used for notifying the server that the target object leaves the intelligent mattress.
In a specific implementation manner of the embodiment of the present invention, the position determining module 610 is specifically configured to:
determining the current moment;
and if the current time is within a preset time period, determining the position of the target object in the current area.
In a specific implementation manner of the embodiment of the present invention, the position determining module 610 is specifically configured to:
calling electromagnetic wave equipment to perform electromagnetic wave scanning on the current area;
and calling an electromagnetic wave device to process an echo signal generated by scanning the current area, and determining the position of the target object in the current area.
In a specific implementation manner of the embodiment of the present invention, the notification message includes:
and triggering and sending the target object under the condition that the intelligent mattress determines that the target object leaves the intelligent mattress according to the signal change trend detected by the internal sensor.
In a specific implementation manner of the embodiment of the present invention, the distribution determining module 620 is specifically configured to:
and calling a first intelligent floor internal sensor on the position, and determining the force distribution of the target object on the first intelligent floor on the position.
In a specific implementation manner of the embodiment of the present invention, the first intelligent floor controls the brightness of the lamp in the first intelligent floor control area, and the brightness of the lamp in the first intelligent floor control area is greater than the brightness of the lamp in the second intelligent floor control area.
The embodiment of the present invention further provides a server, as shown in fig. 7, including aprocessor 71, acommunication interface 72, amemory 73 and acommunication bus 74, where theprocessor 71, thecommunication interface 72, and thememory 73 complete mutual communication through thecommunication bus 74,
amemory 73 for storing a computer program;
theprocessor 71, when executing the program stored in thememory 73, implements the following steps:
determining a position of the target object within the current region; determining a force distribution of the target object on a first smart floor at the location; predicting a travel route of the target object according to the force distribution; and sending a control instruction to a second intelligent floor on the traveling route so that the second intelligent floor controls the brightness of the lamp in the second intelligent floor control area according to the control instruction.
The communication bus mentioned in the above server may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the server and other devices.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment of the present invention, there is also provided a storage medium having stored therein instructions, which when run on a computer, cause the computer to execute the intelligent lighting method of any one of the above embodiments.
In yet another embodiment, a computer program product containing instructions is provided, which when run on a computer, causes the computer to perform the intelligent lighting method of any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a storage medium or transmitted from one storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more available media integrated servers, data centers, and the like. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.