Equipment control method and device, electronic equipment, readable storage medium and program product

By displaying a virtual object of the target device and obtaining target travel information, the problem of insufficient convenience in traditional device control is solved, and precise and intuitive control of the controlled part is achieved.

CN121000541APending Publication Date: 2025-11-21SHENZHEN LUMIUNITED TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511034052.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-25
Publication Date
2025-11-21

AI Technical Summary

Technical Problem

Traditional equipment control methods require users to adjust the control based on the real-time changes in the position of the controlled part, resulting in insufficient control convenience.

Method used

By displaying a virtual object of the target device and obtaining target travel information, the controlled part is instructed to the target position within the actual travel range, thereby realizing the corresponding display and control of the virtual object and the controlled part.

Benefits of technology

It improves the convenience and accuracy of equipment control, enabling users to intuitively control the actual travel position of the controlled part.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121000541A_ABST
    Figure CN121000541A_ABST
Patent Text Reader

Abstract

The invention relates to an equipment control method and device, electronic equipment, a readable storage medium and a program product, and relates to the technical field of Internet of Things. According to the invention, the control convenience of the intelligent equipment can be improved. The method comprises the steps that a virtual object corresponding to target equipment is displayed, the virtual object comprises a control object corresponding to a controlled part of the target equipment, target travel information is obtained, the target travel information is used for indicating a virtual target travel position of the control object in a virtual travel range, and the virtual target travel position of the control object in the virtual travel range is displayed. And the display module is also used for indicating the actual target travel position of the corresponding controlled part in the actual travel range, and displaying the control object located at the virtual target travel position according to the target travel information, so that the controlled part is located at the actual target travel position.
Need to check novelty before this filing date? Find Prior Art

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;

[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.

[0010] Secondly, this application provides a device control method, including:

[0011] Display a virtual object corresponding to the target device; the virtual object includes an opening / closing object corresponding to the opening / closing portion of the target device;

[0012] Obtain the target travel ratio; the target travel ratio is used to indicate the virtual target travel position of the opening and closing object within the virtual travel range; the target travel ratio is also used to indicate the actual target travel position of the corresponding opening and closing part within the actual travel range;

[0013] Based on the target travel ratio, the opening and closing object located at the virtual target travel position is displayed, such that the opening and closing portion is located at the actual target travel position.

[0014] Thirdly, this application also provides a device control apparatus, comprising:

[0015] 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;

[0016] The first 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;

[0017] The second display module is also 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.

[0018] Fourthly, this application also provides a device control apparatus, comprising:

[0019] The third display module is used to display virtual objects corresponding to the target device; the virtual objects include opening and closing objects corresponding to the opening and closing parts of the target device.

[0020] The second acquisition module is used to acquire the target travel ratio; the target travel ratio is used to indicate the virtual target travel position of the opening and closing object in the virtual travel range; the target travel ratio is also used to indicate the actual target travel position of the corresponding opening and closing part in the actual travel range.

[0021] The fourth display module is used to display the opening and closing object located at the virtual target travel position according to the target travel ratio, so that the opening and closing part is located at the actual target travel position.

[0022] Fifthly, 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:

[0023] 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; obtain 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.

[0024] Sixthly, 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:

[0025] Display a virtual object corresponding to the target device; the virtual object includes an opening / closing object corresponding to the opening / closing portion of the target device; obtain a target travel ratio; the target travel ratio is used to indicate the virtual target travel position of the opening / closing object within the virtual travel range; the target travel ratio is also used to indicate the actual target travel position of the corresponding opening / closing portion within the actual travel range; based on the target travel ratio, display the opening / closing object located at the virtual target travel position, such that the opening / closing portion is located at the actual target travel position.

[0026] Seventhly, 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:

[0027] 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; obtain 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.

[0028] Eighthly, 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:

[0029] Display a virtual object corresponding to the target device; the virtual object includes an opening / closing object corresponding to the opening / closing portion of the target device; obtain a target travel ratio; the target travel ratio is used to indicate the virtual target travel position of the opening / closing object within the virtual travel range; the target travel ratio is also used to indicate the actual target travel position of the corresponding opening / closing portion within the actual travel range; based on the target travel ratio, display the opening / closing object located at the virtual target travel position, such that the opening / closing portion is located at the actual target travel position.

[0030] Ninthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0031] 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; obtain 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.

[0032] In a tenth aspect, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0033] Display a virtual object corresponding to the target device; the virtual object includes an opening / closing object corresponding to the opening / closing portion of the target device; obtain a target travel ratio; the target travel ratio is used to indicate the virtual target travel position of the opening / closing object within the virtual travel range; the target travel ratio is also used to indicate the actual target travel position of the corresponding opening / closing portion within the actual travel range; based on the target travel ratio, display the opening / closing object located at the virtual target travel position, such that the opening / closing portion is located at the actual target travel position.

[0034] The aforementioned device control method, apparatus, electronic device, readable storage medium, and program product display a virtual object corresponding to the target device. This virtual object includes a control object corresponding to a controlled part of the target device. Target travel information is acquired, indicating the virtual target travel position of the control object within the virtual travel range and 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, thus placing the controlled part at the actual target travel position. This solution can, based on the acquired target travel information, correspondingly display the control object located at the virtual target travel position and place the controlled part at the actual target travel position. Therefore, 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. Based on the target travel information and the virtual travel position of the displayed control object, the actual travel position of the controlled part can be accurately and intuitively controlled, improving the convenience of controlling intelligent devices. Attached Figure Description

[0035] 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.

[0036] Figure 1 This is an application environment diagram of the device control method in one embodiment;

[0037] Figure 2 This is a flowchart illustrating a device control method in one embodiment;

[0038] Figure 3 This is a schematic diagram of a virtual object in one embodiment;

[0039] Figure 4(a) is a schematic diagram of a variation operation in one embodiment;

[0040] Figure 4(b) is a schematic diagram of another variation operation in one embodiment;

[0041] Figure 5(a) is a schematic diagram of the binding state change operation in one embodiment;

[0042] Figure 5(b) is a schematic diagram of the change operation of the unbinding state in one embodiment;

[0043] Figure 6 This is a schematic diagram of a state switching component in one embodiment;

[0044] Figure 7This is a schematic diagram of a binding state change operation in another embodiment;

[0045] Figure 8 This is a schematic diagram of speed selection in one embodiment;

[0046] Figure 9(a) is a schematic diagram of a virtual object in another embodiment;

[0047] Figure 9(b) is a schematic diagram of a virtual object in yet another embodiment;

[0048] Figure 10 This is a schematic diagram of the execution control in one embodiment;

[0049] Figure 11 A schematic diagram of a page with a scenario added in one embodiment;

[0050] Figure 12 This is a flowchart illustrating the device control method in another embodiment;

[0051] Figure 13 This is a schematic diagram of a smart curtain page in one embodiment;

[0052] Figure 14 This is a schematic diagram of a control page in one embodiment;

[0053] Figure 15 This is a structural block diagram of the device control apparatus in one embodiment;

[0054] Figure 16 This is a structural block diagram of the device control apparatus in another embodiment;

[0055] Figure 17 This is a diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation

[0056] 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.

[0057] 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.

[0058] 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.

[0059] 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.

[0060] 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.

[0061] 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 make the controlled part at the 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. Based on the target travel information and the virtual travel position of the displayed control object, the actual travel position of the controlled part can be controlled accurately and intuitively, improving the convenience of controlling the intelligent device.

[0062] 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.

[0063] 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:

[0064] Step S201: Display the virtual object corresponding to the target device. The virtual object includes a control object corresponding to the controlled portion of the target device.

[0065] 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.

[0066] 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.

[0067] In this step, the number of control objects for the virtual object corresponds to the number of controlled parts of the target device, and the functions and states of the control objects of the virtual object 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 position, denoted as the actual travel position. Correspondingly, the control objects of the virtual object also have a travel range, denoted as the virtual travel range, and the control objects of the virtual object also have a travel position, denoted as the virtual travel position. As an example, taking a smart curtain as an example, its opening and closing part (such as the curtain fabric) can be considered as the controlled part. Correspondingly, the control objects of the virtual object can include opening and closing objects corresponding to the opening and closing part. The travel range of the opening and closing part of the smart curtain can be determined based on the range of movement that the opening and closing part can make on the curtain track of the smart curtain, and the travel position of the opening and closing part of the smart curtain can be the position of the opening and closing part on the curtain track of the smart curtain, such as... Figure 3As shown, the virtual objects may include a first virtual object 31 (illustrated in the diagram) and a second virtual object 32 (illustrated as a slider). In practical applications, the virtual objects displayed on the control page may include the first virtual object 31 and / or the second virtual object 32. The first virtual object 31 may include a first opening / closing object 311 and a second opening / closing object 312 corresponding to the first and second opening / closing portions of the smart curtain. The second virtual object 32 may include a third opening / closing object 321 and a fourth opening / closing object 322 corresponding to the first and second opening / closing portions of the smart curtain. The first opening / closing object 311 may have a first virtual travel range L1 and a first virtual travel position P1; the second opening / closing object 312 may have a second virtual travel range L2 and a second virtual travel position P2; the third opening / closing object 321 may have a third virtual travel range L3 and a third virtual travel position P3; and the fourth opening / closing object 322 may have a fourth virtual travel range L4 and a fourth virtual travel position P4. Among them, the first virtual travel range L1 can correspond to the third virtual travel range L3, and the first virtual travel position P1 can correspond to the third virtual travel position P3; the second virtual travel range L2 can correspond to the fourth virtual travel range L4, and the second virtual travel position P2 can correspond to the fourth virtual travel position P4.

[0068] 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.

[0069] 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.

[0070] 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.

[0071] In this step, the user terminal can display the control object located at the virtual target travel position on the control page based on the target travel information, and make the controlled part located at the actual target travel position.

[0072] The device control method of this embodiment displays a virtual object corresponding to the target device. This virtual object includes a control object corresponding to the controlled portion of the target device. Target travel information is acquired, which indicates the virtual target travel position of the control object within the virtual travel range and the actual target travel position of the corresponding controlled portion within the actual travel range. Based on the target travel information, the control object located at the virtual target travel position is displayed, thus placing the controlled portion at the actual target travel position. This solution can, based on the acquired target travel information, correspondingly display the control object located at the virtual target travel position and place the controlled portion at the actual target travel position. Therefore, the virtual travel position of the displayed control object can be associated with the actual travel position of the controlled portion through the target travel information. Based on the target travel information and the virtual travel position of the displayed control object, the actual travel position of the controlled portion can be accurately and intuitively controlled, improving the convenience of controlling intelligent devices.

[0073] In an exemplary embodiment, before obtaining the target trip information in step S202, the above method may further include:

[0074] Obtain the virtual travel start position of the controlled object and the actual travel start position of the controlled part; obtain the virtual travel end position of the controlled object and the actual travel end position of the controlled part; match the controlled object and the controlled part according to the virtual travel range indicated by the virtual travel start position and the virtual travel end position, and the actual travel range indicated by the actual travel start position and the actual travel end position.

[0075] In this embodiment, the actual travel start position of the controlled part represents the travel start point of the controlled part, i.e., the position from which movement can begin, and the actual travel end position of the controlled part represents the travel end point of the controlled part, i.e., the position to which movement can end. Correspondingly, the virtual travel start position of the controlled object represents the travel start point of the controlled object, and the virtual travel end position of the controlled object represents the travel end point of the controlled object. The actual travel start position and / or actual travel end position of the controlled part can be set by the user, as can the virtual travel start position and / or virtual travel end position of the controlled object. After obtaining the virtual travel start position and virtual travel end position, the virtual travel range defined by the virtual travel start position and virtual travel end position can be determined. After obtaining the actual travel start position and actual travel end position, the actual travel range defined by the actual travel start position and actual travel end position can be determined. Thus, the controlled object and the controlled part can be mapped according to the virtual travel range and the actual travel range. This embodiment's solution improves the convenience of device configuration and control by mapping the travel of the controlled object and the controlled part through setting virtual travel start positions, virtual travel end positions, and actual travel start positions and actual travel end positions.

[0076] In one exemplary embodiment, step S202, obtaining the target trip information, may include:

[0077] Based on the changes in the actual travel position of the controlled portion, the target travel information is obtained.

[0078] 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. The solution of this embodiment can obtain the target travel information based on the change information of the actual travel position when the user manually operates the controlled part of the target device. Based on this, the virtual target travel position of the controlled object on the control page can be synchronously controlled within the virtual travel range, maintaining the correspondence between the travel position of the controlled object and the controlled part, so that the user can intuitively and accurately control the controlled part of the target device on the control page.

[0079] 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, it may also include: sending the corresponding 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.

[0080] 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. As an example, as shown in Figure 4(a), a change operation can be triggered on the second opening / closing object 312. For example, by pulling the second opening / closing object 312 on the control page, the second opening / closing object 312 can be pulled to a virtual travel position of 50%. In response, the user terminal can simultaneously move the fourth opening / closing object 322 to a virtual travel position of 50% to correspond with the virtual travel position of the second opening / closing object 312. During the pulling of the second opening / closing object 312, the current travel ratio can be displayed on the control page so that the user can intuitively understand the current travel ratio. The user terminal also sends a corresponding control command to the smart curtain based on the target travel information, such as the target travel ratio (50%), obtained by pulling the second opening / closing object 312 to a virtual travel position of 50%. The smart curtain can convert the target travel ratio (50%) into a movement distance and control the right curtain to move to the actual target travel position corresponding to the target travel ratio. As another example, as shown in Figure 4(b), a change operation can also be triggered on the fourth opening / closing object 322, such as dragging the fourth opening / closing object 322 on the control page. In response, the user terminal can simultaneously move the second opening / closing object 312 to a 50% virtual travel position to correspond with the virtual travel position of the fourth opening / closing object 322. The user terminal also sends a corresponding control command to the smart curtain based on the target travel information, such as the target travel ratio (50%), obtained by dragging the fourth opening / closing object 322 to the 50% virtual travel position, so that the smart curtain can control the right curtain to run to the actual target travel position corresponding to the target travel ratio.

[0081] 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.

[0082] In an exemplary embodiment, the virtual object includes a first control object and a second control object; the target device includes a first controlled part and a second controlled part; the first control object corresponds to the first controlled part, and the second control object corresponds to the second controlled part; the step S202 of obtaining the target travel information may include:

[0083] If the first control object and the second control object are in a bound state, 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; if the first control object and the second control object are in a unbound state, 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.

[0084] 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 3 As mentioned above, the first opening / closing object 311 and the third opening / closing object 321 can be used as the first control object, and the second opening / closing object 312 and the fourth opening / closing object 322 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.

[0085] 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.

[0086] 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 act on the other control object, thereby obtaining the common target travel information of the first control object and the second control object. As shown in Figure 5(a), the third opening and closing object 321 and the fourth opening and closing object 322 are in a bound state. The change operation of the fourth opening and closing object 322 can act on the third opening and closing object 321. For example, when the fourth opening and closing object 322 is dragged to the 20% virtual travel position, the third opening and closing object 321 can be moved to the 20% virtual travel position simultaneously, thereby obtaining the common target travel information of the third opening and closing object 321 and the fourth opening and closing object 322. 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).

[0087] 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 respective 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 5(b), the third opening / closing object 321 and the fourth opening / closing object 322 are in an unbound state, and the fourth opening / closing object 322 can be controlled independently. The user terminal can obtain the target travel information of the fourth opening / closing object 322 by changing its virtual travel position, and thereby control the second controlled part to move to the corresponding target actual travel position.

[0088] 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.

[0089] In an exemplary embodiment, before obtaining the target trip information in step S202, the following steps may also be included:

[0090] 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.

[0091] In this embodiment, combined with Figure 6The user terminal can display a state switching component 600 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 600 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 600 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.

[0092] In an exemplary embodiment, before the step described above of 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:

[0093] 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.

[0094] 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 7As shown, the third opening / closing object 321 and the fourth opening / closing object 322 are in a bound state. A selection operation can be triggered on either the third opening / closing object 321 or the fourth opening / closing object 322. For example, pressing and holding the third opening / closing object 321 or the fourth opening / closing object 322 will trigger the selection operation. If the selection operation is triggered on the fourth opening / closing object 322, since the current virtual travel positions of the third opening / closing object 321 and the fourth opening / closing object 322 are different, the user terminal needs to adjust the current virtual travel position of the third opening / closing object 321 to be the same as the current virtual travel position of the fourth opening / closing object 322 on the control page. Thus, the user can continue to drag the fourth opening / closing object 322 while holding it down to trigger the change operation of its virtual travel position. At this time, the third opening / closing object 321 will move synchronously until the drag ends and reaches the target virtual travel position.

[0095] In an exemplary embodiment, after the step described above of 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 further included:

[0096] Based on the target travel information and the common motion speed, corresponding control commands are sent to the target device. These control commands instruct 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.

[0097] 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 8 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 corresponding control commands 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, further enriching the control methods for the controlled parts of the target device. For example, refer to... Figure 8The common movement speed of the left and right curtains can be configured as medium speed on the configuration page of the smart curtain. Referring to Figure 5(a), the third opening and closing object 321 (virtual left curtain) and the fourth opening and closing object 322 (virtual right curtain) are bound together. Changes to the fourth opening and closing object 322 can be applied to the third opening and closing object 321. When the fourth opening and closing object 322 is dragged to the 20% virtual travel position, the third opening and closing object 321 is moved to the 20% virtual travel position simultaneously. This obtains the common target travel information of the third opening and closing object 321 and the fourth opening and closing object 322. Based on this target travel information and the common movement speed (medium speed) of the left and right curtains configured above, the corresponding 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).

[0098] In an exemplary embodiment, after the step described above of 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 further included:

[0099] Based on the target travel information, the first movement speed, and the second movement speed, corresponding control commands are sent to the target device. These control commands instruct the first and second controlled parts to move to their respective actual target travel positions at the first and second movement speeds, respectively. The first movement speed refers to the movement speed of the first controlled part, and the second movement speed refers to the movement speed of the second controlled part.

[0100] 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 8As 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 individual 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 corresponding control commands 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 control commands. 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. (Refer to...) Figure 7 The third opening / closing object 321 (virtual left curtain) and the fourth opening / closing object 322 (virtual right curtain) are in a bound state. Changes to the fourth opening / closing object 322 can be applied to the third opening / closing object 321. When the fourth opening / closing object 322 is dragged to the 0% virtual travel position, the third opening / closing object 321 is moved to the 0% virtual travel position simultaneously. This obtains the common target travel information of the third opening / closing object 321 and the fourth opening / closing object 322. 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, corresponding control commands are 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).

[0101] In an exemplary embodiment, before the step of sending the corresponding control command to the target device based on the target travel information, the first motion speed, and the second motion speed, the following step may be included:

[0102] 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.

[0103] 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 actual target 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 actual target 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 7 The third opening / closing object 321 (virtual left curtain) and the fourth opening / closing object 322 (virtual right curtain) are in a bound state. Changes to the fourth opening / closing object 322 can be applied to the third opening / closing object 321. When the fourth opening / closing object 322 is dragged to the 0% virtual travel position, the third opening / closing object 321 is moved to the 0% virtual travel position simultaneously, thereby obtaining the common target travel information of the third opening / closing object 321 and the fourth opening / closing object 322. In response, the first controlled portion (left curtain) corresponding to the third opening / closing object 321 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 322 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 corresponding control commands 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.

[0104] In one exemplary embodiment, the number of controlled parts may include multiple parts; the number of controlled objects may include multiple objects; different controlled objects have the same virtual travel range; different controlled parts may have the same or different actual travel ranges.

[0105] In this embodiment, the target device can have multiple controlled parts, and correspondingly, the virtual object also has multiple control objects. The virtual travel ranges of different control objects are the same; that is, each control object displayed on the control page has the same virtual travel range. The actual travel ranges of different controlled parts can be the same or different. Regardless of whether the actual travel ranges of different controlled parts of the target device are the same, each control object displayed on the control page has the same virtual travel range. This makes each control object displayed on the control page visually more harmonious and symmetrical. As an example, Figures 9(a) and 9(b) show that even when the actual travel ranges of the left and right curtains of a smart curtain are different and the same, the virtual travel ranges of the opening and closing objects corresponding to the left and right curtains displayed on the control page are the same.

[0106] In an exemplary embodiment, after displaying the virtual object corresponding to the target device in step S201, the following steps may also be included:

[0107] Display the action execution control; based on the trigger operation of the action execution control, send the corresponding action execution command to the target device. The action execution command instructs the controlled part of the target device to perform the corresponding target action.

[0108] In this embodiment, as Figure 10 As shown, the user terminal can also display an action execution control 1000 on the control page. This action execution control 1000 can be used to trigger the controlled parts of the target device to perform corresponding target actions. Different action execution controls 1000 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 1000. 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 1000, 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.

[0109] In an exemplary embodiment, after displaying the virtual object corresponding to the target device in step S201, the following steps may also be included:

[0110] Display the scenario execution control; based on the trigger operation of the scenario execution control, send the corresponding scenario execution command to the target device. The scenario execution command instructs the target controlled part of the target device to perform the target action when the target conditions are met; the target controlled part, target conditions, and target action are obtained from the scenario execution command.

[0111] In this embodiment, as Figure 10 As shown, the user terminal can also display a scenario execution control 1100 on the control page. This scenario execution control 1100 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 1100 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 11 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 1100. 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.

[0112] In one embodiment, a device control method is also provided, such as... Figure 12 As shown, the method may include the following steps:

[0113] Step S1201: Display the virtual object corresponding to the target device. The virtual object includes an opening / closing object corresponding to the opening / closing part of the target device.

[0114] Step S1202: Obtain the target travel ratio. The target travel ratio is used to indicate the virtual target travel position of the opening / closing object within the virtual travel range; the target travel ratio is also used to indicate the actual target travel position of the corresponding opening / closing part within the actual travel range.

[0115] Step S1203: Based on the target travel ratio, display the opening and closing object located at the virtual target travel position, so that the opening and closing part is at the actual target travel position.

[0116] In this embodiment, the target device can be a smart curtain. The smart curtain can have an opening and closing part, which can be the curtain fabric of the smart curtain. The smart curtain can be a single curtain or a double curtain. The user terminal can display a virtual object corresponding to the smart curtain, such as... Figure 13 The virtual object corresponding to a single-curtain smart curtain is shown, and the virtual object corresponding to a double-curtain smart curtain can be referred to in Figures 9(a) and 9(b). In this embodiment, the user terminal can obtain a target travel ratio, which indicates the virtual target travel position of the opening / closing object within the virtual travel range, and also indicates the actual target travel position of the corresponding opening / closing part within the actual travel range. The user terminal can display the opening / closing object located at the virtual target travel position on the control page according to the target travel ratio, and also ensure that the opening / closing part is at the actual target travel position. The related operations of the smart curtain in this embodiment can refer to the related operations of the target device disclosed in the previous embodiments, and will not be repeated here.

[0117] The solution in this embodiment can display the control object located at the virtual target travel position and make the controlled part at the actual target travel position based on the obtained target travel ratio. 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 ratio. Based on the target travel ratio and the virtual travel position of the displayed control object, the actual travel position of the controlled part can be controlled accurately and intuitively, improving the convenience of controlling the smart device.

[0118] In one embodiment, the number of opening and closing parts may be multiple; the number of opening and closing objects may be multiple; different opening and closing objects have the same virtual travel range; different opening and closing parts may have the same or different actual travel ranges.

[0119] In this embodiment, referring to Figures 9(a) and 9(b), the target device can be a smart curtain, which can have multiple opening and closing parts. Correspondingly, the virtual object also has multiple opening and closing objects. The virtual travel range of different opening and closing objects is the same; that is, each opening and closing object displayed on the control page has the same virtual travel range. The actual travel range of different opening and closing parts can be the same or different. Regardless of whether the actual travel ranges between different opening and closing parts of the target device are the same, each opening and closing object displayed on the control page has the same virtual travel range. This makes each opening and closing object displayed on the control page visually more harmonious and symmetrical. Figures 9(a) and 9(b) show that even when the actual travel ranges of the left and right curtains of the smart curtain are different and the same, the virtual travel ranges of the corresponding opening and closing objects for the left and right curtains displayed on the control page are the same.

[0120] 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 14 :

[0121] The control page of the smart curtain displays a first virtual object 31 (illustrated by a diagram) and a second virtual object 32 (illustrated by a slider). The first virtual object 31 may include a first opening / closing object 311 and a second opening / closing object 312 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 32 may include a third opening / closing object 321 and a fourth opening / closing object 322 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 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 1000, which can be used to fully open, close, or stop the curtain. A scene execution control 1100 can also be displayed on the control page of the smart curtain, which can cause the curtain to move to a preset position under specific conditions.

[0122] Specifically, the correspondence between the object being opened / closed and the parts being opened / closed is as follows:

[0123] 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.

[0124] For double-opening curtains, the left and right curtains can calculate their respective travel ranges based on their individual start positions and common end positions. The relationship between the opening / closing portion and the displayed opening / closing objects can be determined based on the proportion of each curtain's travel range. For double-opening curtains, the travel ranges of the left and right curtains may or may not be the same. Regardless of whether their travel ranges are the same, the travel ranges of the opening / closing objects displayed on the control page are identical. In the actual curtain movement, the left curtain moves 50% of its left travel, and the first and third opening / closing objects 311 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 proportion and synchronize the change with the user's terminal.

[0125] Specifically, the first and second opening / closing objects 311 and 312 correspond to the actual curtain state, as do the third and fourth opening / closing objects 321 and 322. When the first and second opening / closing objects 311 and 312 are pulled, the third and fourth opening / closing objects 321 and 322 will also move according to the stroke ratio, which can be displayed during the pulling process. Similarly, when the third and fourth opening / closing objects 321 and 322 are slid, the first and second opening / closing objects 311 and 312 will also move automatically according to a percentage.

[0126] Additionally, the control page can display a state switching component 600. 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 of the curtain, while the other side will not move.

[0127] 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.

[0128] Additionally, the action execution control 1000 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. Furthermore, the scene execution control 1100 can be clicked to execute user-preset scenes. For example, clicking it can cause the curtains to reach a specified position at a designated time based on a preset scene.

[0129] 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 make the curtains on both sides 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." Even when the lengths of the curtain tracks on both sides are inconsistent, precise control can be achieved through the control page.

[0130] 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.

[0131] 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.

[0132] In one exemplary embodiment, such as Figure 15 As shown, a device control apparatus is provided, the apparatus 1500 may include:

[0133] The first display module 1501 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.

[0134] The first acquisition module 1502 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;

[0135] The second display module 1503 is further configured to display the control object located at the virtual target travel position based on the target travel information, so that the controlled part is located at the actual target travel position.

[0136] In an exemplary embodiment, the first acquisition module 1502 is further configured to acquire the virtual travel start position of the controlled object and the actual travel start position of the controlled part, acquire the virtual travel end position of the controlled object and the actual travel end position of the controlled part; and match the controlled object with the controlled part according to the virtual travel range of the controlled object indicated by the virtual travel start position and the virtual travel end position, and the actual travel range indicated by the actual travel start position and the actual travel end position.

[0137] In an exemplary embodiment, the first acquisition module 1502 is configured to obtain the target travel information based on the change information of the actual travel position of the controlled part; and / or, the first acquisition module 1502 is configured to obtain the target travel information based on the change operation of the virtual travel position of the controlled object; the first acquisition module 1502 is further configured to send a corresponding 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.

[0138] In an exemplary embodiment, the virtual object includes a first control object and a second control object; the target device includes a first controlled part and a second controlled part; the first control object corresponds to the first controlled part, and the second control object corresponds to the second controlled part; the first acquisition module 1502 is configured to, if the first control object and the second control object are in a bound state, obtain the common target travel information of the first control object and the second control object based on the change operation of the virtual travel position of the first control object or the second control object; if the first control object and the second control object are in an unbound state, obtain the target travel information of the first control object and the second control object respectively based on the change operation of the virtual travel position of the first control object and the second control object respectively.

[0139] In one exemplary embodiment, the first acquisition module 1502 is also used to display a state switching component;

[0140] Based on the trigger operation of the state switching component, the first control object and the second control object are switched from the bound state to the unbound state, or from the unbound state to the bound state.

[0141] In an exemplary embodiment, the first acquisition module 1502 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.

[0142] In an exemplary embodiment, the first acquisition module 1502 is further configured to send a corresponding control command to the target device based on the target travel information and the common motion speed; wherein the 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.

[0143] In an exemplary embodiment, the first acquisition module 1502 is further configured to send a corresponding control command to the target device based on the target travel information, the first movement speed, and the second movement speed; wherein the 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.

[0144] In an exemplary embodiment, the first acquisition module 1502 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.

[0145] In one exemplary embodiment, the number of controlled parts includes multiple parts; the number of controlled objects includes multiple objects; the virtual travel range of different controlled objects is the same; the actual travel range of different controlled parts may be the same or different.

[0146] In an exemplary embodiment, the first display module 1501 is further configured to display an action execution control; and send a corresponding action execution instruction to the target device based on 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.

[0147] In an exemplary embodiment, the first display module 1501 is further configured to display a scenario execution control; and send a corresponding scenario execution instruction to the target device according to the triggering operation of the scenario execution control; wherein the scenario execution instruction is configured 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.

[0148] In one exemplary embodiment, such as Figure 16 As shown, a device control apparatus is provided, the apparatus 1600 may include:

[0149] The third display module 1601 is used to display a virtual object corresponding to the target device; the virtual object includes an opening / closing object corresponding to the opening / closing part of the target device.

[0150] The second acquisition module 1602 is used to acquire a target travel ratio; the target travel ratio is used to indicate the virtual target travel position of the opening and closing object in the virtual travel range; the target travel ratio is also used to indicate the actual target travel position of the corresponding opening and closing part in the actual travel range.

[0151] The fourth display module 1603 is used to display the opening and closing object located at the virtual target travel position according to the target travel ratio, so that the opening and closing part is located at the actual target travel position.

[0152] In one exemplary embodiment, the number of opening and closing portions includes multiple portions; the number of opening and closing objects includes multiple objects; the virtual travel range of different opening and closing objects is the same; the actual travel range of different opening and closing portions may be the same or different.

[0153] 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.

[0154] 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.

[0155] 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.

[0156] 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.

[0157] 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.

[0158] 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.

[0159] 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.

[0160] 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.

[0161] 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.

[0162] 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 in that, The method includes: 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; 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; 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.

2. The method according to claim 1, characterized in that, Prior to obtaining the target trip information, the method further includes: Obtain the virtual travel start position of the controlled object and the actual travel start position of the controlled part; obtain the virtual travel end position of the controlled object and the actual travel end position of the controlled part. The controlled object and the controlled portion are matched according to the virtual travel range of the controlled object indicated by the virtual travel start position and the virtual travel end position, and the actual travel range indicated by the actual travel start position and the actual travel end position.

3. The method according to claim 1, characterized in that, The acquisition of target trip information includes: The target travel information is obtained based on the change information of the actual travel position of the controlled part; And / or, The acquisition of target trip information includes: The target travel information is obtained based on the change operation of the virtual travel position of the controlled object; After obtaining the target trip information, the method further includes: Based on the target travel information, a corresponding control command is sent to the target device, causing the corresponding controlled part to run to the actual target travel position.

4. The method according to claim 1, characterized in that, The virtual object includes a first control object and a second control object; the target device includes a first controlled part and a second controlled part; the first control object corresponds to the first controlled part, and the second control object corresponds to the second controlled part; The acquisition of target trip information includes: If the first control object and the second control object are in a bound state, then the target travel information shared by the first control object and the second control object is obtained based on the change operation of the virtual travel position of the first control object or the second control object; 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 is obtained according to the change operation on the virtual travel position of the first control object and the second control object respectively.

5. The method according to claim 4, characterized in that, Before obtaining the target itinerary information, the process also includes: Display state switching component; Based on the trigger operation of the state switching component, the first control object and the second control object are switched from the bound state to the unbound state, or from the unbound state to the bound state.

6. The method according to claim 4, characterized in that, If the first control object and the second control object are in a bound state, before obtaining the common target travel information of the first control object and the second control object based on the change operation of the virtual travel position of the first control object or the second control object, the method further includes: 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.

7. The method according to claim 4, characterized in that, If the first control object and the second control object are in a bound state, after obtaining the common target travel information of the first control object and the second control object based on the change operation of the virtual travel position of the first control object or the second control object, the method further includes: Based on the target travel information and the common motion speed, corresponding control commands are sent to the target device; The control command is used to instruct the first controlled part and the second controlled part to move to their respective actual target travel positions at a common speed. The common motion speed is the combined motion speed of the first controlled part and the second controlled part.

8. The method according to claim 4, characterized in that, If the first control object and the second control object are in a bound state, after obtaining the common target travel information of the first control object and the second control object based on the change operation of the virtual travel position of the first control object or the second control object, the method further includes: Based on the target travel information, the first movement speed, and the second movement speed, corresponding control commands are sent to the target device; The control command is used 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.

9. The method according to claim 8, characterized in that, Before sending the corresponding control command to the target device based on the target travel information, the first motion speed, and the second motion speed, the method further includes: Obtain the common time consumption; the common time consumption is used to represent the time consumed by the first controlled part and the second controlled part to move to their respective actual target travel positions; Based on the common time consumption, the first movement speed and the second movement speed are determined.

10. The method according to any one of claims 1 to 9, characterized in that, The number of controlled parts includes multiple parts; the number of controlled objects includes multiple objects; the virtual travel range of different controlled objects is the same; the actual travel range of different controlled parts may be the same or different.

11. The method according to any one of claims 1 to 9, characterized in that, After displaying the virtual object corresponding to the target device, the method further includes: Display action execution controls; Based on the trigger operation of the action execution control, a corresponding action execution command is sent to the target device; The action execution instruction is used to instruct the controlled part of the target device to perform a corresponding target action.

12. The method according to any one of claims 1 to 9, characterized in that, After displaying the virtual object corresponding to the target device, the method further includes: Display the scenario execution controls; Based on the trigger operation of the scenario execution control, a corresponding scenario execution command is sent to the target device; The scenario execution instruction is used to instruct the target controlled part in the target device to perform a target action when the target conditions are met. The controlled portion of the target, the target conditions, and the target actions are obtained based on the scenario execution instructions.

13. A device control method, characterized in that, The method includes: Display a virtual object corresponding to the target device; the virtual object includes an opening / closing object corresponding to the opening / closing portion of the target device; Obtain the target travel ratio; the target travel ratio is used to indicate the virtual target travel position of the opening and closing object within the virtual travel range; the target travel ratio is also used to indicate the actual target travel position of the corresponding opening and closing part within the actual travel range; Based on the target travel ratio, the opening and closing object located at the virtual target travel position is displayed, such that the opening and closing portion is located at the actual target travel position.

14. The method according to claim 13, characterized in that, The number of opening and closing parts includes multiple parts; the number of opening and closing objects includes multiple objects; the virtual travel range of different opening and closing objects is the same; the actual travel range of different opening and closing parts may be the same or different.

15. A device control apparatus, characterized in that, The device includes: 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 first 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; The second display module is also 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.

16. A device control apparatus, characterized in that, The device includes: The third display module is used to display virtual objects corresponding to the target device; the virtual objects include opening and closing objects corresponding to the opening and closing parts of the target device. The second acquisition module is used to acquire the target travel ratio; the target travel ratio is used to indicate the virtual target travel position of the opening and closing object in the virtual travel range; the target travel ratio is also used to indicate the actual target travel position of the corresponding opening and closing part in the actual travel range. The fourth display module is used to display the opening and closing object located at the virtual target travel position according to the target travel ratio, so that the opening and closing part is located at the actual target travel position.

17. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 12 or any one of claims 13 to 14.

18. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 12 or any one of claims 13 to 14.

19. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 12 or any one of claims 13 to 14.