Equipment control method, device, system, equipment, storage medium and program product
By obtaining the target stroke ratio information from the control page and sending control commands, the problem of frequent adjustments in traditional equipment control is solved, enabling precise control and convenient operation of the moving objects on the equipment.
Patent Information
- Application Number
- CN202511034006.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-25
- Publication Date
- 2025-11-18
AI Technical Summary
Traditional equipment control methods require users to frequently adjust control operations based on the real-time position changes of the moving object, resulting in insufficient control convenience.
By obtaining the target stroke ratio information from the control component on the control page and sending the corresponding control command to the target device, the moving object can be moved to the target position, reducing the frequency of adjustments to the control operation.
It enables precise control of moving objects on the equipment, improves control convenience, and reduces the frequency of adjustments to control operations.
Smart Images

Figure CN120979862A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of Internet of Things, and in particular to a device control method, device, system, electronic device, storage medium and computer program product. BACKGROUND
[0002] With the development of Internet of Things (IOT) technology, various smart devices (for example, various smart home devices, etc.) are rapidly popularizing, which can connect various devices in space to realize intelligent control of various devices and automatic application of intelligent scenes, etc.
[0003] Some smart devices have a moving object, and the moving object can be controlled to move by a smart phone or other devices, so that the position of the moving object in the smart device changes.
[0004] Based on the traditional control mode, when a user triggers a control operation on the moving object of a smart device through a smart phone or other devices, the control operation generally needs to be adjusted according to the real-time change of the position of the moving object, so as to control the position to the right place, and therefore the convenience of device control needs to be improved. SUMMARY
[0005] Therefore, it is necessary to provide a device control method, device, system, electronic device, storage medium and computer program product for the above technical problems.
[0006] In a first aspect, the present application provides a device control method, comprising:
[0007] displaying a control page for a target device; the target device comprising a moving object; the control page comprising a control component for the moving object;
[0008] in response to a control operation on the moving object triggered through the control component, obtaining target stroke ratio information corresponding to the control operation;
[0009] sending a control instruction corresponding to the target stroke ratio information to the target device according to the target stroke ratio information; the control instruction being used to instruct the target device to control the moving object to move to a target position corresponding to the target stroke ratio information.
[0010] In a second aspect, the present application further provides a device control device, comprising:
[0011] a display module, configured to display a control page for a target device; the target device comprising a moving object; the control page comprising a control component for the moving object;
[0012] An acquisition module is configured to acquire target stroke ratio information corresponding to a control operation for the moving object in response to the control operation triggered by the control component;
[0013] A sending module is configured to send a control instruction corresponding to the target stroke ratio information to the target device according to the target stroke ratio information, where the control instruction is used to instruct the target device to control the moving object to move to a target position corresponding to the target stroke ratio information.
[0014] In a third aspect, the present application provides a device control system, which comprises a master control unit, a driving motor and a Hall sensor corresponding to the driving motor, where:
[0015] The master control unit is configured to receive a control instruction from a control terminal for a target device, where the target device comprises a moving object, the control terminal is used to trigger the control instruction for the target device, the control instruction comprises target stroke ratio information, and the control instruction is used to control the moving object to move to a target position corresponding to the target stroke ratio information.
[0016] The master control unit is further configured to control the driving motor to operate according to the target stroke ratio information and the Hall sensor, so that the driving motor drives the moving object to move to the target position.
[0017] In a fourth aspect, the present application provides an electronic device, which comprises a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0018] In a fifth aspect, the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps of the above method.
[0019] In a sixth aspect, the present application provides a computer program product, which comprises a computer program, and the computer program is executed by a processor to implement the steps of the above method.
[0020] The device control method, device, system, electronic device, storage medium and computer program product can display a control page of a target device, the target device comprising a moving object, the control page comprising a control component for the moving object; in response to a control operation for the moving object triggered by the control component, target stroke ratio information corresponding to the control operation is obtained; and a control instruction corresponding to the target stroke ratio information is sent to the target device according to the target stroke ratio information; the control instruction is used to instruct the target device to control the moving object to move to a target position corresponding to the target stroke ratio information. This scheme can obtain target stroke ratio information corresponding to a control operation for a moving object triggered by a control component of a control page of a target device, send a corresponding control instruction to the target device according to the target stroke ratio information, and make the target device control the moving object of the target device to move to a target position corresponding to the target stroke ratio information according to the control instruction, so that the position of the moving object of the target device in the target device can be accurately controlled without frequent adjustment of the control operation, and the convenience of controlling the device is improved. BRIEF DESCRIPTION OF DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the drawings needed to be used in the description of the embodiments of the present application or the related art will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.
[0022] Figure 1 An application environment diagram of a device control method in an embodiment;
[0023] Figure 2 A flowchart of a device control method in an embodiment;
[0024] Figure 3 A schematic diagram of a control page of a target device in an embodiment;
[0025] Figure 4 A schematic diagram of a control page of a target device in another embodiment;
[0026] Figure 5 A schematic diagram of a control page of a target device in yet another embodiment;
[0027] Figure 6 A schematic diagram of a control page of a target device in still another embodiment;
[0028] Figure 7 A schematic diagram of a device control flow in an embodiment;
[0029] Figure 8Fig. 2 is a schematic diagram of a device control flow for another embodiment;
[0030] Figure 9 Fig. 3 is a structural block diagram of a device control apparatus for an embodiment;
[0031] Figure 10 Fig. 4 is an internal structural diagram of an electronic device for an embodiment. DETAILED DESCRIPTION
[0032] In order to make the purposes, technical solutions and advantages of the present application clearer, further detailed description will be made to the present application in combination with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
[0033] The device control method provided by the embodiments of the present application can be applied to an application environment as shown in Figure 1 The application environment can be a smart home system, which can include a cloud / cloud server, a router, a gateway, a user terminal (such as a mobile phone, a tablet computer), a plurality of smart devices (such as a smart lamp, a smart curtain, a smart sound, a smart television, a smart socket, a smart air conditioner, a sensor, a smart switch, a smart door lock), and the like. In the smart home system, each device can be connected to the gateway through a ZIGBEE / Bluetooth / matter network, and the gateway and the user terminal can be connected to the router through WiFi, respectively. In addition, the user terminal can also establish a network connection with the cloud / cloud server through 2G / 3G / 4G / 5G, WiFi, and the like, so as to obtain the data issued by the cloud / cloud server.
[0034] For the smart home system, the system configuration manner can be that the user terminal is installed with a corresponding application program, at least one gateway device can be added on the application program first, when other devices (such as a smart curtain) are added, an add device button in the interface of the application program can be clicked, and the gateway device to which the device needs to be connected is selected in the add interface, so that the device can be added into the network corresponding to the gateway, and then the device and other added devices and the gateway together form a local area network, for example, which can be a ZigBee network, a Matter network, a Bluetooth network, a WIFI network, and the like. When the application program and the router and the gateway are in the same local area network, the application program can interact with the gateway and the devices connected to the gateway through the local area network path; when the application program and the router and the gateway are not in the same local area network, the application program can interact with the gateway and the devices connected to the gateway through the wide area network path.
[0035] As shown in Figure 1The smart home system shown can include various smart home devices, some of which can have a moving object that can be controlled to move by a user terminal or other device, causing the position of the moving object in the smart device to change.
[0036] Based on the traditional control mode, when the user triggers a control operation on the moving object of the smart device through the user terminal or other device, the position of the moving object in the smart device can change (e.g., move left, right, up, or down) following the user's control operation (e.g., left, right, up, or down operation). To control the position to the right place, the user generally needs to adjust the control operation according to the real-time change of the position of the moving object, and the control convenience of the smart device needs to be improved.
[0037] To this end, the device control method provided by the present application can obtain target travel ratio information based on a control operation on the moving object triggered through a control component of a control page of a target device, send corresponding control instructions to the target device according to the target travel ratio information, and make the target device control the moving object of the target device to move to a target position corresponding to the target travel ratio information. Without frequent adjustment of the control operation, the position of the moving object of the target device can be accurately controlled, and the control convenience of the device is improved.
[0038] The device control method of the present application will be described in detail below based on Figure 1 the application environment, in combination with various embodiments and corresponding drawings.
[0039] In one exemplary embodiment, as shown in Figure 2 , a device control method is provided, which can be applied to a user terminal as in Figure 1 , or other control devices equipped with a display screen. Taking the case where the method is applied to a user terminal in Figure 1 for example, the method can include the following steps:
[0040] Step S201, a control page for a target device is displayed. The target device includes a moving object; the control page includes a control component for the moving object.
[0041] In this step, the user terminal can display a control page for the target device, which can then display control components for the moving objects included within the target device. 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, allowing the user to interact with it and issue various control commands. This control page can display control components for the moving objects; these components are user-operable and used to control the moving objects within the target device, enabling precise control of the moving objects by the user.
[0042] The target device may have one or more moving objects, each moving object may have a certain range of travel on the target device, and the moving object may move within its range of travel under the control of the target device, user terminal or other control device, and may change its position in a controlled manner within its range of travel.
[0043] The travel range can be defined by the maximum and minimum movement limits of the target device's moving object along its movement path. For example, the opening and closing component of a smart window can be considered a moving object, and its travel range can be the range from fully closed to the maximum opening angle. The joint of a robotic arm can be considered a moving object, and its travel range can be the range of angles it can move. The clothesline of a smart clothes rack can be considered a moving object, and its travel range can be from the lowest position to the highest position. The position of the moving object can be the current position of the target device's moving object on its movement path, within the travel range. For example, the opening and closing component of a smart window can be considered a moving object, and its travel position can be its opening and closing angle. The joint of a robotic arm can be considered a moving object, and its travel position can be the angle it can move. The clothesline of a smart clothes rack can be considered a moving object, and its travel position can be its lifting and lowering height.
[0044] The number of control components can correspond to the number of moving objects in the target device.
[0045] In some of these embodiments, such as Figure 3 As shown, the target device may include a first moving object and a second moving object. The control component may include a slider, which can be used by the user to control the first and second moving objects of the target device. The slider may include a slider bar and a slider, the slider being able to slide on the slider bar, for example, it can slide on the slider bar upon user triggering. The user can trigger the control operation of the moving object by pressing and dragging the slider. Correspondingly, the slider may include a first slider and a second slider, the first slider being used to control the first moving object and the second slider being used to control the second moving object.
[0046] In step S202, in response to the control operation on the motion object triggered by the control component, target travel ratio information corresponding to the control operation is obtained.
[0047] In this step, the control operation triggered by the control component for controlling the position of the motion object can be used to change the position of the motion object, instruct the motion object to move to a specified position, etc. The user can trigger the control operation on the control component displayed on the control page of the user terminal, and the user terminal can obtain target travel ratio information corresponding to the control operation in response to the control operation. The target travel ratio information can include a target travel ratio of the motion object in its travel range, such as 0%, 20%, 50%, 100%, etc.
[0048] In step S203, according to the target travel ratio information, a control instruction corresponding to the target travel ratio information is sent to the target device. The control instruction is used to instruct the target device to control the motion object to move to a target position corresponding to the target travel ratio information.
[0049] In this step, according to the target travel ratio information, the user terminal can send a corresponding control instruction to the target device, and the target device can control the corresponding motion object to move to a target position corresponding to the target travel ratio information according to the target travel ratio information in the control instruction.
[0050] The device control method of the embodiment displays a control page for a target device, the target device includes a motion object, and the control page includes a control component for the motion object. In response to a control operation on the motion object triggered by the control component, target travel ratio information corresponding to the control operation is obtained. According to the target travel ratio information, a control instruction corresponding to the target travel ratio information is sent to the target device. The control instruction is used to instruct the target device to control the motion object to move to a target position corresponding to the target travel ratio information. This scheme can obtain corresponding target travel ratio information based on a control operation on the motion object triggered by a control component of a control page of a target device, send a corresponding control instruction to the target device according to the target travel ratio information, and make the target device control the motion object of the target device to move to a target position corresponding to the target travel ratio information according to the control instruction. Without frequent adjustments to the control operation, the position of the motion object of the target device in the target device can be accurately controlled, and the control convenience of the device is improved.
[0051] In one exemplary embodiment, the control page includes a speed control component for the motion object. Before step S203, according to the target travel ratio information, a control instruction corresponding to the target travel ratio information is sent to the target device, the following steps can also be included:
[0052] In response to a selection operation on the target speed gear of the speed control component, speed gear information corresponding to the target speed gear is acquired; and a speed adjustment instruction corresponding to the speed gear information is sent to the target device according to the speed gear information; the speed adjustment instruction is used to instruct the target device to control the motion object to move to the target position at a target speed corresponding to the speed gear information.
[0053] In this step, the user terminal can also display a speed control component for the motion object in the control page, where the speed control component is a component used to control the motion speed of the motion object. The speed control component can include a plurality of speed gears, each of which can correspond to different speed gear information, and each of which can represent different motion speeds. As an example, different motion speeds can include low speed (such as 8 cm / s), medium speed (such as 12 cm / s), and high speed (such as 16 cm / s).
[0054] In this step, the user can trigger a selection operation such as clicking on one of the speed gears of the speed control component, which can be determined as the target speed gear. The user terminal can thereby obtain speed gear information corresponding to the target speed gear, and send a corresponding speed adjustment instruction to the target device according to the speed gear information. The speed adjustment instruction can be used to instruct the target device to control the motion object to move to the target position at a target speed corresponding to the speed gear information.
[0055] The scheme of the embodiment can be used to set the motion speed of the motion object, and improve the flexibility of controlling the motion object.
[0056] In an exemplary embodiment, the control page includes a motion demonstration area for the motion object; the motion demonstration area is used to display a motion dynamic picture of the motion object; after the step of sending the control instruction corresponding to the target travel ratio information to the target device in step S203, the following steps can be further included:
[0057] According to the target travel ratio information, the motion time of the motion object is acquired; and according to the motion time, a motion dynamic picture of a virtual object corresponding to the motion object moving to a virtual target position corresponding to the target position within the motion time is displayed in the motion demonstration area. The virtual object is a demonstration object corresponding to the motion object in the motion demonstration area; and the virtual target position is a position corresponding to the target position in the motion demonstration area.
[0058] In this embodiment, the control page may include a motion demonstration area for the moving object, which can be used to display the dynamic motion of the moving object. Therefore, after sending a control command corresponding to the target travel ratio information to the target device, the user terminal can obtain the motion time of the moving object based on the target travel ratio information. This motion time represents the time it takes for the moving object to move to the target position corresponding to the target travel ratio information. Based on this motion time, the user terminal can display the dynamic motion of a virtual object corresponding to the moving object moving to the virtual target position corresponding to the target position within the motion demonstration area of the control page. Here, the virtual object is the demonstration object corresponding to the moving object in the motion demonstration area, and the virtual target position is the position of the target position corresponding to the motion demonstration area. As an example, such as... Figure 3 As shown, the target device can be a smart curtain, and the moving object can be the left curtain. Assuming the current position of the left curtain corresponds to a travel percentage of 50% and the time required for the left curtain to complete its travel is 10 seconds, the target travel percentage information can be expressed as 20%. After the user terminal sends this target travel percentage information to the smart curtain, the smart curtain can control the left curtain to move to the target position corresponding to 20%. After sending this target travel percentage information to the smart curtain, the user terminal can, based on this target travel percentage information, the aforementioned travel percentage corresponding to the current position of the left curtain, and the time required for the left curtain to complete its travel, determine that the movement time required for the left curtain to move to the virtual target position corresponding to the target position is 3 seconds. Therefore, the user terminal can display a dynamic animation of the virtual object corresponding to the left curtain (which can be denoted as the first virtual object) moving to the virtual target position corresponding to the target position within the 3-second movement time in the motion demonstration area. For example, the virtual object of the left curtain will run for 3 seconds and eventually stop at the virtual target position corresponding to 20%. In this regard, it is understandable that the moving object can also be the right curtain, and the virtual object corresponding to the right curtain can be recorded as the second virtual object. When controlling the right curtain, the second virtual object can also be displayed in the motion demonstration area in a similar way, showing the dynamic motion of the second virtual object moving to the virtual target position corresponding to the target position within a motion time such as 2 seconds.
[0059] The solution in this embodiment can accurately and intuitively understand the current position of the moving object of the target device based on the target travel ratio information and the displayed virtual object. Furthermore, the dynamic motion display shown in the motion demonstration area can synchronously reflect the current motion status of the moving object of the target device, thereby improving the convenience of controlling the smart device.
[0060] In an example embodiment, the moving object includes a first moving object and a second moving object; the motion demonstration area contains a first virtual object corresponding to the first moving object and a second virtual object corresponding to the second moving object; the virtual target position includes a first virtual target position and a second virtual target position; the target stroke ratio information includes first target stroke ratio information and second target stroke ratio information; and the obtaining of the motion time of the moving object according to the target stroke ratio information can include: obtaining a first motion time of the first moving object according to the first target stroke ratio information, and obtaining a second motion time of the second moving object according to the second target stroke ratio information; and the displaying of the moving dynamic picture of the virtual object corresponding to the moving object in the motion demonstration area according to the motion time can include: displaying a moving dynamic picture of the first virtual object in the motion demonstration area according to the first motion time, and displaying a moving dynamic picture of the second virtual object in the motion demonstration area according to the second motion time.
[0061] In the embodiment, the moving object of the target device can include a first moving object and a second moving object. As an example, the target device can be a smart curtain, the first moving object can be a left curtain, and the second moving object can be a right curtain. Accordingly, as shown in FIG. 1, the motion demonstration area can contain a first virtual object corresponding to the first moving object and a second virtual object corresponding to the second moving object. Figure 3
[0062] In the embodiment, when the motion object of the target device includes the first motion object and the second motion object, the first motion object and / or the second motion object can be controlled, that is, the first motion object and the second motion object can be controlled simultaneously, or the first motion object or the second motion object can be controlled individually. The manner of controlling the first motion object or the second motion object individually can refer to the related description of the foregoing embodiments. For the manner of controlling the first motion object and the second motion object simultaneously, the first motion time of the first motion object can be acquired according to the first target stroke ratio information, and the second motion time of the second motion object can be acquired according to the second target stroke ratio information. The first target stroke ratio information is target stroke ratio information acting on the first motion object, and can be used for the target device to control the first motion object to move to a first target position corresponding to the first target stroke ratio information. Correspondingly, the second target stroke ratio information is target stroke ratio information acting on the second motion object, and can be used for the target device to control the second motion object to move to a second target position corresponding to the second target stroke ratio information. The first target position corresponds to the first virtual target position, and the second target position corresponds to the second virtual target position. Therefore, the user terminal can display, in the motion demonstration area, a motion dynamic picture of the first virtual object moving to the first virtual target position within the first motion time according to the first motion time, and the user terminal can display, in the motion demonstration area, a motion dynamic picture of the second virtual object moving to the second virtual target position within the second motion time according to the second motion time.
[0063] As an example, as Figure 3For the above-mentioned manner of simultaneously controlling the first moving object and the second moving object, the target device can be a smart curtain. Assuming that the current position of the left curtain corresponds to a stroke ratio of 50% and the time required for the left curtain to complete a full stroke is 10 seconds, and the current position of the right curtain corresponds to a stroke ratio of 0% and the time required for the right curtain to complete a full stroke is 10 seconds, the first target stroke ratio information of the left curtain can indicate that the target stroke ratio is 20%, and the second target stroke ratio information of the right curtain can indicate that the target stroke ratio is 100%. After the user terminal sends the first target stroke ratio information and the second target stroke ratio information to the smart curtain, the smart curtain can control the left curtain to move to the first target position corresponding to 20%, and can control the right curtain to move to the second target position corresponding to 100%. After the user terminal sends the first target stroke ratio information and the second target stroke ratio information to the smart curtain, the first movement time required for the left curtain to move to the first virtual target position corresponding to the first target position can be obtained according to the first target stroke ratio information and the second target stroke ratio information, and the stroke ratio corresponding to the current position of the left curtain and the right curtain and the time required for the left curtain and the right curtain to complete a full stroke, and the second movement time required for the right curtain to move to the second virtual target position corresponding to the second target position is 10 seconds. Therefore, the user terminal can display, in the motion demonstration area, a motion dynamic picture in which the first virtual object moves to the first virtual target position within the first movement time of 3 seconds, and a motion dynamic picture in which the second virtual object moves to the second virtual target position within the second movement time of 10 seconds. For example, the first virtual object of the left curtain runs for 3 seconds and finally stops at the first virtual target position corresponding to 20%, and the second virtual object of the right curtain runs for 10 seconds and finally stops at the second virtual target position corresponding to 100%.
[0064] The scheme of the embodiment can accurately and intuitively understand the current positions of the respective moving objects of the target device based on the target stroke ratio information of the first moving object and the second moving object, and the motion dynamic picture demonstrated in the motion demonstration area can synchronously reflect the current motion of each moving object of the target device, thereby improving the control convenience of the smart device.
[0065] In an exemplary embodiment, the control component includes a control element; the control element is used to trigger control of the moving object; after step S201 of demonstrating the control page of the target device, the following steps can be further included:
[0066] In response to a selection operation on the control element, a stroke control instruction corresponding to the control stroke ratio information is sent to the target device according to the control stroke ratio information corresponding to the control element. The stroke control instruction is used to instruct the target device to control the moving object to move to the corresponding stroke position.
[0067] In this embodiment, with reference to Figure 3 The control component displayed in the control page can also include a control element, which can be used by the user to trigger control of the moving object and can be used to control the moving object to move to a corresponding travel position. The travel position refers to a position of the moving object on its travel range, which can be corresponded by a travel ratio. The user can set the travel position corresponding to the control element, which can be set by setting the travel ratio corresponding to the control element. The travel ratio corresponding to the control element (such as 100%, 0%, etc.) can be recorded as a control travel ratio. When the user triggers the control element, the user terminal can obtain the corresponding control travel ratio information, which can indicate the travel ratio corresponding to the control element. Thus, the user terminal can send a travel control instruction corresponding to the control travel ratio information to the target device in response to the selection operation on the control element according to the control travel ratio information corresponding to the control element. The target device can control the moving object to move to the corresponding travel position according to the travel ratio indicated by the control travel ratio information.
[0068] The scheme of this embodiment can facilitate the user to achieve one-key control of the moving object through the control element displayed in the control page. The moving object can be controlled to reach the corresponding travel position by triggering the control element, thereby improving the control convenience of the smart device.
[0069] In an exemplary embodiment, the number of moving objects includes one; the control element includes a first control element and a second control element; the control travel ratio information includes first control travel ratio information and second control travel ratio information; and the above-mentioned step of sending a travel control instruction corresponding to the control travel ratio information to the target device in response to the selection operation on the control element according to the control travel ratio information corresponding to the control element can include the following steps:
[0070] In response to the selection operation on the first control element, a first travel control instruction corresponding to the first control travel ratio information is sent to the target device according to the first control travel ratio information corresponding to the first control element. The first travel control instruction is used to instruct the target device to control the moving object to move to a first travel position corresponding to the first control travel ratio information in a first direction. In response to the selection operation on the second control element, a second travel control instruction corresponding to the second control travel ratio information is sent to the target device according to the second control travel ratio information corresponding to the second control element. The second travel control instruction is used to instruct the target device to control the moving object to move to a second travel position corresponding to the second control travel ratio information in a second direction. The first direction is opposite to the second direction.
[0071] In this embodiment, the number of moving objects of the target device can include one, such as a single-curtain smart curtain. For example Figure 3As shown, the controls in the control component displayed in the control page can include a first control and a second control, which can be used to control the motion object to move to different travel positions. For example, the first control can be set to control the motion object to move to a first travel position corresponding to a first control travel ratio, which can be set to, for example, 100%, and the second control can be set to control the motion object to move to a second travel position corresponding to a second control travel ratio, which can be set to, for example, 0%. Thus, the user can trigger a selection operation on the first control, and the user terminal sends a first travel control instruction corresponding to the first control travel ratio information to the target device in response to the selection operation on the first control according to the first control travel ratio information corresponding to the first control. The first control travel ratio information can be used to indicate the first control travel ratio described above. Then the target device can control the motion object to move to the first travel position corresponding to the first control travel ratio information in a first direction. The first direction can be the direction in which the motion object is opened, such as the direction in which a single curtain of a smart curtain is opened. For example, when the first control travel ratio is set to 100%, the target device can control the motion object to move to the first travel position in which the motion object is fully opened in the first direction. Correspondingly, the user can trigger a selection operation on the second control, and the user terminal sends a second travel control instruction corresponding to the second control travel ratio information to the target device in response to the selection operation on the second control according to the second control travel ratio information corresponding to the second control. The second control travel ratio information can be used to indicate the second control travel ratio described above. Then the target device can control the motion object to move to the second travel position corresponding to the second control travel ratio information in a second direction. Correspondingly, the second direction can be the direction in which the motion object is closed, such as the direction in which the single curtain is closed. For example, when the second control travel ratio is set to 0%, the target device can control the motion object to move to the second travel position in which the motion object is fully closed in the second direction.
[0072] The scheme of the embodiment can facilitate the user to achieve one-key control of the motion object through the first and second controls displayed in the control page, and can control the motion object to move in different directions and reach corresponding travel positions through the first and second controls, which can be used to control the motion object to be fully opened or fully closed, thereby improving the control convenience of the smart device.
[0073] In an exemplary embodiment, the moving object includes a first moving object and a second moving object; the controller includes a first controller and a second controller; the control stroke ratio information includes first control stroke ratio information and second control stroke ratio information; the above-mentioned response to the selection operation for the controller, sending the stroke control command corresponding to the control stroke ratio information to the target device according to the control stroke ratio information corresponding to the controller, may include the following steps:
[0074] In response to a selection operation for the first control element, a third stroke control command corresponding to the first control stroke ratio information is sent to the target device according to the first control stroke ratio information corresponding to the first control element. The third stroke control command instructs the target device to control the first moving object to move in a first direction to the third stroke position corresponding to the first control stroke ratio information, and to control the second moving object to move in a second direction to the fourth stroke position corresponding to the first control stroke ratio information. The first direction and the second direction are opposite. In response to a selection operation for the second control element, a fourth stroke control command corresponding to the second control stroke ratio information is sent to the target device according to the second control stroke ratio information corresponding to the second control element. The fourth stroke control command instructs the target device to control the first moving object to move in a second direction to the fifth stroke position corresponding to the second control stroke ratio information, and to control the second moving object to move in a first direction to the sixth stroke position corresponding to the second control stroke ratio information.
[0075] In this embodiment, the moving object of the target device may include a first moving object and a second moving object, such as a smart curtain containing a left curtain and a right curtain. Figure 3 As shown, the control components displayed on the control page may include a first control component and a second control component. The first and second control components can be used to simultaneously control the first moving object and the second moving object to move to different stroke positions. For example, the first control component can be set to simultaneously control the first moving object and the second moving object to move to the third stroke position and the fourth stroke position corresponding to the first control stroke ratio, which can be set to, for example, 100%. The second control component can be set to simultaneously control the first moving object and the second moving object to move to the fifth stroke position and the sixth stroke position corresponding to the second control stroke ratio, which can be set to, for example, 0%.
[0076] Therefore, the user can trigger a selection operation on the first control element, and the user terminal sends a third stroke control instruction corresponding to the first control stroke proportion information to the target device in response to the selection operation on the first control element according to the first control stroke proportion information corresponding to the first control element. The first control stroke proportion information can be used to indicate the first control stroke proportion. Then the target device can control the first moving object to move in the first direction to a third stroke position corresponding to the first control stroke proportion information, and control the second moving object to move in the second direction to a fourth stroke position corresponding to the first control stroke proportion information. The first and second directions are opposite. The first direction can be the direction in which the first moving object is opened, and the second direction can be the direction in which the second moving object is closed. For example, for a smart window curtain including a left curtain and a right curtain, the first direction can be the direction in which the left curtain is opened and the right curtain is closed, and the second direction can be the direction in which the left curtain is closed and the right curtain is opened. As an example, refer to Figure 3 When the first control stroke proportion is set to 100%, the target device can control the first moving object to move in the first direction to a third stroke position corresponding to the first control stroke proportion information, and control the second moving object to move in the second direction to a fourth stroke position corresponding to the first control stroke proportion information.
[0077] Correspondingly, the user can trigger a selection operation on the second control element, and the user terminal sends a fourth stroke control instruction corresponding to the second control stroke proportion information to the target device in response to the selection operation on the second control element according to the second control stroke proportion information corresponding to the second control element. The second control stroke proportion information can be used to indicate the second control stroke proportion. Then the target device can control the first moving object to move in the second direction to a fifth stroke position corresponding to the second control stroke proportion information, and control the second moving object to move in the first direction to a sixth stroke position corresponding to the second control stroke proportion information. As an example, refer to Figure 3 When the second control stroke proportion is set to 0%, the target device can control the first moving object to move in the second direction to a fifth stroke position corresponding to the second control stroke proportion information, and control the second moving object to move in the first direction to a sixth stroke position corresponding to the second control stroke proportion information.
[0078] The scheme of the embodiment can facilitate the user to realize one-key simultaneous control of the first and second moving objects through the first and second control elements displayed in the control page, and can be used to control the first and second moving objects to open and close simultaneously, thereby improving the control convenience of the smart device.
[0079] In some embodiments, refer to Figure 3The control component includes a sliding member; the sliding member includes a sliding bar and a sliding block capable of sliding on the sliding bar; the sliding block includes a first sliding block and a second sliding block; the first sliding block is used for controlling the first moving object, and the second sliding block is used for controlling the second moving object.
[0080] Therefore, after the target device receives the third stroke control instruction corresponding to the first control stroke ratio information corresponding to the first control component, the user terminal displays the first sliding block at a first sliding bar position on the sliding bar corresponding to the first control stroke ratio information, and displays the second sliding block at a second sliding bar position on the sliding bar corresponding to the first control stroke ratio information. After the target device receives the fourth stroke control instruction corresponding to the second control stroke ratio information corresponding to the second control component, the user terminal displays the first sliding block at a third sliding bar position on the sliding bar corresponding to the second control stroke ratio information, and displays the second sliding block at a fourth sliding bar position on the sliding bar corresponding to the second control stroke ratio information.
[0081] In the embodiment, after the first control component is operated, the positions of the first sliding block and the second sliding block on the sliding bar are switched correspondingly, and after the second control component is operated, the positions of the first sliding block and the second sliding block on the sliding bar are switched correspondingly, so as to ensure the accuracy of the control of the first moving object and the second moving object on the target device. The position of the sliding block on the sliding bar is recorded as a sliding bar position.
[0082] In the embodiment, after the target device receives the third stroke control instruction corresponding to the first control stroke ratio information corresponding to the first control component, the user terminal displays the first sliding block at a first sliding bar position on the sliding bar corresponding to the first control stroke ratio information, and displays the second sliding block at a second sliding bar position on the sliding bar corresponding to the first control stroke ratio information. As an example, when the first control stroke ratio is set to 100%, the target device can control the first moving object to move to the fully open third stroke position in the first direction, the user terminal can display the first sliding block at the first sliding bar position on the sliding bar corresponding to the first control stroke ratio 100%, and the first sliding bar position also corresponds to the fully open third stroke position of the first moving object. In addition, the target device can control the second moving object to move to the fully open fourth stroke position in the second direction, the user terminal can display the second sliding block at the second sliding bar position on the sliding bar corresponding to the first control stroke ratio 100%, and the second sliding bar position also corresponds to the fully open fourth stroke position of the second moving object.
[0083] Accordingly, after sending the fourth stroke control instruction corresponding to the second control stroke ratio information to the target device according to the second control stroke ratio information corresponding to the second control, the user terminal also displays the first slider on the slide bar at a slide bar position corresponding to the second control stroke ratio information, and the slide bar position is recorded as a third slide bar position, and displays the second slider on the slide bar at a slide bar position corresponding to the second control stroke ratio information, and the slide bar position is recorded as a fourth slide bar position. As an example, in the case of setting the second control stroke ratio to 0%, the target device can control the first moving object to move to the fifth stroke position of full off in the second direction, and the user terminal can display the first slider on the slide bar at the third slide bar position corresponding to the second control stroke ratio 0%, and the third slide bar position also corresponds to the fifth stroke position of full off of the first moving object. And the target device can control the second moving object to move to the sixth stroke position of full off in the first direction, and the user terminal can display the second slider on the slide bar at the fourth slide bar position corresponding to the second control stroke ratio 0%, and the fourth slide bar position also corresponds to the sixth stroke position of full off of the second moving object.
[0084] In an exemplary embodiment, the control component includes a control; the control includes a stop for the moving object; after displaying the control page for the target device, further comprising: in response to a selection operation for the stop, sending a braking instruction for the moving object to the target device; the braking instruction is used to instruct the target device to control the moving object to stop moving.
[0085] In this embodiment, with reference to Figure 3 , the control component displayed in the control page can also include a control, which can be used by the user to trigger control of the moving object, and the control can include a stop for the moving object, which can be used to stop the moving object from moving. Thus, the user can trigger a selection operation on the stop, and the user terminal can send a braking instruction for the moving object to the target device in response to the selection operation on the stop, and then the target device can control the moving object to stop moving according to the braking instruction. In some embodiments, the number of moving objects can be one or more, and in the case where the moving objects include first and second moving objects, the stop can be used to stop the first and second moving objects from moving simultaneously.
[0086] The scheme of this embodiment can facilitate the user to brake the moving object through the stop displayed in the control page, and can control the target device to stop each moving object by triggering the stop, so that the user can stop the misoperation on the moving object in time, and improve the control convenience of the smart device.
[0087] In an exemplary embodiment, after displaying the control page for the target device in step S201, the following steps can also be included:
[0088] In response to the control operation on the motion object triggered by the control component, the target stroke ratio corresponding to the target stroke ratio information is displayed on the control page according to the target stroke ratio information corresponding to the control operation.
[0089] In this embodiment, as shown in Figure 3 In response to the control operation on the motion object triggered by the control component, the target stroke ratio corresponding to the target stroke ratio information is displayed on the control page according to the target stroke ratio information corresponding to the control operation. The motion demonstration area of the motion object can be displayed on the control page of the user terminal, and the target stroke ratio corresponding to the target stroke ratio information can be displayed in the motion demonstration area of the control page. For example, the smart window curtain including left and right curtains can display the target stroke ratio 20% of the left curtain and the target stroke ratio 0% of the right curtain.
[0090] The scheme of this embodiment can display the target stroke ratio on the control page, so as to facilitate the user to intuitively understand the target stroke ratio of the motion control of the motion object and improve the control convenience of the smart device.
[0091] In one exemplary embodiment, the control page includes a scene selection area for the motion object. After the control page for the target device is displayed in step S201, the following steps are further included:
[0092] In response to the selection operation on the target scene in the scene selection area, the stroke ratio setting information corresponding to the target scene is obtained; and the scene control instruction corresponding to the stroke ratio setting information is sent to the target device according to the stroke ratio setting information; the scene control instruction is used to instruct the target device to control the motion object to move to the scene position corresponding to the stroke ratio setting information.
[0093] In this embodiment, refer to Figure 4, the control page can display a scene selection area for the moving object, and one or more scenes (e.g., scenes 1-4) can be provided in the scene selection area for the user to select, each scene can be used to trigger control of the moving object by the user, and can be used to control the moving object to move to a corresponding scene position. The scene position can be a position of the moving object on the travel range, and the scene position can be corresponding to the travel ratio. The user can set the scene position corresponding to each scene, and the corresponding scene position can be set by setting the travel ratio (e.g., 20%, 50%, etc.) corresponding to each scene. When the user triggers a scene in the scene selection area, the scene is recorded as a target scene, and the user terminal can obtain travel ratio setting information corresponding to the target scene, which can indicate the travel ratio corresponding to the target scene. Thus, the user terminal can send a scene control instruction corresponding to the travel ratio setting information to the target device in response to the selection operation of the target scene, and the target device can control the moving object to move to the corresponding scene position according to the travel ratio indicated by the travel ratio setting information in the scene control instruction.
[0094] The scheme of the embodiment can facilitate the user to achieve the control requirement of the moving object in different scenes through the scene selection area displayed in the control page, and can improve the control convenience of the intelligent device by triggering the corresponding scene control target device to move the moving object to the corresponding scene position.
[0095] In an exemplary embodiment, the device control method of the present application is described by taking a smart curtain as an example. The smart curtain can be a smart curtain including a left curtain and a right curtain.
[0096] As shown in Figure 3 , for a smart curtain including a left curtain and a right curtain, after setting the travel of the left curtain and the right curtain respectively, the smart curtain can have a complete travel range of the left curtain and the right curtain. At this time, the user terminal can display a control component on the control page of the smart curtain, and the control component can include a sliding piece, a control piece, etc., which can support control of the left curtain and the right curtain to move individually through the sliding piece. At the same time, the user can also realize synchronous motion control of the left curtain and the right curtain through the first and second control pieces and the stop piece of the control piece.
[0097] For the individual control of the left curtain and the right curtain, as shown in Figure 5As shown, the user can hold and drag the first slider left / right to slide to achieve the position of the left curtain opening / closing to the corresponding target stroke ratio, and the corresponding target stroke ratio such as "left 20%" can be displayed on the motion demonstration area of the control page. The target stroke ratio can change with the dragging effect of the first slider by the user. After the user leaves the dragging of the first slider, the left curtain of the smart curtain can start to move, for example, to the target position corresponding to 20%. Similarly, the second slider can be dragged alone, and the right curtain and the corresponding target stroke ratio have the same processing logic as the left curtain. Wherein, 0% can represent full closing, and 100% can represent full opening. Wherein, when the left and right curtains are both moved to the full closing position, the first and second sliders in the sliding member can stop at the middle position of the sliding bar, and the first and second sliders do not intersect on the sliding bar, improving the stability of the control.
[0098] For simultaneous control of the left curtain and the right curtain, as shown in Figure 6 and Figure 6 The user can control the left curtain and the right curtain by clicking the first and second control members or the stop member in the control member. The first control member can be clicked to make the left curtain and the right curtain fully open, and the first and second sliders can be immediately switched to the end positions of the sliding bar. At the same time, the target stroke ratio of the left curtain "left 100%" and the target stroke ratio of the right curtain "right 100%" are displayed, and the left curtain and the right curtain are respectively moved in the full opening direction. Correspondingly, the second control member can be clicked to make the left curtain and the right curtain fully closed, and the first and second sliders can be immediately switched to the middle position of the sliding bar. At the same time, the target stroke ratio of the left curtain "left 0%" and the target stroke ratio of the right curtain "right 0%" are displayed, and the left curtain and the right curtain are respectively moved in the full closing direction. In addition, the user can click the stop member at any time, and the left curtain and the right curtain will stop moving simultaneously.
[0099] For the movement of the left curtain and the right curtain and the processing of the related stroke ratio:
[0100] In the case of separate control of the left curtain and the right curtain, taking the left curtain as an example: if the current stroke ratio of the left curtain is 50%, that is, the first slider stays at the middle position on the left side of the slide bar, and the time required for the left curtain to complete the full stroke is 10 seconds. At this time, the user controls the left curtain to move to the target stroke ratio of 20% by sliding the first slider. The user terminal can send the control instruction of the left curtain to the cloud at the time when the user controls the first slider to stop at the target stroke ratio of 20%. After the cloud receives the control instruction, it is issued to the gateway, and the gateway is further issued to the smart curtain. The smart curtain can control the motor of the left curtain to close the left curtain until the left curtain stops at the target position of the target stroke ratio of 20% through the motor. After the user terminal sends the control instruction of the left curtain to the cloud, it can start calculating simultaneously. For example, the complete stroke from 0% to 100% takes 10 seconds, the stroke ratio that the left curtain needs to move is 50%-20%=30%, that is, it needs to move for 3 seconds. The user terminal can display the movement dynamic picture of the first virtual object corresponding to the left curtain in the movement demonstration area of the control page. The animation of the first virtual object will run for 3 seconds and finally stop at the target position of the 20% simulation effect.
[0101] In the case of simultaneous control of the left curtain and the right curtain, the stroke ranges of the left curtain and the right curtain are not equal, and the left curtain and the right curtain have different opening ratios. The current stroke ratio of the left curtain is 50%, that is, the first slider stays at the middle position on the left side of the slide bar, and the time required for the left curtain to complete the full stroke is 10 seconds. The current stroke ratio of the right curtain is 20%, and the time required for the right curtain to complete the full stroke is 8 seconds.
[0102] At this time, the left curtain and the right curtain can be controlled simultaneously through the control member. The first control member can be used to control the left curtain and the right curtain to move to the fully open position respectively. The user terminal can issue the target stroke ratio information of 100% of the left curtain and the right curtain to the cloud respectively. The cloud and the gateway further issue instructions to the smart curtain respectively. The smart curtain can control the two motors to move the left curtain and the right curtain in the direction of full opening respectively until the left curtain and the right curtain are completely opened. After the user terminal sends the control instruction to the cloud, it starts calculating simultaneously. For example, the complete stroke from 0% to 100%, the left curtain takes 10 seconds to complete the stroke, and the stroke ratio that the left curtain needs to move is 100%-50%=50%, that is, it needs to move for 5 seconds. The user terminal can display the movement dynamic picture of the first virtual object corresponding to the left curtain in the movement demonstration area of the control page. The animation of the first virtual object will run for 5 seconds and finally stop at the target position of the 100% simulation effect. For the right curtain, for example, the complete stroke from 0% to 100%, the right curtain takes 8 seconds to complete the stroke, and the stroke ratio that the right curtain needs to move is 100%-20%=80%, that is, it needs to move for 6.4 seconds. Accordingly, the animation of the second virtual object will run for 6.4 seconds and finally stop at the target position of the 100% simulation effect.
[0103] In the case of simultaneous control of the left and right curtains, if the time required for the left and right curtains to complete the entire stroke is 8 seconds, the current stroke ratio of the left curtain is 20%, and the current stroke ratio of the right curtain is 40%. The user can trigger the first control member to control the left and right curtains to move to the fully open position, at which time the first and second sliders will immediately jump to the position of 100% and start playing the movement dynamic picture of the first and second virtual objects. Among them, the left curtain needs 6.4 seconds to move from the current stroke ratio of 20% to the target stroke ratio of 100%, and the right curtain needs 4.8 seconds to move from the current stroke ratio of 40% to the target stroke ratio of 100%.
[0104] For the case of simultaneous stop of the left and right curtains in the middle of movement, for example, when the left and right curtains locally move to the second second, at which time the left curtain moves to the position of 20%+2 / 10*100% = 40% target stroke ratio, and then a simultaneous stop instruction is issued by triggering the stop member. After receiving the instruction, the intelligent curtain immediately stops the movement of the left and right curtains, at which time the intelligent curtain can report the current stroke ratio of the left and right curtains. After issuing the instruction, the user terminal stops playing the movement dynamic picture of the first and second virtual objects, can query the current stroke ratio of the left and right curtains from the cloud, and then can adjust the first and second sliders to the position corresponding to the stroke ratio.
[0105] The scheme of the embodiment can realize the effects of single-curtain control and double-curtain control, meet the diversified curtain control needs of users, and improve the convenience and stability of intelligent curtain control.
[0106] It should be understood that although each step in the flowchart involved in each of the above-described embodiments is displayed in sequence according to the direction of the arrow, these steps are not necessarily executed in sequence according to the direction of the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other sequences. Moreover, at least part of the steps in the flowchart involved in each of the above-described embodiments can include multiple steps or stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be executed in rotation or alternation with at least part of other steps or steps or stages in other steps.
[0107] In an exemplary embodiment, a device control system is provided, as shown in Figure 7 The system can include a master control unit, a drive motor, and a Hall sensor corresponding to the drive motor. Wherein:
[0108] The master control unit is configured to receive a control instruction from a control terminal of the target device, the target device comprising a moving object, the control terminal being configured to trigger the control instruction for the target device, the control instruction comprising target stroke ratio information, and the control instruction being configured to control the moving object to move to a target position corresponding to the target stroke ratio information.
[0109] The master control unit is further configured to control the driving motor to operate according to the target stroke ratio information and the Hall sensor, so that the driving motor drives the moving object to move to the target position.
[0110] In the device control system of the embodiment, the master control unit can be used to control the driving motor and the Hall sensor, the driving motor can be used to drive the curtain fabric (moving object) to move, and the Hall sensor can be used to calculate the running distance and direction of the curtain fabric (moving object). The Hall sensor outputs a Hall signal during the rotation of the motor, and the master control unit can calculate the running distance of the motor, that is, the stroke of the curtain fabric, according to the Hall signal. In the embodiment, the user terminal (which can correspond to the control terminal) can provide a control page for interaction with the user. According to the control of the curtain fabric triggered by the user on the control page, the user terminal can send a control instruction to the cloud, and the cloud sends the control instruction to the gateway, and the gateway sends the control instruction to the target device. The target device can have the device control system described above. The master control unit receives a control instruction from a control terminal of the target device, and controls the driving motor to operate according to the target stroke ratio information contained in the control instruction and the Hall signal of the Hall sensor, so that the driving motor drives the moving object to move to the target position.
[0111] The scheme of the embodiment can realize accurate control of the position of the moving object of the target device in the target device through the device control system, and improve the control convenience of the device.
[0112] In one exemplary embodiment, as shown in Figure 8 and Figure 9 The driving motor comprises a first driving motor and a second driving motor, the Hall sensor comprises a first Hall sensor and a second Hall sensor, the first Hall sensor corresponds to the first driving motor, the second Hall sensor corresponds to the second driving motor, the moving object comprises a first moving object and a second moving object, the target stroke ratio information comprises first ratio information and second ratio information, and the first ratio information and the second ratio information are the same or different.
[0113] The master control unit is further configured to control the first driving motor to operate according to the first ratio information and the first Hall sensor, so that the first driving motor drives the first moving object to move to a first target position corresponding to the first ratio information.
[0114] The master control unit is further configured to control the second driving motor to operate according to the second proportion information and the second Hall sensor, so that the second driving motor drives the second moving object to move to a second target position corresponding to the second proportion information.
[0115] In the embodiment, the master control chip can be loaded to control the first driving motor and the second driving motor, the first Hall sensor and the second Hall sensor for the driving motor that can control the left curtain and the right curtain separately and simultaneously. The number of the first Hall sensor can be two, and the number of the second Hall sensor can be two. The first driving motor and the second driving motor control the movement of the left curtain and the right curtain respectively, and the two first Hall sensors can be used to calculate the movement distance and direction of the left curtain, and the two second Hall sensors can be used to calculate the movement distance and direction of the right curtain. As an example, assuming that the distance corresponding to one Hall signal is 1 centimeter, and the first Hall sensor of the left curtain calculates that the total number of Hall signals from the starting point to the ending point of the left curtain is 200 during the travel setting process, then the travel of the left curtain is 200*1 centimeter = 2 centimeters.
[0116] In the embodiment, the user can trigger the control of the left curtain and / or the right curtain on the user terminal, triggering the control of the left curtain can issue the first proportion information to the master control chip, and triggering the control of the right curtain can issue the second proportion information to the master control chip. The first and second proportion information can be the same or different, the first proportion information can indicate the first target position of the left curtain, and the second proportion information can indicate the second target position of the right curtain. Therefore, the master control unit can control the first driving motor to operate according to the first proportion information and the Hall signal output by the first Hall sensor, so that the first driving motor drives the first moving object to move to the first target position corresponding to the first proportion information. The master control unit can also control the second driving motor to operate according to the second proportion information and the Hall signal output by the second Hall sensor, so that the second driving motor drives the second moving object to move to the second target position corresponding to the second proportion information.
[0117] In the embodiment, the target device can correspond the distance from the starting point (full-closed position) to the ending point (full-open position) to 0% to 100%, so that each time the user terminal issues a control instruction containing target travel proportion information in subsequent movement, the master control unit can know the specific position to which the left curtain and the right curtain need to move. As an example, the travel range of the left curtain is 2 meters, that is, the distance from 0 to 200 centimeters is counted as 100%, 0% is the fully closed state of the left curtain, and 100% is the fully open state of the left curtain. If the left curtain stops at the 50% position and receives the target travel proportion of 80% issued by the gateway, the travel proportion to be moved is 30%, and the travel length corresponding to the travel proportion is 30%*200 centimeters = 60 centimeters.
[0118] After the stroke is set, the stroke (distance) is fixed, and because the speed of the driving motor is known each time the driving motor moves, the speed can be preset when the driving motor is shipped, and the user can switch the speed gear. In daily operation at the same time, the speed of the first driving motor and the second driving motor can be fixed and equal, and the optional speed gears can include low speed (such as 8 cm / s), medium speed (such as 12 cm / s), and high speed (such as 16 cm / s).
[0119] Therefore, the time required for the left curtain and the right curtain to move a complete stroke can be calculated according to the stroke length, and the user terminal can calculate the time required for the animation of the first virtual object and the second virtual object of the user terminal according to the corresponding movement time.
[0120] The user terminal can calculate the time required for the first virtual object and the second virtual object to move a complete stroke in the motion demonstration area of the control page according to the stroke range of the left curtain and the right curtain, and play the animation of the movement of the first virtual object and the second virtual object according to the time, so as to keep the opening and closing effect of the first virtual object and the second virtual object on the user terminal consistent with the actual opening and closing time of the left and right curtains. As an example, after the stroke of the driving motor of the left and right curtains is set, because the current speed (gear setting, which can be the default medium gear) is known, the time required for the left and right curtains to move a complete stroke can be calculated, and the corresponding time required for each stroke can be calculated, such as a left curtain stroke of 1 meter and a current speed of 12 cm / s. The movement time of the left curtain is 100 / 12=8.3 seconds.
[0121] The scheme of the embodiment can accurately control the positions of the first motion object and the second motion object in the target device through the device control system, and can control the first motion object and the second motion object respectively or simultaneously, thereby improving the convenience of controlling the device.
[0122] Based on the same inventive concept, the embodiment of the present application also provides a device control apparatus for implementing the device control method described above. The implementation scheme for solving the problem provided by the apparatus is similar to the implementation scheme described in the above method, and therefore the specific limitations in one or more device control apparatus embodiments provided below can refer to the limitations of the device control method described above, which will not be described here again.
[0123] In one exemplary embodiment, as shown in Figure 10 a device control apparatus is provided, which apparatus 900 can include:
[0124] a display module 901 configured to display a control page for a target device; the target device including a motion object; the control page including a control component for the motion object;
[0125] The acquisition module 902 is configured to acquire target stroke ratio information corresponding to a control operation of the motion object in response to the control operation triggered by the control component.
[0126] The sending module 903 is configured to send a control instruction corresponding to the target stroke ratio information to the target device according to the target stroke ratio information, where the control instruction is used to instruct the target device to control the motion object to move to a target position corresponding to the target stroke ratio information.
[0127] In an example embodiment, the control page comprises a speed control component for the motion object; the sending module 903 is further configured to acquire speed gear information corresponding to a target speed gear piece of the speed control component in response to a selection operation of the target speed gear piece; and send a speed adjustment instruction corresponding to the speed gear information to the target device according to the speed gear information, where the speed adjustment instruction is used to instruct the target device to control the motion object to move to the target position at a target speed corresponding to the speed gear information.
[0128] In an example embodiment, the control page comprises a motion demonstration area for the motion object; the motion demonstration area is used to display a motion dynamic picture of the motion object; the display module 901 is further configured to acquire a motion time of the motion object according to the target stroke ratio information; and display the motion dynamic picture of a virtual object corresponding to the motion object moving to a virtual target position corresponding to the target position within the motion time in the motion demonstration area according to the motion time; the virtual object is a demonstration object corresponding to the motion object in the motion demonstration area; and the virtual target position is a position corresponding to the target position in the motion demonstration area.
[0129] In an example embodiment, the motion object includes a first motion object and a second motion object; the motion demonstration area includes a first virtual object corresponding to the first motion object and a second virtual object corresponding to the second motion object; the virtual target position includes a first virtual target position and a second virtual target position; the target travel proportion information includes first target travel proportion information and second target travel proportion information; the display module 901 is further configured to acquire a first motion time of the first motion object according to the first target travel proportion information, and acquire a second motion time of the second motion object according to the second target travel proportion information; display the motion dynamic picture of the first virtual object moving to the first virtual target position within the first motion time in the motion demonstration area according to the first motion time, and display the motion dynamic picture of the second virtual object moving to the second virtual target position within the second motion time in the motion demonstration area according to the second motion time.
[0130] In an example embodiment, the motion object includes a first motion object and a second motion object; the control component includes a slider; the slider includes a slide bar and a slide block capable of sliding on the slide bar; the slide block includes a first slide block and a second slide block; the first slide block is configured to control the first motion object, and the second slide block is configured to control the second motion object.
[0131] In an example embodiment, the control component includes a control; the control is configured to trigger control of the motion object; the sending module 903 is further configured to, in response to a selection operation on the control, send a travel control instruction corresponding to control travel proportion information of the control to the target device according to the control travel proportion information; the travel control instruction is configured to instruct the target device to control the motion object to move to a corresponding travel position.
[0132] In an example embodiment, the number of the moving objects comprises one; the control member comprises a first control member and a second control member; the control stroke proportion information comprises first control stroke proportion information and second control stroke proportion information; the sending module 903 is further configured to, in response to a selection operation on the first control member, send a first stroke control instruction corresponding to the first control stroke proportion information to the target device according to the first control stroke proportion information corresponding to the first control member; the first stroke control instruction is used to instruct the target device to control the moving object to move to a first stroke position corresponding to the first control stroke proportion information in a first direction; in response to a selection operation on the second control member, send a second stroke control instruction corresponding to the second control stroke proportion information to the target device according to the second control stroke proportion information corresponding to the second control member; the second stroke control instruction is used to instruct the target device to control the moving object to move to a second stroke position corresponding to the second control stroke proportion information in a second direction; the first direction is opposite to the second direction.
[0133] In an example embodiment, the moving object comprises a first moving object and a second moving object; the control member comprises a first control member and a second control member; the control stroke proportion information comprises first control stroke proportion information and second control stroke proportion information; the sending module 903 is further configured to, in response to a selection operation on the first control member, send a third stroke control instruction corresponding to the first control stroke proportion information to the target device according to the first control stroke proportion information corresponding to the first control member; the third stroke control instruction is used to instruct the target device to control the first moving object to move to a third stroke position corresponding to the first control stroke proportion information in a first direction, and control the second moving object to move to a fourth stroke position corresponding to the first control stroke proportion information in a second direction; the first direction is opposite to the second direction; in response to a selection operation on the second control member, send a fourth stroke control instruction corresponding to the second control stroke proportion information to the target device according to the second control stroke proportion information corresponding to the second control member; the fourth stroke control instruction is used to instruct the target device to control the first moving object to move to a fifth stroke position corresponding to the second control stroke proportion information in a second direction, and control the second moving object to move to a sixth stroke position corresponding to the second control stroke proportion information in a first direction.
[0134] In an example embodiment, the control component includes a slider; the slider includes a slide bar and a slider block capable of sliding on the slide bar; the slider block includes a first slider block and a second slider block; the first slider block is configured to control the first moving object, and the second slider block is configured to control the second moving object; the display module 901 is further configured to display the first slider block at a first slide bar position on the slide bar corresponding to the first control stroke ratio information, and display the second slider block at a second slide bar position on the slide bar corresponding to the first control stroke ratio information; the display module 901 is further configured to display the first slider block at a third slide bar position on the slide bar corresponding to the second control stroke ratio information, and display the second slider block at a fourth slide bar position on the slide bar corresponding to the second control stroke ratio information.
[0135] In an example embodiment, the control component includes a control; the control includes a stopper for the moving object; the sending module 903 is further configured to send a braking instruction for the moving object to the target device in response to a selection operation on the stopper; the braking instruction is configured to instruct the target device to control the moving object to stop moving.
[0136] In an example embodiment, the display module 901 is configured to display a target stroke ratio corresponding to target stroke ratio information according to the control operation in response to a control operation on the moving object triggered by the control component.
[0137] In an example embodiment, the control page includes a scene selection area for the moving object; the sending module 903 is further configured to obtain stroke ratio setting information corresponding to a target scene in response to a selection operation on the target scene in the scene selection area; and send a scene control instruction corresponding to the stroke ratio setting information to the target device according to the stroke ratio setting information; the scene control instruction is configured to instruct the target device to control the moving object to move to a scene position corresponding to the stroke ratio setting information.
[0138] Each of the above device control apparatuses can be implemented in whole or in part by software, hardware, and combinations thereof. Each of the above modules can be embedded in or independent of a processor in the electronic device in hardware form, or stored in a memory in the electronic device in software form, so as to be called and executed by the processor to perform the operations corresponding to each of the above modules.
[0139] In an example embodiment, an electronic device is provided, which can be a terminal or a smart home device, and an internal structure diagram of the electronic device can be as shown in Figure 10The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected through a system bus. The communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. The processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is configured to exchange information between the processor and external devices. The communication interface of the electronic device is configured to perform wired or wireless communication with external terminals. The wireless communication can be achieved through WIFI, mobile cellular network, near field communication (NFC), or other technologies. The computer program is executed by the processor to implement a device control method. The display unit of the electronic device is configured to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the electronic device can be a touch layer overlaid on the display screen, or a key, trackball, or touchpad arranged on the shell of the electronic device, or an external keyboard, touchpad, or mouse, etc.
[0140] Those skilled in the art can understand that The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0141] In one embodiment, an electronic device is also provided, including a memory and a processor. The memory stores a computer program. The processor executes the computer program to implement the steps in the above method embodiments.
[0142] In one embodiment, a computer readable storage medium is provided, which stores a computer program. The computer program is executed by a processor to implement the steps in the above method embodiments.
[0143] In one embodiment, a computer program product is provided, which includes a computer program. The computer program is executed by a processor to implement the steps in the above method embodiments.
[0144] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant regulations.
[0145] It can be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments of each method. In the embodiments provided in the present application, any reference to memory, database or other medium can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (Resistive Random Access Memory, ReRAM), magnetoresistive random access memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (Artificial Intelligence, AI) processor, etc., without being limited thereto.
[0146] Any combination of the technical features in the above embodiments can be made, and for the sake of brevity, not all possible combinations are described, however, any combination of the technical features is deemed to be within the scope of the present application as long as the combination is not contradictory.
[0147] The above embodiments only express several implementation manners of the present application, and the description is relatively specific and detailed, but it should not be understood as a limitation on the patent scope of the present application. It should be pointed out that, for ordinary skilled persons in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A device control method characterized by, The method comprises: displaying a control page for a target device; the target device comprises a moving object; the control page comprises a control component for the moving object; in response to a control operation for the moving object triggered through the control component, obtaining target stroke ratio information corresponding to the control operation; according to the target stroke ratio information, sending a control instruction corresponding to the target stroke ratio information to the target device; the control instruction is used to instruct the target device to control the moving object to move to a target position corresponding to the target stroke ratio information.
2. The method of claim 1, wherein, The control page comprises a speed control component for the moving object; before the control page sends the control instruction corresponding to the target stroke ratio information to the target device, the control page further comprises: in response to a selection operation on a target speed gear included in the speed control component, obtaining speed gear information corresponding to the target speed gear; according to the speed gear information, sending a speed adjustment instruction corresponding to the speed gear information to the target device; the speed adjustment instruction is used to instruct the target device to control the moving object to move to the target position at a target speed corresponding to the speed gear information.
3. The method of claim 1, wherein, The control page comprises a motion demonstration area for the moving object; the motion demonstration area is used to display a motion dynamic picture of the moving object; after the control page sends the control instruction corresponding to the target stroke ratio information to the target device, the control page further comprises: according to the target stroke ratio information, obtaining a motion time of the moving object; according to the motion time, displaying, in the motion demonstration area, the motion dynamic picture of a virtual object corresponding to the moving object moving to a virtual target position corresponding to the target position within the motion time; the virtual object is a demonstration object corresponding to the moving object in the motion demonstration area; the virtual target position is a position corresponding to the target position in the motion demonstration area.
4. The method of claim 3, wherein, The moving object comprises a first moving object and a second moving object; the motion demonstration area comprises a first virtual object corresponding to the first moving object and a second virtual object corresponding to the second moving object; the virtual target position comprises a first virtual target position and a second virtual target position; The target stroke ratio information comprises first target stroke ratio information and second target stroke ratio information; According to the target stroke ratio information, obtaining a motion time of the moving object, comprises: obtaining a first motion time of the first moving object according to the first target stroke ratio information, and obtaining a second motion time of the second moving object according to the second target stroke ratio information; According to the motion time, displaying, in the motion demonstration area, the motion dynamic picture of the virtual object corresponding to the moving object moving to the virtual target position corresponding to the target position within the motion time, comprises: According to the first motion time, a motion dynamic picture of the first virtual object moving to the first virtual target position within the first motion time is displayed in the motion demonstration area, and according to the second motion time, a motion dynamic picture of the second virtual object moving to the second virtual target position within the second motion time is displayed in the motion demonstration area.
5. The method of claim 1, wherein, The motion objects include a first motion object and a second motion object; the control component includes a slider; the slider includes a slide bar and a slider block capable of sliding on the slide bar; the slider block includes a first slider block and a second slider block; the first slider block is used for controlling the first motion object, and the second slider block is used for controlling the second motion object.
6. The method of claim 1, wherein, The control component includes a control element; the control element is used for triggering control of the motion object; After the control page for the target device is displayed, the following further includes: In response to a selection operation on the control element, according to control stroke proportion information corresponding to the control element, a stroke control instruction corresponding to the control stroke proportion information is sent to the target device; the stroke control instruction is used to instruct the target device to control the motion object to move to a corresponding stroke position.
7. The method of claim 6, wherein, The number of motion objects includes one; the control element includes a first control element and a second control element; the control stroke proportion information includes first control stroke proportion information and second control stroke proportion information; The response to the selection operation on the control element according to the control stroke proportion information corresponding to the control element and the sending of the stroke control instruction corresponding to the control stroke proportion information to the target device include: In response to a selection operation on the first control element, according to the first control stroke proportion information corresponding to the first control element, a first stroke control instruction corresponding to the first control stroke proportion information is sent to the target device; the first stroke control instruction is used to instruct the target device to control the motion object to move to a first stroke position corresponding to the first control stroke proportion information in a first direction; In response to a selection operation on the second control element, according to the second control stroke proportion information corresponding to the second control element, a second stroke control instruction corresponding to the second control stroke proportion information is sent to the target device; the second stroke control instruction is used to instruct the target device to control the motion object to move to a second stroke position corresponding to the second control stroke proportion information in a second direction; the first direction is opposite to the second direction.
8. The method of claim 6, wherein, The motion objects include a first motion object and a second motion object; the control element includes a first control element and a second control element; the control stroke proportion information includes first control stroke proportion information and second control stroke proportion information; The response to the selection operation on the control element according to the control stroke proportion information corresponding to the control element and the sending of the stroke control instruction corresponding to the control stroke proportion information to the target device include: in response to a selection operation on the first control element, sending a third stroke control instruction corresponding to the first control stroke proportion information of the first control element to the target device according to the first control stroke proportion information; the third stroke control instruction is used to instruct the target device to control the first moving object to move to a third stroke position corresponding to the first control stroke proportion information in a first direction, and control the second moving object to move to a fourth stroke position corresponding to the first control stroke proportion information in a second direction; the first direction and the second direction are opposite; in response to a selection operation on the second control element, sending a fourth stroke control instruction corresponding to the second control stroke proportion information of the second control element to the target device according to the second control stroke proportion information; the fourth stroke control instruction is used to instruct the target device to control the first moving object to move to a fifth stroke position corresponding to the second control stroke proportion information in a second direction, and control the second moving object to move to a sixth stroke position corresponding to the second control stroke proportion information in a first direction.
9. The method of claim 8, wherein, The control assembly includes a sliding element; the sliding element includes a slide bar and a sliding block capable of sliding on the slide bar; the sliding block includes a first sliding block and a second sliding block; the first sliding block is used to control the first moving object, and the second sliding block is used to control the second moving object; after the step of sending the third stroke control instruction corresponding to the first control stroke proportion information of the first control element to the target device according to the first control stroke proportion information of the first control element, the method further includes: exhibiting the first sliding block on the slide bar at a first slide bar position corresponding to the first control stroke proportion information, and exhibiting the second sliding block on the slide bar at a second slide bar position corresponding to the first control stroke proportion information; after the step of sending the fourth stroke control instruction corresponding to the second control stroke proportion information of the second control element to the target device according to the second control stroke proportion information of the second control element, the method further includes: exhibiting the first sliding block on the slide bar at a third slide bar position corresponding to the second control stroke proportion information, and exhibiting the second sliding block on the slide bar at a fourth slide bar position corresponding to the second control stroke proportion information.
10. The method of claim 1, wherein, The control assembly includes a control element; the control element includes a stop element for the moving object; after the step of exhibiting the control page for the target device, the method further includes: in response to a selection operation on the stop element, sending a braking instruction for the moving object to the target device; the braking instruction is used to instruct the target device to control the moving object to stop moving.
11. The method of claim 1, wherein, after the step of exhibiting the control page for the target device, the method further includes: in response to a control operation for the moving object triggered by the control assembly, exhibiting a target stroke proportion corresponding to target stroke proportion information of the control operation on the control page according to the target stroke proportion information.
12. The method according to any one of claims 1 to 11, characterized in that, The control page comprises a scene selection area for the moving object; The method further comprises: In response to a selection operation on a target scene in the scene selection area, obtaining travel proportion setting information corresponding to the target scene; According to the travel proportion setting information, sending a scene control instruction corresponding to the travel proportion setting information to the target device; the scene control instruction is used to instruct the target device to control the moving object to move to a scene position corresponding to the travel proportion setting information.
13. An apparatus control device characterized by comprising: The device comprises: A display module is configured to display a control page for a target device; the target device comprises a moving object; the control page comprises a control component for the moving object; A obtaining module is configured to, in response to a control operation on the moving object triggered through the control component, obtain target travel proportion information corresponding to the control operation; A sending module is configured to, according to the target travel proportion information, send a control instruction corresponding to the target travel proportion information to the target device; the control instruction is used to instruct the target device to control the moving object to move to a target position corresponding to the target travel proportion information.
14. An apparatus control system characterized by comprising: The system comprises: a master control unit, a drive motor, and a Hall sensor corresponding to the drive motor; wherein: The master control unit is configured to receive a control instruction from a control terminal for a target device; the target device comprises a moving object; the control terminal is used to trigger the control instruction for the target device; the control instruction contains target travel proportion information; the control instruction is used to control the moving object to move to a target position corresponding to the target travel proportion information; The master control unit is further configured to control the drive motor to operate according to the target travel proportion information and the Hall sensor, so that the drive motor drives the moving object to move to the target position.
15. The system of claim 14, wherein, The drive motor comprises a first drive motor and a second drive motor; the Hall sensor comprises a first Hall sensor and a second Hall sensor; the first Hall sensor corresponds to the first drive motor; the second Hall sensor corresponds to the second drive motor; the moving object comprises a first moving object and a second moving object; the target travel proportion information comprises first proportion information and second proportion information; the first proportion information and the second proportion information are the same or different; The master control unit is further configured to control the first drive motor to operate according to the first proportion information and the first Hall sensor, so that the first drive motor drives the first moving object to move to a first target position corresponding to the first proportion information; The master control unit is further configured to control the second drive motor to operate according to the second proportion information and the second Hall sensor, so that the second drive motor drives the second moving object to move to a second target position corresponding to the second proportion information.
16. An electronic device, comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor, when executing the computer program, implements the steps of the method of any one of claims 1-12.
17. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program, which when executed by a processor, implements the steps of the method of any one of claims 1-12.
18. A computer program product comprising a computer program, characterized in that, The computer program, which when executed by a processor, implements the steps of the method of any one of claims 1-12.
Citation Information
Patent Citations
Double motor control method for day and night honeycomb blinds and double motors
CN111810040A
Curtain control method and device, and storage medium
CN112782998A
Intelligent curtain control method and device, electronic equipment and storage medium
CN114489443A
Position correction method, equipment control system and intelligent curtain equipment
CN120335374A
Method and device for controlling smart home appliance, and mobile terminal
WO2023125393A1