Equipment control method and device, electronic equipment, readable storage medium and program product
By displaying a virtual object of the target device and its control object, and using the target travel information to control the corresponding position, the problem of insufficient convenience of traditional device control is solved, and more precise and intuitive device control is achieved.
Patent Information
- Application Number
- CN202511034027.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-25
- Publication Date
- 2025-11-18
AI Technical Summary
Traditional equipment control methods require users to adjust control operations based on real-time changes in the controlled part, resulting in insufficient control convenience.
By displaying a virtual object of the target device and its corresponding control object, target travel information is obtained, and the control object is displayed at the corresponding position within the virtual and actual travel range based on this information, so that the controlled part reaches the target position.
It enables more precise and intuitive device control, improving convenience.
Smart Images

Figure CN120979863A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet of Things (IoT) technology, and in particular to a device control method, apparatus, electronic device, computer-readable storage medium, and computer program product. Background Technology
[0002] With the development of Internet of Things (IoT) technology, various smart devices (such as smart home devices) are rapidly becoming widespread, enabling the connection of various devices in a space to achieve intelligent control of various devices and automated application of smart scenarios.
[0003] Some smart devices have a controlled part that can be controlled to move via a smartphone or other device, causing the controlled part to change its position within the smart device.
[0004] Based on traditional control methods, when users trigger control operations on the controlled parts of a smart device through smartphones or other devices, they generally need to adjust the control operations according to the real-time changes in the travel position of the controlled parts in order to control its travel position in place. Therefore, the convenience of controlling smart devices still needs to be improved. Summary of the Invention
[0005] Therefore, it is necessary to provide a device control method, apparatus, electronic device, computer-readable storage medium, and computer program product to address the aforementioned technical problems.
[0006] In a first aspect, this application provides a device control method, comprising:
[0007] Display a virtual object corresponding to the target device; the virtual object includes a control object corresponding to the controlled part of the target device; the virtual travel range of the control object corresponds to the actual travel range of the controlled part; the object type of the virtual object corresponds to the device type of the target device.
[0008] Obtain target travel information; the target travel information is used to indicate the virtual target travel position of the controlled object within the virtual travel range; the target travel information is also used to indicate the actual target travel position of the corresponding controlled part within the actual travel range;
[0009] Based on the target travel information, the control object located at the virtual target travel position is displayed, so that the controlled part is at the actual target travel position; the virtual target travel position corresponds to the actual target travel position.
[0010] Secondly, this application also provides a device control apparatus, comprising:
[0011] The first display module is used to display virtual objects corresponding to the target device; the virtual objects include control objects corresponding to the controlled parts of the target device; the virtual travel range of the control objects corresponds to the actual travel range of the controlled parts; the object type of the virtual objects corresponds to the device type of the target device.
[0012] An information acquisition module is used to acquire target travel information; the target travel information is used to indicate the virtual target travel position of the controlled object within the virtual travel range; the target travel information is also used to indicate the actual target travel position of the corresponding controlled part within the actual travel range;
[0013] The second display module is used to display the control object located at the virtual target travel position according to the target travel information, so that the controlled part is at the actual target travel position; the virtual target travel position corresponds to the actual target travel position.
[0014] Thirdly, this application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0015] Display a virtual object corresponding to the target device; the virtual object includes a control object corresponding to the controlled part of the target device; the virtual travel range of the control object corresponds to the actual travel range of the controlled part; the object type of the virtual object corresponds to the device type of the target device; acquire target travel information; the target travel information is used to indicate the virtual target travel position of the control object within the virtual travel range; the target travel information is also used to indicate the actual target travel position of the corresponding controlled part within the actual travel range; based on the target travel information, display the control object located at the virtual target travel position, so that the controlled part is at the actual target travel position; the virtual target travel position corresponds to the actual target travel position.
[0016] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0017] Display a virtual object corresponding to the target device; the virtual object includes a control object corresponding to the controlled part of the target device; the virtual travel range of the control object corresponds to the actual travel range of the controlled part; the object type of the virtual object corresponds to the device type of the target device; acquire target travel information; the target travel information is used to indicate the virtual target travel position of the control object within the virtual travel range; the target travel information is also used to indicate the actual target travel position of the corresponding controlled part within the actual travel range; based on the target travel information, display the control object located at the virtual target travel position, so that the controlled part is at the actual target travel position; the virtual target travel position corresponds to the actual target travel position.
[0018] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0019] Display a virtual object corresponding to the target device; the virtual object includes a control object corresponding to the controlled part of the target device; the virtual travel range of the control object corresponds to the actual travel range of the controlled part; the object type of the virtual object corresponds to the device type of the target device; acquire target travel information; the target travel information is used to indicate the virtual target travel position of the control object within the virtual travel range; the target travel information is also used to indicate the actual target travel position of the corresponding controlled part within the actual travel range; based on the target travel information, display the control object located at the virtual target travel position, so that the controlled part is at the actual target travel position; the virtual target travel position corresponds to the actual target travel position.
[0020] The aforementioned device control method, apparatus, electronic device, computer-readable storage medium, and computer program product display a virtual object corresponding to a target device. This virtual object includes a control object corresponding to a controlled part of the target device. The virtual travel range of the control object corresponds to the actual travel range of the controlled part. The object type of the virtual object corresponds to the device type of the target device. Target travel information is obtained, which is used to indicate the virtual target travel position of the control object within the virtual travel range and also to indicate the actual target travel position of the corresponding controlled part within the actual travel range. Based on the target travel information, the control object located at the virtual target travel position is displayed, and the controlled part is positioned at the actual target travel position, whereby the virtual target travel position corresponds to the actual travel position. This solution can display the control object located at the virtual target travel position and position the controlled part at the corresponding actual target travel position based on the acquired target travel information. Thus, the virtual travel position of the displayed control object can be associated with the actual travel position of the controlled part through the target travel information. Moreover, the object type of the virtual object corresponds to the device type of the target device, and the virtual travel range of the control object corresponds to the actual travel range of the controlled part. Based on the target travel information and the corresponding type of control object, the actual travel position of the controlled part can be controlled and grasped more accurately and intuitively, improving the convenience of controlling smart devices. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 This is an application environment diagram of the device control method in one embodiment;
[0023] Figure 2 This is a flowchart illustrating a device control method in one embodiment;
[0024] Figure 3 This is a schematic diagram illustrating the correspondence between object types and device types in one embodiment;
[0025] Figure 4 This is a schematic diagram illustrating the correspondence between the controlled object and the controlled part in one embodiment;
[0026] Figure 5 This is a schematic diagram illustrating the correspondence between actual travel positions and virtual travel positions in one embodiment;
[0027] Figure 6 This is a flowchart illustrating the steps for determining the virtual travel range of a controlled object in one embodiment;
[0028] Figure 7 This is a schematic diagram illustrating the operation of adjusting the device type in one embodiment;
[0029] Figure 8(a) is a flowchart illustrating the device and object control method in one embodiment;
[0030] Figure 8(b) is a flowchart illustrating the device and object control method in another embodiment;
[0031] Figure 9(a) is a schematic diagram of the binding state change operation in one embodiment;
[0032] Figure 9(b) is a schematic diagram of the binding state change operation in another embodiment;
[0033] Figure 10 This is a schematic diagram of a state switching component in one embodiment;
[0034] Figure 11 This is a schematic diagram of a binding state change operation in another embodiment;
[0035] Figure 12 This is a schematic diagram of speed selection in one embodiment;
[0036] Figure 13 This is a schematic diagram of the execution control in one embodiment;
[0037] Figure 14 A schematic diagram of a page with a scenario added in one embodiment;
[0038] Figure 15 This is a schematic diagram of a control page in one embodiment;
[0039] Figure 16 This is a structural block diagram of the device control apparatus in one embodiment;
[0040] Figure 17 This is a diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation
[0041] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0042] The device control method provided in this application embodiment can be applied to, for example, Figure 1The application environment shown can be a smart home system, which may include: a cloud / cloud server, router, gateway, user terminals (such as mobile phones and tablets), and multiple smart devices (such as smart lights, smart curtains, smart speakers, smart TVs, smart sockets, smart air conditioners, sensors, smart switches, and smart door locks). In this smart home system, each device can connect to the gateway via ZIGBEE / Bluetooth / Matter networks, and the gateway and user terminals can connect to the router via WiFi. Additionally, user terminals can also establish network connections to the cloud / cloud server via 2G / 3G / 4G / 5G, WiFi, etc., thereby obtaining data sent by the cloud / cloud server.
[0043] For smart home systems, the configuration method can be as follows: The user terminal has a corresponding application installed. First, at least one gateway device can be added to the application. When adding other devices (such as smart curtains), the "Add Device" button in the application interface can be clicked, and the gateway device to which the device needs to connect can be selected. This adds the device to the network corresponding to the gateway, thus forming a local area network (LAN) with other added devices and the gateway. This LAN could be a ZigBee network, Matter network, Bluetooth network, Wi-Fi network, etc. When the application, router, and gateway are on the same LAN, the application can interact with the gateway and devices connected to it via the LAN path. When the application, router, and gateway are not on the same LAN, the application can interact with the gateway and devices connected to it via a wide area network (WAN) path.
[0044] like Figure 1 The smart home system shown can include various smart home devices. Some smart devices can have a controlled part, which can be controlled by a user terminal or other devices to move, causing the controlled part to change its position within the smart device.
[0045] Based on traditional control methods, when a user triggers a control operation on the controlled part of a smart device through a user terminal or other devices, the travel position of the controlled part in the smart device can change according to the user's control operation (such as left, right, up, down operation). In order to control its travel position accurately, the user generally needs to adjust the control operation according to the real-time changes in the travel position of the controlled part. The convenience of controlling smart devices still needs to be improved.
[0046] In response, the device control method provided in this application can, based on the acquired target travel information, display the control object located at the virtual target travel position and position the controlled part at the corresponding actual target travel position. Thus, the virtual travel position of the displayed control object can be associated with the actual travel position of the controlled part through the target travel information. Furthermore, the object type of the virtual object corresponds to the device type of the target device, and the virtual travel range of the control object corresponds to the actual travel range of the controlled part. Based on the target travel information and the corresponding type of control object, the actual travel position of the controlled part can be controlled and grasped more accurately and intuitively, thereby improving the convenience of controlling the intelligent device.
[0047] The following is based on Figure 1 The application environment shown is illustrated, and the device control method of this application will be described in detail with reference to the various embodiments and corresponding figures.
[0048] In one exemplary embodiment, such as Figure 2 As shown, a device control method is provided, which can be applied to, for example... Figure 1 The user terminal in this method can also be applied to other control devices equipped with displays. Figure 1 Taking a user terminal as an example, the method may include the following steps:
[0049] Step S201: Display the virtual object corresponding to the target device. The virtual object includes a control object corresponding to the controlled part of the target device; the virtual travel range of the control object corresponds to the actual travel range of the controlled part; and the object type of the virtual object corresponds to the device type of the target device.
[0050] In this step, the user terminal can display a virtual object corresponding to the target device on the target device's control page. The target device is the intelligent device that needs to be controlled, capable of receiving control commands and executing corresponding actions. The control page is the user terminal's interface for controlling the target device. Users can interact with the target device through the control page and issue various control commands. This control page can display a virtual object corresponding to the target device. The virtual object can be a component that graphically simulates the target device on the control page. The functions and states of the virtual object can be correlated with the functions and states of the target device to facilitate intuitive and accurate understanding and operation by the user.
[0051] In this step, the virtual objects displayed on the control page include control objects corresponding to the controlled parts of the target device. These control objects can be user-operable components within the virtual objects used to control the controlled parts of the target device. The target device can have one or more controlled parts, each with a certain range of motion. These controlled parts can move within their range of motion under the control of the target device, user terminal, or other control devices, and their position can be controlled within that range. The range of motion can be the interval defined by the maximum and minimum movement limits of the controlled part of the target device along its movement path. For example, the opening and closing mechanism of a smart window can be a controlled part, with a range of motion from fully closed to the maximum opening angle; the joint of a robotic arm can be a controlled part, with a range of motion that can be the range of angles it can move; and the clothesline of a smart clothes rack can be a controlled part, with a range of motion from the lowest position to the highest position. The stroke position can be the current position of the controlled part of the target device on its motion path. The stroke position is within the stroke range. For example, the opening and closing component of a smart window can be the controlled part, and its stroke position can be its opening and closing angle. The joint of a robotic arm can be the controlled part, and its stroke position can be the angle of movement. The clothes drying rod of a smart clothes rack can be the controlled part, and its stroke position can be its lifting and lowering height.
[0052] In this step, the object type of the virtual object displayed on the control page corresponds to the device type of the target device. The target device can have various device types; taking smart curtains as an example, there are single-opening curtains, double-opening curtains, etc., which can be further subdivided into left-opening curtains, right-opening curtains, double-opening curtains of equal length on both sides, and double-opening curtains of unequal length on both sides, etc. For example... Figure 3 As shown, the object type of the virtual object displayed on the control page corresponds to the device type of the target device, and can also be further subdivided into object types such as left-opening curtain, right-opening curtain, double-opening curtain with equal length on both sides, and double-opening curtain with unequal length on both sides.
[0053] In this step, the control objects of the virtual object correspond to the controlled parts of the target device. The number of control objects in the virtual object can correspond to the number of controlled parts of the target device, and the functions and states of the control objects in the virtual object can correspond to the functions and states of the controlled parts of the target device. The controlled parts of the target device have the aforementioned travel range, denoted as the actual travel range, and the controlled parts of the target device have the aforementioned travel positions, denoted as the actual travel positions. Correspondingly, the control objects of the virtual object also have travel ranges, denoted as virtual travel ranges, and travel positions, denoted as virtual travel positions.
[0054] As an example, the opening and closing portion of a target device such as a smart curtain (e.g., the curtain fabric, the aforementioned left and / or right curtain) can be considered a controlled portion. The controlled portion of the target device can include a first opening and closing portion and / or a second opening and closing portion. The first opening and closing portion can correspond to the left curtain, and the second opening and closing portion can correspond to the right curtain. The travel range of the smart curtain's opening and closing portion can be determined based on the range of movement the opening and closing portion can make on the curtain track of the smart curtain. The travel position of the smart curtain's opening and closing portion can be its position on the curtain track. Correspondingly, the control object of the virtual object can include the opening and closing object corresponding to the opening and closing portion. The virtual object can include a first virtual object illustrated in the figure and / or a second virtual object illustrated in the figure (e.g., a slider). The first virtual object includes a first opening and closing object corresponding to the first opening and closing portion and / or a second opening and closing object corresponding to the second opening and closing portion; the second virtual object includes a third opening and closing object corresponding to the first opening and closing portion and / or a fourth opening and closing object corresponding to the second opening and closing portion. Wherein, as... Figure 4 As shown, the virtual objects may include a first virtual object 41 (illustrated in the diagram) and a second virtual object 42 (illustrated in the diagram), and in practical applications, the virtual objects displayed on the control page may include the first virtual object 41 and / or the second virtual object 42. The first virtual object 41 may include a first opening / closing object 411 (virtual left curtain) and a second opening / closing object 412 (virtual right curtain) corresponding to the first opening / closing portion (actual left curtain) and the second opening / closing portion (actual right curtain) of the smart curtain. The second virtual object 42 may include a third opening / closing object 421 (virtual left curtain) and a fourth opening / closing object 422 (virtual right curtain) corresponding to the first opening / closing portion (actual left curtain) and the second opening / closing portion (actual right curtain) of the smart curtain. The first opening / closing object 411 and the second opening / closing object 412 may have their own virtual travel range (virtual left curtain travel range and virtual right curtain travel range) and virtual travel position (…). Figure 4 The third opening / closing object 421 and the fourth opening / closing object 422 can each have their own virtual travel range (virtual left curtain travel range and virtual right curtain travel range) and virtual travel position (located at the virtual closing point). Figure 4(The virtual closing point is in the middle). The total virtual travel range of the first virtual object 41 and the second virtual object 42 can be divided into the aforementioned virtual left curtain travel range and virtual right curtain travel range. These virtual left and right curtain travel ranges correspond to the actual left and right curtain travel ranges of the smart curtain, respectively. The actual total travel range of the smart curtain can be divided into these actual left and right curtain travel ranges. The virtual left curtain travel range can be obtained from the virtual left curtain opening point and the virtual closing point, and the virtual right curtain travel range can be obtained from the virtual right curtain opening point and the virtual closing point. Correspondingly, the actual left curtain travel range can be obtained from the actual left curtain opening point and the actual closing point, and the actual right curtain travel range can be obtained from the actual right curtain opening point and the actual closing point. The actual left curtain travel range may differ from the actual right curtain travel range, such as... Figure 4 In the control panel, the actual left curtain travel range is greater than the actual right curtain travel range. Correspondingly, on the control page, the virtual left curtain travel range is greater than the virtual right curtain travel range. Figure 4 In the process, the actual travel positions of the first opening and closing part (actual left curtain) and the second opening and closing part (actual right curtain) are both located at the actual closing point. Correspondingly, the virtual formation positions of the first opening and closing object 411 (virtual left curtain), the second opening and closing object 412 (virtual right curtain), the third opening and closing object 421 (virtual left curtain), and the fourth opening and closing object 422 (virtual right curtain) are all located at the virtual closing point.
[0055] Step S202: Obtain target travel information. The target travel information indicates the virtual target travel position of the controlled object within the virtual travel range; the target travel information also indicates the actual target travel position of the corresponding controlled part within the actual travel range.
[0056] In this step, the target travel information serves two purposes: firstly, it indicates the virtual target travel position of the controlled object displayed on the control page within the virtual travel range; secondly, it indicates the actual target travel position of the corresponding controlled part of the target device within the actual travel range. This allows the virtual travel position of the controlled object displayed on the control page to be associated with the actual travel position of the controlled part, enabling the user to precisely and intuitively control the actual travel position of the controlled part on the control page. The target travel information can be a numerical value indicating the virtual target travel position within the virtual travel range and the actual target travel position within the actual travel range. In some embodiments, this value can be a value representing a travel percentage, i.e., the target travel information can be a target travel percentage, such as 50% or similar.
[0057] Step S203: Based on the target travel information, display the control object located at the virtual target travel position, so that the controlled part is at the actual target travel position. The virtual target travel position corresponds to the actual target travel position.
[0058] In this step, the user terminal can display the controlled object located at the virtual target travel position on the control page based on the target travel information, and also position the controlled part at the actual target travel position. The virtual target travel position of the controlled object displayed on the control page corresponds to the actual target travel position of the controlled part of the target device. As an example, taking smart curtains as an example... Figure 5 As shown, the target travel information may include the travel proportions of the virtual left and right curtains of the virtual object displayed on the control page within the travel ranges of the virtual left and right curtains, and the travel proportions of the actual left and right curtains of the smart curtain within the travel ranges of the actual left and right curtains. Thus, the user terminal can display the virtual left and right curtains at virtual target travel positions, such as fully closed (0%), half-closed (50%), or fully open (100%), on the control page based on the target travel information, and make the actual left and right curtains at actual target travel positions, such as fully closed (0%), half-closed (50%), or fully open (100%), thereby placing the controlled object and the controlled part at relative travel positions.
[0059] The device control method of this embodiment displays a virtual object corresponding to a target device. The virtual object includes a control object corresponding to a controlled part of the target device. The virtual travel range of the control object corresponds to the actual travel range of the controlled part. The object type of the virtual object corresponds to the device type of the target device. Target travel information is obtained. This target travel information is used to indicate the virtual target travel position of the control object within the virtual travel range and also to indicate the actual target travel position of the corresponding controlled part within the actual travel range. Based on the target travel information, the control object located at the virtual target travel position is displayed, and the controlled part is positioned at the actual target travel position. The virtual target travel position corresponds to the actual travel position. This solution can display the control object located at the virtual target travel position and position the controlled part at the corresponding actual target travel position based on the acquired target travel information. Thus, the virtual travel position of the displayed control object can be associated with the actual travel position of the controlled part through the target travel information. Moreover, the object type of the virtual object corresponds to the device type of the target device, and the virtual travel range of the control object corresponds to the actual travel range of the controlled part. Based on the target travel information and the corresponding type of control object, the actual travel position of the controlled part can be controlled and grasped more accurately and intuitively, improving the convenience of controlling smart devices.
[0060] In one exemplary embodiment, such as Figure 6 As shown, before displaying the virtual object corresponding to the target device in step S201, the following steps may also be included:
[0061] Step S601: Display the configuration page of the target device.
[0062] In this step, the user terminal can display the target device's configuration page before setting the travel range for the target device and virtual objects. This configuration page can be used to configure the travel range for the target device and virtual objects.
[0063] Step S602: In response to the trip configuration command triggered on the configuration page, the trip configuration information of the target device is obtained.
[0064] In this step, the user can trigger a trip configuration command on the configuration page. This command can be used to configure trip information such as the actual trip range of the target device. The user terminal responds to the trip configuration command triggered on the configuration page and obtains the trip configuration information of the target device. This trip configuration information can include the actual trip start position and actual trip end position of each controlled part of the target device. Specifically, the actual trip start position is the start position of the trip of the controlled part, and the actual trip end position is the end position of the trip of the controlled part, combined with... Figure 4 The actual start position of the travel can include the actual left curtain opening point and the actual right curtain opening point, and the end position of the travel can be the actual closing point.
[0065] Step S603: Obtain the actual travel range based on the travel configuration information.
[0066] In this step, after obtaining the trip configuration information, the user terminal can determine the actual trip range of each controlled part based on the actual trip start position and actual trip end position of each controlled part of the target device in the trip configuration information, and combine this information with... Figure 4 For example, the actual travel range of the left curtain can be obtained from the actual distance between the actual opening point and the actual closing point of the left curtain, and the actual travel range of the right curtain can be obtained from the actual distance between the actual opening point and the actual closing point of the right curtain.
[0067] Step S604: Determine the virtual travel range of the controlled object based on the actual travel range.
[0068] In this step, combined Figure 4 After obtaining the actual travel range of each controlled part of the target device, the user terminal can determine the virtual travel range of each controlled object based on the actual travel range of each controlled part, so that the virtual travel range of each controlled object corresponds to the actual travel range of its corresponding controlled part.
[0069] The solution in this embodiment can provide a configuration method for the actual travel range and the corresponding virtual travel range before the travel range of the target device and the virtual object is set, so that users can control the target device accurately and intuitively on the control page.
[0070] In an exemplary embodiment, the controlled portion may include a first controlled portion and a second controlled portion; the controlled object may include a first controlled object and a second controlled object; the first controlled object corresponds to the first controlled portion, and the second controlled object corresponds to the second controlled portion; step S604, determining the virtual travel range of the controlled object based on the actual travel range, may include:
[0071] Based on a first ratio between the actual travel range of the first controlled portion and the actual travel range of the second controlled portion, the virtual travel range of the first controlled object and the virtual travel range of the second controlled object are determined. The second ratio between the virtual travel range of the first controlled object and the virtual travel range of the second controlled object corresponds to the first ratio.
[0072] In this embodiment, combined with Figure 4 The controlled portion of the target device may include a first controlled portion (actual left curtain) and a second controlled portion (actual right curtain). Correspondingly, the controlled objects may include a first control object and a second control object. The first control object (virtual left curtain) may correspond to the first controlled portion (actual left curtain), and the second control object (actual right curtain) may correspond to the second controlled portion (actual right curtain). The first control object (virtual left curtain) may include a first opening / closing object 411 and / or a third opening / closing object 421, and the second control object (actual right curtain) may include a second opening / closing object 412 and / or a fourth opening / closing object 422. Therefore, after obtaining the actual travel range of the first and second controlled portions of the target device, the user terminal can determine the virtual travel range of the first and second control objects based on the ratio between their actual travel ranges (denoted as the first ratio). The second ratio between the determined virtual travel ranges of the first and second control objects corresponds to the first ratio. Therefore, the solution in this embodiment can make the virtual travel range of the controlled object correspond to the actual travel range of the controlled part.
[0073] In an exemplary embodiment, before displaying the virtual object corresponding to the target device in step S201, the above method may further include the following steps:
[0074] Display one or more optional device types; in response to the selected device type, obtain the device type of the target device; based on the device type, obtain the object type of the virtual object.
[0075] In this embodiment, the user terminal can determine the object type of the virtual object before displaying the virtual object corresponding to the target device. The user terminal can display one or more selectable device types, which are the device types of the target device. Taking smart curtains as an example, combined with... Figure 3 The user terminal can display device types such as left-opening curtains, right-opening curtains, double-opening curtains of equal length on both sides, and double-opening curtains of unequal length on both sides. The user can select one or more of the displayed optional device types (e.g., by clicking on a device type). The user terminal responds to the selected device type, confirming it as the target device type, and then obtains the corresponding virtual object type based on that device type. For example, if the user selects a left-opening curtain, a right-opening curtain, a double-opening curtain of equal length on both sides, or a double-opening curtain of unequal length on both sides, the user terminal can obtain the corresponding virtual object type. This embodiment's solution, through the display of one or more optional device types, facilitates the user's intuitive selection of the target device type, thereby accurately setting the virtual object's object type.
[0076] In an exemplary embodiment, after displaying the virtual object corresponding to the target device in step S201, the following steps may also be included:
[0077] In response to the type adjustment operation for the device type, the adjusted device type is obtained; if the adjusted device type does not meet the trip reset conditions, the virtual object corresponding to the target device is displayed according to the adjusted device type.
[0078] In this embodiment, after displaying the virtual object corresponding to the target device, the user can also adjust the device type of the target device on the user terminal. This allows the user terminal to adjust the object type of the virtual object accordingly to meet the user's need for device type change. In this embodiment, the user can trigger a device type adjustment operation on the control page displayed on the user terminal, and the user terminal can obtain the adjusted device type. Combined with... Figure 7Taking smart curtains as an example, users can trigger a device type adjustment operation for the smart curtains on the control page displayed on the user terminal. For example, clicking "..." followed by "Curtain Type" and then selecting the desired curtain type allows the user terminal to confirm the selected curtain type as the adjusted curtain type. Based on this, if the adjusted device type does not meet the travel reset condition, the user terminal can obtain the corresponding adjusted device type and display the virtual object corresponding to the target device. The travel reset condition can be a condition requiring reconfiguration of the travel configuration information of the target device. This travel reset condition can be set by the user or by the user terminal. For example, if the device type adjustment does not require re-acquiring travel configuration information such as the actual travel range of the controlled portion of the target device, it can be determined that the travel reset condition has not been met. Figure 7 As shown, for example, if a user adjusts the device type from right-opening curtain to left-opening curtain, it is not necessary to re-obtain travel configuration information such as the actual travel range of the controlled part of the target device, and it can be determined that the travel reset condition is not met.
[0079] In an exemplary embodiment, after displaying the virtual object corresponding to the target device in step S201, the following steps may also be included:
[0080] In response to the type adjustment operation for the device type, the adjusted device type is obtained; if the adjusted device type meets the trip reset conditions, the configuration page of the target device is displayed to re-acquire the trip configuration information of the target device; based on the adjusted device type and the re-acquired trip configuration information, the virtual object corresponding to the target device is displayed.
[0081] In this embodiment, after displaying the virtual object corresponding to the target device, the user can also adjust the device type of the target device on the user terminal. This allows the user terminal to adjust the object type of the virtual object accordingly to meet the user's need for device type change. In this embodiment, the user can trigger a device type adjustment operation on the control page displayed on the user terminal, and the user terminal can obtain the adjusted device type. Combined with... Figure 7 Taking smart curtains as an example, users can trigger the device type adjustment operation for smart curtains on the control page displayed on the user terminal. For example, after clicking "...", click "Curtain Type" and then select the desired curtain type. In this way, the user terminal can confirm the selected curtain type as the adjusted curtain type.
[0082] Based on this, if the adjusted device type meets the trip reset conditions, the user terminal can display the target device's configuration page to re-acquire the target device's trip configuration information, and display the corresponding virtual object of the target device based on the adjusted device type and the re-acquired trip configuration information. The trip reset conditions can be conditions requiring reconfiguration of the target device's trip configuration information; these conditions can be set by the user or by the user terminal. For example, if the device type adjustment requires re-acquiring trip configuration information such as the actual travel range of the controlled portion of the target device, then it can be determined that the trip reset conditions are met. Figure 7 As shown, for example, if a user changes the device type from a right-opening curtain to a double-opening curtain, it is necessary to re-acquire travel configuration information, such as the actual travel range of the controlled portion of the target device, to confirm that the travel reset conditions are met. "Displaying the target device's configuration page to re-acquire the target device's travel configuration information" can be achieved by executing steps S601 and S602 above to re-acquire the target device's travel configuration information, such as... Figure 7 As shown, for example, if a user changes the device type from a right-opening curtain to a double-opening curtain, the user terminal can display a prompt message such as "Switching curtain type may require reconfiguration of the travel." The user can click "Save" on the prompt message to display the target device's configuration page and re-acquire the travel configuration information of the target device. After obtaining the re-acquired travel configuration information, the user terminal can display the virtual object corresponding to the target device based on the adjusted device type and the re-acquired travel configuration information, such as displaying a virtual object for a double-opening curtain.
[0083] In one exemplary embodiment, obtaining the target travel information in step S202 may include: obtaining the target travel information based on the change information of the actual travel position of the controlled part.
[0084] The change information indicates the change in the actual travel position of the controlled part, such as the amount of travel. In this embodiment, the user can manually operate the controlled part of the target device to change its actual travel position. For example, if the user pulls the opening / closing part of a smart curtain, such as the right curtain, the actual travel position of the opening / closing part will change. The user terminal can obtain the change information of the actual travel position of the controlled part from the target device and obtain the target travel information based on this change information. For example, the target travel ratio can be determined based on the change information, and the target travel ratio can be used as the target travel information, etc.
[0085] The solution in this embodiment can obtain target travel information based on the actual travel position change information when the user manually operates the controlled part of the target device. Based on this, the control object on the control page can be synchronously controlled within the virtual target travel range, maintaining the travel position of the control object and the controlled part corresponding, so that the user can intuitively and accurately control the controlled part of the target device on the control page.
[0086] In an exemplary embodiment, before obtaining the target travel information based on the change information of the actual travel position of the controlled portion as described above, the following steps may also be included:
[0087] Request information from the server regarding changes in the actual travel location of the controlled portion; or receive information from the target device regarding changes in the actual travel location of the controlled portion.
[0088] In this embodiment, the user terminal can request or receive information on the actual travel position changes of the controlled portion from the server or from the target device to ensure the consistency of the travel position of the controlled portion of the target device with that of the controlled object of the virtual object. Specifically, when the user manually operates the controlled portion of the target device, the user may not have launched the application for controlling the target device on the user terminal. In this case, the controlled portion of the target device can transmit the information on the actual travel position changes of the controlled portion to the server, which can be the cloud or a gateway. When the user launches the application on the user terminal, the user terminal can request the information on the actual travel position changes of the controlled portion from the server. Alternatively, when the user manually operates the controlled portion of the target device, the user may have launched the application for controlling the target device on the user terminal. In this case, the target device can transmit the information on the actual travel position changes of the controlled portion to the user terminal, and the user terminal can receive the information on the actual travel position changes of the controlled portion sent by the target device.
[0089] As an example, as shown in Figure 8(a), when a user manually pulls the smart curtain, the curtain's motor starts and moves the opening / closing section. When the user stops pulling, the curtain stops and automatically sends its current travel position to the user's terminal. If the user has already opened the application on their terminal, the terminal automatically calibrates the travel position of the opening / closing section. If the user has not opened the application, when the user opens the application, the terminal automatically requests stored travel position and other data from the cloud and calibrates the travel position of the opening / closing section.
[0090] In another exemplary embodiment, obtaining the target travel information in step S202 may include: obtaining the target travel information based on the change operation of the virtual travel position of the controlled object; after obtaining the target travel information in step S202, the above method may further include: sending a first control command to the target device based on the target travel information, so that the corresponding controlled part runs to the actual target travel position.
[0091] In this embodiment, the change operation refers to the operation of changing the virtual travel position of the controlled object. This change operation can be triggered on the controlled object of the virtual object displayed on the control page of the user terminal. The user terminal can obtain target travel information based on the change operation of the virtual travel position of the controlled object. Specifically, the user terminal can obtain target travel information based on the changed virtual travel position (virtual target travel position) obtained from the change operation of the virtual travel position of the controlled object. This target travel information can be a target travel ratio. Based on this target travel information, the user terminal can send corresponding control commands to the target device. The target device can control the corresponding controlled part to run to the actual target travel position according to the target travel information in the control command.
[0092] As one embodiment, the controlled portion includes a first opening / closing portion and / or a second opening / closing portion; the controlled object includes a first controlled object and / or a second controlled object; the first controlled object corresponds to the first opening / closing portion, and the second controlled object corresponds to the second opening / closing portion; the first controlled object includes a first opening / closing object and a third opening / closing object; the second controlled object includes a second opening / closing object and a fourth opening / closing object; the above-mentioned method of obtaining target travel information based on the change operation of the virtual travel position of the controlled object may include:
[0093] If a virtual travel position change operation is triggered on the first or third opening / closing object, the first and third opening / closing objects are moved to the virtual travel position indicated by the change operation to obtain the changed virtual travel position. The target travel information of the first opening / closing portion is obtained based on the changed virtual travel position. If a virtual travel position change operation is triggered on the second or fourth opening / closing object, the second and fourth opening / closing objects are moved to the virtual travel position indicated by the change operation to obtain the changed virtual travel position. The target travel information of the second opening / closing portion is obtained based on the changed virtual travel position.
[0094] In this embodiment, as Figure 4As shown, a virtual travel position change operation can be triggered on the first opening / closing object 411. For example, dragging the first opening / closing object 411 on the control page can move it to, for example, a 50% virtual travel position (the virtual travel position indicated by the change operation). In response, the user terminal can simultaneously move the third opening / closing object 421 to a 50% virtual travel position (the virtual travel position indicated by the change operation) to correspond with the virtual travel position of the first opening / closing object 411. During the process of dragging the first opening / closing object 411, the current travel ratio can be displayed on the control page so that the user can intuitively understand the current travel ratio. The travel ratio is determined by moving the first opening / closing object 411 and the third opening / closing object 421 to the virtual travel position indicated by the change operation. This results in a changed virtual travel position of 50%. The user terminal obtains the target travel information of the first opening / closing part (corresponding controlled part, the left curtain) such as the target travel ratio (50%) based on this changed virtual travel position. The user terminal then sends the corresponding control command (which can be referred to as the first control command) to the smart curtain (target device). The smart curtain can convert the target travel ratio (50%) into a movement distance and control the left curtain to move to the actual target travel position corresponding to the target travel ratio. In response, a virtual travel position change operation can be triggered on the third opening / closing object 421, such as dragging the third opening / closing object 421 on the control page. In this case, the user terminal can simultaneously move the first opening / closing object 411 to, for example, a 50% virtual travel position (the virtual travel position indicated by the change operation) to correspond with the virtual travel position of the third opening / closing object 421. After moving the first opening / closing object 411 and the third opening / closing object 421 to the virtual travel position indicated by the change operation, the changed virtual travel position, i.e., the 50% virtual travel position, can be obtained. Based on this, the user terminal can also obtain the target travel information of the first opening / closing part (the corresponding controlled part, the left curtain), such as the target travel ratio (50%), to control the left curtain to run to the corresponding actual target travel position.
[0095] In this embodiment, as Figure 4As shown, a virtual travel position change operation can also be triggered on the second opening / closing object 412. For example, by dragging the second opening / closing object 412 on the control page, the second opening / closing object 412 can be dragged to, for example, a 50% virtual travel position (the virtual travel position indicated by the change operation). In response, the user terminal can simultaneously move the fourth opening / closing object 422 to a 50% virtual travel position (the virtual travel position indicated by the change operation) to correspond with the virtual travel position of the second opening / closing object 412. During the process of dragging the second opening / closing object 412, the current travel ratio can be displayed on the control page so that the user can intuitively understand the current situation. After moving the second opening / closing object 412 and the fourth opening / closing object 422 to the virtual travel position indicated by the change operation, the changed virtual travel position, i.e., the virtual travel position of 50%, can be obtained. The user terminal obtains the target travel information of the second opening / closing part (the corresponding controlled part, the right curtain) such as the target travel ratio (50%) based on the changed virtual travel position, and sends the corresponding control command (which can be recorded as the first control command) to the smart curtain (target device). The smart curtain can convert the target travel ratio (50%) into a movement distance and control the right curtain to run to the actual target travel position corresponding to the target travel ratio. In response, a virtual travel position change operation can be triggered on the fourth opening / closing object 422, such as dragging the fourth opening / closing object 422 on the control page. In this case, the user terminal can simultaneously move the second opening / closing object 412 to, for example, a 50% virtual travel position (the virtual travel position indicated by the change operation) to correspond with the virtual travel position of the fourth opening / closing object 422. After moving the second opening / closing object 412 and the fourth opening / closing object 422 to the virtual travel position indicated by the change operation, the changed virtual travel position, i.e., the 50% virtual travel position, can be obtained. Based on this, the user terminal can also obtain the target travel information of the second opening / closing part (the corresponding controlled part, the right curtain), such as the target travel ratio (50%), to control the right curtain to run to the corresponding actual target travel position.
[0096] The solution in this embodiment allows users to trigger changes in the travel position on the control object of the virtual object displayed on the control page to synchronously control the controlled part of the target device, thereby improving the convenience of controlling the controlled part of the target device.
[0097] In an exemplary embodiment, after sending a first control command to the target device based on the target travel information, causing the corresponding controlled part to run to the actual target travel position, the following steps may be further included:
[0098] Receive the actual current travel position of the controlled part sent by the target device; if the actual current travel position does not correspond to the virtual target travel position, adjust the virtual target travel position according to the actual current travel position so that the adjusted virtual target travel position corresponds to the actual current travel position.
[0099] In this embodiment, after sending the first control command to the target device, the user terminal can calibrate the virtual target travel position of the controlled object based on the actual current travel position of the controlled part returned by the target device. This ensures that the travel position of the controlled part of the target device is consistent with that of the virtual target object, improving the accuracy and reliability of controlling the controlled part of the target device. Specifically, after sending the first control command to the target device, the target device can control the travel position of the controlled part according to the first control command. After control is complete, the target device can send the actual current travel position of the controlled part (i.e., the current travel position of the controlled part after control) to the user terminal. Upon receiving the actual current travel position sent by the target device, the user terminal can determine whether the actual current travel position corresponds to the virtual target travel position (e.g., whether the travel ratio is consistent). If the actual current travel position corresponds to the virtual target travel position, the user terminal can end the calibration process. If the actual current travel position does not correspond to the virtual target travel position, the user terminal can adjust the virtual target travel position according to the actual current travel position so that the adjusted virtual target travel position corresponds to the actual current travel position (e.g., adjusting it to have the same travel ratio).
[0100] As an example, as shown in Figure 8(b), the user terminal slides the opening / closing object and sends a first control command to the smart curtain. Upon receiving the first control command, the smart curtain rotates its motor to move the corresponding opening / closing part. The user terminal then stops controlling the curtain and can send a stop command to the smart curtain. Upon receiving the stop command, the smart curtain stops its motor and reports its current travel position to the user terminal for calibration. If the two (travel positions) are consistent, the user terminal can end the calibration process. If the two (travel positions) are inconsistent, the user terminal can automatically adjust the opening / closing object to match the opening / closing part based on the current travel position reported by the smart curtain.
[0101] In an exemplary embodiment, the controlled portion includes a first controlled portion and a second controlled portion; the controlled object includes a first controlled object and a second controlled object; the first controlled object corresponds to the first controlled portion; the second controlled object corresponds to the second controlled portion; the step S202 of obtaining the target travel information may include:
[0102] If the first control object and the second control object are in a bound state, then the common target travel information of the first control object and the second control object is obtained according to the change operation of the virtual travel position of the first control object or the second control object; the bound state means that the first control object and the second control object are controlled at the same time; if the first control object and the second control object are in an unbound state, then the target travel information of the first control object and the second control object respectively is obtained according to the change operation of the virtual travel position of the first control object and the second control object respectively.
[0103] In this embodiment, the target device may include a first controlled part and a second controlled part. For example, the first opening and closing part and the second opening and closing part of a smart curtain can be respectively the first controlled part (left curtain) and the second controlled part (right curtain). Correspondingly, the virtual object may include a first control object and a second control object, combined with... Figure 4 As mentioned above, the first opening / closing object 411 and the third opening / closing object 421 can be used as the first control object, and the second opening / closing object 412 and the fourth opening / closing object 422 can be used as the second control object. The first control object corresponds to the first controlled part, and the second control object corresponds to the second controlled part.
[0104] In this embodiment, the first controlled object and the second controlled object can be in a bound state or an unbound state. The bound state indicates that both the first and second controlled objects are controlled simultaneously, while the unbound state indicates that each is controlled separately.
[0105] Therefore, if the first control object and the second control object are in a bound state, the user terminal can obtain the common target travel information of the first control object and the second control object by changing the virtual travel position of the first control object or the second control object. That is, in the bound state, the change operation of one control object will also affect the other control object, thereby obtaining the common target travel information of the first control object and the second control object.
[0106] As shown in Figure 9(a), the third opening / closing object 421 and the fourth opening / closing object 422 are in a bound state. Changes to the fourth opening / closing object 422 can be applied to the third opening / closing object 421. For example, when the fourth opening / closing object 422 is dragged to the 20% virtual travel position, the third opening / closing object 421 can be moved to the 20% virtual travel position simultaneously, thereby obtaining the common target travel information of the third opening / closing object 421 and the fourth opening / closing object 422. Through this target travel information, the first controlled part and the second controlled part can be controlled to move to the common target actual travel position (such as the actual travel position corresponding to the 20% travel ratio).
[0107] Furthermore, if the first and second controlled objects are in an unbound state, the user terminal can obtain the target travel information of each of the first and second controlled objects by changing their virtual travel positions. That is, in the unbound state, the user can control the first and second controlled objects independently, thereby obtaining their target travel information separately. As shown in Figure 9(b), the third opening / closing object 421 and the fourth opening / closing object 422 are in an unbound state, and the fourth opening / closing object 422 can be controlled independently. The user terminal can obtain the target travel information of the fourth opening / closing object 422 by changing its virtual travel position, and thereby control the second controlled part to move to the corresponding target actual travel position.
[0108] The solution in this embodiment can provide a method for changing the first and second controlled objects in the unbinding and binding states, as well as a corresponding method for controlling the first and second controlled parts, which enriches the control methods for the controlled parts of the target device and further improves the convenience of control.
[0109] In an exemplary embodiment, before obtaining the target trip information in step S202, the following steps may also be included:
[0110] Display the state switching component; based on the trigger operation of the state switching component, switch the first control object and the second control object from the bound state to the unbound state, or switch from the unbound state to the bound state.
[0111] In this embodiment, combined with Figure 10 The user terminal can display a state switching component 1000 on the control page. This component allows the user to easily switch between unbound and bound states for the first and second controlled objects. Specifically, the user terminal can display the state switching component 1000 on the control page, and based on the user's triggering operation on the component, it can switch the first and second controlled objects from a bound state to an unbound state, or vice versa. In practical applications, the state switching component 1000 can have unbound and bound styles, respectively, to indicate whether the first and second controlled objects are currently in an unbound or bound state, allowing the user to intuitively understand whether the first and second controlled objects are currently in an unbound or bound state.
[0112] In an exemplary embodiment, before obtaining the common target travel information of the first and second control objects based on the change operation of the virtual travel position of the first or second control object if the first control object and the second control object are in a bound state, the following steps may be included:
[0113] In response to the selection operation of the first control object, if the first control object and the second control object are in a bound state and the current virtual travel positions of the first control object and the second control object are different, then the current virtual travel position of the second control object is adjusted to be the same as the current virtual travel position of the first control object; or, in response to the selection operation of the second control object, if the first control object and the second control object are in a bound state and the current virtual travel positions of the first control object and the second control object are different, then the current virtual travel position of the first control object is adjusted to be the same as the current virtual travel position of the second control object.
[0114] This embodiment's solution allows for adjusting the current virtual travel position of the other control object based on the current virtual travel position of the selected control object when the first and second control objects are bound together and their current virtual travel positions are different. This ensures that both control objects are at the same current virtual travel position, allowing the user to more intuitively control the bound first and second control objects. For example, as shown... Figure 11 As shown, the third opening / closing object 421 and the fourth opening / closing object 422 are in a bound state. A selection operation can be triggered on either the third opening / closing object 421 or the fourth opening / closing object 422. For example, pressing and holding the third opening / closing object 421 or the fourth opening / closing object 422 will trigger the selection operation. If the selection operation is triggered on the fourth opening / closing object 422, since the current virtual travel positions of the third opening / closing object 421 and the fourth opening / closing object 422 are different, the user terminal needs to adjust the current virtual travel position of the third opening / closing object 421 to be the same as the current virtual travel position of the fourth opening / closing object 422 on the control page. Thus, the user can continue to drag the fourth opening / closing object 422 while holding it down to trigger the change operation of its virtual travel position. At this time, the third opening / closing object 421 will move synchronously until the drag ends and reaches the target virtual travel position.
[0115] In an exemplary embodiment, after obtaining the common target travel information of the first and second control objects based on the virtual travel position change operation of the first or second control object if the first control object and the second control object are in a bound state, the following steps may be further included:
[0116] Based on the target travel information and the common motion speed, a second control command is sent to the target device. This second control command instructs the first controlled part and the second controlled part to move to their respective actual target travel positions at a common motion speed; where the common motion speed is the shared motion speed of the first and second controlled parts.
[0117] In this embodiment, the movement speed of the first controlled part and the second controlled part of the target device can be configured on the target device's configuration page. This movement speed can be used to indicate the speed at which the first controlled part and the second controlled part change their actual travel distance. The target device's configuration page refers to a page that can be used to configure information such as the device name, placement location, and movement speed of the target device. For example, ... Figure 12 As shown, the movement speed of the left and right curtains can be configured on the smart curtain's configuration page, such as medium, high, or low speed. This movement speed can be the combined movement speed of the first and second controlled parts. Therefore, the user terminal can send a corresponding control command (denoted as the second control command) to the target device based on the target travel information and the combined movement speed. The target device can then control the first and second controlled parts to move to their respective actual target travel positions at the combined speed, based on the target travel information and combined movement speed in the second control command, thereby further enriching the control methods for the controlled parts of the target device. For example, refer to... Figure 12 The configuration page of the smart curtain can be configured to set the common movement speed of the left and right curtains to medium speed. Referring to Figure 9(a), the third opening and closing object 421 (virtual left curtain) and the fourth opening and closing object 422 (virtual right curtain) are in a bound state. Changes to the fourth opening and closing object 422 can be applied to the third opening and closing object 421. When the fourth opening and closing object 422 is dragged to the 20% virtual travel position, the third opening and closing object 421 is moved to the 20% virtual travel position simultaneously. This obtains the common target travel information of the third opening and closing object 421 and the fourth opening and closing object 422. Based on this target travel information and the common movement speed (medium speed) of the left and right curtains configured above, a second control command is sent to the smart curtain to control the left and right curtains to move to their respective actual target travel positions (the actual travel positions corresponding to the 20% travel ratio) at the common movement speed (medium speed).
[0118] In an exemplary embodiment, after obtaining the common target travel information of the first and second control objects based on the virtual travel position change operation of the first or second control object if the first control object and the second control object are in a bound state, the following steps may be further included:
[0119] Based on the target travel information, the first movement speed, and the second movement speed, a third control command is sent to the target device. This third control command instructs the first controlled part and the second controlled part to move to their respective actual target travel positions at the first movement speed and the second movement speed, respectively; wherein the first movement speed is the movement speed of the first controlled part, and the second movement speed is the movement speed of the second controlled part.
[0120] In this embodiment, the movement speed of the first controlled part and the second controlled part of the target device can be configured on the target device's configuration page. This movement speed can be used to indicate the speed at which the first controlled part and the second controlled part change their actual travel distance. The target device's configuration page refers to a page that can be used to configure information such as the device name, placement location, and movement speed of the target device. Figure 12 As shown, the movement speed of the left and right curtains can be configured on the smart curtain's configuration page, such as medium speed, high speed, or low speed. This movement speed can include the movement speeds of the first and second controlled parts. The movement speed of the first controlled part is denoted as the first movement speed, and the movement speed of the second controlled part is denoted as the second movement speed. Therefore, the user terminal can send a corresponding control command (denoted as the third control command) to the target device based on the target travel information, the first movement speed, and the second movement speed. The target device can then control the first and second controlled parts to move to their respective actual target travel positions at the first and second movement speeds, respectively, based on the target travel information, the first movement speed, and the second movement speed in the third control command. This allows for configuring movement speeds for the first and second controlled parts to control their travel position movements, further enriching the control methods for the controlled parts of the target device and improving the flexibility of control. For example, the first movement speed of the left curtain can be configured as low speed and the second movement speed of the right curtain as high speed on the smart curtain's configuration page. (See reference...) Figure 11The third opening / closing object 421 (virtual left curtain) and the fourth opening / closing object 422 (virtual right curtain) are in a bound state. Changes to the fourth opening / closing object 422 can be applied to the third opening / closing object 421. When the fourth opening / closing object 422 is dragged to the 0% virtual travel position, the third opening / closing object 421 is moved to the 0% virtual travel position simultaneously. This obtains the common target travel information of the third opening / closing object 421 and the fourth opening / closing object 422. Based on this target travel information and the first movement speed (low speed) of the left curtain and the second movement speed (high speed) of the right curtain configured above, a third control command is sent to the smart curtain to control the left curtain to move to its actual target travel position (the actual travel position corresponding to the 0% travel ratio) at the first movement speed (low speed) and to control the right curtain to move to its actual target travel position (the actual travel position corresponding to the 0% travel ratio) at the second movement speed (high speed).
[0121] In an exemplary embodiment, before sending the third control command to the target device based on the target travel information, the first motion speed, and the second motion speed, the following steps may be included:
[0122] Obtain the common time consumption; the common time consumption is used to represent the time it takes for the first controlled part and the second controlled part to move to their respective actual target travel positions; based on the common time consumption, determine the first motion speed and the second motion speed.
[0123] In this embodiment, the user terminal can determine a first movement speed of the first controlled part and a second movement speed of the second controlled part based on the common time (common time) required for the first controlled part and the second controlled part to move from their respective current actual target travel positions to their respective actual target travel positions. The common time can be set by the user terminal or by the user. The user terminal can obtain the first movement speed based on the distance between the current travel position and the actual target travel position of the first controlled part and the common time, and can obtain the second movement speed based on the distance between the current travel position and the actual target travel position of the second controlled part and the common time. This allows the user terminal to control the first and second controlled parts to reach their respective actual target travel positions as simultaneously as possible, further enriching the control methods for the controlled parts of the target device and improving the control flexibility of the controlled parts of the target device. As an example, refer to... Figure 11The third opening / closing object 421 (virtual left curtain) and the fourth opening / closing object 422 (virtual right curtain) are in a bound state. Changes to the fourth opening / closing object 422 can be applied to the third opening / closing object 421. When the fourth opening / closing object 422 is dragged to the 0% virtual travel position, the third opening / closing object 421 is moved to the 0% virtual travel position simultaneously, thereby obtaining the common target travel information of the third opening / closing object 421 and the fourth opening / closing object 422. In response, the first controlled portion (left curtain) corresponding to the third opening / closing object 421 needs to move from a 30% current travel position to a 0% actual travel position. The first movement speed of the first controlled portion (left curtain) can be calculated based on the distance between the 30% current travel position and the 0% actual travel position, along with a common time consumption set by the user terminal or by the user. Similarly, the second controlled portion (right curtain) corresponding to the fourth opening / closing object 422 needs to move from a 60% current travel position to a 0% actual travel position. The second movement speed of the second controlled portion (right curtain) can be calculated based on the distance between the 60% current travel position and the 0% actual travel position, along with the aforementioned common time consumption. Therefore, the user terminal can send a third control command to the smart curtain to control the left curtain to move to the 0% actual travel position at the first movement speed, and to control the right curtain to move to the 0% actual travel position at the second movement speed, allowing both curtains to simultaneously reach the 0% actual travel position.
[0124] In an exemplary embodiment, after displaying the virtual object corresponding to the target device in step S201, the method further includes:
[0125] Display the action execution control; based on the trigger operation of the action execution control, send the action execution command to the target device; wherein, the action execution command is used to instruct the controlled part of the target device to perform the corresponding target action.
[0126] In this embodiment, as Figure 13 As shown, the user terminal can also display an action execution control 1310 on the control page. This action execution control 1310 can be used to trigger the controlled parts of the target device to perform corresponding target actions. Different action execution controls 1310 can be set according to different target actions, such as all off, stop, all on, etc. Thus, the user terminal can send corresponding action execution commands to the target device based on the user's triggering operation of the action execution control 1310. The target device can then control the controlled parts to perform the corresponding target actions according to the action execution commands. For example, if the user clicks the "all off" action execution control 1310, each controlled part of the target device can perform the "all off" target action, and so on. This embodiment provides the user with action execution controls corresponding to target actions on the control page, further improving the convenience of controlling the controlled parts of the target device.
[0127] In an exemplary embodiment, after displaying the virtual object corresponding to the target device in step S201, the method further includes:
[0128] Display the scenario execution control; based on the trigger operation of the scenario execution control, send the scenario execution instruction to the target device; wherein, the scenario execution instruction is used to instruct the target controlled part in the target device to perform the target action when the target condition is met; wherein, the target controlled part, the target condition, and the target action are obtained according to the scenario execution instruction.
[0129] In this embodiment, as Figure 13 As shown, the user terminal can also display a scenario execution control 1320 on the control page. This scenario execution control 1320 can be used to trigger the target controlled part of the target device to perform a target action when the target conditions are met. Different scenario execution controls 1320 can be set according to different target conditions, target actions, and target controlled parts, such as scenarios 1 to 4. The user terminal can also display an entry point for adding scenarios (indicated by "+") on the control page. Users can click on this entry point to add scenarios, such as... Figure 14 As shown, users can access the corresponding page to create scenarios based on whether the smart curtain is a single or double curtain. Target conditions such as duration, target opening / closing ratio, and target controlled parts such as the left and / or right curtains can be set, along with movement speed. The user terminal can then send corresponding scenario execution commands to the target device based on the user's trigger operation on the scenario execution control 1320. The target device can then control the target controlled parts to perform target actions when the target conditions are met, such as controlling the right curtain to reach a specified travel position at a specified time. This embodiment provides users with various scenario-specific scenario execution controls on the control page, further enhancing the convenience and flexibility of controlling the controlled parts of the target device.
[0130] In one embodiment, taking a smart curtain as the target device, this method can be applied to situations such as "single-opening curtain (left-opening)," "single-opening curtain (right-opening)," "double-opening curtain (uniform travel range on both sides)," and "double-opening curtain (inconsistent travel range on both sides)." This method can be executed by a user terminal or other control device with a screen, combined with... Figure 15 :
[0131] The control page of the smart curtain displays a first virtual object 41 (illustrated by a diagram) and a second virtual object 42 (illustrated by a slider). The first virtual object 41 may include a first opening / closing object 411 and a second opening / closing object 412 corresponding to the first opening / closing portion (left curtain) and the second opening / closing portion (right curtain) of the smart curtain. The second virtual object 42 may include a third opening / closing object 421 and a fourth opening / closing object 422 corresponding to the first opening / closing portion and the second opening / closing portion of the smart curtain. The opening / closing ratio (travel ratio) of each opening / closing object can be dynamically displayed according to the opening / closing ratio (travel ratio) of the left and right curtains, corresponding to the actual state of the left and right curtains. The virtual travel range of the opening / closing object corresponds to the actual travel range of the opening / closing portion. The object type of the virtual object corresponds to the device type of the target device. The first virtual object 31 and the second virtual object 32 can adjust the opening / closing ratio of the curtain. The control page of the smart curtain can also display an action execution control 1310, which can be used to open, close or stop the curtains. The control page of the smart curtain can also display a scene execution control 1320, which can make the curtains move to a preset position under specific conditions.
[0132] Before using the curtains, the travel range can be set. The user terminal can display the target device's configuration page, respond to the travel configuration command triggered on the configuration page, obtain the target device's travel configuration information; based on the travel configuration information, obtain the actual travel range; based on the actual travel range, determine the virtual travel range of the controlled object. Thus, the user terminal can display the virtual object corresponding to the target device.
[0133] For virtual objects, the user terminal can further determine the object type of the virtual object by following these steps to correspond it to the device type of the target device: displaying one or more selectable device types; obtaining the device type of the target device in response to the selected device type; and obtaining the object type of the virtual object based on the device type. (Combined) Figure 3 The user terminal can display device types such as left-opening curtains, right-opening curtains, double-opening curtains of equal length on both sides, and double-opening curtains of unequal length on both sides. The user can select one or more of the displayed optional device types (such as clicking on a device type). The user terminal can respond to the device type selected by the user, determine the selected device type as the target device type, and then obtain the corresponding virtual object type based on the device type. For example, if the user selects a device type such as a left-opening curtain, a right-opening curtain, a double-opening curtain of equal length on both sides, or a double-opening curtain of unequal length on both sides, the user terminal can obtain the corresponding virtual object type.
[0134] Users can also adjust the curtain type on their device. After adjustment, the type of the virtual objects displayed on the control page will also change accordingly. For example... Figure 7As shown, if adjusting the curtain type affects the availability of already set schedules, the user terminal can prompt the user to delete the schedule. After switching, the user needs to reset the schedule before using it again. For example, if the user changes from "single curtain" to "double curtain," and the user terminal's original schedule does not contain data for the other curtain, the user will be prompted that "the schedule needs to be reset after switching." In this state, the switch can be saved, and after resetting the schedule, it can be used. In some implementations, changing from a single curtain to a double curtain, or vice versa, can prompt "the schedule needs to be reset." Additionally, when switching between single curtains (left-opening / right-opening), it is not necessary to reset the schedule; the object type of the virtual object will be automatically adjusted after the setting is completed.
[0135] Specifically, the correspondence between the object being opened / closed and the parts being opened / closed is as follows:
[0136] For single-panel curtains, there is a one-to-one correspondence between the opening / closing object and the opening / closing portion. The opening / closing portion moves along with the movement of the opening / closing object, and the opening / closing object changes state accordingly when the curtain is pulled by hand. For example, when the opening / closing object is opened to 100%, the opening / closing portion is fully open.
[0137] For double curtains, the left and right curtains can calculate their respective travel ranges based on their respective start positions and common end positions. The relationship between the opening / closing portion and the displayed opening / closing object can be determined based on the proportion of the travel range of the left or right curtain.
[0138] The travel range of the opening and closing objects displayed on the control page corresponds to the travel range of the left and right curtains of the smart curtain. The object type of the virtual objects displayed on the control page also corresponds to the curtain type of the smart curtain. Specifically, when the left curtain of the smart curtain moves 50% of its left travel, the first opening and closing object 411 and the third opening and closing object 421 also move to 50%. If the user manually pulls the left curtain a certain distance, the smart curtain can automatically calculate this distance as the travel ratio and then synchronize the change to the user terminal.
[0139] Specifically, the first opening / closing object 411 and the second opening / closing object 412 correspond to the actual curtain state, as do the third opening / closing object 421 and the fourth opening / closing object 422. When the first opening / closing object 411 and the second opening / closing object 412 are pulled, the third opening / closing object 421 and the fourth opening / closing object 422 will also move according to the stroke ratio, and the stroke ratio can be displayed during the pulling process. For the third opening / closing object 421 and the fourth opening / closing object 422, when the third opening / closing object 421 and the fourth opening / closing object 422 are slid, the first opening / closing object 411 and the second opening / closing object 412 will also move automatically according to the percentage.
[0140] Additionally, the control page can display a state switching component 1000. Clicking the component allows switching control modes, providing a convenient way to toggle the opening / closing object between unbound and bound states. In the bound state, both curtains can be controlled simultaneously; pulling one side of the opening / closing object will move both curtains simultaneously to the same travel ratio. In the unbound state, both curtains can be controlled separately; pulling one side of the opening / closing object will only move that side's curtain, leaving the other side's opening / closing object and curtain stationary.
[0141] Users can switch between "binding / unbinding" modes at any time, and the user terminal will automatically adjust the binding / unbinding status to ensure normal operation next time. When a user pulls the curtain, the user terminal can display the current opening / closing ratio in real time, corresponding to the actual curtain, and can simultaneously send control commands to the smart curtain. The smart curtain can convert this opening / closing ratio into movement distance and control the curtain to move to the target position. When the user manually pulls the curtain, the smart curtain can upload the movement data to the cloud, and the user terminal can update the opening / closing ratio of the curtain based on the movement data in the cloud. After the user controls the curtain movement through the user terminal, the left and right curtains can move to the target position at the same time and at the same speed, and can arrive at the target position one after the other. This movement speed can be set through the user terminal, and can be a shared speed value. In the implementation, the movement speed of each curtain can also be set separately or an adaptive speed can be set to ensure that the curtains arrive at the target position simultaneously as much as possible.
[0142] Additionally, the action execution control 1310 can be clicked to perform target actions such as fully opening, fully closing, and stopping the curtains, without distinguishing between single and double curtains; even with double curtains, both curtains can move together. The scene execution control 1320 can also be clicked to execute user-preset scenes; for example, clicking it can cause the curtains to reach a specified position at a designated time according to a preset scene.
[0143] The method of this application can be applied to situations such as "single curtain (left opening)," "single curtain (right opening)," "double curtain (uniform travel range on both sides)," and "double curtain (inconsistent travel range on both sides)." It can not only enable the curtains on both sides to move simultaneously or separately, but also precisely control the opening and closing degree of the curtains. It can switch between "simultaneous control of both curtains" and "separate control of one curtain." When the lengths of the curtain tracks on both sides are inconsistent, since the object type of the virtual object corresponds to the device type of the target device, and the virtual travel range of the controlled object corresponds to the actual travel range of the controlled part, it can more accurately and intuitively control and grasp the actual travel position of the controlled part based on the target travel information and the corresponding type of controlled object. Precise control can be achieved through the control page, improving the convenience of controlling smart devices.
[0144] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0145] Based on the same inventive concept, this application also provides a device control apparatus for implementing the device control method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more device control apparatus embodiments provided below can be found in the limitations of the device control method described above, and will not be repeated here.
[0146] In one exemplary embodiment, such as Figure 16 As shown, a device control apparatus is provided, the apparatus 1600 may include:
[0147] The first display module 1601 is used to display a virtual object corresponding to the target device; the virtual object includes a control object corresponding to the controlled part of the target device; the virtual travel range of the control object corresponds to the actual travel range of the controlled part; the object type of the virtual object corresponds to the device type of the target device.
[0148] Information acquisition module 1602 is used to acquire target travel information; the target travel information is used to indicate the virtual target travel position of the controlled object in the virtual travel range; the target travel information is also used to indicate the actual target travel position of the corresponding controlled part in the actual travel range;
[0149] The second display module 1603 is used to display the control object located at the virtual target travel position according to the target travel information, so that the controlled part is at the actual target travel position; the virtual target travel position corresponds to the actual target travel position.
[0150] In an exemplary embodiment, the first display module 1601 is further configured to display a configuration page of the target device; in response to a trip configuration instruction triggered on the configuration page, obtain trip configuration information of the target device; obtain the actual trip range based on the trip configuration information; and determine the virtual trip range of the controlled object based on the actual trip range.
[0151] In an exemplary embodiment, the controlled portion includes a first controlled portion and a second controlled portion; the controlled object includes a first controlled object and a second controlled object; the first controlled object corresponds to the first controlled portion; the second controlled object corresponds to the second controlled portion; the first display module 1601 is further configured to determine the virtual travel range of the first controlled object and the virtual travel range of the second controlled object based on a first ratio between the actual travel range of the first controlled portion and the actual travel range of the second controlled portion; wherein, the second ratio between the virtual travel range of the first controlled object and the virtual travel range of the second controlled object corresponds to the first ratio.
[0152] In an exemplary embodiment, the first display module 1601 is further configured to display one or more optional device types; in response to the selected device type, obtain the device type of the target device; and obtain the object type of the virtual object based on the device type.
[0153] In an exemplary embodiment, the first display module 1601 is further configured to, in response to a type adjustment operation for the device type, obtain the adjusted device type; if the adjusted device type does not meet the trip reset condition, then display the virtual object corresponding to the target device according to the adjusted device type.
[0154] In an exemplary embodiment, the first display module 1601 is further configured to, in response to a type adjustment operation for the device type, obtain the adjusted device type; if the adjusted device type meets the trip reset condition, display the configuration page of the target device to re-acquire the trip configuration information of the target device; and display the virtual object corresponding to the target device according to the adjusted device type and the re-acquired trip configuration information.
[0155] In an exemplary embodiment, the information acquisition module 1602 is configured to: obtain the target travel information based on the change information of the actual travel position of the controlled part; and / or, obtain the target travel information based on the change operation of the virtual travel position of the controlled object; the information acquisition module 1602 is further configured to: send a first control command to the target device based on the target travel information, so that the corresponding controlled part runs to the actual target travel position.
[0156] In an exemplary embodiment, the controlled portion includes a first opening / closing portion and / or a second opening / closing portion; the controlled object includes a first control object and / or a second control object; the first control object corresponds to the first opening / closing portion, and the second control object corresponds to the second opening / closing portion; the first control object includes a first opening / closing object and a third opening / closing object; the second control object includes a second opening / closing object and a fourth opening / closing object; the information acquisition module 1602 is configured to: if a change operation of the virtual travel position is triggered on the first opening / closing object or the third opening / closing object, move the first opening / closing object and the third opening / closing object to the virtual travel position indicated by the change operation to obtain the changed virtual travel position, and obtain the target travel information of the first opening / closing portion based on the changed virtual travel position; if a change operation of the virtual travel position is triggered on the second opening / closing object or the fourth opening / closing object, move the second opening / closing object and the fourth opening / closing object to the virtual travel position indicated by the change operation to obtain the changed virtual travel position, and obtain the target travel information of the second opening / closing portion based on the changed virtual travel position.
[0157] In an exemplary embodiment, the information acquisition module 1602 is configured to: request change information of the actual travel position of the controlled part from the server; or, receive change information of the actual travel position of the controlled part sent by the target device.
[0158] In an exemplary embodiment, the information acquisition module 1602 is configured to receive the actual current travel position of the controlled portion sent by the target device; if the actual current travel position does not correspond to the virtual target travel position, the virtual target travel position is adjusted according to the actual current travel position so that the adjusted virtual target travel position corresponds to the actual current travel position.
[0159] In an exemplary embodiment, the controlled portion includes a first controlled portion and a second controlled portion; the controlled object includes a first controlled object and a second controlled object; the first controlled object corresponds to the first controlled portion; the second controlled object corresponds to the second controlled portion; the information acquisition module 1602 is used to obtain the common target travel information of the first controlled object and the second controlled object based on the change operation of the virtual travel position of the first controlled object or the second controlled object if the first controlled object and the second controlled object are in a bound state; the bound state indicates that the first controlled object and the second controlled object are simultaneously controlled; if the first controlled object and the second controlled object are in an unbound state, the target travel information of the first controlled object and the second controlled object respectively is obtained based on the change operation of the virtual travel position of the first controlled object and the second controlled object respectively.
[0160] In an exemplary embodiment, the information acquisition module 1602 is further configured to display a state switching component; based on a trigger operation on the state switching component, switch the first control object and the second control object from the bound state to the unbound state, or switch from the unbound state to the bound state.
[0161] In an exemplary embodiment, the information acquisition module 1602 is further configured to, in response to a selection operation on the first control object, adjust the current virtual travel position of the second control object to be the same as the current virtual travel position of the first control object if the first control object and the second control object are in a bound state and the current virtual travel positions of the first control object and the second control object are different; or, in response to a selection operation on the second control object, adjust the current virtual travel position of the first control object to be the same as the current virtual travel position of the second control object if the first control object and the second control object are in a bound state and the current virtual travel positions of the first control object and the second control object are different.
[0162] In an exemplary embodiment, the information acquisition module 1602 is further configured to send a second control command to the target device based on the target travel information and the common motion speed; wherein the second control command is configured to instruct the first controlled part and the second controlled part to move to their respective actual target travel positions at a common motion speed; wherein the common motion speed is the common motion speed of the first controlled part and the second controlled part.
[0163] In an exemplary embodiment, the information acquisition module 1602 is further configured to send a third control command to the target device based on the target travel information, the first movement speed, and the second movement speed; wherein the third control command is configured to instruct the first controlled part and the second controlled part to move to their respective actual target travel positions at the first movement speed and the second movement speed, respectively; wherein the first movement speed is the movement speed of the first controlled part, and the second movement speed is the movement speed of the second controlled part.
[0164] In an exemplary embodiment, the information acquisition module 1602 is further configured to acquire a common time consumption; the common time consumption represents the time consumed by the first controlled part and the second controlled part to move to their respective actual target travel positions; and based on the common time consumption, the first movement speed and the second movement speed are determined.
[0165] In an exemplary embodiment, the first display module 1601 is further configured to display an action execution control; and send an action execution instruction to the target device according to a trigger operation on the action execution control; wherein the action execution instruction is configured to instruct the controlled part of the target device to perform a corresponding target action.
[0166] In an exemplary embodiment, the first display module 1601 is further configured to display a scenario execution control; and send a scenario execution instruction to the target device based on a trigger operation on the scenario execution control;
[0167] The scenario execution instruction is used to instruct the target controlled part in the target device to perform a target action when the target condition is met; wherein the target controlled part, the target condition, and the target action are obtained according to the scenario execution instruction.
[0168] In an exemplary embodiment, the controlled portion includes a first opening / closing portion and / or a second opening / closing portion; the virtual object includes a first virtual object illustrated in the figure and / or a second virtual object illustrated in the figure; the first virtual object includes a first opening / closing object corresponding to the first opening / closing portion and / or a second opening / closing object corresponding to the second opening / closing portion; the second virtual object includes a third opening / closing object corresponding to the first opening / closing portion and / or a fourth opening / closing object corresponding to the second opening / closing portion.
[0169] Each module in the aforementioned equipment control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the electronic device in hardware form or independent of it, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each module.
[0170] In one exemplary embodiment, an electronic device is provided, which can be a terminal or a smart home device, and its internal structure diagram can be as follows. Figure 17 As shown, this electronic device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a device control method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the electronic device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the electronic device, or external keyboards, touchpads, or mice, etc.
[0171] Those skilled in the art will understand that Figure 17 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0172] In one embodiment, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0173] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0174] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0175] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0176] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0177] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0178] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A device control method characterized by, The method comprises: displaying a virtual object corresponding to a target device; the virtual object comprises a control object corresponding to a controlled part of the target device; a virtual travel range of the control object corresponds to an actual travel range of the controlled part; an object type of the virtual object corresponds to a device type of the target device; obtaining target travel information; the target travel information is used to indicate a virtual target travel position of the control object in the virtual travel range; the target travel information is also used to indicate an actual target travel position of the corresponding controlled part in the actual travel range; according to the target travel information, displaying the control object located at the virtual target travel position, so that the controlled part is at the actual target travel position; the virtual target travel position corresponds to the actual target travel position.
2. The method of claim 1, wherein, Before the displaying of the virtual object corresponding to the target device, the method further comprises: displaying a configuration page of the target device; obtaining travel configuration information of the target device in response to a travel configuration instruction triggered on the configuration page; obtaining the actual travel range according to the travel configuration information; determining the virtual travel range of the control object according to the actual travel range.
3. The method of claim 2, wherein, The controlled part comprises a first controlled part and a second controlled part; the control object comprises a first control object and a second control object; the first control object corresponds to the first controlled part; the second control object corresponds to the second controlled part; determining the virtual travel range of the control object according to the actual travel range comprises: determining the virtual travel range of the first control object and the virtual travel range of the second control object according to a first ratio between the actual travel range of the first controlled part and the actual travel range of the second controlled part; wherein a second ratio of the virtual travel range of the first control object and the virtual travel range of the second control object corresponds to the first ratio.
4. The method of claim 1, wherein, Before the displaying of the virtual object corresponding to the target device, the method further comprises: displaying one or more selectable device types; obtaining the device type of the target device in response to a selected device type; obtaining the object type of the virtual object according to the device type.
5. The method of claim 4, wherein, After the displaying of the virtual object corresponding to the target device, the method further comprises: obtaining an adjusted device type in response to a type adjustment operation for the device type; if the adjusted device type does not satisfy a travel reset condition, displaying the virtual object corresponding to the target device according to the adjusted device type.
6. The method of claim 4, wherein, After the displaying of the virtual object corresponding to the target device, the method further comprises: obtaining an adjusted device type in response to a type adjustment operation for the device type; if the adjusted device type satisfies a travel reset condition, displaying a configuration page of the target device to re-obtain travel configuration information of the target device; displaying the virtual object corresponding to the target device according to the adjusted device type and the re-obtained travel configuration information.
7. The method of claim 1, wherein the obtaining the target travel information comprises: obtaining the target travel information according to variation information of the actual travel position of the controlled part; and / or obtaining the target travel information according to a variation operation on the virtual travel position of the control object. After the obtaining the target travel information, the method further comprises: sending a first control instruction to the target device according to the target travel information, so that the corresponding controlled part runs to the actual target travel position. The controlled part comprises a first opening and closing part and / or a second opening and closing part; the control object comprises a first control object and / or a second control object; the first control object corresponds to the first opening and closing part, and the second control object corresponds to the second opening and closing part; the first control object comprises a first opening and closing object and a third opening and closing object; and the second control object comprises a second opening and closing object and a fourth opening and closing object. The obtaining the target travel information according to the variation operation on the virtual travel position of the control object comprises: if the variation operation on the virtual travel position is triggered on the first opening and closing object or the third opening and closing object, moving the first opening and closing object and the third opening and closing object to the virtual travel position indicated by the variation operation to obtain a variation virtual travel position, and obtaining the target travel information of the first opening and closing part according to the variation virtual travel position; and if the variation operation on the virtual travel position is triggered on the second opening and closing object or the fourth opening and closing object, moving the second opening and closing object and the fourth opening and closing object to the virtual travel position indicated by the variation operation to obtain a variation virtual travel position, and obtaining the target travel information of the second opening and closing part according to the variation virtual travel position. Before the obtaining the target travel information according to the variation information of the actual travel position of the controlled part, the method further comprises: requesting the variation information of the actual travel position of the controlled part from a server, or receiving the variation information of the actual travel position of the controlled part sent by the target device. After the sending the first control instruction to the target device according to the target travel information, so that the corresponding controlled part runs to the actual target travel position, the method further comprises: receiving the actual current travel position of the controlled part sent by the target device; if the actual current travel position does not correspond to the virtual target travel position, adjusting the virtual target travel position according to the actual current travel position, so that the adjusted virtual target travel position corresponds to the actual current travel position. The controlled part comprises a first controlled part and a second controlled part; and the control object comprises a first control object and a second control object.
8. The method of claim 7, wherein, The first control object corresponds to the first controlled part. The second control object corresponds to the second controlled part. The obtaining the target travel information comprises: 9. The method of claim 7, wherein, 10. The method of claim 7, wherein, 11. The method according to any one of claims 1 to 10, characterized in that, if the first control object and the second control object are in the binding state, obtaining the target stroke information common to the first control object and the second control object according to the variation operation on the virtual stroke position of the first control object or the second control object; the binding state indicates that the first control object and the second control object are controlled simultaneously; if the first control object and the second control object are in the unbinding state, obtaining the target stroke information of the first control object and the second control object respectively according to the variation operation on the virtual stroke position of the first control object and the second control object respectively.
12. The method of claim 11, wherein, Before the target stroke information is obtained, the method further comprises: a state switching component; switching the first control object and the second control object from the binding state to the unbinding state or from the unbinding state to the binding state according to the triggering operation on the state switching component.
13. The method of claim 11, wherein, Before the target stroke information common to the first control object and the second control object is obtained according to the variation operation on the virtual stroke position of the first control object or the second control object if the first control object and the second control object are in the binding state, the method further comprises: if the first control object and the second control object are in the binding state and the current virtual stroke positions of the first control object and the second control object are different, adjusting the current virtual stroke position of the second control object to be the same as the current virtual stroke position of the first control object in response to the selection operation on the first control object; or, if the first control object and the second control object are in the binding state and the current virtual stroke positions of the first control object and the second control object are different, adjusting the current virtual stroke position of the first control object to be the same as the current virtual stroke position of the second control object in response to the selection operation on the second control object.
14. The method of claim 11, wherein, After the target stroke information common to the first control object and the second control object is obtained according to the variation operation on the virtual stroke position of the first control object or the second control object if the first control object and the second control object are in the binding state, the method further comprises: sending a second control instruction to the target device according to the target stroke information and the common motion speed; wherein the second control instruction is used to instruct the first controlled part and the second controlled part to move to the respective actual target stroke positions at the common motion speed; wherein the common motion speed is the motion speed common to the first controlled part and the second controlled part.
15. The method of claim 11, wherein, After the target stroke information common to the first control object and the second control object is obtained according to the variation operation on the virtual stroke position of the first control object or the second control object if the first control object and the second control object are in the binding state, the method further comprises: According to the target stroke information, the first movement speed and the second movement speed, a third control instruction is sent to the target device; The third control instruction is used to instruct the first controlled part and the second controlled part to move to respective actual target stroke positions at the first movement speed and the second movement speed respectively. The first movement speed is the movement speed of the first controlled part, and the second movement speed is the movement speed of the second controlled part.
16. The method of claim 15, wherein, Before the third control instruction is sent to the target device according to the target stroke information, the first movement speed and the second movement speed, the method further comprises: A common time consumption is obtained. The common time consumption is used to indicate the time consumption of the first controlled part and the second controlled part moving to respective actual target stroke positions. The first movement speed and the second movement speed are determined based on the common time consumption.
17. The method of claim 1, wherein, After the virtual object corresponding to the target device is displayed, the method further comprises: An action execution control is displayed. An action execution instruction is sent to the target device according to a triggering operation on the action execution control. The action execution instruction is used to instruct the controlled part of the target device to execute a corresponding target action.
18. The method of claim 1, wherein, After the virtual object corresponding to the target device is displayed, the method further comprises: A scenario execution control is displayed. A scenario execution instruction is sent to the target device according to a triggering operation on the scenario execution control. The scenario execution instruction is used to instruct a target controlled part in the target device to execute a target action when a target condition is met. The target controlled part, the target condition and the target action are obtained according to the scenario execution instruction.
19. The method of claim 1, wherein, The controlled part comprises a first opening and closing part and / or a second opening and closing part. The virtual object comprises a first virtual object in a diagrammatic sketch and / or a second virtual object in a sliding bar sketch. The first virtual object comprises a first opening and closing object corresponding to the first opening and closing part and / or a second opening and closing object corresponding to the second opening and closing part. The second virtual object comprises a third opening and closing object corresponding to the first opening and closing part and / or a fourth opening and closing object corresponding to the second opening and closing part.
20. An apparatus control device, characterized by comprising: The device comprises: A first display module is used to display a virtual object corresponding to a target device. The virtual object comprises a control object corresponding to a controlled part of the target device. A virtual stroke range of the control object corresponds to an actual stroke range of the controlled part. An object type of the virtual object corresponds to a device type of the target device. An information acquisition module is used to acquire target stroke information. The target stroke information is used to indicate a virtual target stroke position of the control object in the virtual stroke range. The target stroke information is also used to indicate an actual target stroke position of the corresponding controlled part in the actual stroke range. A second display module is configured to display the control object at the virtual target travel position according to the target travel information, so that the controlled part is at the actual target travel position; the virtual target travel position corresponds to the actual target travel position. 21.An electronic device comprising a memory and a processor, the memory storing a computer program, wherein, The computer program is executed by the processor to implement the steps of the method of any one of claims 1 to 19.
22. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method of any one of claims 1 to 19.
23. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method of any one of claims 1 to 19. The computer program is executed by the processor to implement the steps of the method of any one of claims 1 to 19.