Equipment control method and device and equipment

By obtaining the location of electronic devices and dividing areas to send control instructions to smart home devices in the corresponding areas, the cumbersome control interface problems caused by the large number of smart home devices are solved, and control convenience and efficiency are improved.

CN120044808APending Publication Date: 2025-05-27VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510175016.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-17
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

When there are many smart home devices, users need to slide multiple times in the control interface to find the required device, resulting in a cumbersome control process.

Method used

By obtaining the location of the electronic device and dividing the area according to the coverage of the hotspot of the control device, and sending control instructions to the smart home devices in the corresponding area, the automatic control of the device is realized.

Benefits of technology

It improves the control convenience of smart home devices, reduces the user's operating frequency in the control interface, and improves control efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120044808A_ABST
    Figure CN120044808A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment control method, device and equipment, and belongs to the technical field of smart home. The method comprises the following steps: acquiring a first position of first electronic equipment; under the condition that the first position is located in a first area of the N areas, sending a first control instruction to first smart home equipment in the first area; wherein the N areas are determined by the coverage range of the hot spots of the control equipment, and N is an integer greater than 1.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of smart home, and particularly relates to a device control method, device and equipment. Background Art

[0002] With the continuous development of smart home, more and more smart home devices have entered thousands of households, making people's home life more convenient and full of a sense of technology. In order to facilitate users to control smart home devices, a communication connection can be established between smart home devices and electronic devices such as users' mobile phones and tablets to realize automatic and intelligent management of the living environment.

[0003] In the related art, an electronic device can display a control interface of the smart home device connected thereto, and the user can control the smart home device by clicking on the controls in the control interface. However, when the number of smart home devices connected to the electronic device is too large, the user needs to slide multiple times in the control interface to find the smart home device required by the user, and then perform a selection operation, making the control process cumbersome. Summary of the Invention

[0004] The purpose of the embodiments of this application is to provide a device control method, device, equipment, storage medium and program product, which can improve the convenience of controlling smart home devices in a home environment.

[0005] In a first aspect, the embodiments of this application provide a device control method, including:

[0006] Obtain the first position of a first electronic device;

[0007] In the case where the first position is located in a first area among N areas, send a first control instruction to a first smart home device in the first area, where the N areas are determined by the coverage range of a control device hotspot, and N is an integer greater than 1.

[0008] In a second aspect, the embodiments of this application provide a device control device, including:

[0009] An obtaining module, configured to obtain the first position of a first electronic device;

[0010] A sending module, configured to send a first control instruction to a first smart home device in the first area in the case where the first position is located in the first area among N areas, where the N areas are determined by the coverage range of a control device hotspot, and N is an integer greater than 1.

[0011] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory. The memory stores a program or instructions that can run on the processor. When the program or instructions are executed by the processor, the steps of the device control method shown in the first aspect are implemented.

[0012] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instructions are stored. When the program or instructions are executed by a processor, the steps of the device control method shown in the first aspect are implemented.

[0013] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a display interface. The display interface is coupled to the processor, and the processor is used to run a program or instructions to implement the steps of the device control method shown in the first aspect.

[0014] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the steps of the device control method shown in the first aspect.

[0015] In the embodiment of the present application, the first position of the first electronic device is obtained. When the first position is located in the first area among the N areas, a first control instruction is sent to the first smart home device in the first area, where the N areas are determined by the coverage range of the control device hotspot. In this way, based on the position of the electronic device, a control instruction can be sent to the smart home device in the area where the position is located to control the smart home device, without the user manually controlling the smart home device, avoiding the operation of the user sliding multiple times in the control interface to find the smart home device required by the user, improving the convenience of controlling the smart home device in the home environment, and further improving the control efficiency of the smart home device. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a flowchart of a device control method provided by an embodiment of the present application;

[0017] Figure 2 is a schematic diagram of N areas in a device control method provided by an embodiment of the present application;

[0018] Figure 3 is a schematic diagram of determining the fixed points of the area boundary in a device control method provided by an embodiment of the present application;

[0019] Figure 4 is one of the interface schematic diagrams of a device control method provided by an embodiment of the present application;

[0020] Figure 5 is the second interface schematic diagram of a device control method provided by an embodiment of the present application;

[0021] Figure 6 This is the third schematic diagram of the interface of a device control method provided by an embodiment of the present application;

[0022] Figure 7 This is the schematic structural diagram of a device control device provided by an embodiment of the present application;

[0023] Figure 8 This is the schematic structural diagram of an electronic device provided by an embodiment of the present application;

[0024] Figure 9 This is the schematic hardware structure diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0025] Next, with reference to the accompanying drawings in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly described. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.

[0026] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order different from those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same category, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the related objects before and after.

[0027] To solve the problems in the related art, the embodiments of the present application provide a device control method, device, device, storage medium, and program product, which can accurately divide different regions within the signal coverage range of a control device hotspot by using Ultra Wide Band (UWB) technology, and realize the control of the display modes of smart home devices connected to the control device hotspot in different regions, without the need for users to manually control the smart home devices, improving the convenience of controlling smart home devices in the home environment, and thus improving the control efficiency of smart home devices.

[0028] Next, with reference to the attached Figures 1 to 9 , through specific embodiments and their application scenarios, the device control method, device, device, medium, and program product provided by the embodiments of the present application will be described in detail.

[0029] First, with reference toFigure 1 A device control method provided by an embodiment of the present application will be described in detail.

[0030] Figure 1 It is a flowchart of a device control method provided by an embodiment of the present application.

[0031] As Figure 1 shown, the device control method provided by an embodiment of the present application can be applied to a control device. Among them, the control device can be any electronic device in the embodiment of the present application, such as a first electronic device, a second electronic device, or can be a wireless router device, a portable wireless network communication technology (Wi-Fi) device, etc., which can provide hotspot services. The hotspot service in the embodiment of the present application refers to the function of sharing the mobile network data of the control device for other devices to use. By turning on the hotspot function of the control device, other devices such as electronic devices like laptops, tablets, smartphones, and smart home devices such as smart lights, air conditioners, televisions, and floor sweeping robots can access the network of the control device through Wi-Fi to meet the Internet access requirements.

[0032] Based on this, the device control method may include the following steps:

[0033] Step 110, obtain the first position of the first electronic device;

[0034] Step 120, when the first position is in the first area among N areas, send a first control instruction to the first smart home device in the first area, where the N areas are determined by the coverage range of the control device hotspot, and N is an integer greater than 1.

[0035] Exemplarily, as Figure 2 shown, if the first position of the first electronic device is in the first area among 5 areas, such as area 1, then a first control instruction can be sent to at least one first smart home device in area 1. If at least one first smart home device includes a floor sweeping robot and an air conditioner, then the first control instruction may include a control instruction for instructing the floor sweeping robot and a control instruction for instructing the air conditioner. Among them, the control instruction for instructing the floor sweeping robot can be an instruction for instructing the floor sweeping robot to clean area 1, and the control instruction for instructing the air conditioner can be an instruction for instructing the air conditioner to adjust to the dehumidification mode.

[0036] In this way, based on the position of the electronic device, a control instruction can be sent to the smart home device in the area where the position is located to achieve the control of the smart home device, without the user manually controlling the smart home device, avoiding the operation of the user sliding multiple times in the control interface to find the smart home device required by the user, improving the convenience of controlling the smart home device in the home environment, and thus improving the control efficiency of the smart home device.

[0037] The above steps will be described in detail as follows.

[0038] First, regarding step 110, in some embodiments of the present application, at least three regional boundary fixed points of a house can be determined by using the UWB modules of at least two devices, such as the UWB module of a control device and the UWB module of a mapping device, so as to divide the coverage range of the entire control device hotspot into N regions. Based on this, before step 110, the device control method may further include steps 2101 to 2103.

[0039] Step 2101: Obtain ultra-wideband signals at multiple positions sent by the mapping device. The mapping device is connected to the control device through a hotspot.

[0040] Step 2102: Determine M regional boundary fixed points within the coverage range of the control device hotspot according to the signal information of the ultra-wideband signals at each position, where M is an integer greater than 2. The signal information may include at least one of the following: signal strength, propagation duration.

[0041] Step 2103: Divide N regions according to the M regional boundary fixed points.

[0042] Exemplarily, as Figure 3 shown, the control device can be connected to the mapping device through a hotspot. The user can hold the hotspot device and walk around in the house. Since the control device and the mapping device are connected through a hotspot, the control device and the mapping device can interact through ultra-wideband signals, that is, UWB signals, and record signal information such as Figure 3 the signal strength and propagation time at each position from position 30 to position 39, and then determine the specific location coordinate information of each position. Then, connect the points at each position to calculate a closed polygon with the largest area range. As Figure 2 shown, the region delimited by 10 regional boundary fixed points can be determined as one of the N regions. The other regions are delimited in the same process as above and will not be elaborated here.

[0043] Thus, different regions within the signal coverage range of the control device hotspot can be accurately divided by using ultra-wideband (UWB) technology, and the performance modes of smart home devices connected to the control device hotspot in different regions can be controlled.

[0044] It should be noted that the control device in the embodiments of the present application can be a first electronic device. At this time, the first position of the first electronic device itself can be obtained based on the UWB technology. The control device in the embodiments of the present application can also be a routing device. At this time, the first electronic device can be a device accessing the hotspot of the routing device. Based on this, the first position of the first electronic device itself can also be obtained through the UWB technology.

[0045] In this way, the embodiments of the present application can divide the smart home devices into N areas and associate the smart home devices in each area with their areas. For example, as shown in Figure 2 shown, N is 5, that is, the 5 areas include Area 1, Area 2, Area 3, Area 4, and Area 5. Among them, if Area 1 is the bedroom area in the home environment, the bedroom area may include an air conditioner and a smart TV. Then, the air conditioner and the smart TV are the smart home devices in Area 1; if Area 4 is the bathroom area in the home environment, the bathroom area may include a smart water heater and a smart light strip. Then, the smart water heater and the smart light strip are the smart home devices in Area 4.

[0046] Thus, the area division can be linked with the smart home devices in the area, so as to timely adjust the performance mode of the smart home system in the area according to the area where the user is located, realize the control of the smart home devices, without the user manually controlling the smart home devices, avoiding the operation of the user sliding multiple times in the control interface to find the smart home devices required by the user, improving the convenience of controlling the smart home devices in the home environment, and further improving the control efficiency of the smart home devices.

[0047] Then, regarding step 120, before step 120 in the embodiments of the present application, the device control method may further include the process of determining the first control instruction. The process of determining the first control instruction will be illustrated by way of example in combination with multiple usage scenarios. It should be noted that the following steps of determining the first control instruction can be used alone based on different usage scenarios or can be used in combination, and the number of their combined uses is not limited again.

[0048] In some embodiments of the present application, the usage records of the smart home devices are introduced to determine the control instruction. Before step 120, the device control method may further include:

[0049] Determining the first control instruction according to the reference record of the first smart home device; wherein, the reference record includes at least one of the following: the usage records of at least one electronic device using the first smart home device, the setting records of the first smart home device.

[0050] Exemplarily, taking the device record of the first smart home device as the reference record as an example for illustration, as Figure 4As shown, the user can select the smart home devices to be set in the new model interface 40. For example, the user can select the smart home devices to be set from "XX Electric Light", "XX Air Conditioner", "XX TV", "Floor Sweeping Robot", "Table Lamp" and "Light Shading System". For example, the "XX Electric Light" in the bedroom can be selected and continue as Figure 5 As shown, the new mode interface 50 is displayed. The new mode interface 50 is used to receive the setting information of the "XX Electric Light" set by the user and generate the setting record of the "XX Electric Light". If the setting information of the "XX Electric Light" set by the user can include that the daytime brightness is preset to gradually brighten from the first brightness value until it stops at the second brightness value, and the nighttime brightness is preset to gradually dim from the second brightness value to the first brightness value; the color temperature is a warm tone for fusion at night and a cold tone during the day. Based on this, if the user brings the first electronic device into the bedroom area at night, the smart home devices in the bedroom area start to work. For example, the "XX Electric Light" gradually dims to a brightness suitable for sleeping, and the color changes to a soft warm tone.

[0051] Taking the reference record as an example of the usage record, for example, there is a usage record stored that the first electronic device controls the smart air conditioner to adjust the temperature to 26°C and switch to the low wind speed and quiet mode. At this time, when the first electronic device is in the first area, it can be automatically adjusted to a suitable sleeping temperature, such as 26°C, and switched to the low wind speed and quiet mode to ensure a comfortable sleeping environment. Similarly, if there is a usage record stored that the first electronic device controls the smart speaker to automatically turn off or switch to the night mode and stop playing music or other audio content, a first control instruction can also be generated based on these usage records to instruct the smart speaker to automatically turn off or switch to the night mode and stop playing music or other audio content to avoid disturbing the user's rest. Similarly, if there is a usage record stored that the first electronic device controls the smart aromatherapy machine in the bedroom to start the smart aromatherapy machine when the air conditioner temperature is 26°C, a first control instruction can also be generated based on this usage record to instruct the smart aromatherapy machine to start the smart aromatherapy machine when the air conditioner temperature is 26°C to release the sleep-aiding aromatherapy. Thus, the smart home devices in each area can be personalized according to the habits of family members to achieve the interconnection of smart home devices, without the need for the user to manually control the smart home devices, avoiding the operation of the user sliding multiple times in the control interface to find the smart home devices required by the user, improving the convenience of controlling the smart home devices in the home environment, and thus improving the control efficiency of the smart home devices.

[0052] Therefore, in the embodiments of the present application, the area of the user's current position in the home space can be accurately identified, avoiding the situation that traditional positioning technologies such as Wi-Fi and Bluetooth may have positioning errors in complex environments and cannot effectively control smart home devices. By delimiting areas and associating areas with smart home devices, the movement of the user can be accurately sensed in real time, ensuring that smart home devices respond within the correct time and space, improving the accuracy and response speed of smart home systems.

[0053] In some embodiments of the present application, introducing a time dimension, before step 120, the device control method may further include:

[0054] Screening the reference records within the first time window from the reference records of the first smart home device within at least two time windows, where the first time window includes the time when the first electronic device arrives at the first position;

[0055] Determining a first control instruction according to the reference records of the first smart home device within the first time window.

[0056] Wherein, the reference records include at least one of the following: usage records of at least one electronic device using the first smart home device, setting records of the first smart home device.

[0057] Exemplarily, taking the reference record as a usage record for illustration, such as storing the usage record that the first electronic device controls the smart air conditioner to adjust the temperature to 26°C and switch to low wind speed and quiet mode during the period from 10:30 pm to 11:30 pm. At this time, a first control instruction can be generated based on these usage records. The first control instruction can be to control the smart air conditioner to automatically adjust to a suitable sleep temperature, such as 26°C, and switch to low wind speed and quiet mode when the first electronic device is in the first area and the time when the first electronic device is in the first area is during the period from 10:30 pm to 11:30 pm, ensuring a comfortable sleep environment.

[0058] Similarly, if there is a usage record that the first electronic device controls the smart speaker to automatically turn off or switch to night mode and stop playing music or other audio content during the period from 10:30 pm to 11:30 pm, a first control instruction can also be generated based on these usage records to instruct the smart speaker to automatically turn off or switch to night mode and stop playing music or other audio content during the period from 10:30 pm to 11:30 pm to avoid disturbing the user's rest.

[0059] Therefore, in the embodiments of the present application, the reference records and time can be combined and used. By delimiting areas and associating areas with smart home devices, the movement of the user can be accurately sensed in real time, ensuring that smart home devices respond within the correct time and space, improving the accuracy and response speed of smart home systems.

[0060] In some embodiments of the present application, at least one second electronic device accessing the control device hotspot is further included in the first region in the embodiments of the present application. Based on this, by introducing the setting priority of the electronic device, before step 120, the device control method may further include:

[0061] When the setting priority of the first electronic device is higher than that of the second electronic device, determine a first control instruction according to the first reference record corresponding to the first electronic device.

[0062] The first reference record includes at least one of the following: the usage record of the first electronic device using the first smart home device, the setting record of the first electronic device setting the first smart home device.

[0063] Exemplarily, as Figure 6 shown, if the setting priority of the first electronic device, i.e., device A, is set higher than that of the second electronic device, i.e., device B, when device A and device B are in the same region at the same time, only the control instruction of device A is considered, and the control instruction of device A can be determined as the first control instruction. For example, when device A is in this region, the light is on for 20 minutes.

[0064] Thus, in the embodiments of the present application, through the setting priority of the device, it is possible to avoid resource waste and incorrect execution of the smart home device when multiple electronic devices control the smart home device, ensure that the device responds at the correct time and space, and improve the accuracy and response speed of the smart home.

[0065] In some embodiments of the present application, the first region further includes at least one second electronic device. Based on this, the first control instruction can be determined through the cooperation of multiple electronic devices. Based on this, before step 120, the device control method may further include:

[0066] Generate a control instruction for the first electronic device according to the first reference record corresponding to the first electronic device; and generate a control instruction for each second electronic device according to the second reference record corresponding to each second electronic device;

[0067] Determine the first control instruction according to the control instruction of the first electronic device and the control instruction of each second electronic device.

[0068] It should be noted that the first reference record in the embodiments of the present application includes at least one of the following: the usage record of the first electronic device using the first smart home device, the setting record of the first electronic device setting the first smart home device. The second reference record includes at least one of the following: the usage record of the second electronic device using the first smart home device, the setting record of the second electronic device setting the first smart home device.

[0069] Exemplarily, as Figure 6 shown, if it is set that when the first electronic device, i.e., device A, and the second electronic device, i.e., device B, are in the same area at the same time, mode 1 is adopted, that is, only the control instruction of device A is considered, then the control instruction of device A can be determined as the first control instruction. For example, when device A is in this area, the light is on for 20 minutes.

[0070] Or, as Figure 6 shown, if it is set that when the first electronic device, i.e., device A, and the second electronic device, i.e., device B, are in the same area at the same time, mode 2 is adopted, that is, only the control instruction of device B is considered, then the control instruction of device B can be determined as the first control instruction. For example, when device B is in this area, the light is on for 30 minutes.

[0071] Or, as Figure 6 shown, if it is set that when the first electronic device, i.e., device A, and the second electronic device, i.e., device B, are in the same area at the same time, mode 3 is adopted, that is, when the control instructions of both device A and device B are considered at the same time, a total first control instruction can be generated based on the control instructions of device A and device B. For example, when device A is in an area, the light is on for 20 minutes, and when both device A and device B are in the same area, the light is on for 50 minutes.

[0072] Thus, based on the positions of at least one electronic device being in the same area, it is possible to avoid resource waste and incorrect execution of smart home devices when multiple electronic devices control smart home devices conflict. Through different modes, control instructions are sent to the smart home devices in the area where the position is located to achieve the control of smart home devices, without the need for users to manually control smart home devices, avoiding the operation of the user sliding multiple times in the control interface to find the smart home device required by the user, improving the convenience of controlling smart home devices in the home environment, and thus improving the control efficiency of smart home devices.

[0073] In some embodiments of the present application, the first area in the embodiments of the present application is associated with the first type of application program in the P type of application program, where P is an integer greater than or equal to 1. Based on this, in the embodiments of the present application, in addition to the dimension of smart home devices, specifically, it can also be the dimension of application programs in smart home devices. If an application program is installed in the first electronic device, at this time, the first control instruction can be an instruction for controlling the application program. Based on this, before step 120, the device control method may further include:

[0074] In the case where the access request of the first electronic device is an access request for the first type of application program, determine the first control instruction according to the application configuration information of the first area.

[0075] Among them, the function configuration information may be to restrict the first electronic device from accessing the first type of application programs, or to increase network resources for the first electronic device to access the first type of application programs, so as to improve the access speed of the first electronic device to access the first type of application programs.

[0076] Exemplarily, reference may be made to Figure 2 As shown, after N regions, such as 5 regions, have been divided, if the current first electronic device is in the first region, i.e., region 1, since the control device hotspot in region 1 only supports the first electronic device to access the first type of application programs, such as educational application programs, the second type of application programs, such as learning application programs, and the third type of application programs, such as video application programs. At this time, if the access request of the first electronic device is to access the first type of application programs, then the first control instruction can be determined and sent to the first electronic device, that is, an instruction to allow access to the first type of application programs.

[0077] Conversely, if the access request of the first electronic device is a request to access the fourth type of application programs, then the first control instruction can be sent to the first electronic device, that is, an instruction not to allow access to the fourth type of application programs.

[0078] Thus, the dimension of controlling the smart home device can be refined, and the control accuracy of the smart home device can be improved.

[0079] It should be noted that based on this embodiment, before step 110, the device control method may further include the step of associating regions with categories of application programs. Based on this, before step 110, the device control method may include:

[0080] Display a setting interface, where the setting interface includes N regions and category options for each type of application program;

[0081] Receive a first input for the setting interface;

[0082] In response to the first input, generate application configuration information for the first region according to the first type of application programs corresponding to the first region and the first category option.

[0083] Exemplarily, reference may be made to Figure 2 As shown, after each region is drawn, a design interface is displayed on the electronic device that turns on the control device hotspot. The setting interface may include, for example, Figure 2A floor plan overview of a room is shown. The room floor plan overview includes 5 areas, namely Area 1, Area 2, Area 3, Area 4, and Area 5. At this time, the user can click on each area to control the network access permissions of this area, such as setting various restricted application programs. Among them, the upper limit of the traffic rate, the traffic usage time, the traffic usage black and white lists, etc. of the categories of application programs that various electronic devices can access can be restricted. Here, the user can drag at least one category of application programs in the management list to a certain area to quickly manage the application programs in the area. For example, the category selection lines of the first category of application programs, the category options of the second category of application programs, and the category selection lines of the third category of application programs in the management list can be dragged to the range of Area 1. At this time, the application configuration information of the first area can be generated, that is, Area 1 - the first category of application programs, the second category of application programs, and the third category of application programs. The same applies to other areas and will not be elaborated here.

[0084] Thus, the area can be quickly associated with the categories of application programs, and based on the location of the electronic device, a control instruction related to the category of the application program can be sent to the smart home device in the area where the location is located to control the smart home device, without the user manually controlling the smart home device, avoiding the user's operation of sliding multiple times in the control interface to find the smart home device required by the user, improving the convenience of controlling the smart home device in the home environment, and thus improving the control efficiency of the smart home device.

[0085] In addition, the user can carry the first electronic device and move within N areas. Therefore, the embodiments of the present application consider the scenario of the movement of the electronic device and provide the following steps for controlling the smart home device, which are specifically as follows.

[0086] In some embodiments of the present application, the smart home device can be controlled according to the user's movement in the case of the user's movement. Based on this, after step 120, the device control method further includes:

[0087] When the first electronic device moves from the first position to the second position, and the second position is in the second area among the N areas, a second control instruction is sent to the first smart home device, and a third control instruction is sent to the second smart home device in the second area.

[0088] Exemplarily, when the user wakes up in the middle of the night and needs to get out of bed and move from the bedroom area to the living room area to look for something, as long as the first electronic device connected to the hotspot of the control device is carried on the body, the UWB technology can be used to determine that the first electronic device leaves the bedroom and reaches the living room area. A second control instruction can be sent to the first smart home device such as a table lamp, that is, to turn off the table lamp to save power, and a third control instruction can be sent to the smart lamp in the living room area. The third control instruction includes instructing the smart lamp in the living room area to turn on and emit a weak light, and the brightness gradually increases. In this way, it will not be too dazzling and can provide sufficient brightness in a comfortable state for the user.

[0089] Thus, the adjustment of the smart home device can be automatically triggered according to the area where the user moves, without the user manually controlling the smart home device, avoiding the operation of the user sliding multiple times in the control interface to find the smart home device required by the user, improving the convenience of controlling the smart home device in the home environment, and further improving the control efficiency of the smart home device, and adapting to the user's needs, making home life more convenient and comfortable.

[0090] In some embodiments of the present application, after step 120, the device control method further includes:

[0091] In the case of a change in the position of the first electronic device, based on the moving direction of the first electronic device and / or the user behavior data during the time period when the position changes, it is determined that the first electronic device moves from the first area to the third area among the N areas;

[0092] Send a fourth control instruction to the third smart home device in the third area.

[0093] The above processes will be described separately below.

[0094] In some embodiments, in the case of a change in the position of the first electronic device, based on the moving direction of the first electronic device, it is determined that the first electronic device moves from the first area to the third area among the N areas;

[0095] Send a fourth control instruction to the third smart home device in the third area.

[0096] Exemplarily, when the user wakes up in the middle of the night and needs to get out of bed and move from the bedroom area to the living room area to look for something, as long as the first electronic device connected to the hotspot of the control device is carried on the body, the UWB technology can be used to determine that the first electronic device leaves the bedroom and predict the possible areas where the first electronic device may move. For example, if it is determined that the first electronic device moves towards the living room area, a fourth control instruction is sent to the smart light in the living room. This fourth control instruction is used to indicate that when the first electronic device gradually approaches the living room area, the smart light turns on and emits a weak light, and the brightness gradually increases. In this way, it will not be too dazzling and can provide sufficient brightness in a state where the user feels comfortable.

[0097] Therefore, by combining the real-time position changes, it is possible to predict the area where the user moves and control the smart home devices in the area where the user is about to arrive in advance, without the user manually controlling the smart home devices, avoiding the operation of the user sliding multiple times in the control interface to find the smart home devices required by the user, improving the convenience of controlling the smart home devices in the home environment, thereby improving the control efficiency of the smart home devices, and adapting to the user's needs, making home life more convenient and comfortable.

[0098] In some embodiments, in the case of a change in the position of the first electronic device, the fourth control instruction can be determined based on the user behavior data within the time period when the position of the first electronic device changes. That is, after step 120, the device control method further includes:

[0099] In the case of a change in the position of the first electronic device, obtain the user behavior data within the time period when the position changes;

[0100] Based on the user behavior data, determine that the first electronic device moves from the first area to the third area among the N areas;

[0101] Send a fourth control instruction to the third smart home device in the third area. Exemplarily, user A carries the first electronic device and usually enters the bathroom area when leaving the living room area from 7 pm to 8 pm for accurate washing. At this time, a fifth control instruction can be sent to the bathroom area in advance. The fifth control instruction is used to control the fourth smart home devices such as turning on the smart light, turning on the ventilation system, and heating the water in the water heater in the bathroom area. Or, if user A carries the first electronic device and usually enters the bathroom area when leaving the bedroom area in the early morning, at this time, a fourth control instruction can be sent to the bathroom area in advance. The fourth control instruction is used to control the smart light in the bathroom area to turn on.

[0102] It should be noted that the user behavior data in different time periods is different. Therefore, the fourth smart home device will also be different. Moreover, even for the same fourth smart home device, different fourth control instructions will be generated due to different user behavior data in different time periods. In addition, in the embodiments of the present application, the user does not need to pre-set the predetermined mode for each area when a certain electronic device enters. The user only needs to operate the electrical appliances according to their usual habits, such as turning on the lights, adjusting the brightness, turning on the TV, switching channels, etc. The control device will record the user behavior data each time a certain electronic device or multiple electronic devices are in a certain area, so as to predict the area where the user moves and the actions performed in that area based on the user behavior data and the real-time position change, and pre-control the smart home devices in the area where the user is about to arrive.

[0103] Thus, by combining the user behavior data and the real-time position change, it is possible to predict the area where the user moves and the actions performed in that area, and pre-control the smart home devices in the area where the user is about to arrive, without the user manually controlling the smart home devices. This avoids the operation of the user sliding multiple times in the control interface to find the smart home device needed by the user, improves the convenience of controlling the smart home devices in the home environment, and further improves the control efficiency of the smart home devices, and meets the needs of the user, making home life more convenient and comfortable. In some embodiments of the present application, after step 120, it is also possible to determine whether a family member has an accident based on the movement trajectory of the first electronic device in N areas. Based on this, the device control method further includes:

[0104] In the case of a change in the position of the first electronic device, obtain the movement trajectory of the first electronic device;

[0105] According to the first device identifier of the first electronic device, obtain the reference movement trajectory of the first device identifier in N areas;

[0106] In the case where the movement trajectory of the first electronic device does not match the reference movement trajectory, display an alarm message.

[0107] Exemplarily, through UWB positioning, it can be detected whether the position of the first electronic device has changed. If it has changed, the movement trajectory of the first electronic device can be obtained through UWB positioning. If the first device identifier of the first electronic device is "Grandpa's smart watch", the reference movement trajectory of "Grandpa's smart watch" in 5 areas of the home environment can be obtained. If the current movement trajectory does not match the reference movement trajectory, for example, if Grandpa, who never goes to the kitchen area, moves towards the kitchen, an alarm message can be displayed to the electronic device of Dad, the guardian of Grandpa.

[0108] Therefore, the safety status of family members can be determined based on the reference movement trajectory and the current reference movement trajectory of the electronic device corresponding to the device identifier in the N areas, and the safety guarantee of family members can be prompted.

[0109] Here, in addition to the movement route, the movement trajectory in the embodiments of the present application may also include the residence time at each point in the movement trajectory. For example, the reference movement trajectory of grandpa includes going to the bathroom. However, the residence time in the bathroom area in the reference movement trajectory is less than or equal to 30 minutes. At this time, if the smartwatch of grandpa shows that the residence time of grandpa in the bathroom area has reached 1 hour, an alarm message can also be displayed on the electronic device of dad, grandpa's guardian, to avoid the problem of reducing the safety of family members due to a family member falling.

[0110] In some embodiments of the present application, after step 120, the device control method further includes:

[0111] Obtain the second device identifier of the third electronic device in the N areas;

[0112] When the second device identifier is not stored and the third electronic device does not access the control device hotspot within a preset time period, an alarm message is displayed, and the alarm message is used to prompt that the third electronic device is an intrusion device.

[0113] Exemplarily, through UWB positioning, the second device identifier of the third electronic device in the N areas can be obtained, and it can be determined whether the device identifier of the third electronic device is stored. If the device identifier of the third electronic device is not stored and it is detected that the third electronic device has a long residence time in the N areas and does not access the control device hotspot, it can be determined that the third electronic device is an intrusion device, and an alarm message is sent to the family member or security personnel corresponding to the control device to prompt that there may be an intruder at home.

[0114] Therefore, the safety status of the family can be determined based on the device identifier of the electronic device corresponding to the device identifier, the residence time in the N areas, and the factor of whether it is accessing the control device hotspot, and the safety guarantee of family members can be prompted.

[0115] It should be noted that the device control method provided in the embodiments of the present application can be applied to the home environment to achieve the control of smart home devices, eliminating the need for users to manually control smart home devices, avoiding the operation of the user sliding multiple times in the control interface to find the smart home device required by the user, improving the convenience of controlling smart home devices in the home environment, and thus improving the control efficiency of smart home devices. The device control method provided in the embodiments of the present application can also be applied to commercial places such as shopping malls and restaurants. According to different area divisions, different types of application program access permissions can be provided to users. For example, in the dining area of a restaurant, access permissions to entertainment application programs can be provided to users, and restaurant information can be pushed; in the rest area of a shopping mall, some high-traffic-consuming game application programs can be restricted to ensure the smoothness of the overall network. In addition, the device control method provided in the embodiments of the present application can also combine UWB technology and the security features of electronic devices to conduct security inspections and restrictions on electronic devices entering specific sensitive areas. For example, in the R & D department of an enterprise, behaviors such as unauthorized mobile phone shooting and data transmission can be prevented, further strengthening information security protection.

[0116] For the device control method provided in the embodiments of the present application, the execution subject can be a device control device. In the embodiments of the present application, taking the device control device to execute the device control as an example, the device of the device control method provided in the embodiments of the present application is described.

[0117] Based on the same inventive concept, the present application also provides a device control device. Specifically, it is described in detail in combination with Figure 7 for detailed description.

[0118] Figure 7 It is a schematic structural diagram of a device control device provided in the embodiments of the present application.

[0119] As Figure 7 shown, the device control device 70 can be applied to an electronic device. Specifically, the device control device 70 may include:

[0120] An acquisition module 701, configured to acquire the first position of the first electronic device;

[0121] A sending module 702, configured to send a first control instruction to the first smart home device in the first area when the first position is located in the first area among the N areas; where the N areas are determined by the coverage range of the control device hotspot, and N is an integer greater than 1.

[0122] The device control device 70 in the embodiments of the present application is described in detail below, as specifically shown below.

[0123] In some embodiments of the present application, the device control device 70 may further include a determination module configured to determine a first control instruction according to a reference record of a first smart home device; wherein the reference record includes at least one of the following: usage records of at least one electronic device using the first smart home device, and setting records of the first smart home device.

[0124] In some embodiments of the present application, the device control device 70 may further include a screening module configured to screen the reference record within a first time window from the reference records of the first smart home device within at least two time windows, where the first time window includes the time when the first electronic device arrives at the first position;

[0125] The device control device 70 may further include a determination module configured to determine a first control instruction according to the reference record of the first smart home device within the first time window.

[0126] In some embodiments of the present application, the device control device 70 may further include a determination module configured to, when the first area further includes at least one second electronic device accessing the hotspot of the access control device and the setting priority of the first electronic device is higher than that of the second electronic device, determine a first control instruction according to a first reference record corresponding to the first electronic device; wherein the first reference record includes at least one of the following: usage records of the first electronic device using the first smart home device, and setting records of the first electronic device setting the first smart home device.

[0127] In some embodiments of the present application, the device control device 70 may further include a generation module configured to, when the first area further includes at least one second electronic device, generate a control instruction for the first electronic device according to a first reference record corresponding to the first electronic device; and generate a control instruction for each second electronic device according to a second reference record corresponding to each second electronic device;

[0128] The device control device 70 may further include a determination module configured to determine a first control instruction according to the control instruction of the first electronic device and the control instructions of each second electronic device.

[0129] In some embodiments of the present application, the device control device 70 may further include a determination module configured to, when the first area is associated with a first type of application program in a P-type application program, where P is an integer greater than or equal to 1, and the access request of the first electronic device is an access request for the first type of application program, determine a first control instruction according to the application configuration information of the first area.

[0130] In some embodiments of the present application, the sending module 702 may further be configured to, when the first electronic device moves from the first position to the second position, and the second position is in the second area among the N areas, send a second control instruction to the first smart home device, and send a third control instruction to the second smart home device in the second area.

[0131] In some embodiments of the present application, the device control device 70 may further include a determination module, configured to, when the position of the first electronic device changes, determine that the first electronic device moves from the first area to the third area among the N areas based on the moving direction of the first electronic device and / or the user behavior data during the time period when the position changes;

[0132] The sending module 702 may further be configured to send a fourth control instruction to the third smart home device in the third area.

[0133] In some embodiments of the present application, the acquisition module 701 may further be configured to, when the position of the first electronic device changes, acquire the moving trajectory of the first electronic device;

[0134] The acquisition module 701 may further be configured to acquire a reference moving trajectory of the first device identifier in the N areas according to the first device identifier of the first electronic device;

[0135] The device control device 70 may further include a display module, configured to display an alarm message when the moving trajectory of the first electronic device does not match the reference moving trajectory.

[0136] In some embodiments of the present application, the acquisition module 701 may further be configured to acquire the second device identifier of the third electronic device in the N areas;

[0137] The device control device 70 may further include a display module, configured to display an alarm message when the second device identifier is not stored and the third electronic device does not access the control device hotspot within a preset time period, and the alarm message is used to prompt that the third electronic device is an intrusion device.

[0138] In some embodiments of the present application, the acquisition module 701 may further be configured to acquire ultra-wideband signals at multiple positions sent by a mapping device, and the mapping device is connected to the control device through a hotspot;

[0139] The device control device 70 may further include a determination module, configured to determine M area boundary fixed points within the coverage range of the control device hotspot according to the signal information of the ultra-wideband signal at each position, where M is an integer greater than 2;

[0140] The device control device 70 may further include a demarcation module, configured to demarcate N areas according to the M area boundary fixed points.

[0141] The device control apparatus in the embodiments of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than terminals. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., or may also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.

[0142] The device control apparatus in the embodiments of the present application may be a device with an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.

[0143] The device cooperation apparatus provided by the embodiments of the present application can implement Figures 1 to 6 each process implemented by the device control method embodiments shown, achieving the same technical effects. To avoid repetition, details are not described herein again.

[0144] Based on this, the device control apparatus provided by the embodiments of the present application obtains the first position of the first electronic device. When the first position is located in the first area among N areas, a first control instruction is sent to the first smart home device in the first area, where the N areas are determined by the coverage range of the control device hotspot. In this way, based on the position of the electronic device, a control instruction can be sent to the smart home device in the area where the position is located to implement the control of the smart home device, without the user manually controlling the smart home device, avoiding the operation of the user sliding multiple times in the control interface to find the smart home device required by the user, improving the convenience of controlling the smart home device in the home environment, and thus improving the control efficiency of the smart home device.

[0145] Optionally, as Figure 8As shown in the figure, an embodiment of the present application further provides an electronic device 80, which includes a processor 801 and a memory 802. A program or instruction that can run on the processor 801 is stored on the memory 802. When the program or instruction is executed by the processor 801, each step of the above-mentioned device control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be elaborated here.

[0146] It should be noted that the electronic device in the embodiment of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.

[0147] Figure 9 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.

[0148] The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910 and other components.

[0149] Those skilled in the art can understand that the electronic device 900 may further include a power supply (such as a battery) for supplying power to each component. The power supply can be logically connected to the processor 910 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 9 The structure of the electronic device shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine some components, or have different component arrangements, which will not be elaborated here.

[0150] Among them, in the embodiment of the present application, the processor 910 is used to obtain the first position of the first electronic device. The radio frequency unit 901 is used to send a first control instruction to the first smart home device in the first area when the first position is located in the first area among the N areas, where the N areas are determined by the coverage range of the control device hotspot, and N is an integer greater than 1.

[0151] The following will describe the electronic device 900 in detail, as shown below.

[0152] In some embodiments of the present application, the processor 910 is used to determine the first control instruction according to the reference record of the first smart home device; where the reference record includes at least one of the following: the usage record of at least one electronic device using the first smart home device, the setting record of the first smart home device.

[0153] In some embodiments of the present application, the processor 910 is configured to screen the reference records within the first time window from the reference records of the first smart home device within at least two time windows, where the first time window includes the time when the first electronic device arrives at the first position;

[0154] Determine the first control instruction according to the reference records of the first smart home device within the first time window.

[0155] In some embodiments of the present application, when there is at least one second electronic device accessing the hotspot of the access control device in the first area and the setting priority of the first electronic device is higher than that of the second electronic device, the processor 910 is configured to determine the first control instruction according to the first reference record corresponding to the first electronic device; where the first reference record includes at least one of the following: the usage record of the first electronic device using the first smart home device, the setting record of the first electronic device setting the first smart home device.

[0156] In some embodiments of the present application, when there is at least one second electronic device in the first area, the processor 910 is configured to generate a control instruction for the first electronic device according to the first reference record corresponding to the first electronic device; and generate a control instruction for each second electronic device according to the second reference record corresponding to each second electronic device;

[0157] Determine the first control instruction according to the control instruction of the first electronic device and the control instruction of each second electronic device.

[0158] In some embodiments of the present application, when the first area is associated with the first type of application program in the P type of application programs, where P is an integer greater than or equal to 1, and the access request of the first electronic device is an access request for the first type of application program, the processor 910 is configured to determine the first control instruction according to the application configuration information of the first area.

[0159] In some embodiments of the present application, the radio frequency unit 901 may also be configured to, when the first electronic device moves from the first position to the second position, and the second position is in the second area among the N areas, send a second control instruction to the first smart home device and send a third control instruction to the second smart home device in the second area.

[0160] In some embodiments of the present application, when the position of the first electronic device changes, the processor 910 is configured to determine that the first electronic device moves from the first area to the third area among the N areas based on the moving direction of the first electronic device and / or the user behavior data during the time period when the position changes;

[0161] The radio frequency unit 901 can also be used to send a fourth control instruction to a third smart home device in a third area.

[0162] In some embodiments of the present application, the processor 910 can also be used to obtain the movement trajectory of the first electronic device when the position of the first electronic device changes;

[0163] The processor 910 can also be used to obtain a reference movement trajectory of the first device identifier in N areas according to the first device identifier of the first electronic device;

[0164] The display unit 906 is used to display an alarm message when the movement trajectory of the first electronic device does not match the reference movement trajectory.

[0165] In some embodiments of the present application, the processor 910 can also be used to obtain the second device identifier of the third electronic device in N areas;

[0166] The display unit 906 is used to display an alarm message when the second device identifier is not stored and the third electronic device does not access the control device hotspot within a preset time period. The alarm message is used to prompt that the third electronic device is an intrusion device.

[0167] In some embodiments of the present application, the processor 910 can also be used to obtain ultra-wideband signals at multiple positions sent by a mapping device, and the mapping device is connected to the control device through a hotspot;

[0168] Determine M regional boundary fixed points within the coverage range of the control device hotspot according to the signal information of the ultra-wideband signals at each position, where M is an integer greater than 2;

[0169] Define N areas according to the M regional boundary fixed points.

[0170] It should be understood that the input unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042. The graphics processor 9041 processes the image data of static images or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 906 may include a display panel, and the display panel can be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes at least one of a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch display. The other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume display keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here.

[0171] The memory 909 can be used to store software programs and various data. The memory 909 mainly includes a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area can store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 909 can include a volatile memory or a non-volatile memory, or the memory 909 can include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 909 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.

[0172] The processor 910 can include one or more processing units; optionally, the processor 910 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless display signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 910.

[0173] The embodiments of the present application also provide a readable storage medium. A program or instruction is stored on the readable storage medium. When the program or instruction is executed by a processor, it implements each process of the above device control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0174] Among them, the processor is the processor in the electronic device in the above embodiment. Among them, the readable storage medium includes computer-readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disks, or optical discs, etc.

[0175] In addition, an embodiment of the present application further provides a chip, which includes a processor and a display interface. The display interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above-mentioned device control method embodiment, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0176] It should be understood that the chip mentioned in the embodiment of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.

[0177] An embodiment of the present application provides a computer program product. The program product is stored in a storage medium and is executed by at least one processor to implement each process of the above-mentioned device control method embodiment, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0178] It should be noted that in this article, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including that element.

[0179] In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed. It may also include performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, the features described with reference to certain examples may be combined in other examples.

[0180] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described example methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present application.

[0181] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.

Claims

1. A device control method, characterized in that: include: Acquire a first position of a first electronic device; When the first location is located in a first area of ​​the N areas, sending a first control instruction to a first smart home device in the first area; The N areas are determined by the coverage of the control device hotspot, and N is an integer greater than 1.

2. The method according to claim 1, characterized in that In the case where the first position is located in a first area of ​​the N areas, before sending the first control instruction to the first smart home device in the first area, the method further includes: determining the first control instruction according to the reference record of the first smart home device; The reference record includes at least one of the following: a usage record of at least one electronic device using the first smart home device and a setting record of the first smart home device.

3. The method according to claim 1, characterized in that In the case where the first position is located in a first area of ​​the N areas, before sending a first control instruction to a first smart home device in the first area, the method further includes: Filtering a reference record in a first time window from reference records of the first smart home device in at least two time windows, where the first time window includes a time when the first electronic device arrives at the first location; The first control instruction is determined according to a reference record of the first smart home device within the first time window.

4. The method according to claim 1, characterized in that: The first area also includes at least one second electronic device connected to the control device hotspot; when the first position is located in the first area of ​​the N areas, before sending the first control instruction to the first smart home device in the first area, the method also includes: In a case where the setting priority of the first electronic device is higher than the setting priority of the second electronic device, determining the first control instruction according to a first reference record corresponding to the first electronic device; The first reference record includes at least one of the following: a usage record of the first electronic device using the first smart home device, and a setting record of the first electronic device setting the first smart home device.

5. The method according to claim 1, characterized in that The first area also includes at least one second electronic device; when the first position is located in the first area of ​​the N areas, before sending the first control instruction to the first smart home device in the first area, the method also includes: generating a control instruction for the first electronic device according to a first reference record corresponding to the first electronic device; and generating a control instruction for each of the second electronic devices according to a second reference record corresponding to each of the second electronic devices; The first control instruction is determined according to the control instruction of the first electronic device and the control instruction of each of the second electronic devices.

6. The method according to claim 1, characterized in that The first area is associated with a first type of application in P types of applications, where P is an integer greater than or equal to 1; when the first position is located in the first area of ​​the N areas, before sending the first control instruction to the first smart home device in the first area, the method further includes: In a case where the access request of the first electronic device is an access request for accessing the first type of application, the first control instruction is determined according to application configuration information of the first area.

7. The method according to claim 1, characterized in that The method further comprises: In the case where the position of the first electronic device changes, determining that the first electronic device moves from the first area to a third area among the N areas based on the moving direction of the first electronic device and / or user behavior data within a time period of the position change; A fourth control instruction is sent to a third smart home device in the third area.

8. A device control device, characterized in that: include: An acquisition module, configured to acquire a first position of a first electronic device; A sending module, configured to send a first control instruction to a first smart home device in a first area of ​​the N areas when the first position is located in the first area of ​​the N areas; The N areas are determined by the coverage of the first electronic device hotspot, and N is an integer greater than 1.

9. The device according to claim 8, characterized in that The device control apparatus further includes a determination module, configured to determine the first control instruction according to a reference record of the first smart home device; The reference record includes at least one of the following: a usage record of at least one electronic device using the first smart home device and a setting record of the first smart home device.

10. The device according to claim 8, characterized in that The device control apparatus further includes a screening module for screening reference records within a first time window from reference records of the first smart home device within at least two time windows, the first time window including the time when the first electronic device arrives at the first location; The device control apparatus further includes a determination module, configured to determine the first control instruction according to a reference record of the first smart home device within the first time window.

11. An electronic device, characterized in that: include: A processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the device control method as described in any one of claims 1 to 7.