Device control method and apparatus, electronic device, and storage medium

By configuring multiple customized monitoring areas within the monitoring range of smart devices and generating automated configuration solutions, the problem of low accuracy caused by the fixed monitoring range of sensing devices in the smart device control system is solved, and refined control of smart devices is achieved.

WO2024193608A1PCT designated stage expired Publication Date: 2024-09-26SHENZHEN LUMIUNITED TECH CO LTD

Patent Information

Application Number
PCT/CN2024/082807
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-20
Filing Date
2024-03-20
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

Due to the fixed monitoring range of the sensing equipment in the existing intelligent equipment control system, the equipment control accuracy is low and the target position cannot be accurately identified, resulting in misoperation.

Method used

By configuring multiple customized monitoring areas within the monitoring range of the sensing device and editing them according to the target location on the area editing page, an automated configuration scheme is generated to achieve automated control of the controlled equipment.

Benefits of technology

It improves the precision and accuracy of equipment control, avoids misoperations caused by excessive monitoring range of sensing equipment, and achieves refined control of controlled equipment in different areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024082807_26092024_PF_FP
    Figure CN2024082807_26092024_PF_FP
Patent Text Reader

Abstract

The present application provides a device control method and apparatus, an electronic device, and a storage medium. The method comprises: displaying a region editing page, the region editing page displaying the current position of a target, and the region editing page being used for configuring, in a corresponding monitoring range of a sensing device, at least one monitoring region according to the current position of the target; if a region editing operation triggered in the region editing page for configuring the monitoring region is detected, generating a customized monitoring region; displaying an automation configuration page for the monitoring region; and in response to an automation configuration operation for the monitoring region in the automation configuration page, generating an automation configuration scheme corresponding to the monitoring region, the automation configuration scheme being used for realizing automation control of a controlled device by monitoring the region state of the monitoring region.
Need to check novelty before this filing date? Find Prior Art

Description

Device control method, device, electronic device and storage medium

[0001] This application claims priority to Chinese patent application CN 2023102706742, filed on March 20, 2023, entitled “Device Control Method, Device, Electronic Device and Storage Medium,” the entire contents of which are hereby incorporated herein by reference. Technical Field

[0002] The present application relates to the field of Internet of Things technology. Specifically, the present application relates to a device control method, apparatus, electronic device and storage medium. Background Art

[0003] With the development of the Internet of Things (IoT), various smart devices are increasingly being used in various scenarios, such as smart homes and offices. Smart devices typically include sensing devices and controlled devices. The sensing devices can be various sensors, while the controlled devices can be air conditioners, refrigerators, televisions, lights, and more.

[0004] Taking the human body sensor in the smart home scenario as an example, users can deploy human body sensors in different rooms. After the human body sensor starts working, it can monitor whether there is someone in the room. Then, when it detects that there is someone in the room, it can control the operation of the controlled devices in the room, such as turning on the lights in the room.

[0005] However, because the sensing device's monitoring range is relatively fixed, it can easily lead to incorrect device control. For example, a user places a human presence sensor on a desk in their study, intending to turn on the desk lamp when it detects someone approaching the desk. However, the human presence sensor's monitoring range isn't limited to the area immediately surrounding the desk; it also covers other areas of the study. Consequently, the human presence sensor may also turn on the desk lamp when it detects someone in other areas of the study.

[0006] From the above, we can see that how to improve the control accuracy of equipment based on the fixed monitoring range of the sensing equipment remains to be solved.

[0007] Summary of the Invention

[0008] This application provides a device control method, apparatus, electronic device, and storage medium. The technical solution is as follows:

[0009] According to one aspect of the present application, a device control method includes: displaying an area editing page; the area editing page displays the current position of a target, and the area editing page is used to configure at least one monitoring area according to the current position of the target within the corresponding monitoring range of the sensing device; if an area editing operation is triggered in the area editing page to configure the monitoring area, a customized monitoring area is generated; an automation configuration page for the monitoring area is displayed; in response to the automation configuration operation for the monitoring area on the automation configuration page, an automation configuration plan corresponding to the monitoring area is generated; the automation configuration plan is used to realize automated control of the controlled device by monitoring the area status of the monitoring area.

[0010] According to one aspect of the present application, a device control method is performed by an electronic device, including: obtaining the position of a target in each monitoring area, wherein the monitoring area is generated based on an editing operation triggered in an area editing page; the area editing page is used to configure at least one monitoring area according to the current position of the target within the corresponding monitoring range of the sensing device; based on the position of the target in each monitoring area, determining the area status of each monitoring area; if the area status of the monitoring area meets the trigger condition in the corresponding automation configuration scheme, controlling the controlled device to perform a corresponding action according to the controlled data associated with the trigger condition in the automation configuration.

[0011] According to one aspect of the present application, a device control device includes: an editing page display module for displaying an area editing page; the area editing page displays the current position of the target, and the area editing page is used to configure at least one monitoring area according to the current position of the target within the corresponding monitoring range of the sensing device; a monitoring area generation module for generating a customized monitoring area if it detects that an area editing operation is triggered in the area editing page to configure the monitoring area; a configuration page display module for displaying an automation configuration page for the monitoring area; a configuration scheme generation module for generating an automation configuration scheme corresponding to the monitoring area in response to the automation configuration operation for the monitoring area on the automation configuration page; the automation configuration scheme is used to realize automated control of the controlled device by monitoring the area status of the monitoring area.

[0012] According to one aspect of the present application, an electronic device includes at least one processor and at least one memory, wherein the memory stores computer-readable instructions; when the computer-readable instructions are executed by one or more of the processors, the device control method described above is implemented.

[0013] According to one aspect of the present application, a computer-readable storage medium stores computer-readable instructions, which implement the device control method described above when executed by one or more processors.

[0014] According to one aspect of the present application, an application product includes program instructions or codes, the program instructions or codes are stored in a computer-readable storage medium, and a processor of an electronic device reads the program instructions or codes from the computer-readable storage medium, loads and executes the program instructions or codes, so that the electronic device implements the device control method as described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solution provided by the present application, the following is a brief introduction to the drawings required for use in the description of each embodiment of the present application. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without any creative work.

[0016] FIG1 is a schematic diagram of an implementation environment according to an embodiment of the present application;

[0017] FIG2 is a flow chart showing a device control method according to an exemplary embodiment;

[0018] FIG3 is a schematic diagram of a region editing page of a device control method according to an exemplary embodiment;

[0019] FIG4a is a schematic diagram of a device page of a device control method according to an exemplary embodiment;

[0020] FIG4 b is a schematic diagram showing a monitoring page of a device control method according to an exemplary embodiment;

[0021] FIG4c is a schematic diagram showing monitoring attributes of each monitoring area in a device control method according to an exemplary embodiment;

[0022] FIG5a is a schematic diagram of a region editing page of a device control method according to an exemplary embodiment;

[0023] FIG5 b is a schematic diagram of a region editing page of a device control method according to an exemplary embodiment;

[0024] FIG6 a is a schematic diagram showing an automatic configuration page of a device control method according to an exemplary embodiment;

[0025] 6b to 6c are schematic diagrams showing generation of an automated solution for a device control method according to an exemplary embodiment;

[0026] FIG7 is a flow chart showing another device control method according to an exemplary embodiment;

[0027] FIG8 is a schematic diagram showing different areas within a monitoring range of a device control method according to an exemplary embodiment;

[0028] FIG9a is a monitoring flow chart of a device control method according to an exemplary embodiment;

[0029] FIG9 b is a monitoring flow chart of a device control method according to an exemplary embodiment;

[0030] FIG9c is a monitoring flow chart of a device control method according to an exemplary embodiment;

[0031] FIG10 is a structural block diagram of a device control apparatus according to an exemplary embodiment;

[0032] FIG11 is a structural block diagram of another device control apparatus according to an exemplary embodiment;

[0033] FIG12 is a hardware structure diagram of a terminal according to an exemplary embodiment;

[0034] Fig. 13 is a structural block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0035] The following describes in detail embodiments of the present application, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and are not to be construed as limiting the present application.

[0036] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0037] FIG1 is a schematic diagram of an implementation environment involved in a device control method, which includes a user terminal 110 , a smart device 130 , a gateway 150 , a server 170 , and a router 190 .

[0038] Specifically, the user terminal 110, which can also be considered as a user end or terminal, can deploy (also understood as install) the client associated with the smart device 130. This user terminal 110 can be an electronic device such as a smart phone, tablet computer, laptop computer, desktop computer, smart control panel, other devices with display and control functions, etc., which are not limited here.

[0039] Among them, the client is associated with the smart device 130. In essence, the user registers an account in the client and configures the smart device 130 in the client. For example, the configuration includes adding a device identifier to the smart device 130, so that when the client is run in the user terminal 110, it can provide the user with device display, device control and other functions about the smart device 130. This client can be in the form of an application or a web page. Accordingly, the interface for device display on the client can be in the form of a program window or a web page, which is not limited here.

[0040] The smart device 130 is deployed in the gateway 150, and communicates with the gateway 150 through its own configured communication module, and is thereby controlled by the gateway 150. It should be understood that the smart device 130 generally refers to one of a plurality of smart devices 130, and the embodiment of the present application only takes the smart device 130 as an example, that is, the embodiment of the present application does not limit the number and device types of smart devices deployed in the gateway 150. In an application scenario, the smart device 130 accesses the gateway 150 through a local area network, and is thereby deployed in the gateway 150. The process of the smart device 130 accessing the gateway 150 through the local area network includes: the gateway 150 first establishes a local area network, and the smart device 130 joins the local area network established by the gateway 150 by connecting to the gateway 150. This local area network includes but is not limited to: ZIGBEE or Bluetooth. Among them, smart device 130 can refer to a controlled device, which includes but is not limited to smart printers, smart fax machines, smart cameras, smart air conditioners, smart door locks, smart lights, smart refrigerators, natural gas alarms, smoke alarms, wall switches, wall sockets, wireless switches, wireless wall switches, magic cube controllers, curtain motors, and other electronic devices. Smart device 130 can also be a sensing device, which includes but is not limited to radar devices equipped with communication modules, human body sensors, door and window sensors, temperature and humidity sensors, water immersion sensors, and other electronic devices. It is worth mentioning that some smart devices 130 can be both controlled devices and sensing devices. For example, a smart camera is both a controlled device and a sensing device. This does not specifically limit the type of smart device 130.

[0041] The interaction between the user terminal 110 and the smart device 130 can be achieved through a local area network or a wide area network. In one application scenario, the user terminal 110 establishes a communication connection between the router 190 and the gateway 150 by means of a wired or wireless method. For example, the wired or wireless method includes but is not limited to WIFI, so that the user terminal 110 and the gateway 150 are deployed in the same local area network, thereby enabling the user terminal 110 to interact with the smart device 130 through the local area network path. In another application scenario, the user terminal 110 establishes a communication connection between the server 170 and the gateway 150 by means of a wired or wireless method. For example, the wired or wireless method includes but is not limited to 2G, 3G, 4G, 5G, WIFI, etc., so that the user terminal 110 and the gateway 150 are deployed in the same wide area network, thereby enabling the user terminal 110 to interact with the smart device 130 through the wide area network path.

[0042] The server side 170 can also be considered as a cloud, cloud platform, platform side, service side, etc. The server side 170 can be a single server, a server cluster composed of multiple servers, or a cloud computing center composed of multiple servers, so as to better provide background services to a large number of user terminals 110. For example, the background services include device control services.

[0043] For the user, after the user terminal 110 displays the area editing page showing the current location of the target, the user can trigger an editing operation in the area editing page in order to configure at least one monitoring area according to the current location of the target within the corresponding monitoring range of the sensing device.

[0044] For the user terminal 110, it can detect the editing operation, generate a customized monitoring area by responding to the editing operation, and then generate an automation configuration plan corresponding to the monitoring area by displaying the automation configuration page for the monitoring area and responding to the automation configuration operation for the monitoring area on the automation configuration page. Based on the automation configuration plan, the area status of the monitoring area is monitored to achieve automatic control of the controlled equipment within the monitoring range.

[0045] In one application scenario, sensing devices report the regional status of each monitoring area to gateway 150 via a local area network (LAN). Gateway 150 then notifies the controlled devices within each monitoring area via the LAN to execute the corresponding actions. This approach eliminates the need for internet access; as long as both the sensing device and the controlled device are connected to gateway 150, device control can be achieved. Even network outages will not affect device control, effectively ensuring the success rate of device control.

[0046] In another application scenario, sensing devices report the regional status of each monitoring area to server 170 via a wide area network (WAN). Server 170 then notifies the controlled devices in each monitoring area via the WAN to perform corresponding actions. This approach eliminates the need for gateway deployment, reducing device control costs.

[0047] Please refer to FIG2 . An embodiment of the present application provides a device control method, which is applicable to an electronic device. Specifically, the electronic device may be the user terminal 110 in the implementation environment shown in FIG1 .

[0048] In the following method embodiment, for ease of description, the execution subject of each step of the method is an electronic device as an example, but this does not constitute a specific limitation. As shown in Figure 2, the method may include the following steps:

[0049] Step 310: Display the area editing page.

[0050] First of all, it should be noted that the area editing page displays the current position of the target. Among them, the target refers to an object that can move within the corresponding monitoring range of the sensing device. For example, the target can be a person, a robot, a pet, etc. It can be understood that as the target moves within the monitoring range, the position of the target within the monitoring range detected by the sensing device will change. Accordingly, the position of the target within the monitoring range displayed on the area editing page of the user terminal will also change accordingly, so that subsequent users can more accurately adjust the monitoring area within the monitoring range in a timely manner based on the current position of the target within the monitoring range.

[0051] For monitoring the position of the target, taking the sensing device as a radar device as an example, first obtain the horizontal angle measured by the radar device itself The pitch angle θ and the distance R between the radar device and the target are obtained. The pitch angle φ when the radar device is installed is obtained by the acceleration sensor. The target position (x, y, z) is calculated according to the following formula: z=R*sin(θ+φ).

[0052] In this way, the pitch angle of the radar device when it is installed is introduced through the acceleration sensor, and the pitch angle measured by the radar device itself is corrected to ensure that the position of the target is more accurate.

[0053] Secondly, the area editing page is used to configure at least one monitoring area according to the current location of the target within the corresponding monitoring range of the sensing device.

[0054] It should be understood that, due to the limitations of the sensing performance of the sensing device itself, the monitoring range of the sensing device is relatively fixed, and a fixed monitoring range may lead to erroneous device control. To this end, this embodiment provides a region editing page for configuring more fine-grained monitoring areas within the corresponding monitoring range of the sensing device. In other words, the corresponding monitoring range of the sensing device can be divided into multiple monitoring areas through the region editing page, thereby achieving refined device control.

[0055] FIG3 shows a schematic diagram of the region editing page. As shown in FIG3 , in the region editing page 301, region 302 can represent the corresponding monitoring range of the sensing device, or the monitoring area corresponding to the target space, region 303 represents the desk monitoring area, and region 304 represents the bed monitoring area. Based on this, taking the sensing device as a human body sensor as an example, when the desk monitoring area detects a person, the desk lamp on the desk can be turned on; when the bed monitoring area detects a person, the bedside reading light can be turned on; conversely, whether the desk detection area or the bed monitoring area detects a person, it is considered as a person being detected for the sensing device's monitoring range. However, when a person is detected in the desk monitoring area, the bedside reading light will not be turned on because a person is detected in the monitoring range. Similarly, when a person is detected in the bed monitoring area, the desk lamp on the desk will not be turned on because a person is detected in the monitoring range. This achieves refined control of the controlled devices in different monitoring areas.

[0056] As explained here, the monitoring areas within the corresponding monitoring range of the sensing device are represented by graphical symbols on the region editing page. For example, in Figure 3, the graphical symbol is a rectangle. Of course, in other embodiments, the graphical symbol can also be any other regular shape, and this embodiment does not constitute a specific limitation. In other words, the monitoring areas displayed on the region editing page are essentially graphical symbols, which are mapped to the monitoring areas within the corresponding monitoring range of the sensing device.

[0057] In a possible implementation, step 310 may include the following steps:

[0058] Step 311: Display at least one device identifier on the device page.

[0059] Among them, each device identifier is used to represent a bound sensing device. Here, bound means that the sensing device has been connected to the server, so that interaction between the sensing device and the server can be achieved. The server can refer to the gateway 150 in the implementation environment shown in Figure 1, and the server interacts with the sensing device through a local area network path; the server can also refer to the server 170 in the implementation environment shown in Figure 1, and the server interacts with the sensing device through a wide area network path. With the binding of the sensing device, the device identifier corresponding to the sensing device can be added to the device page, so that the sensing device can be displayed in the device page through the device identifier.

[0060] FIG4a illustrates a schematic diagram of a device page. As shown in FIG4a , on device page 401, the user terminal displays various bound sensing devices correspondingly through different device identifiers. For example, sensing devices may include sensing monitoring devices, and sensing detection devices may specifically include human sensors, represented by device identifier 402. Sensing devices may also include door and window sensors, represented by device identifier 403. Of course, in other embodiments, device identifiers are not limited to being represented by a combination of graphic and textual symbols, but may also be represented in any other form, such as by the name of the sensing device entered by the user through the user terminal. This is not intended to be a specific limitation.

[0061] Step 313: If a selection operation for each device identifier is detected, the monitoring page corresponding to the sensing device is entered from the device page.

[0062] The sensing device corresponds to the selected device identifier.

[0063] Continuing with FIG4a, assuming that a user wishes to access the monitoring page corresponding to the human body sensor represented by device identifier 402, they click on device identifier 402. The electronic device detects this click and displays the monitoring page corresponding to the human body sensor, as shown in FIG4b. This click is considered a selection operation for device identifier 402.

[0064] It is worth mentioning that entering the monitoring page corresponding to the sensing device from the device page may mean that the user terminal jumps from the device page to the monitoring page corresponding to the sensing device, or it may mean that the user terminal overwrites the device page with the monitoring page corresponding to the sensing device, which is not limited here.

[0065] Step 315: Display the monitoring page corresponding to the sensing device, and the monitoring page displays a region editing entrance.

[0066] The area editing entry is used to configure at least one monitoring area within the corresponding monitoring range of the sensing device.

[0067] Step 317: In response to the trigger operation on the region editing entry, enter the region editing page from the monitoring page.

[0068] Figure 4b shows a schematic diagram of a monitoring page corresponding to a sensing device. As shown in Figure 4b, the user terminal displays a region editing entry 502 on the monitoring page 501. Assuming that the user wishes to access the region editing page from the monitoring page 501, they click on the region editing entry 502. The user terminal detects this click and displays the region editing page. This click is considered a triggering operation for the region editing entry.

[0069] In one possible implementation, the monitoring page also displays the regional status of each monitoring area. The regional status of each monitoring area reflects the positional relationship between each monitoring area / sensing device / monitoring range and the target. For example, this positional relationship could be that the target is present in each monitoring area, or that the target is far away from each monitoring area, though this is not limited here. This facilitates refined device control based on the regional status of each monitoring area.

[0070] The status of each monitoring area and the location of the target within each monitoring area are monitored by the sensing device and reported to the server to which the sensing device is connected, and then pushed by the server to the user terminal for display.

[0071] In a possible implementation, the monitoring page also displays a device editing entry.

[0072] Continuing with FIG4b , on monitoring page 501, the user terminal also displays the locations 503 and 504 of targets within each monitoring area, the regional status 505 of each monitoring area, and a device editing entry 506. It should be noted that monitoring page 501 in FIG4b merely exemplarily displays the locations of two targets within a monitoring area and the regional status of a monitoring area. This embodiment does not limit the number of targets or monitoring areas that can be displayed on the monitoring page.

[0073] Assuming that the user clicks on the device editing entry 506 through the user terminal, the user terminal will be able to detect this click operation, and then enter the device editing page from the monitoring page 501 in response to the trigger operation (i.e., click operation) on the device editing entry 506, so as to use the device editing page to edit the monitoring properties of the sensing device regarding each monitoring area.

[0074] Figure 4c shows a schematic diagram of the monitoring properties of the sensing device regarding the monitoring area displayed in the device editing page. It should be noted that the device editing page can correspond to only one monitoring area or multiple monitoring areas at the same time, which is not limited here. As shown in Figure 4c, the monitoring properties include but are not limited to: proximity sensing distance, working mode, sensing sensitivity, detection direction, etc. The far and near sensing distance can be further divided into "far" distance suitable for large space scenes, "small" distance suitable for small space scenes, and "medium" distance suitable for other space scenes (such as smart home scenes). It can also be considered that the sensing distance actually reflects the sensing sensitivity of the sensing device. For example, a long distance indicates that the sensing sensitivity of the sensing device is the worst, while a small distance indicates that the sensing sensitivity of the sensing device is the highest. For human body sensors, the working mode can be further divided into personnel presence mode and personnel positioning mode. The sensing sensitivity can be further divided into presence monitoring sensitivity and fall monitoring sensitivity. The detection direction can be further divided into directional monitoring, which can monitor the target from at least one direction of the top, bottom, left and right of the monitoring area, and non-directional monitoring, which can monitor all targets in the monitoring area. That is, if "non-directional monitoring" is turned on, the target will be monitored non-directionally; if "non-directional monitoring" is turned off, the target will be monitored directionally.

[0075] It should be noted that the specific forms of the above operations will vary depending on the input components (e.g., mouse, keyboard, display screen) configured in the electronic device. For example, if the electronic device is a smartphone, based on the display screen configured in the smartphone, the above operations may be gesture operations such as clicking and sliding. If the electronic device is a desktop computer, based on the mouse configured in the desktop computer, the above operations may be mechanical operations such as single-clicking, double-clicking, and dragging, which are not limited here.

[0076] As the area editing page showing the current location of the target is displayed in the electronic device, the user can configure at least one monitoring area according to the current location of the target within the corresponding monitoring range of the sensing device based on the area editing page, so as to facilitate the subsequent refinement of device control.

[0077] Step 330: If an editing operation is detected in the area editing page for configuring a monitoring area, a customized monitoring area is generated.

[0078] In one possible implementation, the editing operations triggered on the region editing page to configure a monitoring region may include at least one of the following: an operation for editing the display range of the monitoring region when displayed on the region editing page, an operation for editing the name of the monitoring region, an operation for editing the type of the monitoring region, an operation for editing the background color of the monitoring region when displayed on the region editing page, and an operation for applying the edited monitoring region to a sensing device. The display range indicates the area occupied by the monitoring region within the monitoring range.

[0079] In one possible implementation, the various editing operations are detected at corresponding entrances for editing the monitoring area. The process of displaying the entrances corresponding to the various editing operations on the area editing page may include the following steps:

[0080] Step 410: In the region editing page, if a trigger operation for adding a region entry or a trigger operation for displaying a monitoring region is detected, the region editing page is controlled to enter a region editing state from a region display state.

[0081] Among them, the trigger operation for adding an entrance to a region is triggered for adding a new monitoring region; the trigger operation for displaying a monitoring region is triggered for modifying an existing monitoring region.

[0082] FIG5 a shows a schematic diagram of a region editing page in a region display state. As shown in FIG5 a , in a region editing page 301 in a region display state, a user can click on a region adding entry 601 to trigger the region editing page 301 to enter a region editing state from the region display state, thereby adding a new monitoring region within the corresponding monitoring range of the sensing device. In addition, for a monitoring region 602 displayed in the region editing page 301, a user can also long press 603 on the monitoring region 602 through a user terminal, thereby correspondingly triggering the region editing page 301 to enter a region editing state from the region display state, thereby modifying the monitoring region 602 in the region editing page in the region editing state. A click operation is considered a trigger operation for a region adding entry, and a long press operation is considered a trigger operation for a displayed monitoring region.

[0083] Step 430 : In the region editing page in the region editing state, in response to the editing operation on each monitoring region, edit each monitoring region.

[0084] In a possible implementation, at least one entry for editing a monitoring area is displayed on the area editing page in the area editing state, so that an editing operation is detected at each entry, and the user terminal edits each monitoring area in response to the editing operation.

[0085] In a possible implementation, at least one entry for editing a monitoring area is displayed in a floating window on the area editing page in the area editing state.

[0086] Figure 5b shows a schematic diagram of the area editing page in the area editing state. As shown in Figure 5b, after the area editing page enters the area editing state, the area editing page will correspondingly display multiple entrances for editing the monitoring area, including but not limited to: an entrance 701 for editing the display range of the monitoring area (essentially a blank area of ​​the area editing page), an entrance 703 for editing the name of the monitoring area, an entrance 704 for editing the type of the monitoring area, an entrance 705 for editing the background color of the monitoring area, and an entrance 706 for applying the edited monitoring area to the sensing device (which can also be considered as an entrance for storing the edited monitoring area).

[0087] Taking the detection of an editing operation at entry 701 as an example, the user can select the display range of the monitoring area when it is displayed on the area editing page through a sliding gesture 702 at the user terminal at the entry 701, or select the display range of the monitoring area when it is displayed on the area editing page by clicking multiple times on different grids presented on the area editing page at the entry 701, thereby completing the editing of the display range of the monitoring area when it is displayed on the area editing page. Among them, the sliding gesture or clicking operation is regarded as an operation for editing the display range of the monitoring area when it is displayed on the area editing page. It can be understood that the larger the display range of the selected monitoring area when it is displayed on the area editing page, the larger the area occupied by the monitoring area in the corresponding monitoring range of the sensing device. In one possible implementation, the display range of the area editing page is set with a set number of grids, wherein the set number can be flexibly set according to the actual needs of the application scenario. For example, a grid in the area editing page can be mapped to 0.5 meters × 0.5 meters in the corresponding monitoring range of the sensing device. This method is not only conducive to achieving high-granularity monitoring area management of the monitoring range of the sensing equipment, but also allows users to configure corresponding device control services for the controlled devices in different monitoring areas, which is conducive to achieving refined device control and can greatly improve the user experience.

[0088] Alternatively, for example, if an edit operation is detected at entry 703 of the user terminal, the user clicks entry 703 on the user terminal, causing an input dialog box 707 to pop up on the region editing page. The user can then enter the name of the monitoring region, "Region 1," in input dialog box 707 and click "OK" to complete the input, thereby completing the editing of the monitoring region name. The above-mentioned operations such as clicking, inputting, and clicking are considered operations for editing the name of the monitoring region.

[0089] After the user completes editing the monitoring areas through the user terminal, the user terminal will display the edited monitoring areas on the area editing page. Referring back to Figure 3, area editing page 301 displays a desk monitoring area 303 and a bed monitoring area 304. In other words, based on the area editing page, the user has configured at least two monitoring areas within the corresponding monitoring range of the sensing device.

[0090] Step 350: Display an automation configuration page for the monitoring area.

[0091] The Automation Configuration page is used to configure at least one of the trigger conditions and controlled actions associated with the monitoring area. The trigger condition is related to the state of the monitoring area, and the controlled action is the corresponding action that the controlled devices within the monitoring range need to perform when the trigger condition is met.

[0092] Regarding the automatic configuration page, the user terminal can enter it through the automatic entrance added in the area editing page, or through the automatic entrance dedicated to the client, which is not limited here.

[0093] In one possible implementation, the automation configuration page is accessed through an automation portal in a page associated with the sensing device. Specifically, step 350 may include the following steps: displaying a page associated with the sensing device, the page displaying an automation portal; and, in response to a triggering operation on the automation portal, accessing the automation configuration page from the associated page.

[0094] Figure 6a shows a schematic diagram of entering the automation configuration page from the association page. As shown in Figure 6a, on association page 800, the user terminal displays the automation entry "Automation". When the user clicks on the automation entry, the user terminal enters the automation configuration page 801 from association page 800. On automation configuration page 801, "when" is used to configure trigger conditions related to the monitoring area, and "on" is used to configure controlled actions related to the monitoring area. The click operation is considered a trigger operation for the automation entry.

[0095] Step 370 : In response to the automation configuration operation for the monitoring area on the automation configuration page, generate an automation configuration plan corresponding to the monitoring area.

[0096] The automation configuration scheme is used to realize the automation control of the controlled equipment by monitoring the regional status of the monitoring area.

[0097] Referring to Figure 6b, after the user clicks "When," the user terminal proceeds from automation configuration page 801 to page 802. On page 802, if the user continues to click "Area Detection," the user terminal proceeds to page 803, where it can view monitoring areas for which automation configuration plans can be generated. For example, in Figure 6b, monitoring areas may include a TV area, a coffee table area, a sofa area, a dining area, and so on.

[0098] After determining the monitoring area on page 803, as shown in Figure 6c, the user terminal can enter page 804 to configure corresponding trigger conditions for the monitoring area of ​​the sensing device. For example, the trigger conditions include but are not limited to: the area status of the monitoring area indicates whether there is someone in the monitoring area, no one in the monitoring area, someone is approaching / entering the monitoring area, and someone is leaving / moving away from the monitoring area.

[0099] Similarly, the process of configuring controlled actions is similar, that is, when the user terminal detects an automated configuration operation for the controlled action entrance, it configures the controlled data associated with the trigger condition. The controlled data is used to instruct the controlled device to perform the corresponding action, which is not repeated here.

[0100] After configuring at least one of the trigger conditions and controlled actions for the determined monitoring area, the user terminal can generate an automated configuration plan for the monitoring area. As shown in Figure 6c, the sensing device's monitoring range is the living room, where the monitoring area includes the sofa area. The trigger condition for the sofa area is someone entering the sofa area, and the controlled action is turning on the living room lights in the sofa area.

[0101] Thus, the user terminal can realize automatic control of whether the lighting lamp located in the sofa area in the living room is turned on by monitoring whether the area status of the sofa area is that someone has entered the sofa area.

[0102] That is to say, when the monitoring areas displayed in the area editing page are applied to the sensing device, the sensing device will monitor the area status of each monitoring area and report the area status of each monitoring area to the server to which the sensing device is connected. For example, the server can be the gateway 150 or the server 170 in the implementation environment shown in Figure 1.

[0103] Accordingly, after receiving the regional status of each monitoring area reported by the sensing device, the server can determine whether to perform refined device control on the controlled devices in each monitoring area based on the regional status of each monitoring area detected by the sensing device. As mentioned above, if the human body sensor detects that someone is in the desk monitoring area, the server can control the desk lamp to turn on; if the human body sensor detects that someone is in the bed monitoring area, the server can control the reading light at the bedside to turn on.

[0104] Through the above process, the configuration of at least one monitoring area within the corresponding monitoring range of the sensing device is completed, and the corresponding actions performed by the controlled devices within the monitoring range can be triggered by the regional status of each monitoring area within the monitoring range, so that the monitoring of the regional status of each monitoring area is independent of each other and will not interfere with each other, and the relationship between each target and each monitoring area is also independent of each other, realizing refined device control, thereby effectively solving the problem in related technologies that the device control is difficult to be precise due to the fixed monitoring range of the sensing device.

[0105] Please refer to Figure 7. An embodiment of the present application provides a device control method, which is applicable to an electronic device. The electronic device may be a sensing device, specifically the smart device 130 in the implementation environment shown in Figure 1. For example, the smart device 130 may be an electronic device such as a radar device or a human body sensor. The electronic device may also be the gateway 150 or the server 170 in the implementation environment shown in Figure 1. In the following method embodiment, for ease of description, the execution subject of each step of the method is an electronic device as an example for illustration, but this does not constitute a specific limitation. As shown in Figure 7, the method may include the following steps:

[0106] Step 710: Obtain the location of the target in each monitoring area. The monitoring area is generated based on the editing operation triggered in the area editing page.

[0107] The area editing page is used to configure at least one monitoring area according to the current location of the target within the corresponding monitoring range of the sensing device.

[0108] Step 730: Determine the regional status of each monitoring area based on the location of the target in each monitoring area.

[0109] That is, the regional status of each monitoring area reflects the positional relationship between the target and at least one of the monitoring area, the sensing device, and the monitoring range at different times.

[0110] Step 750: If the area status of the monitoring area meets the triggering condition in the corresponding automation configuration solution, the controlled device is controlled to perform a corresponding action according to the controlled data associated with the triggering condition in the automation configuration.

[0111] In the above process, the regional status of each monitoring area detected by the sensing device is reported to the connected server. On the one hand, the server can be the gateway 150 in the implementation environment shown in Figure 1. The gateway then notifies the controlled devices in each monitoring area to perform corresponding actions via the local area network path. On the other hand, the server can be the server 170 in the implementation environment shown in Figure 1. The server then notifies the controlled devices in each monitoring area to perform corresponding actions via the wide area network path. It can be understood that the monitoring results and regional automation control can be completed within the sensing device. Therefore, even in the event of a network outage, as long as the local area network is not disconnected, it can be executed through the local area network, greatly improving the stability of regional monitoring and regional automation execution.

[0112] In other words, when the target enters different monitoring areas within the corresponding monitoring range of the sensing device, the electronic device can achieve refined device control for different monitoring areas.

[0113] In an exemplary embodiment, step 730 may include the following steps:

[0114] Step 731 : For each monitoring area, based on the position of the target in the monitoring area, determine the positional relationship between the target and the monitoring area at different times.

[0115] Step 733: Determine the state of the monitoring area according to the positional relationship between the target and the monitoring area at different times.

[0116] The regional status of the monitoring area substantially reflects the positional relationship between the target and at least one of the monitoring area, the sensing device and the monitoring range.

[0117] In one possible implementation, the sensing device monitors the status of each monitoring area using at least one of the following monitoring methods: directional monitoring and non-directional monitoring. Directional monitoring refers to monitoring targets in the up-down and left-right directions within each monitoring area / range, while non-directional monitoring refers to monitoring all targets within each monitoring area / range.

[0118] Then, step 733 may include the following steps: if the monitoring attribute of the sensing device is directional monitoring, then determine the direction in which the target enters the monitoring area based on the positional relationship between the target and the monitoring area at different times; and determine the area status of the monitoring area based on the determined direction and positional relationship.

[0119] In one possible implementation, the sensing device monitors the status of each monitoring area using at least one of the following monitoring methods: target mobility monitoring and target presence monitoring. Target mobility monitoring refers to monitoring whether a target enters, approaches, leaves, or moves away from each monitoring area or range, while target presence monitoring refers to monitoring whether a target exists within each monitoring area or range.

[0120] In one possible implementation, the regional status of the monitoring area may include at least one of the following: a target entering the monitoring range of the sensing device, a target leaving the monitoring range of the sensing device, a target entering the monitoring area, a target leaving the monitoring area, a target approaching the monitoring area, a target leaving the monitoring area, a target approaching the sensing device, a target leaving the sensing device, a target existing in the monitoring range, a target not existing in the monitoring range, a target existing in the monitoring area, and a target not existing in the monitoring area. It should be noted that the target approaching the sensing device can be considered as a special case of the target approaching the monitoring area, that is, in this special case, the target approaches the monitoring area where the sensing device is located. Similarly, the target leaving the sensing device can also be considered as a special case of the target leaving the monitoring area, that is, the target leaving the monitoring area where the sensing device is located.

[0121] In one possible implementation, combined with directional monitoring, the area status of the monitoring area may also include at least one of the following: the target enters the monitoring range of the sensing device on the left / right, the target leaves the monitoring range of the sensing device on the left / right, the target enters the monitoring area on the left / right, the target leaves the monitoring area on the left / right, the target enters the monitoring range of the sensing device above / below, the target leaves the monitoring range of the sensing device above / below, the target enters the monitoring area above / below, and the target leaves the monitoring area above / below.

[0122] It should be noted that the target entering the monitoring area is different from the target approaching the monitoring area. Figure 8 shows a schematic diagram of different areas within the monitoring range of the sensing device. In Figure 8, the monitoring range of the sensing device includes at least one monitoring area, and a buffer area is set at the boundary of the monitoring area to isolate the monitoring area from the non-monitoring area through the buffer area. It should be noted that the non-monitoring area is only for the monitoring area, but is still within the monitoring range of the sensing device.

[0123] Based on this, when the target enters the buffer area, it is only considered that the target is approaching the monitoring area, and only when the target leaves the buffer area and enters the monitoring area can it be considered that the target enters the monitoring area. Similarly, the electronic device is based on the buffer area between the monitoring area and the non-monitoring area, and the monitoring area leaves the target, which is different from the target leaving the monitoring area. In this way, it avoids the situation where the sensing device locates the target at the boundary of the monitoring area and the position of the target jumps back and forth between the monitoring area and the non-monitoring area due to noise. It can effectively improve the accuracy of the regional status of each monitoring area monitored by the sensing device, thereby avoiding erroneous device control caused by repeated changes in the regional status of the monitoring area, which is further conducive to improving the accuracy of device control.

[0124] Then, step 733 may include the following steps: based on the positional relationship between the target and the monitoring area at different moments, if the positional relationship indicates that the target is located in the buffer area at the current moment, then determine whether the target is close to the non-monitoring area at the previous moment, and the buffer area is located between the monitoring area and the non-monitoring area; if not, then determine that the area status of the monitoring area is that the target is close to the monitoring area.

[0125] It should be noted that the difference between entering the monitoring area and the presence of a target in the monitoring area lies in the different monitoring methods, that is, entering the monitoring area belongs to target mobility monitoring, while the presence of a target in the monitoring area belongs to target existence monitoring. In other words, the two can be considered to be the same area status.

[0126] When each monitoring area displayed on the area editing page of the user terminal is applied to the sensing device, the sensing device will monitor the area status of each monitoring area to obtain the area status of each monitoring area.

[0127] Step 751: Determine whether the area status of the monitoring area meets the triggering conditions in the automation configuration solution.

[0128] The automation configuration plan is configured based on the state of the monitoring area and the actions performed by the controlled devices within the monitoring area. In other words, the automation configuration plan includes trigger conditions and controlled data. The trigger conditions are used to determine whether the state of the monitoring area is met, and the controlled data is used to instruct the controlled devices within the monitoring area to perform the corresponding actions.

[0129] When it is determined that the area status of the monitoring area meets the triggering condition in the automation configuration solution, step 753 is executed.

[0130] On the contrary, when it is determined that the regional status of the monitoring area does not meet the trigger conditions in the automation configuration plan, the electronic device continues to execute step 751 until the regional status of the monitoring area meets the trigger conditions in the automation configuration plan, and then enters step 753 to execute device control.

[0131] It should be noted that, in this embodiment, the regional status of each monitoring area monitored by the sensing device can be pushed to the user terminal via the connected server, so that the user terminal can achieve refined device control based on the regional status of each monitoring area.

[0132] Step 753: If the area status of the monitoring area meets the triggering condition in the corresponding automation configuration solution, the controlled device is controlled to perform a corresponding action according to the controlled data associated with the triggering condition in the automation configuration solution.

[0133] The above-described embodiments enable monitoring of the regional status of each monitoring area under multiple monitoring modes, which can be used as a trigger for device linkage, enabling refined automatic device control and improving the user experience. For example, in a smart home scenario, when a user enters the bathroom, the human presence sensor deployed in the bathroom detects the presence of a person in the toilet monitoring area and accurately controls the toilet lid to open, greatly facilitating the user's smart home life.

[0134] In one embodiment, Figures 9a to 9c illustrate a process for monitoring the regional status of each monitoring area. Figure 9a illustrates a process for monitoring the regional status of at least one of approaching and moving away from the monitoring area. Based on the monitoring process illustrated in Figure 9a, the regional status of each monitoring area that can be monitored by the sensing device includes the target approaching the monitoring area and the target moving away from the monitoring area.

[0135] Specifically, the target can be a human body. The electronic device obtains the coordinate information of N targets within the monitoring range and loops through the position of each target. If the target is identified as being outside the buffer area, and the target was last detected within the buffer area, the target is considered to be far away from the sensing device. The purpose of setting the buffer area is because the target coordinates output by the radar target detection have a certain error. If the buffer area is not set, the target may continue to be reported as approaching or moving away from the sensing device at the boundary of the monitoring range. If the target is within the approaching and moving away area, and the last detection result is not within the approaching and moving away area, the target is considered to be close to the sensing device.

[0136] Figure 9b shows the monitoring process of the regional status of at least one monitoring area of ​​entry and exit combined with directional monitoring. Based on the monitoring process shown in Figure 9b, the regional status of each monitoring area that can be monitored by the sensing device includes the target entering the monitoring area, the target leaving the monitoring area, the target entering the monitoring area from the left, the target leaving the monitoring area from the left, the target entering the monitoring area from the right, and the target leaving the monitoring area from the right.

[0137] Specifically, taking the human body as an example, the entire monitoring area is judged based on the first person entering and the last person leaving. The steps are as follows:

[0138] Determine whether it is the first person to come in. The judgment condition is that the result of the last detection was that there was no one in the area, but this time it was detected that there was someone in the area.

[0139] If it is the first person to come in, the electronic device determines whether the detection direction is directed detection or non-directed detection and outputs the corresponding information. If the detection direction is non-directed detection, the electronic device reports that someone has entered and that there are people in the area.

[0140] If the detection direction is directional detection, the direction of entry is determined. If it is from the left, the electronic device sends "enter from the left, there are people in the area." If it is from the right, it sends "enter from the right, there are people in the area."

[0141] Determine whether the last person has left. The judgment condition is that the result of the last detection was that there were people in the area, but this time it was detected that there were no people in the area.

[0142] If it is the first person to leave, it determines whether it is directed detection or non-directed detection and outputs the corresponding information. If it is non-directed detection, the electronic device reports that someone has left and that there is no one in the area.

[0143] If it is a directional detection, the direction of entry is determined. If it leaves from the left, the electronic device will send a message of "left left, no one in the area". If it leaves from the right, it will report "right left, no one in the area".

[0144] Figure 9c shows the monitoring process of the regional status of the monitoring area combined with target mobility monitoring and target presence monitoring. Based on the monitoring process shown in Figure 9c, the regional status of each monitoring area that can be monitored by the sensing device includes the presence of a target in the monitoring area, the absence of a target in the monitoring area, the target approaching the monitoring area, the target moving away from the monitoring area, the target entering the monitoring area, and the target leaving the monitoring area.

[0145] Specifically, regional automated judgment is performed on each monitoring area. Each monitoring area is independent of each other and needs to be compared with each target. The judgment logic is as follows:

[0146] The electronic device sets the status of monitoring area i to no one;

[0147] The electronic device compares the monitoring area i with all the targets. If the target is within the monitoring area, the status of the monitoring area i is set to be occupied.

[0148] The electronic device determines whether the target is within the buffer area;

[0149] When the target is in the buffer area and the target was outside the monitoring area i last time, then someone is approaching the monitoring area i;

[0150] When the target is in the buffer area and the target was inside the monitoring area i last time, then the distance is that someone is away from the monitoring area i;

[0151] The electronic device goes through all the targets;

[0152] When someone approaches monitoring area i and is recorded, the electronic device sends a signal that someone is approaching monitoring area i;

[0153] When someone leaves the monitoring area i and is recorded, the electronic device reports that someone has left the monitoring area i;

[0154] When the state of the entire area in the previous frame is occupied and the state in this frame is unoccupied, the electronic device reports that someone has left the monitoring area i and there is no one in the monitoring area i;

[0155] When the state of the entire area in the previous frame is no one and the state in this frame is someone, the electronic device reports that someone has entered the monitoring area i and there is someone in the monitoring area i;

[0156] The electronic device traverses all monitoring areas and outputs the monitoring results.

[0157] In this embodiment, a proximity buffer area is set to prevent the target from frequently reporting information on whether there is someone or not at the boundary due to the existence of measurement noise of the sensing device, thereby effectively improving the accuracy of the regional status of each monitoring area monitored by the sensing device, thereby avoiding erroneous device control caused by repeated changes in the regional status of the monitoring area, which is further conducive to improving the accuracy of device control.

[0158] It should be understood that although the various steps in the flowcharts of Figures 2, 7, and 9a-9c are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in Figures 2, 7, and 9a-9c may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these sub-steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0159] The following are embodiments of the apparatus of the present application, which can be used to execute the device control method involved in the present application. For details not disclosed in the apparatus embodiments of the present application, please refer to the method embodiments of the device control method involved in the present application.

[0160] Please refer to Figure 10. An embodiment of the present application provides a device control apparatus 900, including but not limited to: an editing page display module 910, a monitoring area generation module 930, a configuration page display module 950, and a configuration plan generation module 970.

[0161] Among them, the editing page display module 910 is used to display the area editing page; the area editing page shows the current location of the target, and the area editing page is used to configure at least one monitoring area according to the current location of the target within the corresponding monitoring range of the sensing device.

[0162] The monitoring area generating module 930 is configured to generate a customized monitoring area if a region editing operation is detected to be triggered in the region editing page for configuring the monitoring area.

[0163] The configuration page display module 950 is used to display the automation configuration page for the monitoring area; the configuration plan generation module is used to generate an automation configuration plan corresponding to the monitoring area in response to the automation configuration operation for the monitoring area on the automation configuration page.

[0164] The configuration scheme generating module 970 is used to generate an automation configuration scheme corresponding to the monitoring area in response to the automation configuration operation for the monitoring area on the automation configuration page; the automation configuration scheme is used to realize the automation control of the controlled equipment by monitoring the area status of the monitoring area.

[0165] In an exemplary embodiment, the configuration page display module includes: an associated page display unit for displaying an associated page corresponding to a sensing device; the associated page displays an automation entrance; a configuration page entry unit for entering an automation configuration page from the associated page in response to a trigger operation for the automation entrance; the automation configuration page is used to configure at least one of a trigger condition and a controlled action related to a monitoring area.

[0166] In an exemplary embodiment, the configuration scheme generation module includes: a trigger condition configuration unit, which is used to configure corresponding trigger conditions for the monitoring area of ​​the sensing device if an automation configuration operation for the trigger condition configuration entry is detected in the automation configuration page; generate an automation configuration scheme based on the configured trigger conditions, and display the automation configuration scheme on the automation configuration page.

[0167] In an exemplary embodiment, a controlled data configuration unit is used to configure the controlled data associated with the trigger condition when an automated configuration operation for a controlled action entry is detected; the controlled data is used to instruct the controlled device to perform a corresponding action; and a configuration scheme display unit is used to generate an automated configuration scheme based on the configured controlled data and display the automated configuration scheme on an automated configuration page.

[0168] In an exemplary embodiment, the editing page display module includes: a monitoring page display unit for displaying a monitoring page corresponding to the sensing device; the monitoring page displays an area editing entrance; and an editing page entry unit for entering the area editing page from the monitoring page in response to a trigger operation on the area editing entrance.

[0169] In an exemplary embodiment, the monitoring page display unit includes: an identification display subunit, which is used to display at least one device identification in the device page; each device identification is used to represent a bound sensing device; a monitoring page entry subunit, which is used to enter the monitoring page corresponding to the sensing device from the device page if a selection operation for each device identification is detected; the sensing device corresponds to the selected device identification.

[0170] In an exemplary embodiment, the device also includes: an entry display module for displaying a device editing page; the device editing page displays at least one entry for editing the monitoring properties of the sensing device regarding the monitoring area; and a property editing module for editing the monitoring properties of the sensing device regarding the monitoring area in response to a property editing operation on at least one entry, so that the sensing device monitors the area status of the monitoring area according to the edited monitoring properties.

[0171] In an exemplary embodiment, the device also includes: a state switching module, which is used to control the area editing page from the area display state to the area editing state if a trigger operation for adding an entry to the area or a trigger operation for the displayed monitoring area is detected in the area editing page; in the area editing page in the area editing state, in response to the editing operation for each monitoring area, edit each monitoring area.

[0172] In an exemplary embodiment, the device also includes: a state switching module, which is used to control the area editing page from the area display state to the area editing state if a trigger operation for the displayed monitoring area is detected in the area editing page; in the area editing page in the area editing state, in response to the editing operation for each monitoring area, edit each monitoring area.

[0173] Please refer to FIG. 11 . An embodiment of the present application provides a device control apparatus 1000 , including but not limited to: a position acquisition module 1010 , a status monitoring module 1030 , and a device control module 1030 .

[0174] Among them, the position acquisition module 1010 is used to obtain the position of the target in each monitoring area. The monitoring area is generated based on the editing operation triggered in the area editing page; the area editing page is used to configure at least one monitoring area according to the current position of the target within the corresponding monitoring range of the sensing device.

[0175] The status monitoring module 1030 is configured to determine the regional status of each monitoring area based on the location of the target in each monitoring area.

[0176] The device control module 1050 is configured to control the controlled device to perform a corresponding action according to the controlled data associated with the trigger condition in the automation configuration if the area status of the monitoring area meets the trigger condition in the corresponding automation configuration.

[0177] In an exemplary embodiment, the status monitoring module includes: a position relationship determination unit, which is used to determine, for each monitoring area, the position relationship between the target and the monitoring area at different times based on the position of the target in the monitoring area; and an area status determination unit, which is used to determine the area status of the monitoring area according to the position relationship between the target and the monitoring area at different times.

[0178] In an exemplary embodiment, the area status determination unit includes: a direction determination subunit, which is used to determine the direction in which the target enters the monitoring area based on the positional relationship between the target and the monitoring area at different times if the monitoring attribute of the sensing device is directional monitoring; and a first state determination subunit, which is used to determine the area status of the monitoring area based on the determined direction and positional relationship.

[0179] In an exemplary embodiment, the area status determination unit includes: a buffer area determination subunit, which is used to determine whether the target at the previous moment is close to the non-monitoring area based on the position relationship between the target and the monitoring area at different moments, if the position relationship indicates that the target is located in the buffer area at the current moment; the buffer area is located between the monitoring area and the non-monitoring area; and a second state determination subunit, which is used to determine that the area status of the monitoring area is that the target is close to the monitoring area if the answer is no.

[0180] It should be noted that the device control device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example when performing device control. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device control device will be divided into different functional modules to complete all or part of the functions described above.

[0181] In addition, the device control apparatus and the device control method provided in the above embodiments belong to the same concept, wherein the specific manner in which each module performs operations has been described in detail in the method embodiments and will not be repeated here.

[0182] Please refer to Fig. 12, which is a schematic diagram showing the structure of a terminal according to an exemplary embodiment. The terminal is applicable to the user terminal 110 in the implementation environment shown in Fig. 1.

[0183] It should be noted that the terminal is only an example adapted for the present application and should not be considered to provide any limitation on the scope of use of the present application. The terminal should not be interpreted as needing to rely on or necessarily having one or more components in the exemplary terminal 1100 shown in Figure 12.

[0184] As shown in FIG12 , terminal 1100 includes a memory 101, a memory controller 103, one or more (only one is shown in FIG12 ) processors 105, a peripheral interface 107, a radio frequency module 109, a positioning module 111, a camera module 113, an audio module 115, a touch screen 117, and a key module 119. These components communicate with each other via one or more communication buses / signal lines 121.

[0185] Among them, the memory 101 can be used to store program instructions or codes, such as the program instructions or codes corresponding to the device control method and apparatus in the exemplary embodiment of the present application. The processor 105 executes various functions and data processing by running the program instructions or codes stored in the memory 101, thereby completing the device control method.

[0186] The memory 101 is a carrier for resource storage and can be a random access memory, such as a high-speed random access memory, a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other solid-state memory. The storage method can be temporary storage or permanent storage.

[0187] The peripheral interface 107 may include at least one wired or wireless network interface, at least one serial-parallel conversion interface, at least one input / output interface, and at least one USB interface, etc., for coupling various external input / output devices to the memory 101 and the processor 105 to achieve communication with various external input / output devices.

[0188] The RF module 109 is used to transmit and receive electromagnetic waves, converting electromagnetic waves into electrical signals, thereby communicating with other devices via a communication network. The communication network includes a cellular telephone network, a wireless local area network, or a metropolitan area network. The above communication networks can use various communication standards, protocols, and technologies.

[0189] The positioning module 111 is used to obtain the current geographical location of the terminal 1100. Examples of the positioning module 111 include, but are not limited to, a global positioning system (GPS) and positioning technologies based on a wireless local area network or a mobile communication network.

[0190] The camera module 113 is a camera that is used to take pictures or videos. The pictures or videos taken can be stored in the memory 101 and can also be sent to the host computer through the radio frequency module 109.

[0191] The audio module 115 provides an audio interface to the user, which may include one or more microphone interfaces, one or more speaker interfaces, and one or more headphone interfaces. The audio data is interacted with other devices through the audio interface. The audio data can be stored in the memory 101 and can also be sent through the radio frequency module 109.

[0192] Touch screen 117 provides an input / output interface between terminal 1100 and the user. Specifically, the user can use touch screen 117 to perform input operations, such as clicks, touches, and swipes, to cause terminal 1100 to respond to the input operations. Terminal 1100 then displays output content, such as text, images, or videos, in any form or combination thereof, to the user via touch screen 117.

[0193] The key module 119 includes at least one key to provide an interface for the user to input to the terminal 1100. The user can press different keys to make the terminal 1100 perform different functions. For example, the sound adjustment key allows the user to adjust the volume of the sound played by the terminal 1100.

[0194] It is understood that the structure shown in Figure 12 is merely illustrative, and terminal 1100 may also include more or fewer components than shown in Figure 15, or have components different from those shown in Figure 15. Each component shown in Figure 12 may be implemented using hardware, software, or a combination thereof.

[0195] 13 , an embodiment of the present application provides an electronic device 4000 , which may include a smartphone, a tablet computer, a smart device, etc. In FIG13 , the electronic device 4000 includes at least one processor 4001 and at least one memory 4003 .

[0196] Data exchange between the processor 4001 and the memory 4003 can be achieved through at least one communication bus 4002. The communication bus 4002 may include a path for transmitting data between the processor 4001 and the memory 4003. The communication bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The communication bus 4002 can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is used in FIG16, but this does not mean that there is only one bus or one type of bus.

[0197] Optionally, the electronic device 4000 may further include a transceiver 4004, which may be used for data exchange between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the number of transceivers 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.

[0198] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0199] The memory 4003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program instructions or codes in the form of instructions or data structures and can be accessed by the electronic device 4000, but is not limited to these.

[0200] The memory 4003 stores program instructions or codes, and the processor 4001 can read the program instructions or codes stored in the memory 4003 through the communication bus 4002. When the program instructions or codes are executed by the processor 4001, the device control methods in the above embodiments are implemented.

[0201] In addition, a computer-readable storage medium is provided in an embodiment of the present application, on which program instructions or codes are stored. The program instructions or codes are loaded and executed by a processor to implement the device control method as described above.

[0202] In an embodiment of the present application, an application product is provided. The application product includes program instructions or codes, and the program instructions or codes are stored in a computer-readable storage medium. The processor of the electronic device reads the program instructions or codes from the computer-readable storage medium, loads and executes the program instructions or codes, so that the electronic device implements the device control method as described above.

[0203] Compared with the related art, the embodiment of the present application can configure up to 30 monitoring areas within the monitoring range of the sensing device, and each monitoring area can be configured with a corresponding device control service, which is not limited to automation services but can also be a scene service. Not only is the monitoring of the regional status of each monitoring area independent of each other and will not interfere with each other, but the relationship between each target and each monitoring area is also independent of each other, fully ensuring refined device control; the regional status of each monitoring area is monitored by the sensing device, which can be reported not only to the server through the wide area network, but also to the gateway in the local area network. As long as the local area network is not disconnected, device control can be achieved through the local area network, fully ensuring the success rate of device control; by setting a buffer area between the monitoring area and the non-monitoring area, it effectively prevents the erroneous device control when the target is at the boundary of the monitoring area due to the noise of the sensing device, which is further conducive to improving the accuracy of device control; in addition, the pitch angle of the radar device during installation is introduced by the acceleration sensor to correct the pitch angle measured by the radar device itself, thereby effectively ensuring the accuracy of the target position.

[0204] The above description is only part of the implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A device control method, executed by an electronic device, comprising: Display the region edit page; The area editing page displays the current location of the target, and the area editing page is used to configure at least one monitoring area according to the current location of the target within the corresponding monitoring range of the sensing device; If a region editing operation is detected that is triggered in the region editing page to configure the monitoring region, a custom monitoring region is generated; Displaying an automation configuration page for the monitoring area; In response to the automation configuration operation for the monitoring area on the automation configuration page, an automation configuration plan corresponding to the monitoring area is generated; the automation configuration plan is used to realize automated control of the controlled device by monitoring the area status of the monitoring area.

2. The method of claim 1, wherein: The display of the automatic configuration page for the monitoring area includes: Displaying the associated page corresponding to the sensing device; the associated page displays an automation entrance; In response to a trigger operation on the automation entry, the automation configuration page is entered from the association page; the automation configuration page is used to configure at least one of a trigger condition and a controlled action related to the monitoring area.

3. The method of claim 1, wherein: In response to the automatic configuration operation for the monitoring area on the automatic configuration page, generating an automatic configuration solution for the monitoring area includes: In the automatic configuration page, if an automatic configuration operation for a trigger condition configuration entry is detected, a corresponding trigger condition is configured for the monitoring area of ​​the sensing device; The automated configuration plan is generated according to the triggering condition for completing the configuration, and the automated configuration plan is displayed on the automated configuration page.

4. The method of claim 1, wherein: In response to the automatic configuration operation for the monitoring area on the automatic configuration page, generating an automatic configuration solution for the monitoring area includes: When an automated configuration operation for a controlled action entry is detected, controlled data associated with the trigger condition is configured; the controlled data is used to instruct the controlled device to perform a corresponding action; The automated configuration scheme is generated according to the controlled data that has completed the configuration, and the automated configuration scheme is displayed on the automated configuration page.

5. The method of claim 1, wherein: The display area editing page includes: Display the monitoring page corresponding to the sensing device; the monitoring page displays a zone editing entrance; In response to a trigger operation on the area editing entry, the area editing page is entered from the monitoring page.

6. The method of claim 4, wherein: The display of the monitoring page corresponding to the sensing device includes: Displaying at least one device identifier on the device page; each of the device identifiers is used to represent a bound sensing device; If a selection operation for each of the device identifiers is detected, the monitoring page corresponding to the sensing device is entered from the device page; the sensing device corresponds to the selected device identifier.

7. The method of claim 1, wherein: The method further comprises: Displaying the device editing page; wherein the device editing page displays at least one entry for editing the monitoring properties of the sensing device with respect to the monitoring area; In response to the attribute editing operation for at least one entrance, the monitoring attribute of the sensing device with respect to the monitoring area is edited, so that the sensing device monitors the area status of the monitoring area according to the edited monitoring attribute.

8. The method of claim 1, wherein: After the display area editing page, the method further includes: In the area editing page, if a trigger operation for adding an entry to an area is detected, the area editing page is controlled to enter an area editing state from an area display state; In the region editing page in the region editing state, in response to an editing operation on each of the monitoring regions, each of the monitoring regions is edited.

9. The method of claim 1, wherein: After the display area editing page, the method further includes: In the region editing page, if a trigger operation for the displayed monitoring region is detected, the region editing page is controlled to enter a region editing state from a region display state; In the region editing page in the region editing state, in response to an editing operation on each of the monitoring regions, each of the monitoring regions is edited.

10. A device control method, executed by an electronic device, comprising: Obtaining the location of the target in each monitoring area, wherein the monitoring area is generated based on the editing operation triggered in the area editing page; The area editing page is used to configure at least one monitoring area according to the current position of the target within the corresponding monitoring range of the sensing device; Determining the regional status of each monitoring area based on the location of the target in each monitoring area; If the area status of the monitoring area meets the triggering condition in the corresponding automation configuration scheme, the controlled device is controlled to perform a corresponding action according to the controlled data associated with the triggering condition in the automation configuration.

11. The method of claim 10, wherein: The determining the regional status of each monitoring area based on the position of the target in each monitoring area includes: For each monitoring area, based on the position of the target in the monitoring area, determining the positional relationship between the target and the monitoring area at different times; The area state of the monitoring area is determined according to the positional relationship between the target and the monitoring area at different times.

12. The method of claim 11, wherein: The determining the area state of the monitoring area according to the positional relationship between the target and the monitoring area at different times includes: If the monitoring attribute of the sensing device is directional monitoring, the direction in which the target enters the monitoring area is determined according to the positional relationship between the target and the monitoring area at different times; The area status of the monitoring area is determined according to the determined direction and position relationship.

13. The method according to claim 12 or 10, wherein: The determining the area state of the monitoring area according to the positional relationship between the target and the monitoring area at different times includes: Based on the positional relationship between the target and the monitoring area at different times, if the positional relationship indicates that the target is located in the buffer area at the current time, determining whether the target is close to the non-monitoring area at the previous time; the buffer area is located between the monitoring area and the non-monitoring area; If not, it is determined that the area status of the monitoring area is that the target is approaching the monitoring area.

14. A device control apparatus, wherein: include: Edit page display module, used to display the area edit page; The area editing page displays the current location of the target, and the area editing page is used to configure at least one monitoring area according to the current location of the target within the corresponding monitoring range of the sensing device; A monitoring area generating module, configured to generate a custom monitoring area if a region editing operation is detected to be triggered in the region editing page for configuring the monitoring area; A configuration page display module, used to display an automated configuration page for the monitoring area; A configuration scheme generating module is used to generate an automation configuration scheme corresponding to the monitoring area in response to the automation configuration operation for the monitoring area on the automation configuration page; the automation configuration scheme is used to realize automated control of the controlled equipment by monitoring the area status of the monitoring area.

15. The device of claim 14, wherein: The configuration page display module is also used to display the associated page corresponding to the sensing device; the associated page displays an automation entrance; In response to a trigger operation on the automation entry, the automation configuration page is entered from the association page; the automation configuration page is used to configure at least one of a trigger condition and a controlled action related to the monitoring area.

16. A device control apparatus, wherein: include: A location acquisition module, used to acquire the location of the target in each monitoring area, wherein the monitoring area is generated based on the editing operation triggered in the area editing page; The area editing page is used to configure at least one monitoring area according to the current position of the target within the corresponding monitoring range of the sensing device; A status monitoring module, used for determining the regional status of each monitoring area based on the position of the target in each monitoring area; The device control module is used to control the controlled device to perform corresponding actions according to the controlled data associated with the trigger condition in the automation configuration if the area state of the monitoring area meets the trigger condition in the corresponding automation configuration.

17. The device of claim 16, wherein: The status monitoring module is also used to determine, for each monitoring area, the positional relationship between the target and the monitoring area at different times based on the position of the target in the monitoring area; and determine the area status of the monitoring area according to the positional relationship between the target and the monitoring area at different times.

18. An electronic device comprising at least one processor and at least one memory, wherein: The memory stores computer-readable instructions; when the computer-readable instructions are executed by one or more of the processors, the device control method according to any one of claims 1 to 13 is implemented.

19. A computer-readable storage medium having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by one or more processors, implement the device control method according to any one of claims 1 to 13.

20. A computer program product, comprising computer readable instructions, wherein when the computer readable instructions are executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.

Citation Information

Patent Citations

  • Device control method, device, electronic device and storage medium

    CN116300499B

  • Smart home equipment control method, intelligent gateway and intelligent equipment

    CN108965067A

  • Equipment control method, device, camera and storage medium

    CN110109364A

  • Equipment state monitoring method, system and device, storage medium and electronic equipment

    CN114064398A

  • Equipment control method and device, electronic equipment and readable storage medium

    CN115061380A

Cited By

  • Content display method and device, electronic equipment and storage medium

    CN119620905A