A remote control method and server suitable for multiple terminals
The server automatically identifies and sends remote control instructions, records user operations and associates scene trigger conditions, which solves the problem of cumbersome home terminal control in the existing technology, realizes convenient multi-terminal linkage control, and improves the user experience.
Patent Information
- Application Number
- CN202410926809.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-11
AI Technical Summary
Existing remote control methods are cumbersome to operate when controlling home terminals. Users need to frequently turn on their mobile phones to select devices, making it difficult to achieve convenient multi-terminal linkage control.
The server responds to user remote control commands, automatically identifies and sends control signals, records user operations and associates scene trigger conditions to achieve one-click multi-terminal linkage control.
It simplifies the user operation process, improves the convenience and intelligence of home terminal control, reduces repeated operations, and improves the user experience.
Smart Images

Figure CN118487887B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of digital information transmission, and in particular to a remote control method and server applicable to multiple terminals. Background Art
[0002] With the development of science and technology, more and more people are using remote-controlled automatic smart homes, such as electric curtains, remote-controlled lamps, etc. These homes are often equipped with special remote controls. In addition, with the increase of air conditioners, TVs, projectors, etc., the number of remote controls at home is increasing, and it is often difficult to find or misplace the remote controls, making home terminal control inconvenient.
[0003] In the related technology, the home terminal can be interconnected with the mobile phone through infrared matching and WIFI networking, and the corresponding terminal can be controlled through a specific application on the mobile phone.
[0004] However, the remote control method in the related art requires turning on the mobile phone and selecting a specific home terminal device before controlling it, which is cumbersome. In addition, when the user needs to control multiple devices in a short period of time, such as turning on the projector, turning on the air conditioner, and turning off the electric curtains and lights, the operation process is even more cumbersome, and the user's control experience of multiple home terminals is poor. Summary of the invention
[0005] The present application provides a remote control method and server applicable to multiple terminals, which are used to simplify the process of users controlling home terminals and enhance the user's control experience of home terminals.
[0006] In a first aspect, the present application provides a remote control method applicable to multiple terminals, which is applied to a server, and the server is communicatively connected with multiple home terminals in a target area. The method includes: in response to a first remote control instruction issued by a user using a remote control device, determining a first target home terminal pointed to by the remote control device, and sending a first home control signal to the first target home terminal; within a preset time period after a starting time node, if it is detected that the user uses the remote control device to issue a second remote control instruction, determining a second target home terminal pointed to by the remote control device; the starting time node is the first time of sending the first home control signal; sending a second home control signal to the second target home terminal, and updating the starting time node to the second time of sending the second home control signal; storing The first home control object and the second home control object are stored as a target control set, and according to the time data, environmental parameters and personnel status of the target area, the use scenario of the target control set is determined based on the scenario inference model, and the target trigger condition is matched for the use scenario; the first home control object includes a first home control signal and a first target home terminal; the second home control object includes a second home control signal and a second target home terminal; when it is detected that the user uses the remote control device again to issue the first remote control instruction, it is detected whether the current real-time time data, real-time environmental parameters and real-time personnel status meet the target trigger condition; if so, based on the multiple home control objects in the target control set, multiple home control signals are sent to the corresponding multiple target home terminals.
[0007] In the above embodiment, within a short period of time when the user uses the remote control device to issue the first and second remote control instructions, the server successively determines the first and second target home terminals pointed to by the remote control device, and sends corresponding home control signals respectively, and then stores the two control operations as a target control set, and determines the triggering conditions of the control set. When the user issues the first remote control instruction again, the server can detect whether the current conditions meet the triggering conditions. If so, it can send multiple control signals to multiple target home terminals at one time based on the previously stored target control set. This method simplifies the operation process of users frequently remotely controlling multiple home terminals. Through two or more remote control operations in a short period of time, the server can learn and record the user's control intentions, and can subsequently trigger the linkage of multiple home terminals with one click, greatly improving the user's control experience of smart homes.
[0008] In combination with some embodiments of the first aspect, in some embodiments, the first home control object and the second home control object are stored as a target control set, and according to the time data, environmental parameters and personnel status of the target area, the usage scenario of the target control set is determined based on the scene inference model, and the target trigger condition is matched for the usage scenario, specifically including: storing the first home control object and the second home control object as a target control set; obtaining the temperature, humidity and light intensity detected in real time by the environmental sensors in the target area as environmental parameters; detecting the position and posture of the personnel in the target area in real time by parsing the image data and video data captured in real time by the home cameras in the target area to obtain the personnel status; obtaining the real-time system time as time data; inputting the time data, environmental parameters and personnel status into the preset scene inference model to obtain the scene name and target trigger condition of the target control set.
[0009] In the above embodiment, after recording the user's continuous remote control operations on multiple home terminals, the server will obtain the time, environmental parameters, user's location and posture information through environmental sensors, cameras, etc., and input these scenario data into the pre-trained inference model to automatically determine and generate the scene name and specific trigger conditions applicable to the target control set. This method of understanding the semantics of user behavior and abstracting control scenarios through multimodal data perception and machine learning algorithms gives remote control data records more semantic attribute tags, establishes a dynamic association between control logic and physical environment, time and user status, so that signal control can be automatically triggered when relevant conditions meet the target trigger conditions, making home control more intelligent and situational.
[0010] In combination with some embodiments of the first aspect, in some embodiments, after obtaining the real-time system time as time data, and inputting the time data, environmental parameters and personnel status into a preset scene inference model to obtain the scene name and target trigger condition of the target control set, the method also includes: obtaining multiple groups of target control sets of multiple users at a preset period; classifying the target control sets with the same scene name in the multiple groups of target control sets as the same shared scene, and determining the shared scene name and the corresponding shared control set of the shared scene; determining multiple target trigger conditions of the multiple target control sets contained in the shared scene, and determining the shared trigger conditions of the shared scene based on the numerical range of the multiple target trigger conditions; when it is detected that the current real-time time data, real-time environmental parameters and real-time personnel status meet the shared trigger conditions, sending multiple home control signals in the shared control set to the corresponding multiple target home terminals.
[0011] In the above embodiment, the server can not only learn the remote control preferences of a single user, but also periodically collect the control records of multiple users, find commonalities through cluster analysis, merge multiple control sets of different users in similar scenarios into shared scenarios, extract unified trigger conditions, and form a group knowledge base. When a new user appears or a user enters an unfamiliar environment, the server can directly recommend an applicable shared control set based on the current scenario, allowing the user to instantly obtain the best operation reference. This method of automatically mining common laws and extracting generalized control strategies from user groups allows personal experience to be shared with other users at a low cost, balances personalization and versatility, and improves the social level of smart home interaction.
[0012] In combination with some embodiments of the first aspect, in some embodiments, in response to a first remote control instruction issued by a user using a remote control device, a first target home terminal pointed to by the remote control device is determined, and a first home control signal is sent to the first target home terminal, specifically including: in response to the first remote control instruction issued by the user using the remote control device, first remote control position information, first remote control direction information and first remote control angle information of the remote control device are determined; the first target home terminal pointed to by the remote control device is calculated based on the terminal position information, first remote control position information, first remote control direction information and first remote control angle information of multiple home terminals; the first target home terminal is one of the multiple home terminals; the first home control signal is determined based on the first remote control instruction and a preset coding library of the first target home terminal; and the first home control signal is sent to the first target home terminal so that the first target home terminal executes the first remote control instruction.
[0013] In the above embodiment, the server first obtains the position, direction, angle and other information of the remote control device, and then determines the target home terminal that the remote control device actually points to by calculation in combination with the position information of multiple home terminals obtained in advance, and then generates a specific home control signal according to the remote control command type and the control code of the target home terminal and sends it to the target home terminal. This method of determining the target home terminal utilizes the real-time posture information of the remote control device and the spatial position information of the home terminal, and can accurately match them through geometric calculations without the user having to manually select the target, making the entire control process more natural and convenient.
[0014] In combination with some embodiments of the first aspect, in some embodiments, before the step of determining the first remote control position information, first remote control direction information and first remote control angle information of the remote control device in response to a first remote control command issued by the user using the remote control device, the method also includes: determining the image positions of multiple home terminals based on the first area image taken by the user and the second area image captured by the server through the home camera; the first area image and the second area image are images within the target area; establishing a three-dimensional model of the target area, and determining the terminal position information of the multiple home terminals within the three-dimensional model based on the image positions.
[0015] In the above embodiment, the server identifies the positions of multiple home terminals in the image through the target area image uploaded by the user and the image automatically captured by the home camera, and builds a three-dimensional model of the target area based on this, and marks the specific coordinate position of each terminal in the three-dimensional model. This method of automatically calibrating the position of the home terminal through image recognition eliminates the tedious process of manual input or measurement by the user, obtains spatial information through the way of user-uploaded images and camera shooting, and constructs a three-dimensional space model, laying a data foundation for subsequent remote control pointing to the home terminal, and has strong intelligent and automated characteristics.
[0016] In combination with some embodiments of the first aspect, in some embodiments, the first target home terminal pointed to by the remote control device is calculated based on the terminal location information, first remote control location information, first remote control direction information and first remote control angle information of multiple home terminals, specifically including: calculating the first pointing area of the remote control device based on the first remote control location information, the first remote control direction information and the first remote control angle information; determining the candidate home terminals located in the first pointing area based on the terminal location information of the multiple home terminals communicating; when there are multiple candidate home terminals, obtaining the historical control records and user preference data associated with each candidate home terminal; and prioritizing the candidate home terminals based on the historical control records and user preference data, and determining the candidate home terminal ranked first as the first target home terminal.
[0017] In the above embodiment, the server first calculates a rough pointing area based on the position, direction and angle of the remote control device, and then screens out the candidate home terminals located in the area. When there are multiple candidate terminals, the historical control records and user preference data of each terminal are further obtained, and the priority of the candidate terminals is calculated and sorted accordingly, and the terminal with the highest priority is determined as the target of this remote control. This method of optimizing the target by superimposing historical data and user preferences in the time dimension on the basis of spatial position matching fully considers the user's usage habits and tendencies for different home terminals, and selects the terminal that best meets the user's intention as the remote control object through data-driven intelligent decision-making, which has better personalized adaptation capabilities and control accuracy.
[0018] In combination with some embodiments of the first aspect, in some embodiments, after the step of prioritizing the candidate home terminals according to historical control records and user preference data and determining the candidate home terminal ranked first as the first target home terminal, the method also includes: sending preset identity data of multiple candidate home terminals to the remote control device, so that the remote control device displays multiple icon controls related to the multiple candidate home terminals; monitoring the user's selection and switching operations on the remote control device for the multiple icon controls, determining the icon selection result, and switching the first target home terminal to the candidate home terminal corresponding to the icon selection result.
[0019] In the above embodiment, after completing the intelligent selection of the target home terminal, the server will also send the identity information of multiple candidate terminals in the remote control pointing area to the remote control device, and display it in an icon-based manner on the device interface. In this way, the user can intuitively see which target terminals are currently available for selection, and can manually switch the control object by clicking on the icon. This method provides the user with a visual manual intervention mechanism when necessary, so that while intelligent automatic control is performed, the flexibility of manual fine-tuning is also retained, allowing the user to modify the remote control target according to actual needs, thereby enhancing the friendliness and controllability of human-computer interaction.
[0020] In a second aspect, an embodiment of the present application provides a server, comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the server to execute the method described in the first aspect and any possible implementation method of the first aspect.
[0021] In a third aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a server, enables the server to execute the method described in the first aspect and any possible implementation of the first aspect.
[0022] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a server, enable the server to execute the method described in the first aspect and any possible implementation of the first aspect.
[0023] It is understandable that the server provided in the second aspect, the computer program product provided in the third aspect, and the computer storage medium provided in the fourth aspect are all used to execute the method provided in the embodiment of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here.
[0024] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0025] 1. Since the server responds to the user's remote control command, automatically identifies the target home terminal pointed by the remote control device and sends a control signal, there is no need for the user to manually select the operation object, which greatly simplifies the control process and effectively solves the cumbersome problem in the prior art that the user needs to wake up the terminal first and then open the control interface to operate one by one, thereby realizing a new experience of one-step remote control of home terminals. At the same time, by automatically recording the control objects and parameters and associating the scene trigger conditions when the user continuously controls multiple home terminals, the previous control combination can be executed with one click under the same conditions. This not only meets the user's actual needs for batch control of multiple homes in the same scene, but also further reduces repeated operations, making home control more convenient and efficient.
[0026] 2. Since the server uses environmental sensors to obtain parameters such as temperature and humidity in real time, uses cameras to analyze the position and posture of personnel, and combines time data with pre-trained scene inference models to semantically interpret user behavior and generate situational control strategies, when recording the user's continuous control operations on multiple terminals, the physical environment, time and user status information at the time are completely retained, and the user's control combination is abstracted into an intelligent strategy with business scenario attributes. The control information is deeply bound to the user's environmental status and behavioral intention at the time, so that when similar scenarios appear in the future, the server can automatically execute control according to the semantic trigger conditions, which not only reduces the burden of active operation by users, but also makes the policy triggering more intelligent.
[0027] 3. Since the method adopts the method of first calculating the pointing area according to the position and posture of the remote control device to determine the candidate target terminal, and then prioritizing the candidate terminals according to the historical control records and user preference data, and finally determining the one with the highest priority as the final control object, it makes full use of the user's previous behavior data to predict the control intention on the basis of spatial information matching, and effectively solves the problem that simple geometric calculations are prone to confusion between adjacent or blocked terminals, thereby realizing intelligent inference of the target home terminal which is the user's real purpose. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a flowchart of a remote control method applicable to multiple terminals in an embodiment of the present application;
[0029] Figure 2 is another flowchart of a remote control method applicable to multiple terminals in an embodiment of the present application;
[0030] Figure 3 It is a schematic diagram of a physical device structure of a server in an embodiment of the present application. DETAILED DESCRIPTION
[0031] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification of the present application, the singular expressions "one", "a kind of", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more of the listed items.
[0032] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0033] For ease of understanding, the application scenarios of the embodiments of the present application are introduced below.
[0034] After Mr. Zhang's new home was renovated, he installed a lot of smart home devices, such as electric curtains, smart lamps, air conditioners, televisions, projectors, etc. Every time he returns home, Mr. Zhang needs to take out a bunch of remote controls to control these devices. He often can't find or confuses the remote controls, which is very inconvenient. Sometimes you want to turn on the lights to read, but you need to close the curtains to avoid glare; when watching a movie, you need to turn on the projector, turn off the lights, start the audio, and adjust the air conditioner to the appropriate temperature. The control process is cumbersome. Mr. Zhang hopes to be able to control these home devices in a more convenient way, preferably to achieve situational one-button control to enhance the home experience.
[0035] In the related art, the home terminal and the mobile phone can be connected by infrared matching and WIFI networking, and a specific home terminal device can be selected through the mobile phone APP for control. The following describes the scenario of using the remote control method applicable to multiple terminals in the related art.
[0036] Mr. Zhang tried to connect various smart home devices through his mobile phone for centralized control. He downloaded apps provided by various equipment manufacturers and linked them to his mobile phone. Every time he controlled something, Mr. Zhang needed to unlock his mobile phone, open a specific app, select the device to be controlled, and then issue instructions. For scenes that require linkage control, such as movie mode, he had to open multiple apps separately, control the projector, lights, audio, air conditioner, etc. one by one, and then adjust them to the optimal parameters, which was time-consuming and laborious. Mr. Zhang felt that this control method was still not smart and convenient enough, and could not meet his expectations for a smart home. He hoped to get rid of the inefficient app control and achieve convenient, natural, and intelligent scene mode control.
[0037] By adopting the remote control method applicable to multiple terminals in the embodiment of the present application, the user can use the remote control device to continuously point and issue control instructions in a short period of time, and the server can automatically identify multiple target home terminals that the user wants to control, record a series of control operations and visualize them as a control set, and at the same time associate time, environment, personnel status and other conditions to generate trigger rules, so as to realize situational intelligent linkage control, which not only simplifies the user's operation process, but also improves the control experience. The following introduces the scenario of using the remote control method applicable to multiple terminals in the present application.
[0038] Mr. Zhang learned about a new smart home control solution. He only needs to point at the device he wants to control and issue a simple command with the remote control. The smart home server can automatically identify the target device and issue a control command. If multiple devices are remotely controlled continuously within a certain period of time, the smart home server can also record this series of controls and analyze the semantics based on the time, environment, user status, etc., to abstract a control scene. For example, at 7 o'clock in the evening, Mr. Zhang pointed and turned off the lights, then pointed and lowered the curtains, and then pointed and turned on the projector. After analysis, the smart home server learned that it might be "movie mode" and generated parameters such as time, environment, and posture that triggered the mode. The next time Mr. Zhang pointed at the projector with the remote control, the smart home server determined that it was night time, the light outside the window was dim, and it detected that the user was sitting on the sofa. It was determined that the triggering conditions of "movie mode" were met, so it took the initiative to ask Mr. Zhang whether he wanted to start the mode with one click. Mr. Zhang found that the smart home server had learned his control habits and could help him set the theater mode automatically with one click. He was very satisfied with this convenient, intelligent, and tacit control method.
[0039] It can be seen that by adopting the remote control method suitable for multiple terminals in the embodiment of the present application, while realizing convenient control of multiple home terminals, it can also effectively utilize environmental data to semantically understand the user's control intention, thereby realizing automatic linkage control of home terminals based on scene triggering.
[0040] For ease of understanding, the following describes the process of the method provided by this implementation in combination with the above scenario. Figure 1 , which is a flow chart of a remote control method applicable to multiple terminals in an embodiment of the present application.
[0041] S101. In response to a first remote control instruction issued by a user using a remote control device, determine a first target home terminal pointed to by the remote control device, and send a first home control signal to the first target home terminal.
[0042] It should be noted that the server described in this article refers to a core device that integrates a wireless network interface, a large-capacity memory, a high-performance processor, an intelligent algorithm model, and an expandable application program, such as a computer, a dedicated data processing device, etc. By exchanging information with home terminals and sensors and using its own data processing and analysis capabilities, the server can realize intelligent decision-making functions such as scene recognition, target determination, and personalized recommendations for user remote control operations, thereby coordinating and controlling the collaborative work of various smart terminals in the home to complete complex home control and management from an unmanned state. In some embodiments, the server can also be an online device, that is, a cloud server, which can process data online by uploading data in the room, and then send relevant feedback instructions through the data network.
[0043] When the user uses the remote control device to issue a first remote control instruction, the server will immediately respond and determine the first target home terminal pointed to by the remote control device, and then send the corresponding first home control signal to the terminal. It should be noted that the remote control devices described in this article, in addition to common remote controls, also include but are not limited to mobile phones, tablets and other electronic devices that can send information. Through the specified APP and the corresponding icon controls therein, these electronic devices can realize the functions of the remote control and achieve the effect of a remote control device.
[0044] Specifically, the first remote control instruction issued by the user using the remote control device, that is, the user presses a certain physical button or virtual button on the remote control device, and the remote control device will issue the first remote control instruction corresponding to the button. For example, when the user presses the "power on" button, the remote control device will issue the first remote control instruction of "power on the device"; when the user presses the "volume +" button, the remote control device will issue the first remote control instruction of "increase the volume". In some embodiments, the way in which the user uses the remote control device to issue a remote control instruction includes but is not limited to pressing a certain physical button or virtual button, sliding a roller, voice control or gesture control. For the convenience of understanding, this article takes the remote control button as an example, which should not constitute a limitation in this direction.
[0045] After receiving the first remote control instruction sent by the user using the remote control device, the server will first determine the first target home terminal pointed to by the remote control device, that is, the target object acted upon by the first remote control instruction. The server can determine the direction of the remote control device through high-precision positioning technology, combined with the remote control device's own function of using a gyroscope to determine its own angle and direction, and thereby determine the first target home terminal corresponding to the pointing direction. After determining the first target home terminal, the server will send a first home control signal to the first target home terminal based on the first remote control instruction, which can control the first target home terminal to execute the first remote control instruction. Since home terminals vary in brand and type, home control signals will vary greatly. The server stores a corresponding coding library and can select the corresponding control signal based on the instruction.
[0046] S102: within a preset time period after the start time node, if it is detected that the user uses the remote control device to issue a second remote control instruction, determine the second target home terminal pointed to by the remote control device.
[0047] The server starts a timer, records the time when the first home control signal is sent as the starting time node, and continuously monitors whether the second remote control command sent by the user is received again within a preset time period (e.g., 10 seconds) after the node. If the second remote control command is detected, the server determines the second target home terminal that the remote control device is pointing to at this time, in the same principle as in step S101.
[0048] S103: Send a second home control signal to a second target home terminal, and update the start time node to the second time for sending the second home control signal.
[0049] After determining the second target home terminal, the server will send the second home control signal to it. At the same time, the time of sending the second home control signal will be updated to a new starting time node, and the timing monitoring will be restarted to facilitate the continuous recording of multiple control operations.
[0050] If multiple remote control commands are detected continuously, the server will continuously update the time node, determine and control multiple target terminals in turn, until no new remote control commands appear within the preset time period. That is, in a broad sense, the second remote control command described in this article may be one or more, and the corresponding second target home terminal specifically refers to one or more home terminals that are different from the first target home terminal controlled by the first remote control command, are after the first target home terminal, and are controlled using the second remote control command. For example, the first target home terminal is a projector, and the second target home terminal is the curtain, air conditioner, wall lamp, audio, etc. that are controlled thereafter. Of course, the second target home terminal in this article may also be the same as the first target home terminal, in which case multiple different commands are issued to the same home terminal. For example, the first target home terminal and the second target home terminal are both televisions, and the first remote control command is "turn on", and the second remote control command is "jump to channel xx", "adjust the volume to 40", etc.
[0051] This process can automatically identify the user's continuous control intention for a group of home terminals in a short period of time, support users to flexibly select multiple different targets, and the server will respond to the control one by one in sequence, and ensure that there are a small number of control intervals in between. For example, the user first sends a "turn on" command to the TV, pauses for 3 seconds and then sends a "turn off" command to the smart curtains, and then says "turn on" to the air conditioner and "brighten" to the desk lamp within 5 seconds. As long as the total time does not exceed 10 seconds, the server can recognize them as a set of continuous control operations.
[0052] S104, storing the first home control object and the second home control object as a target control set, and determining a usage scenario of the target control set based on a scenario inference model according to time data, environmental parameters and personnel status of the target area, and matching target trigger conditions for the usage scenario.
[0053] The server will record all the control operations identified in steps S101 and S102 and store them as a complete target control set. Each control operation contains two elements: one is the home control signal, and the other is the target home terminal corresponding to the control signal. The server combines them into a home control object and stores them in the target control set in order. At the same time, in order to facilitate the subsequent rapid reuse of this set of control operations, the server will also use machine learning algorithms to perform scenario-based semantic annotations on the control set based on data such as environmental parameters (such as temperature, humidity, brightness, etc.) when the control occurs, user status (such as location, posture, etc.), and system time.
[0054] The server first obtains the current indoor temperature and humidity and other parameters through the connected environmental sensors, determines the user's position and posture by analyzing the camera image, and adds time data, inputs them into a pre-trained scene inference model, automatically infers the abstract scene corresponding to this control operation, such as "watching a movie", "sleeping", etc., and obtains the specific condition ranges of the triggering control set under this scene. In this way, this set of home control operations is associated with a specific usage scenario, and can be adaptively executed later according to changes in environmental conditions. For example, if the user turns on the TV at around 8 o'clock in the evening, then closes the curtains, adjusts the air conditioner, and turns on the desk lamp, the server can determine that this is likely to be a "watching a movie" scene, and summarizes the empirical conditions that trigger this set of controls when the room temperature is 26-28 degrees and the user is sitting on the sofa during the 20:00-22:00 period based on previous data. In the future, when the same conditions appear again, the user only needs to issue a "power on" command to the TV, and the server can automatically associate and execute a series of subsequent operations such as closing the curtains and adjusting the air conditioner, without the user having to repeat the control one by one. By abstracting continuous control operations into semantic scenarios and learning trigger conditions, the server can establish a home automation strategy for specific usage scenarios, transforming simple remote control operations into more proactive and intelligent integrated control.
[0055] S105: When it is detected that the user uses the remote control device again to issue the first remote control instruction, it is detected whether the current real-time time data, real-time environmental parameters and real-time personnel status meet the target trigger condition.
[0056] The server will continue to monitor the user's subsequent remote control operations to identify whether the same start-up command as the previously recorded target control set appears again. For example, if the user previously used the "power on" command to issue a TV as the starting point for continuous control, the server will focus on determining whether the subsequent remote control signal contains the same "power on" command. Once a match is found, the server believes that the user may want to trigger the predetermined scenario control process, so it is necessary to further check whether the current external conditions meet the triggering requirements of the control set. The server will once again collect real-time indoor temperature and humidity data through environmental sensors, use cameras to analyze the user's position and posture, and obtain the current system time, and compare these parameters with the target trigger conditions recorded in the control set one by one. Only when the temperature, humidity, time, user posture and other conditions fall within the numerical range specified by the trigger conditions, the server will officially determine that the current scene is consistent with the established control scene, and then decide to execute the subsequent automatic control process.
[0057] For example, if the triggering conditions of the "watching a movie" scene include "20:00-22:00 period, room temperature 26-28 degrees, user sitting on the sofa", then when the user sits on the sofa at 9 o'clock in the evening and the room temperature is 27 degrees and says "turn on" to the TV, the server can determine that the conditions are met and can start a set of associated controls for "watching a movie"; on the contrary, if one of the time, temperature or posture is not met, the server will consider the scene to be mismatched and only perform a normal single "turn on" control. Through this strict condition comparison, the server can accurately identify the timing that meets the semantics of a specific scene, avoid triggering unnecessary associated controls at the wrong time and place, and improve the accuracy of automated control. At the same time, due to the complexity and variability of the actual environment, users' behavioral preferences may also differ. The server will allow a certain error tolerance when matching conditions and appropriately relax the acceptable range of each parameter to balance the accuracy and practicality of control.
[0058] S106. Based on the multiple home control objects in the target control set, send multiple home control signals to the corresponding multiple target home terminals.
[0059] After confirming that the scene conditions match, the server will first extract all home control objects stored in the control set, pair the home control signals contained in each object with the corresponding target terminal, and form a series of "control instructions-execution objects" mapping relationships. Then, the server will send the home control signals to the target home terminals through the communication channel in the order of arrangement of each control object in the set, and command them to perform the corresponding operations in sequence according to the predetermined timing. During the control process, the server will pay attention to the execution status and feedback information of each terminal in real time to ensure the integrity and consistency of the overall process. If a terminal is found to be unresponsive or an execution error occurs, the server will handle the exception in a timely manner. If necessary, the control strategy can be adjusted to compensate or replace the missing operations with the actions of other terminals, such as using fans instead of air conditioners, using TVs instead of projectors, etc., so as to maintain the realization of the established scene as a whole, allowing multiple home appliances to complement each other in intelligent collaboration, and form an organically unified and dynamically adaptive self-control network. For users, a series of tasks that originally required multiple steps of remote control can now be completed automatically with just one simple command, which not only saves the trouble of a lot of repetitive operations, but also avoids the experience being affected by missing steps. Through centralized control, all home devices can work in unison and cooperate with each other, presenting a smoother and more unified overall effect.
[0060] In the above embodiment, the target trigger condition of the target control set is determined by the server according to time data, environmental parameters and personnel status. In actual applications, the server can also cluster multiple similar target control sets to form a shared scene, integrate the control preferences of different users in similar scenes, and form a richer and more fine-grained shared trigger condition.
[0061] The following is a supplement to the scenario of this embodiment.
[0062] Mr. Zhang's neighbor, Ms. Li, also started using the smart home server. One night, Ms. Li pointed at and turned off the lights on the sofa in the living room, turned on the air conditioner, and then turned on the speakers. Based on the analysis of time, light, temperature, etc., the smart home server determined that Ms. Li might want to "gather party mode" and generated the corresponding control set and trigger conditions. A few days later, Mr. Zhang performed a similar remote control operation in his home. The smart home server found that this was very similar to Ms. Li's "gather party mode", but Mr. Zhang's speakers were louder. So, the smart home server merged the two people's controls, abstracted a shared "gather party mode", and generated detailed trigger conditions based on the volume preferences of the two. After a while, a new couple, Mr. Zhao and Mrs. Zhao, moved into the community. One night, Mr. Zhao performed a series of remote control operations in the living room. The smart home server found that this was 90% similar to the "gather party mode", so it took the initiative to recommend this mode to Mr. Zhao. Mr. Zhao accepted the recommendation, and the smart home server directly started the party mode and set all the parameters with one click. Mr. Zhao was surprised that the smart home server was so smart that it automatically learned the control experience of his neighbors and recommended it to himself. Everyone praised this collective intelligence shared remote control mode and felt that buying a smart housekeeper full of neighborhood experience greatly facilitated the use of smart homes for new families.
[0063] After combining the above scenarios, the following is a more detailed description of the process of the method provided by this implementation. Figure 2 , is another flow chart of the remote control method applicable to multiple terminals in an embodiment of the present application.
[0064] S201. In response to a first remote control instruction issued by a user using a remote control device, determine a first target home terminal pointed to by the remote control device, and send a first home control signal to the first target home terminal.
[0065] Referring to step S101, when the user uses the remote control device to issue a first remote control instruction, the server will immediately respond and determine the first target home terminal pointed to by the remote control device, and then send a corresponding first home control signal to the terminal.
[0066] In some embodiments, when determining the first target home terminal, the server will respond to a first remote control command issued by the user using the remote control device, determine the first remote control position information, first remote control direction information and first remote control angle information of the remote control device; calculate the first target home terminal pointed to by the remote control device based on the terminal position information, first remote control position information, first remote control direction information and first remote control angle information of multiple home terminals; determine the first home control signal based on the first remote control command and the preset coding library of the first target home terminal; send the first home control signal to the first target home terminal, so that the first target home terminal executes the first remote control command.
[0067] Specifically, when the server determines the first target home terminal of the remote control, it will first obtain the posture information of the remote control device itself, that is, the first remote control position information, the first remote control direction information and the first remote control angle information. These posture information can be obtained through the built-in GPS module, electronic compass, gyroscope and other components of the remote control device. In some embodiments, for the problem of inaccurate position information acquisition, relevant technologies can be used, that is, using multiple gateway devices, by calculating the time difference between information transmission and reception, to calculate the distance in multiple directions, and then obtain the accurate position; then the server will determine the spatial position information of multiple smart home terminals in the target area, these terminal position information can be obtained through image positioning or manual configuration, and build a three-dimensional scene model; finally, the server will use the three-dimensional geometric relationship calculation based on the posture information of the remote control device and the position information of the home terminal to determine the spatial range covered by the pointing direction of the remote control device, determine whether there is a home terminal in this range, and if so, identify it as the target terminal of the remote control command. After determining the target terminal, the server will search for the corresponding terminal control code in the preset mapping table according to the type of remote control command, convert the terminal control code into a home control signal, and then send it to the target home terminal to complete a remote control operation.
[0068] In some embodiments, before determining the first target home terminal, the server determines the image positions of multiple home terminals based on the first area image taken by the user and the second area image captured by the server through the home camera; the first area image and the second area image are images within the target area; then a three-dimensional model of the target area is established, and the terminal position information of the multiple home terminals in the three-dimensional model is determined based on the image positions.
[0069] Specifically, before determining the remote control target terminal, the server needs to first obtain the spatial coordinate information of multiple smart terminals in the home. To this end, the server will use two images to locate the terminal position, one is the panoramic image of the target area taken by the user with a mobile phone, and the other is the regional image captured by the home camera. The combination of the two can fully cover the entire spatial area. The server will use image content analysis technology to detect the home appliances that appear in these images and determine their image coordinate information. The server will then construct a three-dimensional model of the target area, such as the three-dimensional structure of the house, and map it to the three-dimensional model based on the image coordinates, and convert it into the Cartesian coordinate system position information in the three-dimensional space. In this way, the server obtains the precise three-dimensional coordinates of multiple smart terminals in the home, providing data support for subsequent remote control target determination.
[0070] In some embodiments, the server calculates the first pointing area of the remote control device based on the first remote control location information, the first remote control direction information and the first remote control angle information; determines the candidate home terminals located in the first pointing area based on the terminal location information of multiple home terminals communicating; when there are multiple candidate home terminals, obtains the historical control records and user preference data associated with each candidate home terminal; prioritizes the candidate home terminals according to the historical control records and user preference data, and determines the candidate home terminal ranked first as the first target home terminal.
[0071] Specifically, after the pointing area of the remote control device is determined by its posture, there may be multiple candidate home terminals within this range. At this time, the server can further sort the candidate terminals by priority. The basis for priority sorting includes two aspects. One is the historical control times of each candidate terminal. The higher the frequency of the terminal being remotely controlled by the user, the higher its priority; the other is the user's personal preference. The server can build a user portrait to determine which terminal better matches the user's personal preferences and has a higher priority. The server will comprehensively consider these two factors to score and rank each candidate terminal, and the one with the highest ranking will be determined as the target home terminal for this remote control. This method of intelligent sorting by combining historical behavior data and personal portraits can help the server more accurately infer the user's true control intention among multiple potential targets, avoid deviations in judgment based solely on spatial information, and improve the intelligence and accuracy of remote control target determination.
[0072] In some embodiments, the server will also send preset identity data of multiple candidate home terminals to the remote control device, so that the remote control device displays multiple icon controls related to the multiple candidate home terminals; monitor the user's selection and switching operations on the remote control device for the multiple icon controls, determine the icon selection results, and switch the first target home terminal to the candidate home terminal corresponding to the icon selection results.
[0073] Specifically, after the remote control target terminal is determined, the server can also send the data of multiple candidate target terminals to the remote control device interface for visual display, and present them on the screen in the form of icons. At the same time, the server will continue to monitor whether the user performs an icon selection operation. If the user manually switches and selects an icon through the button of the remote control device, the server will re-determine the corresponding home terminal as the target of this remote control. This method, based on the intelligent determination of the target, also provides a method for the user to manually intervene in the selection, which can achieve a good combination between automatic control and manual control, eliminating the need for users to repeat manual selection operations, and allowing users to correct the terminal selection results when necessary, making the entire remote control target determination more intelligent and user-friendly.
[0074] S202: Within a preset time period after the start time node, if it is detected that the user uses the remote control device to issue a second remote control instruction, determine the second target home terminal that the remote control device is pointing to.
[0075] Referring to step S102, if a second remote control instruction is received, the server will determine the second target home terminal to which the remote control device is pointing at.
[0076] S203: Send a second home control signal to a second target home terminal, and update the start time node to the second time for sending the second home control signal.
[0077] Referring to step S103, the server sends a second home control signal to the second target home terminal and updates the start time node.
[0078] S204: Store the first home control object and the second home control object as a target control set.
[0079] Referring to step S104 , the server stores the first home control object and the second home control object as a target control set.
[0080] S205: Acquire the temperature, humidity and illuminance detected in real time by the environmental sensors in the target area as environmental parameters.
[0081] The server needs to obtain data detected by various environmental sensors in the target area in real time, such as temperature sensors, humidity sensors, and light intensity sensors. These sensors are usually deployed in different areas of the home and can collect various parameters of the environment around the clock. By establishing a communication connection with these sensors, the server can read the latest detection values sent back by them at any time to determine the real-time environmental status of the room. For example, the server knows from the thermometer in the living room that the current room temperature is 26 degrees Celsius, from the hygrometer that the current humidity is 60%, and from the light intensity sensor that the current light intensity is 800 lux. It can be inferred that the comfort level of the living room is moderate, the light is sufficient, and it is in daytime. These data can be used as important environmental parameters for subsequent inference of user needs. Of course, in addition to the above three sensors, the server can also access other types of sensors according to actual needs, such as noise sensors, air quality sensors, pressure sensors, etc., to obtain comprehensive environmental data. At the same time, due to the dynamic nature of the home environment, the server also needs to perform appropriate cleaning and smoothing on these sensor data to eliminate extreme values or outliers caused by accidental factors and improve data reliability.
[0082] S206: Analyze the image data and video data captured in real time by the home cameras in the target area, detect the position and posture of the people in the target area in real time, and obtain the status of the people.
[0083] The server also needs to obtain the location and status information of people in the target area. This usually requires the help of visual sensors such as cameras or depth cameras. The server can access multiple cameras distributed in different rooms of the home and obtain the captured images and video data in real time. Due to the rapid development of modern visual algorithms, the server can accurately detect the position, posture, facial expression, sight direction and other information of the human body in the room from the video image through machine learning and other technologies. For example, by analyzing the camera image in the living room, the server finds that the user is lying on the sofa, looking up in the direction of the TV, with a relaxed smile on his face, and can judge that he wants to watch TV for rest and entertainment. If the camera in the restaurant finds that there are multiple people sitting around the dining table, with food and tableware on the table, and people are eating and talking with their heads down, the server can recognize that this is a scene of a meal. These image understanding results can provide the server with key clues to the status of people.
[0084] S207: Acquire real-time system time as time data.
[0085] The server also needs to obtain the real-time system time. Since many home control needs are related to time, such as people usually watch TV at night, brush their teeth and wash their faces in the morning, cook and eat at noon, etc. The system time can help the server determine which time period of the day the current time belongs to. Combined with environmental parameters and personnel status, the scope of inference of user intentions can be further narrowed. For example, at 10 o'clock in the evening, if the living room is dimly lit and the user is lying quietly on the sofa, the server may infer that he wants to rest, while if the system time is 8 o'clock in the morning, the same environment and posture may mean that the user is watching the news or thinking about work. Therefore, obtaining accurate time data can greatly improve the accuracy of subsequent user intention recognition. However, for time data, the server tends to abstract semantic time periods such as "morning", "morning", "noon", "afternoon", "evening", and "late night", rather than specific to minutes and seconds, because the needs of users in the same time period are often coherent, and slight differences in precise time may introduce data noise.
[0086] S208: Input the time data, environmental parameters and personnel status into a preset scene inference model to obtain the scene name and target trigger condition of the target control set.
[0087] Once the server obtains real-time data on three types of scene elements: time, environment, and personnel, it can input them into the preset scene inference model to determine the specific scene the user is currently in and predict their possible control needs.
[0088] The scene inference model is an intelligent model algorithm based on machine learning. It aims to automatically infer the specific scene of the user based on the current environmental state, user behavior and other multi-dimensional information, and give the most likely home control requirements in this scene. The input data of the scene inference model include: real-time environmental parameters (such as sensor data such as temperature, humidity, and light intensity), user position and posture (such as user sitting posture and walking trajectory detected by cameras or pressure sensors), and current system time (such as morning, noon, and evening). These heterogeneous data are uniformly converted into a high-dimensional semantic vector through feature engineering as the input representation of the model. The output of the model is a discrete scene label (such as "watching a movie", "dinner party", etc.) and a set of home control instructions corresponding to the scene (such as "turn off the lights", "turn on the projector", etc.). In order to train the model, it is necessary to collect a large number of users' real control logs and corresponding scene samples. Each sample contains a snapshot of the environment and user behavior at a certain moment, as well as a series of control instructions that the user finally executes in this state. Through cluster analysis of the samples, the scene patterns can be automatically discovered and appropriate semantic labels can be attached. Next, the scene label is used as the category label of the sample, and a multi-classifier is trained through supervised learning to establish a mapping relationship from state features to scene categories. The loss function of the classifier usually uses cross entropy, and the evaluation criteria include precision, recall, F1 value, etc. In addition, within each scene cluster, it is necessary to make a frequency statistics of the control instructions of the member samples, and select the common high-frequency instructions as the standard control set of the scene. In this way, while the model infers the scene category, it also obtains the default control strategy of the scene. For example, the model may learn that from 8 to 10 pm on weekends, if the illuminance in the living room is less than 100 lux, the room temperature is around 24 degrees Celsius, and someone is sitting quietly on the sofa, it is highly likely that they want to watch a movie. At this time, the best control combination is usually to turn off the lights, lower the curtains, turn on the projector and speakers, etc. The server inputs the currently collected scene elements into the trained model, and the model can give the name of the scene to which it belongs (such as "watching a movie") and the conditions that trigger the scene (such as specific thresholds of time, environment, posture, etc.). This intelligent method driven by big data can automatically, in real time, and dynamically infer user intentions, avoiding the tediousness of manually defining scene rules and improving the intelligence level of home interaction. The server can also regularly use new data to incrementally train the model so that it continues to learn and evolve, thereby continuously improving the room's "understanding" of user intentions.
[0089] S209: Obtain multiple groups of target control sets for multiple users according to a preset period.
[0090] The server needs to extract the target control set data of all users from the system database regularly in order to perform cluster analysis on it. The so-called target control set refers to a combination of a series of commonly used control instructions of users in a specific scenario. For example, when watching a movie, Xiao Ming usually turns off the lights, lowers the curtains, and turns on the projector. These three instructions constitute a set of target control sets for him in the "watching a movie" scenario. The control habits of different users in the same scenario may be slightly different, but generally there will be great similarities. Therefore, the server can extract the target control set of all users in a period of time from the database at a preset time period, such as every day, every week or every month, and group them by user and scenario to obtain a triple list of "user-scenario-control set", which provides a data basis for subsequent shared scenario discovery. It is worth mentioning that for the sake of data privacy protection, when extracting user data, the server usually needs to perform necessary data desensitization, and use algorithms such as MD5 to encrypt privacy identifiers such as user ID and device ID in one direction to avoid direct use of plain text.
[0091] S210: Classify target control sets with the same scene name in multiple target control sets into the same shared scene, and determine the shared scene name and the corresponding shared control set of the shared scene.
[0092] The server will perform cluster analysis on the obtained multiple sets of target control set data. The purpose of clustering is to find out the common control behaviors of different users in the same scene and form a shared scene template. The server first groups all data according to the scene name field and classifies all records with the same scene label (such as "watching a movie") into one category. This is equivalent to bringing all user behaviors in each scene together. Then, the server makes further similarity comparisons on all control sets in each scene. Since the control instructions of different users may be slightly different (such as setting the air conditioner temperature to 26 degrees or 27 degrees), the server needs to use a fuzzy matching algorithm to find semantically equivalent instructions and normalize the instruction set. After normalization, the server can clearly see which high-frequency control instructions are in each shared scene, so as to determine the shared control set of the scene. The shared control set reflects the consistent behavior of the vast majority of users in the scene and represents the best practice. Based on this, the server can automatically generate a unified name for each shared scene (such as "movie viewing mode"), and associate the name with the corresponding shared control set for storage, thus building multiple standardized scene template libraries.
[0093] S211 . Determine multiple target trigger conditions of multiple target control sets included in a shared scenario, and determine a shared trigger condition of the shared scenario according to a numerical range of the multiple target trigger conditions.
[0094] The server also needs to summarize and extract the shared triggering conditions of the shared scene from the target triggering conditions of each user in a specific shared scene. Since the shared scene corresponds to the target control set of multiple users, and the target triggering conditions of each user may be different, what the server needs to do is to find the "greatest common divisor" among them. Specifically, the server first summarizes the triggering conditions of all target control sets in each shared scene to obtain the original condition values of the scene in various dimensions such as time, environment, and personnel status. Then, the server performs clustering or threshold analysis on each dimension. For continuous numerical conditions, such as temperature and humidity, the server uses statistical indicators such as mean, variance, or percentile to obtain an acceptable threshold range that covers most user choices. For discrete value conditions, such as time period, posture type, etc., the server selects the one with the highest frequency of occurrence as the shared setting through a voting mechanism. Finally, a Cartesian product is made for the clustering results of each dimension to generate a shared triggering condition covering the mainstream user group. Of course, the shared triggering condition can also be a broad numerical range. In actual applications, the server will further customize it according to the historical preferences of specific users.
[0095] S212: When it is detected that the current real-time time data, real-time environmental parameters and real-time personnel status meet the sharing triggering conditions, multiple home control signals in the shared control set are sent to the corresponding multiple target home terminals.
[0096] The server needs to monitor the current scene parameters in real time and match them with the shared trigger conditions. Once the current real-time data is found to fall within the trigger condition range of a shared scene, the server can determine that the scene is activated, and immediately send the home control instructions in the shared control set corresponding to the scene to the corresponding target home devices to complete the multi-device linkage. For example, the current time is 8 o'clock in the evening, the indoor light is dimmed, the temperature is suitable, and someone is detected lying on the sofa in the living room. This combination of conditions just meets the shared trigger conditions of the "movie viewing mode". Therefore, the server automatically sends the shared control instructions of the scene, such as "turn off the ceiling light", "turn on the projector", "lower the screen", etc., to the execution terminals such as the light control switch, projector, and screen motor. Before the user has time to do anything, the cinema-like viewing atmosphere is created one step ahead. It can be seen that shared scenes allow the server to apply the experience and wisdom of multiple users to a wider range of people, achieving "one-time arrangement, multiple triggers, and multi-person sharing", which greatly improves the intelligence and humanization of home interaction. With the increase in users and the accumulation of samples, the accuracy of shared scenes will continue to improve, and the degree of personalization will become better and better, which will greatly improve the future home experience.
[0097] In the embodiment of the present application, since the server can automatically discover shared scenes from the historical control data of many users, and realize the automatic triggering of shared scenes through real-time scene recognition, the daily home control process of users is greatly simplified, and the complexity of the traditional smart home that requires users to manually set scene rules and configure parameter thresholds is effectively solved. Traditional smart home systems usually require users to manually define various control scenes, such as movie mode, sleep mode, guest mode, etc., and manually set the trigger threshold of environmental parameters for each scene. This is not only complicated to operate, but also difficult to adapt to the dynamic changes of the environment. However, the present application makes full use of the valuable resource of the user's historical control data. Through data mining and machine learning algorithms, the server can autonomously learn and summarize from thousands of real cases to obtain the shared control strategy that best meets the habits of most users. This method of coming from practice to practice avoids the limitations and subjectivity of personal experience and objectively reflects the real needs of users. At the same time, the present application can also detect environmental dynamics in real time during operation, automatically match the control strategy that best fits the current scene, and make the service follow you everywhere and just right, completely liberating the user's operating burden.
[0098] The following describes the server in the embodiment of the present invention from the perspective of hardware processing. Figure 3 , is a schematic diagram of a physical device structure of a server in an embodiment of the present application.
[0099] It should be noted that Figure 3 The structure of the server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0100] like Figure 3 As shown, the server includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage part 308 to the random access memory (RAM) 303, such as executing the method described in the above embodiment. In RAM 303, various programs and data required for system operation are also stored. CPU 301, ROM 302 and RAM 303 are connected to each other through bus 304. Input / output (I / O) interface 305 is also connected to bus 304.
[0101] The following components are connected to the I / O interface 305: an input section 306 including an audio input device, a button switch, etc.; an output section 307 including a liquid crystal display (LCD) and an audio output device, an indicator light, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 308 as needed.
[0102] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 309, and / or installed from a removable medium 311. When the computer program is executed by the central processing unit (CPU) 301, various functions defined in the present invention are performed.
[0103] It should be noted that specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.
[0104] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. Each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings.
[0105] Specifically, the server of this embodiment includes a processor and a memory. The memory stores a computer program. When the computer program is executed by the processor, the remote control method applicable to multiple terminals provided in the above embodiment is implemented.
[0106] As another aspect, the present invention further provides a computer-readable storage medium, which may be included in the server described in the above embodiment; or may exist independently without being assembled into the server. The above storage medium carries one or more computer programs, and when the above one or more computer programs are executed by a processor of the server, the server implements the remote control method applicable to multiple terminals provided in the above embodiment.
[0107] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0108] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.
[0109] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
Claims
1. A remote control method applicable to multiple terminals, It is characterized in that Applied to a server, the server is communicatively connected with a plurality of home terminals in a target area, the method comprising: In response to a first remote control instruction issued by a user using a remote control device, determining a first target home terminal pointed to by the remote control device, and sending a first home control signal to the first target home terminal; Within a preset time period after a starting time node, if it is detected that the user uses the remote control device to issue a second remote control command, then determining the second target home terminal pointed to by the remote control device; the starting time node is the first time of sending the first home control signal; Sending a second home control signal to the second target home terminal, and updating the start time node to be the second time of sending the second home control signal; The first home control object and the second home control object are stored as a target control set; the first home control object includes a first home control signal and a first target home terminal; the second home control object includes a second home control signal and a second target home terminal; Acquire the temperature, humidity and light intensity detected in real time by the environmental sensor in the target area as environmental parameters; By analyzing the image data and video data captured in real time by the home camera in the target area, the position and posture of the people in the target area are detected in real time to obtain the status of the people; Get the real-time system time as time data; Inputting the time data, the environmental parameters and the personnel status into a preset scene inference model to obtain the scene name and target trigger condition of the target control set; Obtain multiple groups of target control sets of multiple users at regular intervals according to a preset period; Classifying the target control sets with the same scene name in the multiple groups of target control sets as the same shared scene, and determining the shared scene name and the corresponding shared control set of the shared scene; Determining multiple target trigger conditions of multiple target control sets included in the shared scenario, and determining a shared trigger condition of the shared scenario according to a numerical range of the multiple target trigger conditions; When it is detected that the current real-time time data, real-time environmental parameters and real-time personnel status meet the sharing trigger condition, multiple home control signals in the shared control set are sent to the corresponding multiple target home terminals; When it is detected that the user uses the remote control device again to issue the first remote control instruction, detecting whether the current real-time time data, real-time environmental parameters and real-time personnel status meet the target trigger condition; If so, based on the multiple home control objects in the target control set, multiple home control signals are sent to the corresponding multiple target home terminals.
2. The method according to claim 1, It is characterized in that The step of responding to a first remote control instruction issued by a user using a remote control device, determining a first target home terminal pointed to by the remote control device, and sending a first home control signal to the first target home terminal specifically includes: In response to a first remote control instruction issued by a user using a remote control device, determining first remote control position information, first remote control direction information, and first remote control angle information of the remote control device; Calculate a first target home terminal pointed by the remote control device according to the terminal location information of the plurality of home terminals, the first remote control location information, the first remote control direction information and the first remote control angle information; the first target home terminal is one of the plurality of home terminals; Determining a first home control signal according to the first remote control instruction and a preset coding library of the first target home terminal; The first home control signal is sent to the first target home terminal, so that the first target home terminal executes the first remote control instruction.
3. The method according to claim 2, It is characterized in that Before the step of determining the first remote control position information, the first remote control direction information and the first remote control angle information of the remote control device in response to the first remote control instruction issued by the user using the remote control device, the method further includes: Determine the image positions of multiple home terminals according to a first area image taken by a user and a second area image captured by a server through a home camera; the first area image and the second area image are images within the target area; A three-dimensional model of the target area is established, and terminal position information of the multiple home terminals within the three-dimensional model is determined according to the image positions.
4. The method according to claim 2, It is characterized in that The calculating, according to the terminal position information of the plurality of home terminals, the first remote control position information, the first remote control direction information, and the first remote control angle information, to obtain the first target home terminal pointed to by the remote control device specifically includes: Calculating a first pointing area of the remote control device according to the first remote control position information, the first remote control direction information, and the first remote control angle information; Determine, based on the terminal location information communicated by the plurality of home terminals, a candidate home terminal located within the first pointing area; When there are multiple candidate home terminals, obtaining historical control records and user preference data associated with each candidate home terminal; The candidate home terminals are prioritized according to the historical control records and the user preference data, and the candidate home terminal ranked first is determined as the first target home terminal.
5. The method according to claim 4, It is characterized in that After the step of prioritizing the candidate home terminals according to the historical control records and the user preference data and determining the candidate home terminal ranked first as the first target home terminal, the method further includes: Sending preset identity data of a plurality of candidate home terminals to the remote control device, so that the remote control device displays a plurality of icon controls related to the plurality of candidate home terminals; Monitor the user's selection and switching operations on the multiple icon controls on the remote control device, determine the icon selection result, and switch the first target home terminal to a candidate home terminal corresponding to the icon selection result.
6. A server, It is characterized in that The server includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the server to execute the method described in any one of claims 1-5.
7. A computer-readable storage medium comprising instructions, It is characterized in that When the instructions are executed on a server, the server is caused to execute the method according to any one of claims 1 to 5.
8. A computer program product, It is characterized in that When the computer program product is run on a server, the server is caused to execute the method according to any one of claims 1 to 5.
