Target equipment travel calibration method and apparatus, travel setting method and apparatus, target equipment and electronic equipment

By identifying the travel type and controlling the movement of the controlled part in smart home devices, the travel can be directly calibrated, solving the problem of complex processes in existing technologies and achieving efficient travel calibration and an optimized user experience.

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

Patent Information

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

AI Technical Summary

Technical Problem

In existing technologies, the calibration process for smart home devices is cumbersome, making the calibration process complex.

Method used

By determining the stroke type of the target device and controlling the controlled part to move in a preset direction according to the strategy corresponding to the stroke type, the stroke after calibration can be directly determined by combining the position and stroke setting information, thus simplifying the calibration process.

Benefits of technology

It simplifies the calibration process, improves calibration efficiency, and optimizes the user experience, avoiding cumbersome calculation and compensation steps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121037148A_ABST
    Figure CN121037148A_ABST
Patent Text Reader

Abstract

The invention relates to a travel calibration method and device of target equipment, a travel setting method and device, the target equipment and electronic equipment, and relates to the technical field of smart home. The method comprises the steps of determining a current travel type of target equipment under the condition that the target equipment has a travel error; the target equipment comprises at least one controlled part, and the controlled part moves in the total travel range; according to a stroke calibration strategy corresponding to the stroke type, each controlled part is controlled to move towards a corresponding first preset direction, and according to the position of each controlled part in the moving process and stroke setting information of each controlled part, the calibrated stroke of each controlled part is determined. By adopting the method, the travel calibration process can be improved and simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart home technology, and in particular to a method for calibrating the travel of a target device, a method for setting the travel, an apparatus, a target device, an electronic device, a computer-readable storage medium, and a computer program product. Background Technology

[0002] With the rapid development of automation technology, smart home devices, such as electric curtains, are gradually being widely used in smart home scenarios.

[0003] Typically, smart home devices can be programmed to move according to preset routes. If a smart home device malfunctions, its movement can be calibrated.

[0004] In related technologies, the steps of stroke calibration are rather cumbersome, which makes the stroke calibration process quite complicated. Summary of the Invention

[0005] Therefore, it is necessary to provide a stroke calibration method, stroke setting method, apparatus, target device, electronic device, computer-readable storage medium, and computer program product for the target device that can simplify the stroke calibration process, addressing the technical problem of the complex stroke calibration process mentioned above.

[0006] Firstly, this application provides a method for calibrating the stroke of a target device, comprising:

[0007] In the event of a travel error in the target device, the current travel type of the target device is determined; the target device includes at least one controlled part that moves within the total travel range;

[0008] According to the stroke calibration strategy corresponding to the stroke type, each controlled part is controlled to move in its corresponding first preset direction. Based on the position of each controlled part during the movement and the stroke setting information of each controlled part, the calibrated stroke of each controlled part is determined.

[0009] Secondly, this application also provides a method for setting the travel distance of a target device, including:

[0010] Upon receiving a travel setting instruction for a target device, the travel type corresponding to the travel setting instruction is determined; the target device includes at least one controlled part, which moves within the total travel range;

[0011] According to the travel setting strategy corresponding to the travel type, each controlled part is controlled to move within the total travel range. During the movement of each controlled part, a preset position of each controlled part is determined. The preset position includes at least a first preset position and a second preset position.

[0012] Based on the preset position of each controlled part, the travel setting information of each controlled part is obtained; the travel setting information is used to perform the travel calibration method of any of the above target devices.

[0013] Thirdly, this application provides a travel calibration device for a target device, comprising:

[0014] A type determination module is used to determine the current travel type of the target device when a travel error occurs; the target device includes at least one controlled part that moves within the total travel range;

[0015] The stroke calibration module is used to control each controlled part to move in its corresponding first preset direction according to the stroke calibration strategy corresponding to the stroke type, and to determine the calibrated stroke of each controlled part according to the position of each controlled part during the movement and the stroke setting information of each controlled part.

[0016] Fourthly, this application provides a travel setting device for a target device, comprising:

[0017] A type determination module is used to determine the stroke type corresponding to a stroke setting instruction received for a target device; the target device includes at least one controlled part that moves within a total stroke range;

[0018] The position preset module is used to control each of the controlled parts to move within the total travel range according to the travel setting strategy corresponding to the travel type, and to determine the preset position of each of the controlled parts during the movement of each of the controlled parts; the preset position includes at least a first preset position and a second preset position;

[0019] The information determination module is used to obtain the travel setting information of each of the controlled parts according to the preset position of each of the controlled parts; the travel setting information is used to perform the travel calibration method of any of the above target devices.

[0020] Fifthly, this application also provides a target device, including at least one controlled part, each of the controlled parts moving on a guide rail; the target device is used to perform the stroke calibration method or the stroke setting method of any of the above-mentioned target devices.

[0021] Sixthly, this application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the travel calibration method or the travel setting method of any of the above-mentioned target devices.

[0022] Seventhly, this application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the travel calibration method or the travel setting method of any of the above-described target devices.

[0023] Eighthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the travel calibration method or the travel setting method for any of the aforementioned target devices.

[0024] The aforementioned method, apparatus, device, electronic device, computer-readable storage medium, and computer program product for calibrating the travel of a target device first determine the current travel type of the target device when a travel error occurs. The target device includes at least one controlled part that moves within a total travel range. Then, according to the travel calibration strategy corresponding to the travel type, each controlled part is controlled to move in its corresponding first preset direction. Based on the position of each controlled part during movement and the travel setting information of each controlled part, the calibrated travel of each controlled part is determined. Based on this application, by controlling the movement of the controlled part and using its travel setting information, the erroneous travel of the controlled part is calibrated, thereby obtaining the calibrated travel of the controlled part. This eliminates the need for cumbersome steps, thus simplifying the travel calibration process and improving the efficiency of travel calibration while optimizing the user experience. Attached Figure Description

[0025] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0026] Figure 1 This is an application environment diagram of the stroke calibration method and the stroke setting method of the target device in one embodiment;

[0027] Figure 2 This is a flowchart illustrating a travel calibration method for a target device in one embodiment;

[0028] Figure 3This is a schematic diagram of a double-curtain smart curtain in one embodiment;

[0029] Figure 4 This is a schematic diagram illustrating the erratic travel of a double-curtain smart curtain in one embodiment;

[0030] Figure 5 This is a flowchart illustrating the steps of controlling each controlled part to move in its corresponding first preset direction, and determining the calibrated stroke of each controlled part based on the position of each controlled part during the movement and the stroke setting information of each controlled part in one embodiment.

[0031] Figure 6 This is a schematic diagram illustrating the control of each curtain in a dual-curtain smart curtain system to move towards its corresponding guide rail endpoint in one embodiment.

[0032] Figure 7 This is a schematic diagram illustrating the calibration of a custom travel of a double-curtain smart curtain in one embodiment;

[0033] Figure 8 This is a schematic diagram illustrating the calibration of the default travel of a double-curtain smart curtain in one embodiment;

[0034] Figure 9 This is a schematic diagram of the control interface in one embodiment;

[0035] Figure 10 This is a flowchart illustrating a method for setting the travel distance of a target device in one embodiment;

[0036] Figure 11 This is a schematic diagram of a location confirmation interface in one embodiment;

[0037] Figure 12 This is a schematic diagram illustrating the custom travel settings for a double-curtain smart curtain in one embodiment;

[0038] Figure 13 This is a flowchart illustrating the steps of obtaining travel setting information of each controlled part based on the preset position of each controlled part in one embodiment.

[0039] Figure 14 This is a flowchart illustrating the steps of controlling each controlled part to move within the total stroke range in one embodiment, and determining the preset position of each controlled part during the movement of each controlled part.

[0040] Figure 15 This is a schematic diagram illustrating the default travel setting of a double-curtain smart curtain in one embodiment;

[0041] Figure 16 This is a flowchart illustrating the steps of obtaining travel setting information for each controlled part based on the preset position of each controlled part in another embodiment.

[0042] Figure 17 This is an application environment diagram of the travel setting and travel calibration method for a single-sided controlled curtain in one embodiment;

[0043] Figure 18 This is a flowchart illustrating the process settings for a default trip in one embodiment.

[0044] Figure 19 This is a schematic diagram of the default trip settings in one embodiment;

[0045] Figure 20 This is a flowchart illustrating the process of setting up a custom trip in one embodiment;

[0046] Figure 21 This is a schematic diagram of the trip settings for a custom trip in one embodiment;

[0047] Figure 22 This is a schematic diagram of the process for trip calibration of the default trip in one embodiment;

[0048] Figure 23 This is a schematic diagram of the trip calibration for the default trip in one embodiment;

[0049] Figure 24 This is a flowchart illustrating the process of custom trip calibration in one embodiment;

[0050] Figure 25 This is a schematic diagram of a custom trip calibration in one embodiment;

[0051] Figure 26 This is a structural block diagram of the stroke calibration device of the target device in one embodiment;

[0052] Figure 27 This is a structural block diagram of the stroke setting device for the target device in another embodiment;

[0053] Figure 28 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0054] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0056] It is understood that terms such as "first" and "second" in this application are used only to distinguish similar objects and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. The term "connection" in the embodiments of this application refers to various connection methods, such as direct or indirect connections, to achieve communication between devices; this application does not impose any limitations on this.

[0057] It is understandable that "at least one" refers to one or more, while "multiple" refers to two or more.

[0058] When used herein, the singular forms of “a,” “an,” and “the” may also include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms “comprising / including” or “having,” etc., specify the presence of the stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not preclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. Meanwhile, the term “and / or” as used in this specification includes any and all combinations of the associated listed items.

[0059] With the rapid development of automation technology, smart home devices, such as motorized curtains, are increasingly being used in smart home scenarios. Typically, smart home devices can have their travel settings configured, allowing them to move within a preset range. If a smart home device malfunctions in its travel, it can be calibrated. For example, the travel range of a motorized curtain refers to the opening and closing range of the curtain. Users can set this range so that the curtain opens and closes within it. If the travel range of the motorized curtain is incorrect—meaning the actual opening and closing range is no longer the user-set range—the user can calibrate it.

[0060] In related technologies, when performing travel calibration, it is usually necessary to first determine the erroneous travel of the smart home device, then calculate the travel deviation between the smart home's preset travel and the erroneous travel, and then calibrate the erroneous travel based on the travel deviation, such as compensating for the erroneous travel. In other words, related technologies need to determine the actual situation of the erroneous travel and calculate the deviation between the preset travel and the erroneous travel, and then compensate for the erroneous travel based on the deviation to achieve calibration, which makes the travel calibration process relatively complex.

[0061] To address the aforementioned issues, this application proposes a method for determining the current travel type of a target device when a travel error occurs. The target device includes at least one controlled part that moves within a total travel range. Based on a travel calibration strategy corresponding to the travel type, each controlled part is controlled to move in its corresponding first preset direction. The calibrated travel of each controlled part is determined based on its position during movement and its travel setting information. This application calibrates the erroneous travel of the controlled part by controlling its movement and using its travel setting information, thereby obtaining the calibrated travel of the controlled part. This eliminates the need for cumbersome steps, simplifying the travel calibration process and improving both efficiency and user experience.

[0062] The travel calibration method and travel setting method for the target device provided in this application embodiment can be applied to, for example, Figure 1 The application environment shown. Among them, Figure 1 A smart home system is provided, comprising a terminal device 102 and smart devices 104 communicatively connected to the terminal device 102. The number of terminal devices 102 and smart devices 104 may be at least one.

[0063] Among them, terminal device 102 refers to the terminal used by the user, which may include smart interactive terminals such as smartphones, large screens, TVs, central control screens, personal computers (PCs), tablets, and personal digital assistants (PDAs).

[0064] Among them, the smart device 104 may include various smart home devices (or Internet of Things devices) and various sensing devices that are set in the indoor space and are movable. The smart home devices may be smart curtains, robot vacuum cleaners, smart clothes racks, smart cameras, smart TVs, smart lamps, smart speakers, smart air conditioners, smart fans, smart refrigerators, smart sockets, smart switches, etc. The sensor devices may be light sensors, temperature and humidity sensors, sound sensors, infrared sensors, door magnetic sensors, PM2.5 sensors, gas concentration sensors, human body sensors, millimeter-wave radar, etc.

[0065] Optionally, the terminal device 102 can provide an intuitive visual interface, allowing users to view the controllable smart device 104 within the interface. For example, a user can quickly and accurately select a smart device 104 to be controlled in the interface and perform control operations on it. Based on the user's selection and specific control operations, the terminal device 102 controls the smart device 104 through a communication connection with it.

[0066] In this embodiment, the smart home system may further include a gateway 106 that is communicatively connected to the terminal device 102 and the smart device 104. The number of gateways 106 may be at least one.

[0067] In some implementations, gateway 106 can be an intelligent gateway capable of controlling intelligent device 104, enabling functions such as system information collection, information input, information output, centralized control, remote control, and linkage control. Gateway 106 can be responsible for specific security alarms, home appliance control, and electricity consumption information collection. Gateway 106 can also wirelessly interact with products such as intelligent interactive terminals. Gateway 106 also possesses wireless routing capabilities, excellent wireless performance, network security, and coverage.

[0068] In some implementations, the smart device 104 connected to the gateway 106 can interact with the gateway 106 to exchange information and commands. The gateway 106 and the smart device 104 can be connected via communication methods such as Bluetooth, WIFI (Wireless-Fidelity), and ZigBee. Of course, the connection method between the gateway 106 and the smart device 104 is not specifically limited in this embodiment.

[0069] In this embodiment, the smart home system may further include a server 110 that is communicatively connected to the gateway 106. The server 110 may be a local server, a cloud server, or other servers. The server 110 may be implemented using a standalone server or a server cluster composed of multiple servers. The specific type of server is not limited in this embodiment.

[0070] In some implementations, the server 110 connected to the gateway 106 can exchange information with the gateway 106 wirelessly. Gateways 106 located in different indoor spaces can all communicate with the same server 110 via a network to exchange information between the server 110 and the gateway 106.

[0071] In some implementations, the terminal device 102 can interact with the server 110 via wireless methods such as 2G / 3G / 4G / 5G / WiFi. Of course, the connection method between the terminal device 102 and the server 110 is not limited in this embodiment.

[0072] In this embodiment of the application, the smart home system may further include a router 108 that is communicatively connected to the gateway 106.

[0073] In some implementations, terminal device 102 can also be used to interact with users, facilitating wireless communication between users and gateway 106 via router 108. Additionally, users can add account information to both gateway 106 and terminal device 102, enabling information synchronization between the two devices.

[0074] In some embodiments, users can set different trigger scenarios or automated linkages through the application (App) of terminal device 102. As one approach, terminal device 102 can upload scenario configuration information or automation schemes to server 110. When the triggering conditions of the scenario or automation are met, server 110 can find the device corresponding to the execution action in the stored scenario configuration information or automation scheme, and notify the device to perform the action to satisfy the execution result of the trigger scenario or automation. Alternatively, server 110 can also send scenario configuration information or automation schemes to gateway 106, which can then find the device corresponding to the execution action in the stored scenario configuration information or automation scheme. Simultaneously, gateway 106 can feed back the device's execution status to server 110.

[0075] Optional, such as Figure 1 The LAN path shown indicates that terminal device 102 is in the same LAN as router 108 and gateway 106, while the WAN path indicates that terminal device 102 is not in the same LAN as router 108 and gateway 106. When terminal device 102 is in the same LAN as router 108 and gateway 106, terminal device 102 can access the WAN path as follows: Figure 1 The local area network path shown interacts with gateway 106 and smart device 104 connected to gateway 106; it can also be accessed through, for example... Figure 1 The wide area network path shown interacts with gateway 106 and smart device 104 connected to gateway 106. When terminal device 102 is not in the same local area network as router 108 and gateway 106, terminal device 102 can interact via, as shown in... Figure 1 The wide area network path shown interacts with gateway 106 and smart device 104 connected to gateway 106.

[0076] In another implementation, the smart device 104 may not be connected to the gateway 106, but can directly establish a connection with the terminal device 102 via wireless communication (such as ZigBee or Bluetooth) to transmit data. It should be noted that in the embodiments of this application, the terminal device 102 can send control commands to the smart device 104, thereby controlling the operation of the smart device 104.

[0077] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0078] In one exemplary embodiment, such as Figure 2 As shown, a stroke calibration method for a target device is provided. This method is applicable to the target device, which can be, for example, as shown in the figure. Figure 1 The smart devices in the smart home system shown can also be such as Figure 1 The smart home system shown includes gateways, servers, terminal devices, etc.; the method includes the following steps S202 to S204:

[0079] Step S202: In the event of a travel error in the target device, determine the current travel type of the target device.

[0080] The target device includes at least one controlled part that moves within a total travel range, which characterizes the maximum range of movement that the controlled part can make.

[0081] In specific applications, the target device includes smart curtains; when the target device is a smart curtain, the controlled part includes the curtain fabric, the total travel range of which is the guide rail range of the smart curtain, and the curtain fabric moves on the guide rail; one side of the curtain fabric is located on the guide rail, and the two ends of this side are a first curtain end and a second curtain end, respectively. The first curtain end is located at the end point of the guide rail, and the second curtain end is moved on the guide rail via a trolley. The curtain fabric can move on the guide rail by moving the second curtain end; or the second curtain end is located at the end point of the guide rail, and the first curtain end is moved on the guide rail via a trolley. The curtain fabric can move on the guide rail by moving the first curtain end. Smart curtains include single-curtain smart curtains and multi-curtain smart curtains, such as double-curtain smart curtains. Figure 3 The image shows a schematic diagram of a double-curtain smart curtain.

[0082] The travel distance is used to characterize the range of movement of the controlled part. In specific applications, taking smart curtains as an example, the travel distance refers to the opening and closing range of the curtain fabric on the guide rail. More specifically, the travel distance refers to the range of movement of the second curtain end or the first curtain end on the guide rail.

[0083] The trip types include at least default trips and custom trips; users can select or set the trip type of the target device through the terminal device associated with the target device.

[0084] The default schedule refers to the schedule provided by default on the target device, while the custom schedule refers to the schedule set by the user.

[0085] In this context, "travel error" refers to a discrepancy between the actual travel of the controlled component and the preset travel, meaning the actual range of movement of the controlled component differs from the preset range. It's important to note that while the actual range of movement of the controlled component may differ from the preset range, the actual distance moved can still match the preset distance. For example, with smart curtains, a travel error means that the actual opening and closing range of the curtain is no longer the preset range. Figure 4 The diagram shows a schematic of a double-curtain smart curtain with incorrect travel. In practical applications, incorrect travel of the smart curtain will cause the curtain to fail to reach the expected position after opening and closing, resulting in the curtain not closing properly and the curtain colliding with the limiting components on the guide rail during the opening and closing process (see [reference]). Figure 3 In practical applications, there are also limiting devices at the ends of the guide rail, and the curtains may collide or even push each other during the opening and closing process. Taking a double-curtain smart curtain as an example, the double-curtain smart curtain may experience travel errors in the following situations: when the power is off, the curtain changes position due to manual pulling by the user, but the change in the position of the curtain is not synchronized with the double-curtain smart curtain (i.e., not synchronized with the motor), which causes the belt to loosen and the end point of the curtain movement to change, etc. All of the above situations will cause the actual opening and closing range of the curtain to not match the preset opening and closing range.

[0086] Each controlled part has a corresponding preset travel distance, which refers to the expected travel distance of the controlled part, that is, the normal movement range of the controlled part. The preset travel distance can be obtained by the user setting the travel distance of the controlled part. For example, the user can set the preset travel distance for the controlled part through a terminal device associated with the target device.

[0087] Specifically, when a trip error occurs on the target device, the trip type currently selected or set by the user for the target device is determined. In practical applications, the target device can detect the trip error itself, or it can determine the trip error in response to a trip calibration command sent by the user. The user sends the trip calibration command through a terminal device associated with the target device.

[0088] Taking smart curtains as an example, when the actual travel of the smart curtain fabric is inconsistent with the preset travel, the smart curtain determines the travel type currently selected or set by the user.

[0089] Step S204: According to the stroke calibration strategy corresponding to the stroke type, control each controlled part to move in its corresponding first preset direction, and determine the calibrated stroke of each controlled part according to the position of each controlled part during the movement and the stroke setting information of each controlled part.

[0090] Each controlled part has a corresponding first preset direction.

[0091] Each controlled part has corresponding travel setting information, which is used to characterize the preset travel of the controlled part. The travel setting information is obtained by the user setting the travel of the controlled part. For example, after the user sets a preset travel for the controlled part, the target device obtains the travel setting information based on the preset travel.

[0092] The trip settings information includes at least the preset trip length of the preset trip.

[0093] The calibrated travel of the controlled part is consistent with the preset travel of the controlled part. It should be noted that the target device does not store the preset travel of the controlled part, but it stores the travel setting information of the controlled part. When a travel error occurs, the target device can calibrate the erroneous travel of the controlled part to the preset travel according to the stored travel setting information.

[0094] Specifically, different stroke types correspond to different stroke calibration strategies. The target device controls each controlled part to move in its corresponding first preset direction according to the current stroke type. For each controlled part, the movement range of the controlled part is determined based on the position of the controlled part during the movement and the stored stroke setting information of the controlled part, so as to obtain the calibrated stroke.

[0095] Taking smart curtains as an example, for each curtain panel, the smart curtain calibrates the movement range of the curtain by controlling the movement of the curtain panel and using the stored travel setting information of the curtain panel, thus obtaining the calibrated travel range of the curtain panel.

[0096] In the above-mentioned stroke calibration method for the target device, the target device calibrates the erroneous stroke of the controlled part by controlling the movement of the controlled part and the stroke setting information of the controlled part, and obtains the calibrated stroke of the controlled part. There is no need to perform cumbersome steps, thus simplifying the stroke calibration process, improving the efficiency of stroke calibration and optimizing the user experience.

[0097] For ease of description, the following embodiments of this application use two controlled parts as examples to illustrate the stroke calibration method of the target device provided in this application, that is, each controlled part includes a first controlled part and a second controlled part; it is easy to understand that the following embodiments using two controlled parts as examples do not constitute a limitation on the number of controlled parts in this application, and the stroke calibration of the target device including other numbers of controlled parts is similar to the stroke calibration of the target device including two controlled parts.

[0098] In an exemplary embodiment, the total travel range includes at least one range endpoint, each controlled portion corresponds to one range endpoint, and the first preset direction corresponding to the controlled portion is the direction toward the range endpoint corresponding to the controlled portion.

[0099] Taking smart curtains as an example, the range endpoint is the guide rail endpoint of the smart curtain, and the range endpoint corresponding to the curtain fabric is the guide rail endpoint where the first curtain end of the curtain fabric is located.

[0100] Taking a double-curtain smart curtain as an example, the curtain of the double-curtain smart curtain includes a left curtain and a right curtain. The guide rail of the double-curtain smart curtain includes a left end point and a right end point. The left curtain corresponds to the left end point of the guide rail, and the right curtain corresponds to the right end point of the guide rail. The first preset direction corresponding to the left curtain is the direction towards the left end point of the guide rail, and the first preset direction corresponding to the right curtain is the direction towards the right end point of the guide rail.

[0101] like Figure 5 As shown, in step S204 above, each controlled part is controlled to move in its corresponding first preset direction. Based on the position of each controlled part during the movement and the stroke setting information of each controlled part, the calibrated stroke of each controlled part is determined. Specifically, this includes the following steps S502 to S506:

[0102] Step S502: Control each controlled part to move towards its corresponding range endpoint until each controlled part reaches its corresponding range endpoint, thereby obtaining the limit position of each controlled part.

[0103] The position of the controlled part refers to its current position within the total travel range. Further, the position of the controlled part is the distance between the controlled part and a reference endpoint among the endpoints of the total travel range, where any one of the endpoints is a reference endpoint. That is, the target device selects any one of the endpoints as a reference endpoint to determine the position of the controlled part, and uses the distance between the controlled part and this reference endpoint to describe the position of the controlled part. In a specific application, taking a smart curtain as an example, the position of the curtain fabric refers to the position of the second end of the curtain fabric on the guide rail.

[0104] In practical applications, the target device can control each controlled part to move simultaneously towards its corresponding range endpoint, or it can control each controlled part to move sequentially towards its corresponding range endpoint.

[0105] Specifically, there are two controlled parts. The target device controls the two controlled parts to move towards their respective range endpoints until each controlled part reaches its corresponding range endpoint. The target device then determines the position of each controlled part when it reaches its corresponding range endpoint as the limit position of each controlled part.

[0106] In practical applications, each range endpoint is equipped with a limiter. When the controlled part collides with the limiter on the corresponding range endpoint, the target device confirms that the controlled part has reached the corresponding range endpoint.

[0107] Taking a double-curtain smart curtain as an example, for each curtain, the double-curtain smart curtain controls the second curtain end of the curtain to move toward the end point of the guide rail where the first curtain end of the curtain is located, until the curtain collides with the limiting member in the direction of movement, and the position of the curtain when it collides is determined as the limiting position of the curtain.

[0108] like Figure 6 The diagram shown illustrates the control of a double-curtain smart curtain system, showing the movement of each curtain towards its corresponding guide rail endpoint (its respective range endpoint). (See attached diagram.) Figure 6 For the left curtain, the smart double-curtain curtain controls the second curtain end of the left curtain to move towards the left end of the guide rail until the second curtain end of the left curtain collides with the limiting piece on the left end of the guide rail, thus obtaining the limiting position of the left curtain. For the right curtain, the smart double-curtain curtain controls the second curtain end of the right curtain to move towards the right end of the guide rail until the second curtain end of the right curtain collides with the limiting piece on the right end of the guide rail, thus obtaining the limiting position of the right curtain.

[0109] Step S504: Determine the calibrated position of each controlled part based on the limit position of each controlled part and the stroke setting information of each controlled part.

[0110] The travel distance can be described by a first position, a second position, and the distance between the first and second positions. The first and second positions represent the start and end points of the travel distance, while the distance between them represents the length of the travel distance. In a practical application, taking a smart curtain as an example, the first position is the position when the curtain is open, i.e., the fully open position, and the second position is the position when the curtain is closed, i.e., the fully closed position.

[0111] The calibrated position includes at least a first calibrated position and a second calibrated position; the first calibrated position and the second calibrated position are the first position and the second position corresponding to the calibrated travel of the controlled part; taking a smart curtain as an example, the first calibrated position is the fully open position of the curtain after calibration, and the second calibrated position is the fully closed position of the curtain after calibration.

[0112] Specifically, for each controlled part, the target device redetermines the starting point and ending point of the controlled part's movement based on the limit position and stroke setting information of the controlled part, and obtains the first calibrated position and the second calibrated position of the controlled part.

[0113] Taking smart curtains as an example, for each curtain panel, the smart curtain re-determines the position that the curtain should be in when the curtain is open based on the limit position and travel setting information of the curtain panel, and obtains the fully open position of the curtain panel after calibration (first calibration position). In addition, it re-determines the position that the curtain panel should be in when the curtain is closed, and obtains the fully closed position of the curtain panel after calibration (second calibration position).

[0114] Taking a double-curtain smart curtain as an example, for the left curtain, the smart curtain redetermines the position the left curtain should be in when the curtain is open based on the limit position and travel setting information of the left curtain, thus obtaining the fully open position of the left curtain after calibration, and also redetermines the position the left curtain should be in when the curtain is closed, thus obtaining the fully closed position of the left curtain after calibration; for the right curtain, the smart curtain redetermines the position the right curtain should be in when the curtain is open based on the limit position and travel setting information of the right curtain, thus obtaining the fully open position of the right curtain after calibration, and also redetermines the position the right curtain should be in when the curtain is closed, thus obtaining the fully closed position of the right curtain after calibration.

[0115] Step S506: Based on the first and second calibrated positions of each controlled part, obtain the calibrated stroke of each controlled part.

[0116] Specifically, for each controlled part, the target device determines the range between the first calibrated position and the second calibrated position of the controlled part as the calibrated travel of the controlled part.

[0117] In this embodiment, the target device can determine the limit position of the controlled part by controlling the controlled part to move in the direction of its corresponding range endpoint. Based on the limit position and stroke setting information of the controlled part, the expected start point and expected end point when the controlled part moves according to the preset stroke can be determined, thereby obtaining the calibrated stroke of the controlled part and realizing the stroke calibration of the target device. The above process achieves stroke calibration by redetermining the first and second positions of the stroke, without the need to calculate the stroke deviation between the preset stroke and the erroneous stroke, and without the need to compensate for the erroneous stroke, thus simplifying the stroke calibration process.

[0118] In an exemplary embodiment, the trip type includes at least a custom trip; under a custom trip, the sum of the preset trip lengths in the trip setting information of each controlled part is equal to the range length of the total trip range, and the preset trips corresponding to the trip setting information of each controlled part are symmetrical about the range center of the total trip range.

[0119] In practical applications, the custom travel can include the following four cases: ① The sum of the preset travel lengths of each controlled part is less than the range length, and the preset travel lengths of each controlled part are asymmetrical about the center of the range. In this case, the preset travel lengths of each controlled part can be equal or unequal; ② The sum of the preset travel lengths of each controlled part is less than the range length, and the preset travel lengths of each controlled part are symmetrical about the center of the range. In this case, the preset travel lengths of each controlled part are equal; ③ The sum of the preset travel lengths of each controlled part is equal to the range length, and the preset travel lengths of each controlled part are asymmetrical about the center of the range. In this case, the preset travel lengths of each controlled part are unequal; ④ The sum of the preset travel lengths of each controlled part is equal to the range length, and the preset travel lengths of each controlled part are symmetrical about the center of the range. In this case, the preset travel lengths of each controlled part are equal.

[0120] Step S506 above determines the calibrated position of each controlled part based on the limit position of each controlled part and the stroke setting information of each controlled part. Specifically, it includes the following: when the stroke type is a custom stroke, the calibrated position of each controlled part is determined based on the limit position of each controlled part and the position offset information in the stroke setting information of each controlled part.

[0121] In the case of a custom trip, the trip settings information for the controlled portion shall include at least position offset information.

[0122] The position offset information includes at least first position offset information and / or second position offset information; the first position offset information is used to characterize the distance between the first preset position corresponding to the stroke setting information of the controlled part and the limit position of the controlled part; the second position offset information is used to characterize the distance between the second preset position corresponding to the stroke setting information of the controlled part and the limit position of the controlled part.

[0123] Wherein, the first preset position and the second preset position are the first position and the second position corresponding to the preset travel of the controlled part; taking a smart curtain as an example, the first preset position is the preset fully open position of the curtain, and the second preset position is the preset fully closed position of the curtain.

[0124] Specifically, when the stroke type is a custom stroke, since the first position offset information is used to characterize the distance between the first preset position and the limit position of the controlled part, and the second position offset information is used to characterize the distance between the second preset position and the limit position of the controlled part, for each controlled part, the target device determines the first calibrated position and the second calibrated position of the controlled part based on the limit position of the controlled part and in combination with the first offset information and / or the second offset information of the controlled part.

[0125] In this embodiment, the target device can make the determined first calibrated position consistent with the first preset position and the determined second calibrated position consistent with the second preset position by using the limit position and position offset information of the controlled part. This enables direct stroke calibration without calculating the stroke deviation between the preset stroke and the erroneous stroke, or compensating for the erroneous stroke, thus simplifying the stroke calibration process.

[0126] In an exemplary embodiment, the above steps, which determine the calibrated position of each controlled part based on the limit position of each controlled part and the position offset information in the stroke setting information of each controlled part, specifically include the following: determining the first calibrated position of each controlled part based on the limit position of each controlled part and the first position offset information of each controlled part; and determining the second calibrated position of each controlled part based on the first calibrated position of each controlled part and the preset stroke length of each controlled part.

[0127] Specifically, when the stroke type is a custom stroke, for each controlled part, the target device takes the limit position of the controlled part as the starting point, and combines the distance between the first preset position and the limit position of the controlled part to determine the first calibrated position of the controlled part in the second preset direction corresponding to the controlled part; then, taking the determined first calibrated position as the starting point, and combining the preset stroke length of the controlled part, the second calibrated position of the controlled part is determined in the second preset direction corresponding to the controlled part.

[0128] In this system, the second preset direction corresponding to each controlled part is opposite to the first preset direction corresponding to that controlled part. Taking a double-curtain smart curtain as an example, the first preset direction corresponding to the left curtain is towards the left end of the guide rail, the second preset direction corresponding to the left curtain is towards the right end of the guide rail, the first preset direction corresponding to the right curtain is towards the right end of the guide rail, and the second preset direction corresponding to the right curtain is towards the left end of the guide rail.

[0129] Taking double-curtain smart curtains as an example, such as Figure 7 The diagram shown illustrates the calibration of the custom travel setting for a double-curtain smart blind; see reference. Figure 7 (a) Assuming the double-curtain smart curtain has curtain A and curtain B, the guide rail length is 200cm, and the left end of the guide rail is taken as the reference end, then the limiting position P of curtain A is... A =0, the limiting position P of curtain B B =200cm. Assume the preset travel length of curtain A is L. A =70cm, the first position offset information of curtain A is D A1 =50cm, the preset travel length of curtain B is L B =40cm, the first position offset information of curtain B is D B1=20cm, so for curtain A, the double-curtain smart curtain first uses the limiting position P. A Starting from the right end of the guide rail (the second preset direction corresponding to curtain A), determine the limiting position P. A The distance between them is the first position offset information D A1 The point 50cm is used to determine the fully open position of curtain A after calibration (the first calibration position of curtain A). A1 That is, P A1 =P A +D A1 =0 + 50cm = 50cm, then in the fully open position P A1 Starting from the right end of the guide rail (the second preset direction corresponding to curtain A), determine the fully open position P. A1 The distance between them is the preset travel length L. A The point at 70cm is designated as the fully closed position of curtain A after calibration (the second calibration position of curtain A). A2 That is, P A2 =P A1 +L A =50cm + 70cm = 120cm; For curtain B, the double-curtain smart curtain first uses the limiting position P B Starting from the left end point of the guide rail (the second preset direction corresponding to curtain B), determine the limiting position P. B The distance between them is the first position offset information D B1 The point 20cm is used to determine the fully open position of curtain B after calibration (the first calibration position of curtain B). B1 That is, P B1 =P B -D B1 =200cm - 20cm = 180cm, then in the fully open position P B1 Starting from the left end of the guide rail (the second preset direction corresponding to curtain B), determine the fully open position P. B1 The distance between them is the preset travel length L. B =40cm, determine the fully closed position of curtain B after calibration (the second calibration position of curtain B) P B2 That is, P B2 =P B1 -L B =180cm - 40cm = 140cm.

[0130] In this embodiment, the target device can make the determined first calibrated position consistent with the first preset position by using the limit position and the first position offset information. Based on the first calibrated position consistent with the first preset position, the determined second calibrated position can be consistent with the second preset position, thereby directly realizing stroke calibration without calculating the stroke deviation between the preset stroke and the erroneous stroke, or compensating for the erroneous stroke, thus simplifying the stroke calibration process.

[0131] In an exemplary embodiment, the above steps, which determine the calibrated position of each controlled part based on the limit position of each controlled part and the position offset information in the stroke setting information of each controlled part, specifically include the following: determining the second calibrated position of each controlled part based on the limit position of each controlled part and the second position offset information of each controlled part; and determining the first calibrated position of each controlled part based on the second calibrated position of each controlled part and the preset stroke length of each controlled part.

[0132] Specifically, when the stroke type is a custom stroke, for each controlled part, the target device takes the limit position of the controlled part as the starting point, and combines the distance between the second preset position of the controlled part and the limit position to determine the second calibrated position of the controlled part in the second preset direction corresponding to the controlled part; then, taking the determined second calibrated position as the starting point, and combining the preset stroke length of the controlled part, the first calibrated position of the controlled part is determined in the first preset direction corresponding to the controlled part.

[0133] Taking double-curtain smart curtains as an example, please refer to... Figure 7 (b) Assume that the second position offset information of curtain A is D. A2 =120cm, information on the second position offset of curtain B D B2 =60cm. Therefore, for curtain A, the double-curtain smart curtain first uses the limiting position P. A Starting from the right end of the guide rail (the second preset direction corresponding to curtain A), determine the limiting position P. A The distance between them is the second position offset information D. A2 The point at 120cm is designated as the fully closed position of curtain A after calibration (the second calibrated position of curtain A). A2 That is, P A2 =P A +D A2 =0 + 120cm = 120cm, then fully close position P after calibration. A2 Starting from the left end of the guide rail (the first preset direction corresponding to curtain A), determine and calibrate the fully closed position P. A2 The distance between them is the preset travel length L. AThe point at 70cm is designated as the fully open position of curtain A after calibration (the first calibration position of curtain A). A1 That is, P A1 =P A2 -L A =120cm - 70cm = 50cm; For curtain B, the double-curtain smart curtain first uses the limiting position P B Starting from the left end point of the guide rail (the second preset direction corresponding to curtain B), determine the limiting position P. B The distance between them is the second position offset information D. B The point at 60cm is designated as the fully closed position of curtain B after calibration (the second calibration position of curtain B). B2 That is, P B2 =P B -D B2 =200cm - 60cm = 140cm, then fully close position P after calibration. B2 Starting from the right end of the guide rail (the first preset direction corresponding to curtain B), determine and calibrate the fully closed position P. B2 The distance between them is the preset travel length L. B The point at 40cm is designated as the fully open position of curtain B after calibration (the first calibration position of curtain B). B1 That is, P B1 =P B2 +L B =140cm + 40cm = 180cm.

[0134] In this embodiment, the target device can make the determined second calibrated position consistent with the second preset position by using the limit position and the second position offset information. Based on the second calibrated position consistent with the second preset position, the determined first calibrated position can be consistent with the first preset position, thereby directly realizing stroke calibration without calculating the stroke deviation between the preset stroke and the erroneous stroke, or compensating for the erroneous stroke, thus simplifying the stroke calibration process.

[0135] In an exemplary embodiment, the above steps, which determine the calibrated position of each controlled part based on the limit position of each controlled part and the position offset information in the stroke setting information of each controlled part, specifically include the following: determining the first calibrated position of each controlled part based on the limit position of each controlled part and the first position offset information of each controlled part; and determining the second calibrated position of each controlled part based on the limit position of each controlled part and the second position offset information of each controlled part.

[0136] Specifically, when the stroke type is a custom stroke, for each controlled part, the target device takes the limit position of the controlled part as the starting point, and determines the first calibrated position of the controlled part in the second preset direction corresponding to the controlled part by combining the distance between the first preset position and the limit position of the controlled part. Also, taking the limit position of the controlled part as the starting point, and combining the distance between the second preset position and the limit position of the controlled part, determines the second calibrated position of the controlled part in the second preset direction corresponding to the controlled part.

[0137] Taking double-curtain smart curtains as an example, please refer to... Figure 7 (c) For curtain A, the double-curtain smart curtain uses the limiting position P A Starting from the right end of the guide rail (the second preset direction corresponding to curtain A), determine the limiting position P. A The distance between them is the first position offset information D A1 The point 50cm is used to determine the fully open position of curtain A after calibration (the first calibration position of curtain A). A1 That is, P A1 =P A +D A1 =0 + 50cm = 50cm, and determine the limiting position P. A The distance between them is the second position offset information D. A2 The point at 120cm is designated as the fully closed position of curtain A after calibration (the second calibrated position of curtain A). A2 That is, P A2 =P A +D A2 =0 + 120cm = 120cm; For curtain B, the double-curtain smart curtain uses the limit position P B Starting from the left end point of the guide rail (the second preset direction corresponding to curtain B), determine the limiting position P. B The distance between them is the first position offset information D B1 The point 20cm is used to determine the fully open position of curtain B after calibration (the first calibration position of curtain B). B1 That is, P B1 =P B -D B1 =200cm - 20cm = 180cm, and, with the limiting position P B Starting from point P, move along the guide rail away from the limit position P. B The direction is determined by the limit position P. B The distance between them is the second position offset information D. B The point at 60cm is designated as the fully closed position of curtain B after calibration (the second calibration position of curtain B). B2 That is, PB2 =P B -D B2 =200cm - 60cm = 140cm.

[0138] In this embodiment, the target device, through the limit position, the first position offset information and the second position offset information, can make the determined second calibrated position consistent with the second preset position, and can make the determined first calibrated position consistent with the first preset position, thereby directly realizing stroke calibration without calculating the stroke deviation between the preset stroke and the erroneous stroke, and without compensating for the erroneous stroke, thus simplifying the stroke calibration process.

[0139] In an exemplary embodiment, the trip type includes at least a default trip; under the default trip, the sum of the preset trip lengths in the trip setting information of each controlled part is equal to the range length of the total trip range, and the preset trips corresponding to the trip setting information of each controlled part are symmetrical about the range center of the total trip range.

[0140] In practical applications, the default travel includes the following situations: the sum of the preset travel lengths of each controlled part is equal to the range length; the preset travel lengths of each controlled part are symmetrical about the range center, that is, the sum of the preset travel lengths of each controlled part covers the range length; the preset travel lengths of each controlled part equally divide the range length; and the preset travel lengths of each controlled part are symmetrical. Therefore, the first preset position of each controlled part should be the range endpoint corresponding to that controlled part, and the second preset positions of each controlled part should coincide, that is, the range center.

[0141] Taking smart curtains as an example, the center of the range is the midpoint of the guide rail.

[0142] Step S506 above determines the calibrated position of each controlled part based on the limit position of each controlled part and the stroke setting information of each controlled part. Specifically, it includes the following: when the stroke type is the default stroke, the limit position of each controlled part is determined as the first calibrated position of each controlled part; and the second calibrated position of each controlled part is determined based on the first calibrated position of each controlled part and the preset stroke length of each controlled part.

[0143] Specifically, under the default stroke, the first preset position of each controlled part is the endpoint of the range corresponding to the controlled part, and the second preset position of each controlled part is the center of the range. Therefore, for each controlled part, the target device determines the limit position of the controlled part as the first calibrated position of the controlled part. Since the range length of different total stroke ranges is different, the target device generally does not record the position of the range center. Therefore, the target device uses the obtained first calibrated position as the starting point, and combines it with the preset stroke length of the controlled part to determine the second calibrated position of the controlled part in the second preset direction corresponding to the controlled part.

[0144] Taking double-curtain smart curtains as an example, such as Figure 8 The diagram shown illustrates the calibration of the default travel of a double-curtain smart blind. Assuming the double-curtain smart blind has curtain A and curtain B, and the guide rail is 200cm long, with the left end of the guide rail as the reference end, then the limiting position P of curtain A is... A =0, the limiting position P of curtain B B =200cm, the preset travel length of curtain A is L A =100cm, the preset travel length of curtain B is L B =100cm. Therefore, for curtain A, the double-curtain smart curtain will first limit the position P. A The fully open position of curtain A after calibration (the first calibrated position of curtain A) is determined as P. A1 That is, P A1 =P A =0, then fully open position P after calibration A1 Starting from the right end of the guide rail (the second preset direction corresponding to curtain A), determine and calibrate the fully opened position P. A1 The distance between them is the preset travel length L. A The point = 100cm is designated as the fully closed position of curtain A after calibration (the second calibration position of curtain A). A2 That is, P A2 =P A1 +L A =0 + 100cm = 100cm; For curtain B, the double-curtain smart curtain first sets the limit position P. B The fully open position of curtain B after calibration (the first calibration position of curtain B) is determined. B1 That is, P B1 =P B =200cm, then fully open position P after calibration. B1 Starting from the left end of the guide rail (the second preset direction corresponding to curtain B), determine and calibrate the fully opened position P. B1 The distance between them is the preset travel length L. BThe point at 100cm is designated as the fully closed position of curtain B after calibration (the second calibration position of curtain B). B2 That is, P B2 =P B1 -L B =200cm - 100cm = 100cm.

[0145] In practical applications, when the stroke type is the default stroke, since the second preset positions of each controlled part overlap, the target device can first determine the first calibrated position of the first controlled part based on the limit position of the first controlled part, then determine the second calibrated position of the first controlled part based on the first calibrated position of the first controlled part and the preset stroke length of the first controlled part, then determine the first calibrated position of the second controlled part based on the limit position of the second controlled part, and use the second calibrated position of the first controlled part as the second calibrated position of the second controlled part.

[0146] In this embodiment, the target device can make the determined first calibrated position consistent with the first preset position by limiting the position. Based on the first calibrated position consistent with the first preset position, the determined second calibrated position can be consistent with the second preset position, thereby directly realizing stroke calibration without calculating the stroke deviation between the preset stroke and the erroneous stroke, and without compensating for the erroneous stroke, thus simplifying the stroke calibration process.

[0147] In an exemplary embodiment, before determining the current travel type of the target device in the case of a travel error in the target device in step S202 above, the following is further included: displaying a control interface for the target device through a terminal device associated with the target device; receiving a travel calibration command issued by the terminal device; and determining that a travel error has occurred in the target device in response to the travel calibration command.

[0148] The control interface displays control options for the target device, including at least a travel calibration option.

[0149] The terminal device is used to send a travel calibration command to the target device in response to the selection operation of the travel calibration option.

[0150] Specifically, when a user needs to perform travel calibration on a target device, they can access the target device's control interface on a terminal device associated with the target device, and then select the travel calibration option in the control interface. When the target device detects that the user has selected the travel calibration option, it will send a travel calibration command to the target device. The target device accepts the travel calibration command sent by the terminal device, determines that the target device has a travel error, and then enters the travel calibration process.

[0151] Taking double-curtain smart curtains as an example, such as Figure 9 The diagram shown is a schematic of the control interface. (See attached image.) Figure 9 (a) The control interface offers multiple control options for the double-curtain smart curtain, including a travel calibration option. When the user selects the travel calibration option, the double-curtain smart curtain enters the travel calibration process. During the travel calibration process, the control page can also display operation prompts to the user, which may include a first operation prompt and a second operation prompt. The first operation prompt indicates under what circumstances the user can perform travel calibration; see [reference needed]. Figure 9 (b) For example, it prompts users that in case of power outages or other abnormal situations, the travel calibration option can restore the curtains to the preset travel state; the second operation prompt is used to remind users of precautions during the travel calibration process, see [link / reference]. Figure 9 (c) For example, prompting the user not to operate the curtains during the trip calibration process, otherwise the calibration may fail.

[0152] In this embodiment, the target device can enter the travel calibration process through the control interface displayed on the device terminal when the user triggers the travel calibration.

[0153] Based on the same inventive concept, such as Figure 10 As shown in the figure, this application embodiment also provides a method for setting the travel of a target device. This method is applicable to the target device, which can be, for example, a travel setting method for a target device. Figure 1 The smart devices in the smart home system shown can also be such as Figure 1 The smart home system shown includes gateways, servers, terminal devices, etc.; the specific limitations of the travel setting method embodiments for one or more target devices provided below can be found in the limitations of the travel calibration method for target devices above, and will not be repeated here. The method includes the following steps S1002 to S1006:

[0154] Step S902: Upon receiving a trip setting instruction for the target device, determine the trip type corresponding to the trip setting instruction.

[0155] The target device includes at least one controlled part, which moves within the total travel range.

[0156] The trip type corresponding to the trip setting command is used to represent the type of trip that the user expects to set.

[0157] Specifically, when the target device receives a trip setting instruction sent by the user, the target device determines the trip type corresponding to the trip setting instruction.

[0158] Step S904: According to the stroke setting strategy corresponding to the stroke type, control each controlled part to move within the total stroke range, and determine the preset position of each controlled part during the movement of each controlled part.

[0159] The preset positions include at least a first preset position and a second preset position.

[0160] Specifically, different stroke types correspond to different stroke setting strategies. The target device controls each controlled part to move within the total stroke range according to the stroke type corresponding to the stroke setting instruction, and determines the first and second preset positions of each controlled part during the movement of each controlled part. The movement process is different for different stroke types.

[0161] Taking smart curtains as an example, for each curtain panel, the smart curtain controls the movement of the curtain panel and determines the preset fully open position (first preset position) and preset fully closed position (second preset position) of the curtain panel during the movement.

[0162] Step S906: Obtain the travel setting information of each controlled part according to the preset position of each controlled part.

[0163] The target device stores travel setting information instead of the preset travel itself; the travel setting information is used to perform the travel calibration method of the target device in any of the embodiments above, and to control the controlled part to move on the guide rail to the expected first preset position and second preset position after the travel is set.

[0164] Specifically, for each controlled part, the range between the first preset position and the second preset position of the controlled part of the target device is determined as the preset travel of the controlled part, and the travel setting information of the controlled part is obtained and recorded based on the preset travel of the controlled part, thus completing the travel setting of the target device.

[0165] Taking smart curtains as an example, for each curtain, the smart curtain determines the preset travel distance between the preset fully open position and the preset fully closed position of the curtain. Then, the smart curtain obtains and records the travel distance setting information of the curtain based on the preset travel distance.

[0166] In the above-mentioned method for setting the stroke of the target device, the target device can determine the preset position of the controlled part by controlling the movement of the controlled part, thereby obtaining the stroke setting information of the controlled part and completing the stroke setting of the target device.

[0167] In an exemplary embodiment, the movement process of each controlled part includes at least a first movement stage and a second movement stage performed sequentially; that is, each controlled part first performs the first movement stage and then performs the second movement stage.

[0168] The first movement stage includes at least a first movement, and the second movement stage includes at least a second movement. Each controlled part moves in its corresponding first preset direction in the first movement, and each controlled part moves in its corresponding second preset direction in the second movement. That is, each controlled part first moves in the first preset direction of the guide rail, and then moves in the second preset direction of the guide rail. In specific applications, the total travel range includes at least one range endpoint, each controlled part corresponds to one range endpoint, the first preset direction of the controlled part is the direction towards the corresponding range endpoint, and the second preset direction of the controlled part is the direction opposite to the corresponding range endpoint.

[0169] In practical applications, the first movement phase of each controlled part can be carried out simultaneously or separately; the second movement phase of each controlled part can be carried out simultaneously or separately; however, the second movement phase of each controlled part can only be carried out after the first movement phase of each controlled part has been completed.

[0170] In this embodiment, the movement process of each controlled part is at least as follows: first, it moves towards the first preset direction of the guide rail, and then it moves towards the second preset direction of the guide rail. The target device can determine the preset position of the controlled part by controlling the movement of the controlled part.

[0171] In an exemplary embodiment, the trip type includes at least a custom trip; under a custom trip, the sum of the preset trip lengths in the trip setting information of each controlled part is less than or equal to the range length of the total trip range, and the preset trips corresponding to the trip setting information of each controlled part are either symmetrical or asymmetrical about the range center of the total trip range.

[0172] In specific applications, under a custom travel, the first preset position of the controlled part can be the endpoint of the range corresponding to the controlled part, or any position between the endpoint of the range corresponding to the controlled part and the endpoint of the range corresponding to another controlled part. The second preset position of the controlled part can be any position between the endpoint of the range corresponding to the controlled part and the limit position of another controlled part.

[0173] In step S1004 above, during the movement of each controlled part, the preset position of each controlled part is determined, which specifically includes the following: when the travel type is a custom travel, in the second movement stage, if a position confirmation event is detected, the preset position of each controlled part is determined according to the event type of the position confirmation event and the position of each controlled part when the position confirmation event occurs.

[0174] Among them, the location confirmation event is used to indicate that the user confirms the current location of the controlled part as the preset location; the location confirmation event is triggered by the user through the terminal device associated with the target device, such as the user sending a location confirmation command or performing a location confirmation operation through the target device.

[0175] The event types include location confirmation events corresponding to the confirmation of the first location and location confirmation events corresponding to the confirmation of the second location.

[0176] Specifically, when the travel type is a custom travel, in the second movement phase, for each controlled part, if the target device detects a position confirmation event, then based on the event type of the position confirmation event and the position of the controlled part when the position confirmation event occurs, the first preset position or the second preset position of the controlled part is determined; for example, if the target device detects a position confirmation event confirming the first position, then the position of the controlled part when the position confirmation event occurs is confirmed as the first preset position of the controlled part; if the target device detects a position confirmation event confirming the second position, then the position of the controlled part when the position confirmation event occurs is confirmed as the second preset position of the controlled part.

[0177] Taking a double-curtain smart curtain as an example, in the second movement phase, for each curtain, when a position confirmation event occurs that the fully open position is confirmed, the position of the curtain on the guide rail is confirmed as the preset fully open position (first preset position) of the curtain; and when a position confirmation event occurs that the fully closed position is confirmed, the position of the curtain on the guide rail is confirmed as the preset fully closed position (second preset position) of the curtain.

[0178] In practical applications, the target device can sequentially confirm the preset positions of different controlled parts. Furthermore, for each controlled part, the target device can first determine the first preset position and then determine the second preset position, or first determine the second preset position and then determine the first preset position. Alternatively, the target device can first confirm the first preset position of each controlled part and then confirm the second preset position of each controlled part, or first confirm the second preset position of each controlled part and then confirm the first preset position of each part.

[0179] In this embodiment, based on the interaction with the user, the target device responds to the occurrence of a location confirmation event and can confirm the first preset location and the second preset location under a custom trip, thereby realizing the trip setting of the custom trip.

[0180] In an exemplary embodiment, in the above steps, in the second movement phase, if a location confirmation event is detected, before determining the preset position of each controlled part according to the event type of the location confirmation event and the position of each controlled part when the location confirmation event occurs, the following is further included: displaying a location confirmation interface for the target device through a terminal device associated with the target device.

[0181] The location confirmation interface displays location confirmation options for the target device. These options include at least a first location confirmation option and a second location confirmation option. These options are used to enable users to confirm a preset location. In specific applications, the location confirmation options are components displayed on the location confirmation interface. Users can select or click on a location confirmation option to trigger a confirmation operation, thereby confirming the preset location.

[0182] Among them, the event types include at least a first location confirmation event in which the first location confirmation option is confirmed and a second location confirmation event in which the second location confirmation option is confirmed.

[0183] In practical applications, the first position confirmation option and the second position confirmation option of different controlled parts can be displayed simultaneously in the position confirmation interface, or they can be displayed separately in different position confirmation sub-interfaces of the position confirmation interface; the first position confirmation option and the second position confirmation option of the same controlled part can be displayed simultaneously in the position confirmation interface, or they can be displayed separately in different sub-interfaces of the position confirmation interface.

[0184] Taking double-curtain smart curtains as an example, such as Figure 11 The image shown is a schematic diagram of the location confirmation interface; Figure 11 (a) A location confirmation sub-interface that displays the location confirmation option (second location confirmation option) for the fully closed position. Figure 11 (b) A position confirmation sub-interface for displaying the position confirmation option (first position confirmation option) for the fully open position of the left curtain. Figure 11 (c) Position confirmation sub-interface for displaying the position confirmation option for the fully open position of the right curtain.

[0185] Specifically, when the trip type is a custom trip, if the user selects the location confirmation option on the location confirmation interface, the terminal device sends the corresponding information to the target device to inform the terminal device of the selected location confirmation option; the target terminal receives the information sent by the terminal device, determines that a location confirmation event has occurred, and determines the event type of the location confirmation event.

[0186] In the second movement phase, if a position confirmation event is detected, the preset position of each controlled part is determined according to the event type of the position confirmation event and the position of each controlled part when the position confirmation event occurs. Specifically, this includes the following: In the second movement phase, if a position confirmation event is detected, the position of each controlled part when the position confirmation event occurs is determined as the first preset position or the second preset position of each controlled part according to the event type of the position confirmation event.

[0187] Specifically, when the travel type is a custom travel, in the second movement phase, for each controlled part, if the target device detects a position confirmation event, the event type of the position confirmation event is further determined; if the event type is a first position confirmation event, the position of the controlled part when the first position confirmation event occurs is confirmed as the first preset position of the controlled part; if the event type is a second position confirmation event, the position of the controlled part when the second position confirmation event occurs is confirmed as the second preset position of the controlled part.

[0188] In this embodiment, based on the interaction with the user, the target device responds to the occurrence of a first location confirmation event or a second location confirmation event, and can realize the confirmation of the first preset location and the second preset location under the custom trip, thereby realizing the trip setting of the custom trip.

[0189] In an exemplary embodiment, the total travel range includes at least one range endpoint, and each controlled part corresponds to one range endpoint. Each controlled part moves in the direction of its corresponding range endpoint in the first movement, and each controlled part moves in the opposite direction to its corresponding range endpoint in the second movement. That is, the first preset direction of the controlled part is the direction towards the corresponding range endpoint, and the second preset direction of the controlled part is the direction opposite to the corresponding range endpoint.

[0190] Step S1004 above controls each controlled part to move within the total stroke range, specifically including the following: when the stroke type is a custom stroke, control each controlled part to move towards its corresponding range endpoint until each controlled part reaches its corresponding range endpoint, thereby obtaining the limit position of each controlled part.

[0191] In this embodiment, as the controlled part moves in the opposite direction to its corresponding range endpoint, the target device sequentially confirms the first preset position and the second preset position of the controlled part.

[0192] In the second movement phase, if a position confirmation event is detected, the position of each controlled part at the time of the position confirmation event is determined as either a first preset position or a second preset position, depending on the event type of the position confirmation event. Specifically, this includes the following: if a first position confirmation event is detected during the movement of each controlled part in the direction opposite to its corresponding range endpoint, the position of each controlled part at the time of the first position confirmation event is determined as the first preset position of each controlled part; if a second position confirmation event is detected during the movement of each controlled part in the direction opposite to its corresponding range endpoint, the position of each controlled part at the time of the second position confirmation event is determined as the second preset position of each controlled part.

[0193] Specifically, when the travel type is a custom travel, the target device first controls each controlled part to move in a first movement stage, that is, controls each controlled part to move in the direction of its corresponding range endpoint (i.e., along a first preset direction) until each controlled part collides with the limit member at its corresponding range endpoint. Then, it enters a second movement stage where each controlled part moves in the opposite direction to its corresponding range endpoint (i.e., along a second preset direction). In the second movement stage, for each controlled part, as the controlled part moves in the opposite direction to its corresponding range endpoint, the target device first determines whether a first position confirmation event has occurred. If a first position confirmation event is detected, the position of the controlled part at the time of the first position confirmation event is confirmed as the first preset position of the controlled part. Then, it determines whether a second position confirmation event has occurred. If a second position confirmation event is detected, the position of the controlled part at the time of the second position confirmation event is confirmed as the second preset position of the controlled part.

[0194] Taking double-curtain smart curtains as an example, such as Figure 12 The diagram shown illustrates the custom travel settings for a double-curtain smart blind. (See attached image.) Figure 12 (a) Assuming the double-curtain smart curtain has curtain A and curtain B, in the first movement stage, the double-curtain smart curtain first controls curtain A and curtain B to move in the directions of the left and right ends of the guide rail (their respective first preset directions) until they collide with the limiting pieces at both ends of the guide rail. Then, in the second movement stage, it determines their respective preset fully open position (first preset position) and preset fully closed position (second preset position). For curtain A, in the second movement stage, the double-curtain smart curtain first determines the preset fully open position and then determines the preset fully closed position: during the process of curtain A moving towards the right end of the guide rail (curtain A's second preset direction), if curtain A moves to P... A1 When the smart double-curtain curtain detects the first location confirmation event, it will set P... A1If curtain A is set to the preset fully open position, and curtain A continues to move towards the right end of the guide rail to position P... A2 When the smart double-curtain curtain detects a second location confirmation event, it will set P... A2 The preset fully closed position is determined for curtain A; for curtain B, the double-curtain smart curtain, in the second movement phase, first determines the preset fully open position and then the preset fully closed position: during the movement of curtain B towards the left end point of the guide rail (the second preset direction of curtain B), if curtain B moves to P... B1 When the smart double-curtain curtain detects the first location confirmation event, it will set P... B1 If the preset fully open position of curtain B is determined, and curtain B continues to move towards the left end of the guide rail to position P... B2 When the smart double-curtain curtain detects a second location confirmation event, it will set P... B2 The preset fully closed position for curtain B is confirmed.

[0195] In this embodiment, the target device can sequentially confirm the first preset position and the second preset position during the movement of the controlled part of the guide rail, thereby realizing the travel setting of the custom travel.

[0196] In an exemplary embodiment, the second movement phase includes at least a second movement and a third movement performed sequentially; the total travel range includes at least one range endpoint, each controlled part corresponds to one range endpoint, each controlled part moves in the direction opposite to its corresponding range endpoint in the second movement, and each controlled part moves in the direction of its corresponding range endpoint in the third movement, that is, the first preset direction of the controlled part is the direction towards the corresponding range endpoint, and the second preset direction of the controlled part is the direction opposite to the corresponding range endpoint.

[0197] Step S1004 above controls each controlled part to move within the total stroke range, specifically including the following: when the stroke type is a custom stroke, control each controlled part to move towards its corresponding range endpoint until each controlled part reaches its corresponding range endpoint, thereby obtaining the limit position of each controlled part.

[0198] In the second movement phase, if a position confirmation event is detected, the position of each controlled part at the time of the position confirmation event is determined as either a first preset position or a second preset position, depending on the event type of the position confirmation event. Specifically, this includes the following: if a second position confirmation event is detected during the movement of each controlled part in the direction opposite to its corresponding range endpoint, the position of each controlled part at the time of the second position confirmation event is determined as the second preset position of each controlled part; if a first position confirmation event is detected during the movement of each controlled part in the direction of its corresponding range endpoint, the position of each controlled part at the time of the first position confirmation event is determined as the first preset position of each controlled part.

[0199] Specifically, when the travel type is a custom travel, the target device first controls each controlled part to move in a first movement stage, that is, controls each controlled part to move towards its corresponding range endpoint (i.e., move along a first preset direction) until each controlled part collides with the limit member at its corresponding range endpoint. Then, it enters a second movement stage where each controlled part moves in the opposite direction to its corresponding range endpoint (i.e., along a second preset direction). In the second movement stage, each controlled device first moves in the opposite direction to its corresponding range endpoint. During this movement, the target device first determines whether a second position confirmation event has occurred. If a second position confirmation event is detected, the position of each controlled part at the time of the second position confirmation event is confirmed as the second preset position of each controlled part. Then, each controlled device moves towards its corresponding range endpoint. During this movement, the target device determines whether a first position confirmation event has occurred. If a first position confirmation event is detected, the position of each controlled part at the time of the first position confirmation event is confirmed as the first preset position of each controlled part.

[0200] Taking double-curtain smart curtains as an example, please refer to... Figure 12 (b) Assuming the double-curtain smart curtain has curtain A and curtain B, in the first movement stage, the double-curtain smart curtain first controls curtain A and curtain B to move in the directions of the left and right ends of the guide rail (their respective first preset directions) until they collide with the limiting pieces at both ends of the guide rail. Then, in the second movement stage, it determines their respective preset fully open position (first preset position) and preset fully closed position (second preset position). For curtain A, in the second movement stage, the double-curtain smart curtain first determines the preset fully closed position and then determines the preset fully open position: curtain A first moves to the right end of the guide rail (curtain A's second preset direction). If curtain A moves to P... A2 When the smart double-curtain curtain detects a second location confirmation event, it will set P...A2 Once the preset fully closed position of curtain A is determined, curtain A moves to the left end point of the guide rail (curtain A's first preset direction). If curtain A moves to P... A1 When the smart double-curtain curtain detects the first location confirmation event, it will set P... A1 The preset fully open position is determined for curtain A; for curtain B, the double-curtain smart curtain, in the second movement phase, first determines the preset fully closed position and then the preset fully open position: curtain B moves first to the left end point of the guide rail (curtain B's second preset direction), if curtain B moves to P... B2 When the smart double-curtain curtain detects a second location confirmation event, it will set P... B2 Once the preset fully closed position of curtain B is determined, curtain B moves to the right end of the guide rail (curtain B's first preset direction). If curtain B moves to P... B1 When the smart double-curtain curtain detects the first location confirmation event, it will set P... B1 The preset fully open position for curtain B is confirmed.

[0201] In this embodiment, the target device can first confirm the second preset position during the process of the controlled part moving in the opposite direction to the corresponding range endpoint, and then confirm the first preset position during the process of the controlled part moving in the direction of the corresponding range endpoint, thereby realizing the travel setting of the custom travel.

[0202] In an exemplary embodiment, the total travel range includes at least one range endpoint, each controlled part corresponds to one range endpoint, and each controlled part moves in the direction of its corresponding range endpoint during the first movement, that is, the first preset direction of the controlled part is the direction towards the corresponding range endpoint.

[0203] Step S1004 above controls each controlled part to move within the total stroke range, specifically including the following: when the stroke type is a custom stroke, control each controlled part to move towards its corresponding range endpoint until each controlled part reaches its corresponding range endpoint, thereby obtaining the limit position of each controlled part.

[0204] Specifically, when the travel type is a custom travel, the target device controls each controlled part to move in the first movement stage: the target device controls each controlled part to move in the direction of its corresponding range endpoint until each controlled part reaches its corresponding range endpoint. The target device then determines the position of each controlled part when it reaches its corresponding range endpoint as the limit position of each controlled part.

[0205] like Figure 13As shown, step S1006 above, which obtains the travel setting information of each controlled part based on the preset position of each controlled part, specifically includes the following steps:

[0206] Step S1302: When the stroke type is a custom stroke, the distance between the first preset position and the second preset position of each controlled part is determined as the preset stroke length of each controlled part.

[0207] Step S1304: Determine the position offset information of each controlled part based on the preset position and the limit position of each controlled part.

[0208] Step S1306: The preset stroke length of each controlled part and the position offset information of each controlled part are determined as the stroke setting information of each controlled part.

[0209] The position offset information includes at least first position offset information and / or second position offset information; the first position offset information is used to characterize the distance between the first preset position of the controlled part and the limit position of the controlled part; the second position offset information is used to characterize the distance between the second preset position of the controlled part and the limit position of the controlled part.

[0210] Specifically, when the travel type is a custom travel, the target device needs to record the preset travel using information such as the preset travel length, the first preset position, and the second preset position. Therefore, for each controlled part, the target device calculates the distance between the first preset position and the second preset position of the controlled part to obtain the preset travel length of the controlled part; then, the target device calculates the distance between the limit position of the controlled part and the first preset position, and / or the distance between the limit position of the controlled part and the second preset position, to obtain the first position offset information and / or the second position offset information of the controlled part; finally, the target device determines the preset travel length of the controlled part, as well as the first position offset information and / or the second position offset information, as the travel setting information of the controlled part.

[0211] Taking double-curtain smart curtains as an example, please refer to... Figure 7 Assuming a double-curtain smart curtain has curtain A and curtain B, and the guide rail is 200cm long, with the left end of the guide rail as the reference end, then the limiting position P of curtain A is... A =0, the limiting position P of curtain B B =200cm, the preset fully open position of curtain A (the first preset position of curtain A) is P. A1 =50cm, the preset fully closed position of curtain A (the second preset position of curtain A) is P. A2 =120cm, the preset fully open position of curtain B (the first preset position of curtain B) is P. B1=180m, the preset fully closed position of curtain B (the second preset position of curtain B) is P. B2 =140m. Therefore, for curtain A, the calculated limit position P of the double-curtain smart curtain is... A The preset fully open position is P A1 The distance between them gives the first position offset information D of curtain A. A1 D A1 =|P A -P A1 |=|0-50cm|=50cm, calculate the limit position P. A The preset fully closed position is P A2 The distance between them is used to obtain the second position offset information D of curtain A. A2 D A2 =|P A -P A2 |=|0-120cm|=120cm, calculate the preset fully open position as P. A1 The preset fully closed position is P A2 The distance between them gives the preset travel length L of curtain A. A L A =|P A1 -P A2 |=|50cm-120cm|=70cm, thus obtaining the travel setting information for curtain A; for curtain B, the double-curtain smart curtain calculates the limit position P. B The preset fully open position is P B1 The distance between them is used to obtain the first position offset information D of curtain B. B1 D B1 =|P B -P B1 |=|200cm-180cm|=20cm, calculate the limiting position P. B The preset fully closed position is P B2 The distance between them is used to obtain the second position offset information D of curtain B. B2 D B2 =|P B -P B2 |=|200cm-140cm|=60cm, calculate the preset fully open position as P. B1 The preset fully closed position is P B2 The distance between them gives the preset travel length L of curtain B. B L B =|P B1 -P B2 |=|180cm-140cm|=40cm, thus obtaining the travel setting information for curtain B.

[0212] In this embodiment, the preset stroke length and position offset information of the controlled part of the target device are determined as the stroke setting information of the controlled part. This makes it easy to quickly determine the calibrated position of the controlled part based on the preset stroke length and position offset information when the target device has a stroke error, thereby realizing the stroke calibration of the target device.

[0213] In an exemplary embodiment, when the travel type is a custom travel, the second movement phase is achieved by pulling each controlled part.

[0214] Specifically, when the travel type is a custom travel, the second movement stage of each controlled part is achieved by the user manually pulling each controlled part; taking smart curtains as an example, the second movement stage of the curtain is achieved by the user pulling the curtain.

[0215] In this embodiment, the second movement stage is achieved by the user pulling the controlled part, which makes it easy to set a custom travel path according to the user's actual needs.

[0216] In an exemplary embodiment, the total travel range includes at least one range endpoint, and each controlled part corresponds to one range endpoint. Each controlled part moves in the direction of its corresponding range endpoint in the first movement, and each controlled part moves in the opposite direction to its corresponding range endpoint in the second movement. That is, the first preset direction of the controlled part is the direction towards the corresponding range endpoint, and the second preset direction of the controlled part is the direction opposite to the corresponding range endpoint.

[0217] The trip type includes at least the default trip; under the default trip, the sum of the preset trip lengths in the trip setting information of each controlled part is equal to the range length of the total trip range, and the preset trips corresponding to the trip setting information of each controlled part are symmetrical about the range center of the total trip range.

[0218] In practical applications, under the default travel range, the first preset position of the controlled part is the range endpoint corresponding to the controlled part, that is, the limit position of the controlled part, and the second preset position of the controlled part is the range center of the total travel range.

[0219] like Figure 14 As shown, in step S1004 above, controlling each controlled part to move within the total stroke range, and determining the preset position of each controlled part during the movement of each controlled part, specifically includes the following steps:

[0220] Step S1402: Control each controlled part to move towards its corresponding range endpoint until each controlled part reaches its corresponding range endpoint. The position of each controlled part when it reaches its corresponding range endpoint is determined as the first preset position of each controlled part.

[0221] Step S1404: Control each controlled part to move simultaneously in the opposite direction to its corresponding range endpoint until each controlled part collides with each other. The position of each controlled part when it collides with each other is determined as the second preset position of each controlled part.

[0222] Specifically, when the travel type is the default travel, since the first preset position of the controlled part is the endpoint of the range corresponding to the controlled part, and the second preset position of the controlled part is the center of the range, the target device first controls each controlled part to move in the first movement stage: each controlled part of the target device moves towards its corresponding endpoint (i.e., moves along the first preset direction) until each controlled part collides with the limit member at the corresponding endpoint. The target device confirms the position of each controlled part when it reaches its corresponding endpoint and confirms the position of each controlled part when it collides with the corresponding limit member as the first preset position of the controlled part. Since the range length of different total travel ranges is different, the target device generally does not record the position of the center of the range. Therefore, the target device controls each controlled part to move in the second movement stage: the target device controls each controlled part to move simultaneously in the opposite direction to its corresponding endpoint (i.e., moves along the second preset direction) until each controlled part collides with each other. The position of each controlled part when it collides with each other is determined as the second preset position of each controlled part.

[0223] Taking double-curtain smart curtains as an example, such as Figure 15 The diagram shows the default travel setting of a double-curtain smart curtain. Assuming the double-curtain smart curtain has curtain A and curtain B, the smart curtain controls curtain A to move towards the left end of the guide rail (curtain A's first preset direction) and curtain B to move towards the right end of the guide rail (curtain B's first preset direction), until curtain A collides with the limiting piece at the left end of the guide rail, and curtain B collides with the limiting piece at the right end of the guide rail. Assuming curtain A's position on the guide rail when it collides with the limiting piece is P... A1 When curtain B collides with the limiting component, its position on the guide rail is P. B1 Then, the preset fully open position of curtain A (the first preset position of curtain A) is determined to be P. A1 The preset fully open position of curtain B (the first preset position of curtain B) is P. B1 Then, the smart double-curtain curtain controls curtains A and B to move simultaneously to the center of the guide rail (in the second preset direction) until curtains A and B collide. Assuming that curtains A and B are at position P on the track when they collide, then curtain A will be moved to its preset fully closed position (curtain A's second preset position) P. A2 And the preset fully closed position of curtain B (the second preset position of curtain B) P B2 All are denoted as position P.

[0224] In practical applications, since the second preset positions of each controlled part coincide under the default travel, the target device can use the second preset position of the first controlled part as the second preset position of the second controlled part.

[0225] In this embodiment, the target device determines the position of each controlled part when it reaches the corresponding endpoint range as the first preset position of each controlled part, and determines the position of each controlled part when it collides with each other as the second preset position of each controlled part, thereby enabling the travel setting of the default travel.

[0226] In one exemplary embodiment, such as Figure 16 As shown, step S1006 above, which obtains the travel setting information of each controlled part based on the preset position of each controlled part, specifically includes the following steps:

[0227] Step S1602: The distance between the first preset position and the second preset position of the target controlled part in each controlled part is determined as the preset stroke length of each controlled part.

[0228] Step S1604: Determine the preset stroke length of each controlled part as the stroke setting information of each controlled part.

[0229] The controlled part of the target is any one of the controlled parts.

[0230] Specifically, when the travel type is the default travel, the target device can record the preset travel length. Therefore, the target device calculates the distance between the first preset position and the second preset position of any controlled part to obtain the preset travel length of that controlled part. Since the first preset position of each controlled part is its corresponding range endpoint and the second preset position of each controlled part is the range center, it indicates that the preset travel length of each controlled part is the same. Therefore, based on the preset travel length of any controlled part, the preset travel length of the other controlled parts can also be obtained. Then, the target device determines the preset travel length of each controlled part as the travel setting information for each controlled part.

[0231] Taking double-curtain smart curtains as an example, please refer to... Figure 15 Assuming a double-curtain smart curtain has curtain A and curtain B, and the guide rail is 200cm long, with the left end of the guide rail as the reference end, then the preset fully open position of curtain A (curtain A's first preset position) P A1 =0, the preset fully closed position of curtain A (the second preset position of curtain A) P A2 =100cm, the preset fully open position of curtain B (the first preset position of curtain B) P B1 =200cm, the preset fully closed position of curtain B (the second preset position of curtain B) PB2 =100cm. Therefore, the smart double-curtain calculation will set the preset fully open position P of curtain A. A1 With curtain A at its preset fully closed position P A2 The distance between them gives the preset travel length L of curtain A. A L A =|P A1 -P A2 |=|0-100cm|=100cm, thus obtaining the preset travel length L of curtain B. B =L A The preset travel length L of the aforementioned curtain A. A As the travel setting information for curtain A, the preset travel length L of curtain B mentioned above is used. B This refers to the travel setting information for Curtain B.

[0232] In this embodiment, the preset stroke length of the controlled part of the target device is determined as the stroke setting information of the controlled part. This makes it easy to quickly determine the calibrated position of the controlled part based on the preset stroke length when a stroke error occurs in the target device, thereby realizing the stroke calibration of the target device.

[0233] In an exemplary embodiment, before determining the trip type corresponding to the trip setting instruction upon receiving the trip setting instruction for the target device in step S1002, the method further includes the following: displaying a control interface for the target device through a terminal device associated with the target device; and receiving the trip setting instruction issued by the terminal.

[0234] The control interface displays control options for the target device, including at least the travel setting option.

[0235] A terminal device is used to issue a trip setting command to a target device in response to a selection operation for trip setting options.

[0236] Specifically, when a user needs to configure the schedule of a target device, they can access the target device's control interface on a terminal device associated with the target device, and then select the schedule configuration option in the control interface. When the target device detects that the user has selected the schedule configuration option, it will send a schedule configuration command to the target device. The target device will then accept the schedule configuration command sent by the terminal device and enter the schedule configuration process.

[0237] Taking double-curtain smart curtains as an example, please refer to... Figure 9(a) The control interface has multiple control options for the double-curtain smart curtains, including a travel setting option. When the user selects the travel setting option, the double-curtain smart curtains enter the travel setting process. Furthermore, after selecting the travel setting option, the user can further choose whether to set a custom travel or a default travel. If a custom travel is selected, the process will proceed as follows... Figure 11 The location confirmation screen is shown.

[0238] In this embodiment, the target device can enter the trip setting process through the control interface displayed on the device terminal when the user triggers the trip setting.

[0239] To more clearly illustrate the travel calibration method and travel setting method of the target device provided in the embodiments of this application, a specific embodiment is used below to specifically describe the travel calibration method and travel setting method of the target device. However, it should be understood that the embodiments of this application are not limited thereto. In one exemplary embodiment, this application also provides a travel setting and travel calibration method for a one-sided controlled curtain, which is applied to... Figure 17 The smart home system shown includes a one-sided control curtain and a terminal device, specifically including the following:

[0240] 1. One-sided control curtains.

[0241] The single-sided control curtain includes two curtain panels, two motors, two trolleys, and a guide rail. Each curtain panel corresponds to one motor and one trolley. For each curtain panel, one side of the curtain panel is located on the guide rail. One end of this side is the first curtain panel end, and the other end is the second curtain panel end. The first curtain panel end is located at the end point of the guide rail, and the second curtain panel end is moved onto the guide rail via the corresponding trolley. The motor corresponding to the curtain panel is used to drive the corresponding trolley to move on the guide rail, thereby realizing the movement of the curtain panel on the guide rail. Both ends of the guide rail include limiting points.

[0242] 2. Itinerary settings.

[0243] The travel of a single-sided control curtain includes a default travel and a custom travel. The default travel means that the travel of the two curtain panels perfectly divides the travel of the guide rail; that is, the sum of the preset travel lengths of the two curtain panels equals the length of the guide rail, and the preset travel lengths of the two curtain panels are symmetrical about the midpoint of the guide rail. In this case, the preset travel lengths of the two curtain panels are equal. Custom travel includes the following four cases: ① The sum of the preset travel lengths of each curtain panel is less than the range length, and the preset travel lengths of each curtain panel are asymmetrical about the center of the range. In this case, the preset travel lengths of the curtain panels can be equal or unequal; ② The sum of the preset travel lengths of each curtain panel is less than the range length, and the preset travel lengths of each curtain panel are symmetrical about the center of the range. In this case, the preset travel lengths of the curtain panels are equal; ③ The sum of the preset travel lengths of each curtain panel equals the range length, and the preset travel lengths of each curtain panel are asymmetrical about the center of the range. In this case, the preset travel lengths of the curtain panels are unequal; ④ The sum of the preset travel lengths of each curtain panel equals the range length, and the preset travel lengths of each curtain panel are symmetrical about the center of the range. In this case, the preset travel lengths of the curtain panels are equal.

[0244] (1) Default travel settings. Users can access the default travel settings by controlling the single-sided curtain via their terminal device. For example... Figure 18 The following is a flowchart illustrating the process of setting up a default trip:

[0245] In step S1802, two motors control two trolleys to move to both ends of the guide rail until both trolleys collide with the limit points at both ends of the guide rail. The position of the trolley corresponding to each curtain when it collides with the limit point is determined as the fully open position of each curtain.

[0246] In step S1804, two motors control two trolleys to move simultaneously to the middle of the guide rail until the two trolleys collide with each other. The position of the trolleys corresponding to each curtain when they collide with each other is determined as the fully closed position of each curtain.

[0247] Step S1806: For each curtain, record the distance between the fully open position and the fully closed position of the curtain as the travel length of the curtain, thus completing the travel setting.

[0248] Figure 19This is a schematic diagram of the default travel setting for steps S1802 to S1806; the motor of curtain A controls the trolley of curtain A to move to the left end of the guide rail, causing the trolley of curtain A to collide with the limit point of the left end of the guide rail. The position of the trolley of curtain A when it collides with the limit point is determined as the fully open position of curtain A. The motor of curtain B controls the trolley of curtain B to move to the right end of the guide rail, causing the trolley of curtain B to collide with the limit point of the right end of the guide rail. The position of the trolley of curtain B when it collides with the limit point is determined as the fully open position of curtain B. Position; The motors of curtain A and curtain B control the trolleys of curtain A and curtain B to move simultaneously to the center of the guide rail, causing the trolleys of curtain A and curtain B to collide with each other. The positions of the trolleys of curtain A and curtain B at the moment of collision are respectively determined as the fully closed positions of curtain A and curtain B. The motor of curtain A calculates the travel length of curtain A based on the fully open and fully closed positions of curtain A, and the motor of curtain B calculates the travel length of curtain B based on the fully open and fully closed positions of curtain B.

[0249] (2) Customizable travel settings. Users can access customizable travel settings by controlling the single-sided curtain via a terminal device. For example... Figure 20 The following is a flowchart illustrating the process of setting up a custom itinerary:

[0250] In step S2002, two motors control two trolleys to move to both ends of the guide rail until both trolleys collide with the limit points at both ends of the guide rail. The position of the trolley corresponding to each curtain when it collides with the limit point is determined as the limit position of each curtain.

[0251] In step S2004, the user pulls the curtain towards the center, causing the trolley to move to the user's desired fully closed position.

[0252] In step S2006, the user pulls the curtain to both sides, causing the trolley to move to the fully open position as the user expects.

[0253] Step S2008: For each curtain, record the distance between the fully open position and the fully closed position of the curtain as the travel length of the curtain, and record the distance between the fully open position and the limit position of the curtain as the opening offset information of the curtain, thus completing the travel setting.

[0254] Figure 21This is a schematic diagram of the travel settings for the custom travel in steps S2002 to S2008; the motor of curtain A controls the trolley of curtain A to move to the left end of the guide rail, causing the trolley of curtain A to collide with the limit point of the left end of the guide rail. The position of the trolley of curtain A when it collides with the limit point is determined as the limit position of curtain A. The motor of curtain B controls the trolley of curtain B to move to the right end of the guide rail, causing the trolley of curtain B to collide with the limit point of the right end of the guide rail. The position of the trolley of curtain B when it collides with the limit point is determined as the limit position of curtain B. The user pulls curtains A and B towards the middle, causing the trolleys of curtains A and B to reach the user's expected fully closed position. When the motor of curtain A moves the trolley of curtain A to the user's expected fully closed position, the position of the trolley of curtain A is determined as the fully closed position of curtain A. When the motor of curtain B moves the trolley of curtain B to the user's expected fully closed position... The position of the trolley of curtain B is determined as the fully closed position of curtain B; the user pulls curtains A and B to the sides, causing the trolleys of curtains A and B to reach the user's expected fully open position. When the motor of curtain A moves the trolley of curtain A to the user's expected fully open position, the position of the trolley of curtain A is determined as the fully open position of curtain A. When the motor of curtain B moves the trolley of curtain B to the user's expected fully open position, the position of the trolley of curtain B is determined as the fully open position of curtain B. The motor of curtain A calculates the travel length of curtain A based on the fully open and fully closed positions, and records the distance between the fully open position and the limit position of curtain A as the opening offset information of curtain A. The motor of curtain B calculates the travel length of curtain B based on the fully open and fully closed positions, and records the distance between the fully open position and the limit position of curtain B as the opening offset information of curtain B.

[0255] In another embodiment, the user can first confirm the fully open position and then the fully closed position while pulling the curtain towards the middle. That is, the user pulls curtain A and curtain B towards the middle so that the trolleys of curtain A and curtain B reach the user's expected fully open position; the user continues to pull curtain A and curtain B towards the middle so that the trolleys of curtain A and curtain B reach the user's expected fully closed position.

[0256] In another embodiment, in addition to recording the distance between the fully open position and the limit position as open offset information, the motor can also record the distance between the fully closed position and the limit position as closed offset information.

[0257] 3. Travel calibration.

[0258] (1) Default travel calibration. Users control the single-sided curtain via terminal equipment to enter the default travel calibration. For example... Figure 22 The following is a flowchart illustrating the process of trip calibration for the default trip:

[0259] In step S2202, two motors control two trolleys to move to both ends of the guide rail until both trolleys collide with the limit points at both ends of the guide rail. The position of the trolley corresponding to each curtain when it collides with the limit point is determined as the fully open position of each curtain.

[0260] Step S2204: For each curtain, determine the fully closed position of the curtain based on the fully open position of the curtain and the recorded travel length of the curtain, and complete the travel calibration.

[0261] Figure 23 This is a schematic diagram of the stroke calibration for the default stroke in steps S2202 to S2204; the motor of curtain A controls the trolley of curtain A to move to the left end of the guide rail, so that the trolley of curtain A collides with the limit point of the left end of the guide rail. The position of the trolley of curtain A when it collides with the limit point is determined as the fully open position of curtain A. The motor of curtain B controls the trolley of curtain B to move to the right end of the guide rail, so that the trolley of curtain B collides with the limit point of the right end of the guide rail. The position of the trolley of curtain B when it collides with the limit point is determined as the fully open position of curtain B. The motor of curtain A re-determines the fully closed position of curtain A based on the fully open position of curtain A and the recorded stroke length of curtain A. The motor of curtain B re-determines the fully closed position of curtain B based on the fully open position of curtain B and the recorded stroke length of curtain B.

[0262] (2) Custom travel calibration. Users can control the single-sided curtain via a terminal device to enter the custom travel calibration. For example... Figure 24 The following is a flowchart illustrating the process of trip calibration for a custom trip:

[0263] In step S2402, two motors control two trolleys to move to both ends of the guide rail until both trolleys collide with the limit points at both ends of the guide rail. The position of the trolley corresponding to each curtain when it collides with the limit point is determined as the limit position of each curtain.

[0264] Step S2404: For each curtain, determine the fully open position of the curtain based on the curtain's limiting position and the recorded opening offset information of the curtain.

[0265] Step S2406: For each curtain, determine the fully closed position of the curtain based on the fully open position of the curtain and the recorded travel length of the curtain, and complete the travel calibration.

[0266] Figure 25This is a schematic diagram of the travel calibration for the custom travel in steps S2402 to S2406; the motor of curtain A controls the trolley of curtain A to move to the left end of the guide rail, so that the trolley of curtain A collides with the limit point of the left end of the guide rail. The position of the trolley of curtain A when it collides with the limit point is determined as the limit position of curtain A. The motor of curtain B controls the trolley of curtain B to move to the right end of the guide rail, so that the trolley of curtain B collides with the limit point of the right end of the guide rail. The position of the trolley of curtain B when it collides with the limit point is determined as the limit position of curtain B; A The motor of curtain A determines the fully open position of curtain A based on the limit position of curtain A and the recorded opening offset information of curtain A. The motor of curtain B determines the fully open position of curtain B based on the limit position of curtain B and the recorded opening offset information of curtain B. The motor of curtain A determines the fully closed position of curtain A based on the fully open position of curtain A and the recorded corresponding travel length of curtain A. The motor of curtain B determines the fully closed position of curtain B based on the fully open position of curtain B and the recorded corresponding travel length of curtain B.

[0267] In another embodiment, the motor also records closing offset information. Therefore, the motor of curtain A can also redetermine the fully closed position of curtain A based on the limit position of curtain A and the recorded closing offset information of curtain A. The motor of curtain B can redetermine the fully closed position of curtain B based on the limit position of curtain B and the recorded closing offset information of curtain B. The motor of curtain A can redetermine the fully open position of curtain A based on the fully closed position of curtain A and the recorded corresponding travel length of curtain A. The motor of curtain B can redetermine the fully open position of curtain B based on the fully closed position of curtain B and the recorded corresponding travel length of curtain B.

[0268] Alternatively, the motor of curtain A determines the fully open position of curtain A based on the limit position of curtain A and the recorded opening offset information of curtain A, and also determines the fully closed position of curtain A based on the limit position of curtain A and the recorded closing offset information of curtain A; the motor of curtain B determines the fully open position of curtain B based on the limit position of curtain B and the recorded opening offset information of curtain B, and also determines the fully closed position of curtain B based on the limit position of curtain B and the recorded closing offset information of curtain B.

[0269] In this embodiment, firstly, the two motors of the single-sided control curtain motor control two curtain panels respectively. The stroke of each motor can be set and calibrated independently, which makes the stroke more diverse and flexible. Secondly, for the single-sided control motor, the operation of the two trolleys is not consistent, as they are controlled by different motors, unlike the symmetrical movement controlled by a single motor. In addition to collisions, the trolleys may also push each other. Furthermore, for the customized stroke, the total stroke length of each curtain panel may be less than the guide rail length. This may cause the trolleys to fail to collide with the two ends of the guide rail even if the stroke is offset. Previous stroke calibration experience cannot cover the above problems. However, in this embodiment, by the collision between the trolley and the physical limit point, as well as the collision between the trolleys, the key position of the stroke can be quickly determined, and the normal stroke can be easily restored, avoiding complex sensor detection and complex algorithm calculations.

[0270] In one exemplary embodiment, a method for travel calibration and travel setting of the target device provided in this application is described using a single-curtain smart curtain.

[0271] A single-curtain smart curtain (target device) includes a curtain (controlled part), which corresponds to a motor and a trolley. Assume that the first curtain end is located at the left end of the guide rail, and the second curtain end is located at the right end of the guide rail via the trolley. The motor corresponding to the curtain is used to drive the trolley corresponding to the curtain to move on the guide rail. The left and right ends of the guide rail are both provided with limit points.

[0272] Therefore, when setting the default travel distance, the motor first controls the trolley to move to the left end of the guide rail (first preset direction) until the trolley collides with the limit point of the left end of the guide rail, and the position of the trolley at this time is confirmed as the fully open position of the curtain (first preset position); then, the motor controls the trolley to move to the right end of the guide rail (second preset direction) until the trolley collides with the limit point of the right end of the guide rail, and the position of the trolley at this time is confirmed as the fully closed position of the curtain (second preset position); finally, the motor calculates the distance between the fully open position and the fully closed position as the preset travel length of the curtain.

[0273] When setting a custom travel distance, the motor first controls the trolley to move to the left end of the guide rail until the trolley collides with the limit point of the left end of the guide rail. The position of the trolley at this point is confirmed as the limit position of the curtain. Then, the user manually pulls the curtain, causing the trolley to move to the right end of the guide rail and reach the user's expected fully open or fully closed position, thus obtaining the fully open and fully closed positions of the curtain. Next, the motor calculates the distance between the fully open and fully closed positions as the preset travel length of the curtain, and calculates the distance between the fully open position and the limit position, and the distance between the fully closed position and the limit position, as the position offset information of the curtain.

[0274] During the default stroke calibration, the motor first controls the trolley to move to the left end point of the guide rail (first preset direction) until the trolley collides with the limit point of the left end point of the guide rail, calibrating the position of the trolley at this time to the fully open position of the curtain; then, the motor combines the fully open position with the recorded preset stroke length to reconfirm the fully closed position of the curtain.

[0275] During custom stroke calibration, the motor first controls the trolley to move to the left end of the guide rail (in the first preset direction) until the trolley collides with the limit point of the left end of the guide rail, calibrating the position of the trolley at this point to the limit position of the curtain. Then, the motor can perform stroke calibration using any of the following three methods: ① First, based on the limit position and the recorded distance between the fully open position and the limit position, redetermine the fully open position, and then redetermine the fully closed position of the curtain based on the fully open position and the recorded preset stroke length; ② First, based on the limit position and the recorded distance between the fully closed position and the limit position, redetermine the fully closed position, and then redetermine the fully open position of the curtain based on the fully closed position and the recorded preset stroke length; ③ Based on the limit position and the recorded distance between the fully open position and the limit position, redetermine the fully open position, and simultaneously, based on the limit position and the recorded distance between the fully closed position and the limit position, redetermine the fully closed position.

[0276] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0277] Based on the same inventive concept, this application also provides a stroke calibration device for implementing the stroke calibration method of the target device described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more embodiments of the stroke calibration device for the target device provided below can be found in the limitations of the stroke calibration method for the target device described above, and will not be repeated here.

[0278] In one exemplary embodiment, such as Figure 26As shown, a travel calibration device for a target device is provided, comprising: a type determination module 2602 and a travel calibration module 2604, wherein:

[0279] The type determination module 2602 is used to determine the current travel type of the target device when a travel error occurs in the target device; the target device includes at least one controlled part that moves within the total travel range.

[0280] The stroke calibration module 2604 is used to control each controlled part to move in its corresponding first preset direction according to the stroke calibration strategy corresponding to the stroke type, and to determine the calibrated stroke of each controlled part according to the position of each controlled part during the movement and the stroke setting information of each controlled part.

[0281] In an exemplary embodiment, the total travel range includes at least one range endpoint, each controlled portion corresponds to one range endpoint, and the first preset direction corresponding to the controlled portion is the direction toward the range endpoint corresponding to the controlled portion.

[0282] The stroke calibration module 2604 is also used to control each controlled part to move towards its corresponding range endpoint until each controlled part reaches its corresponding range endpoint, thereby obtaining the limit position of each controlled part; and to determine the calibrated position of each controlled part based on the limit position and stroke setting information of each controlled part; the calibrated position includes at least a first calibrated position and a second calibrated position; and to obtain the calibrated stroke of each controlled part based on the first calibrated position and the second calibrated position of each controlled part.

[0283] In an exemplary embodiment, the trip type includes at least a custom trip; under a custom trip, the sum of the preset trip lengths in the trip setting information of each controlled part is less than or equal to the range length of the total trip range, and the preset trips corresponding to the trip setting information of each controlled part are either symmetrical or asymmetrical about the range center of the total trip range.

[0284] The stroke calibration module 2604 is further configured to, when the stroke type is a custom stroke, determine the calibrated position of each controlled part based on the limit position of each controlled part and the position offset information in the stroke setting information of each controlled part; wherein, the position offset information includes at least first position offset information and / or second position offset information; the first position offset information is used to characterize the distance between the first preset position corresponding to the stroke setting information of the controlled part and the limit position of the controlled part; the second position offset information is used to characterize the distance between the second preset position corresponding to the stroke setting information of the controlled part and the limit position of the controlled part.

[0285] In an exemplary embodiment, the stroke calibration module 2604 is further configured to determine a first calibrated position of each controlled part based on the limit position of each controlled part and the first position offset information of each controlled part; and to determine a second calibrated position of each controlled part based on the first calibrated position of each controlled part and the preset stroke length of each controlled part.

[0286] or,

[0287] It is also used to determine the second calibrated position of each controlled part based on the limit position of each controlled part and the second position offset information of each controlled part; and to determine the first calibrated position of each controlled part based on the second calibrated position of each controlled part and the preset stroke length of each controlled part.

[0288] or,

[0289] It is also used to determine the first calibrated position of each controlled part based on the limit position of each controlled part and the first position offset information of each controlled part; and to determine the second calibrated position of each controlled part based on the limit position of each controlled part and the second position offset information of each controlled part.

[0290] In an exemplary embodiment, the trip type includes at least a default trip; under the default trip, the sum of the preset trip lengths in the trip setting information of each controlled part is equal to the range length of the total trip range, and the preset trips corresponding to the trip setting information of each controlled part are symmetrical about the range center of the total trip range.

[0291] The stroke calibration module 2604 is also used to determine the limit position of each controlled part as the first calibrated position of each controlled part when the stroke type is the default stroke; and to determine the second calibrated position of each controlled part based on the first calibrated position of each controlled part and the preset stroke length of each controlled part.

[0292] In an exemplary embodiment, the type determination module 2602 is further configured to display a control interface for the target device via a terminal device associated with the target device; the control interface displays control options for the target device, the control options including at least a travel calibration option; the terminal device is configured to issue a travel calibration command in response to a selection operation for the travel calibration option; receive the travel calibration command issued by the terminal device, and determine that a travel error has occurred in the target device in response to the travel calibration command.

[0293] Based on the same inventive concept, this application also provides a travel setting device for a target device to implement the travel setting method of the target device described above. The solution provided by this device is similar to the solution described in the above method. Therefore, the specific limitations of one or more travel setting device embodiments of the target device provided below can be found in the limitations of the travel setting method of the target device above, and will not be repeated here.

[0294] In one exemplary embodiment, such as Figure 27 As shown, a travel setting device for a target device is provided, including: a type determination module 2702, a position preset module 2704, and an information determination module 2706, wherein:

[0295] The type determination module 2702 is used to determine the stroke type corresponding to the stroke setting instruction when a stroke setting instruction for a target device is received; the target device includes at least one controlled part, which moves within the total stroke range.

[0296] The position preset module 2704 is used to control each controlled part to move within the total stroke range according to the stroke setting strategy corresponding to the stroke type, and to determine the preset position of each controlled part during the movement of each controlled part; the preset position includes at least a first preset position and a second preset position.

[0297] The information determination module 2706 is used to obtain the travel setting information of each controlled part according to the preset position of each controlled part; the travel setting information is used to perform the travel calibration method of the target device in any embodiment.

[0298] In an exemplary embodiment, the movement process of each controlled part includes at least a first movement stage and a second movement stage performed sequentially; the first movement stage includes at least a first movement, and the second movement stage includes at least a second movement; each controlled part moves in its corresponding first preset direction in the first movement, and each controlled part moves in its corresponding second preset direction in the second movement.

[0299] In an exemplary embodiment, the trip type includes at least a custom trip; under a custom trip, the sum of the preset trip lengths in the trip setting information of each controlled part is less than or equal to the range length of the total trip range, and the preset trips corresponding to the trip setting information of each controlled part are either symmetrical or asymmetrical about the range center of the total trip range.

[0300] The position preset module 2704 is also used to determine the preset position of each controlled part according to the event type of the position confirmation event and the position of each controlled part when the position confirmation event occurs during the second movement stage, if a position confirmation event is detected.

[0301] In an exemplary embodiment, the location preset module 2704 is further configured to display a location confirmation interface for the target device via a terminal device associated with the target device; the location confirmation interface displays location confirmation options for the target device, the location confirmation options include at least a first location confirmation option and a second location confirmation option; the event types include at least a first location confirmation event in which the first location confirmation option is confirmed and a second location confirmation event in which the second location confirmation option is confirmed.

[0302] The position preset module 2704 is also used in the second movement phase to determine the position of each controlled part at the time of the position confirmation event as the first preset position or the second preset position of each controlled part, according to the event type of the position confirmation event, if a position confirmation event is detected.

[0303] In an exemplary embodiment, the total travel range includes at least one range endpoint, each controlled part corresponds to one range endpoint, each controlled part moves in the direction of its corresponding range endpoint in a first movement, and each controlled part moves in the opposite direction to its corresponding range endpoint in a second movement.

[0304] The position preset module 2704 is further configured to, during the process of each controlled part moving in the opposite direction to its corresponding range endpoint, if a first position confirmation event is detected, determine the position of each controlled part at the time of the first position confirmation event as the first preset position of each controlled part; and during the process of each controlled part moving in the opposite direction to its corresponding range endpoint, if a second position confirmation event is detected, determine the position of each controlled part at the time of the second position confirmation event as the second preset position of each controlled part.

[0305] In an exemplary embodiment, the second movement phase includes at least a second movement and a third movement performed sequentially; the total travel range includes at least one range endpoint, each controlled part corresponds to one range endpoint, each controlled part moves in the direction opposite to its corresponding range endpoint in the second movement, and each controlled part moves in the direction of its corresponding range endpoint in the third movement.

[0306] The position preset module 2704 is further configured to, during the process of each controlled part moving in the opposite direction to its corresponding range endpoint, if a second position confirmation event is detected, determine the position of each controlled part at the time of the second position confirmation event as the second preset position of each controlled part; and during the process of each controlled part moving in the direction to its corresponding range endpoint, if a first position confirmation event is detected, determine the position of each controlled part at the time of the first position confirmation event as the first preset position of each controlled part.

[0307] In an exemplary embodiment, the total travel range includes at least one range endpoint, each controlled part corresponds to one range endpoint, and each controlled part moves in the direction of its corresponding range endpoint during the first movement.

[0308] The position preset module 2704 is also used to control each controlled part to move towards its corresponding range endpoint when the stroke type is a custom stroke, until each controlled part reaches its corresponding range endpoint, and obtain the limit position of each controlled part.

[0309] The information determination module 2706 is further configured to, when the stroke type is a custom stroke, determine the distance between the first preset position and the second preset position of each controlled part as the preset stroke length of each controlled part; determine the position offset information of each controlled part based on the preset position and the limit position of each controlled part; and determine the stroke setting information of each controlled part based on the preset stroke length and the position offset information of each controlled part; wherein the position offset information includes at least first position offset information and / or second position offset information; the first position offset information is used to characterize the distance between the first preset position and the limit position of the controlled part; and the second position offset information is used to characterize the distance between the second preset position and the limit position of the controlled part.

[0310] In one exemplary embodiment, when the travel type is a custom travel, the second movement phase is achieved by pulling each controlled part.

[0311] In an exemplary embodiment, the total travel range includes at least one range endpoint, each controlled part corresponds to one range endpoint, each controlled part moves in the direction of its corresponding range endpoint in a first movement, and each controlled part moves in the opposite direction to its corresponding range endpoint in a second movement; the travel type includes at least a default travel; under the default travel, the sum of the preset travel lengths in the travel setting information of each controlled part is equal to the range length of the total travel range, and the preset travel corresponding to the travel setting information of each controlled part is symmetrical about the range center of the total travel range.

[0312] The position preset module 2704 is also used to control each controlled part to move towards its corresponding range endpoint when the stroke type is the default stroke, until each controlled part reaches its corresponding range endpoint, and to determine the position of each controlled part when it reaches its corresponding range endpoint as the first preset position of each controlled part; and to control each controlled part to move simultaneously in the opposite direction to its corresponding range endpoint, until each controlled part collides with each other, and to determine the position of each controlled part when it collides with each other as the second preset position of each controlled part.

[0313] In an exemplary embodiment, the information determination module 2706 is further configured to, when the trip type is a default trip, determine the distance between the first preset position and the second preset position of the target controlled part in each controlled part as the preset trip length of each controlled part; the target controlled part is any one of the controlled parts; and determine the preset trip length of each controlled part as the trip setting information of each controlled part.

[0314] In an exemplary embodiment, the type determination module 2702 is further configured to display a control interface for the target device via a terminal device associated with the target device; the control interface displays control options for the target device, the control options including at least trip setting options; the terminal device is configured to issue a trip setting instruction in response to a selection operation for the trip setting options; and receive the trip setting instruction issued by the terminal.

[0315] The stroke calibration device and stroke setting modules of the target device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the electronic device in hardware form or independent of it, or stored in the memory of the electronic device in software form, so that the processor can call and execute the corresponding operations of each module.

[0316] Based on the same inventive concept, this application also provides a target device, which can be as follows: Figure 1 The smart devices in the smart home system shown can also be such as Figure 1 The smart home system shown includes gateways, servers, terminal devices, etc.; the specific limitations of one or more target device embodiments provided below can be found in the limitations of the travel calibration method for the target device above, and will not be repeated here.

[0317] In this embodiment, the target device includes at least one controlled part, and each controlled part moves on a guide rail.

[0318] The target device is used to implement the target device travel calibration method or the target device travel setting method in any of the above embodiments.

[0319] In specific applications, the target device is a smart curtain, and the controlled part includes the curtain fabric of the smart curtain. One side of the curtain fabric is set on the guide rail. One end of this side is the first curtain end, and the other end is the second curtain end. The first curtain end is set at the end point of the guide rail, and the second curtain end is movable on the guide rail. By moving the second curtain end on the guide rail, the curtain fabric can move on the guide rail. Smart curtains include single-curtain smart curtains and multi-curtain smart curtains.

[0320] In this embodiment, the target device includes at least one controlled part, each of which is capable of moving on a guide rail. Based on the movement of each controlled part on the guide rail, the target device can implement the stroke calibration method or the stroke setting method of the target device in any of the above embodiments.

[0321] In one exemplary embodiment, the target device further includes at least one drive element, the same number as the controlled portion.

[0322] Each driving component corresponds to a controlled part, and each driving component is used to drive the corresponding controlled part to move on the guide rail.

[0323] In practical applications, taking a double-curtain smart curtain as an example, the driving component includes a motor. A double-curtain smart curtain includes at least two curtains and two motors; each motor corresponds to one curtain and is used to drive the curtain to move on the guide rail.

[0324] In this embodiment, the target device also includes a driving component corresponding to each controlled part, and each driving component is used to drive the corresponding controlled part to move on the guide rail.

[0325] In one exemplary embodiment, the target device further includes at least one slider, the same number as the controlled portion.

[0326] Each slider corresponds to a controlled part, and each slider is used to slide to connect the corresponding controlled part to the guide rail, so that the corresponding controlled part can move on the guide rail.

[0327] The driving component corresponding to the controlled part drives the controlled part by driving the sliding component corresponding to the controlled part.

[0328] In practical applications, taking a double-curtain smart curtain as an example, the sliding component includes a trolley. The double-curtain smart curtain includes at least two curtains, two motors, and two trolleys. Each trolley corresponds to one curtain and is used to slide and connect the second curtain end of the curtain to the guide rail, so that the second curtain end of the curtain can move on the guide rail. The motor corresponding to each curtain is used to drive the trolley corresponding to the curtain to drive the curtain.

[0329] In this embodiment, the target device further includes a sliding member corresponding to each controlled part. Each sliding member is used to slide the controlled part and the guide rail, and each driving member is used to drive the movement of the sliding member.

[0330] In one exemplary embodiment, the guide rail also includes corresponding limiting members at both ends.

[0331] The guide rail includes two ends, each of which includes a limiting element.

[0332] In this embodiment, the guide rail has limiting members at both ends. Based on the limiting members, the movement of the controlled part can be restricted to not exceed the range of the guide rail.

[0333] In one exemplary embodiment, an electronic device is provided, which may be as follows: Figure 1 The internal structure diagram of the smart devices, gateways, servers, and terminal devices in the smart home system shown can be as follows: Figure 28 As shown, the electronic device includes a processor, memory, input / output interface, communication interface, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface and input device are connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a travel calibration method or a travel setting method for a target device. The input device can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the device's casing, or an external keyboard, touchpad, or mouse.

[0334] Those skilled in the art will understand that Figure 28 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0335] In one exemplary embodiment, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0336] In one exemplary embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above-described method embodiments.

[0337] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.

[0338] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0339] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0340] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for calibrating the stroke of a target device, characterized in that, The method includes: In the event of a travel error in the target device, the current travel type of the target device is determined; the target device includes at least one controlled part that moves within the total travel range; According to the stroke calibration strategy corresponding to the stroke type, each controlled part is controlled to move in its corresponding first preset direction. Based on the position of each controlled part during the movement and the stroke setting information of each controlled part, the calibrated stroke of each controlled part is determined.

2. The method according to claim 1, characterized in that, The total travel range includes at least one range endpoint, each controlled portion corresponds to one range endpoint, and the first preset direction corresponding to the controlled portion is the direction toward the range endpoint corresponding to the controlled portion; The control of each controlled part to move in its corresponding first preset direction, and the determination of the calibrated stroke of each controlled part based on the position of each controlled part during the movement and the stroke setting information of each controlled part, includes: Each controlled part is controlled to move towards its corresponding range endpoint until each controlled part reaches its corresponding range endpoint, thereby obtaining the limit position of each controlled part; Based on the limit position of each controlled part and the stroke setting information of each controlled part, the calibrated position of each controlled part is determined; the calibrated position includes at least a first calibrated position and a second calibrated position. The calibrated travel distance of each controlled part is obtained based on the first calibrated position and the second calibrated position of each controlled part.

3. The method according to claim 2, characterized in that, The trip type includes at least a custom trip; under the custom trip, the sum of the preset trip lengths in the trip setting information of each controlled part is less than or equal to the range length of the total trip range, and the preset trips corresponding to the trip setting information of each controlled part are either symmetrical or asymmetrical about the range center of the total trip range; Determining the calibrated position of each controlled part based on the limit position of each controlled part and the stroke setting information of each controlled part includes: When the travel type is the custom travel, the calibrated position of each controlled part is determined according to the limit position of each controlled part and the position offset information in the travel setting information of each controlled part; The position offset information includes at least first position offset information and / or second position offset information; the first position offset information is used to characterize the distance between the first preset position corresponding to the travel setting information of the controlled part and the limit position of the controlled part; the second position offset information is used to characterize the distance between the second preset position corresponding to the travel setting information of the controlled part and the limit position of the controlled part.

4. The method according to claim 3, characterized in that, Determining the calibrated position of each controlled part based on the limit position of each controlled part and the position offset information in the stroke setting information of each controlled part includes: The first calibrated position of each controlled part is determined based on the limiting position of each controlled part and the first position offset information of each controlled part; The second calibrated position of each controlled part is determined based on the first calibrated position of each controlled part and the preset stroke length of each controlled part; or, The second calibrated position of each controlled part is determined based on the limiting position of each controlled part and the second position offset information of each controlled part; The first calibrated position of each controlled part is determined based on the second calibrated position of each controlled part and the preset stroke length of each controlled part; or, The first calibrated position of each controlled part is determined based on the limiting position of each controlled part and the first position offset information of each controlled part; The second calibrated position of each controlled part is determined based on the limiting position of each controlled part and the second position offset information of each controlled part.

5. The method according to claim 2, characterized in that, The trip type includes at least a default trip; under the default trip, the sum of the preset trip lengths in the trip setting information of each controlled part is equal to the range length of the total trip range, and the preset trips corresponding to the trip setting information of each controlled part are symmetrical about the range center of the total trip range; Determining the calibrated position of each controlled part based on the limit position of each controlled part and the stroke setting information of each controlled part includes: When the stroke type is the default stroke, the limit position of each controlled part is determined as the first calibrated position of each controlled part; The second calibrated position of each controlled part is determined based on the first calibrated position of each controlled part and the preset travel length of each controlled part.

6. The method according to any one of claims 1 to 5, characterized in that, Before determining the current travel type of the target device in the event of a travel error in the target device, the following steps are also included: A control interface for the target device is displayed via a terminal device associated with the target device; the control interface displays control options for the target device, the control options including at least a travel calibration option; the terminal device is configured to issue a travel calibration command in response to a selection operation for the travel calibration option; The system receives the travel calibration command from the terminal device and, in response to the travel calibration command, determines that the target device has encountered the travel error.

7. A method for setting the stroke of a target device, characterized in that, The method includes: Upon receiving a travel setting instruction for a target device, the travel type corresponding to the travel setting instruction is determined; the target device includes at least one controlled part, which moves within the total travel range; According to the travel setting strategy corresponding to the travel type, each controlled part is controlled to move within the total travel range. During the movement of each controlled part, a preset position of each controlled part is determined. The preset position includes at least a first preset position and a second preset position. Based on the preset position of each controlled part, travel setting information of each controlled part is obtained; the travel setting information is used to perform the travel calibration method of the target device as described in any one of claims 1 to 6.

8. The method according to claim 7, characterized in that, The movement process of each controlled part includes at least a first movement stage and a second movement stage performed sequentially; the first movement stage includes at least a first movement, and the second movement stage includes at least a second movement; each controlled part moves in its corresponding first preset direction in the first movement, and each controlled part moves in its corresponding second preset direction in the second movement.

9. The method according to claim 8, characterized in that, The trip type includes at least a custom trip; under the custom trip, the sum of the preset trip lengths in the trip setting information of each controlled part is less than or equal to the range length of the total trip range, and the preset trips corresponding to the trip setting information of each controlled part are either symmetrical or asymmetrical about the range center of the total trip range; Determining the preset position of each controlled part during its movement includes: When the trip type is the custom trip, during the second movement phase, if a location confirmation event is detected, the preset position of each controlled part is determined according to the event type of the location confirmation event and the position of each controlled part when the location confirmation event occurs.

10. The method according to claim 9, characterized in that, In the second movement phase, before determining the preset position of each controlled part based on the event type of the location confirmation event and the position of each controlled part at the time the location confirmation event occurs, the process further includes: A location confirmation interface for the target device is displayed through a terminal device associated with the target device; the location confirmation interface displays location confirmation options for the target device, the location confirmation options include at least a first location confirmation option and a second location confirmation option; the event type includes at least a first location confirmation event in which the first location confirmation option is confirmed and a second location confirmation event in which the second location confirmation option is confirmed. In the second movement phase, if a location confirmation event is detected, the preset position of each controlled part is determined based on the event type of the location confirmation event and the position of each controlled part at the time the location confirmation event occurs, including: In the second movement phase, if the location confirmation event is detected, the location of each controlled part at the time the location confirmation event occurs is determined as the first preset location or the second preset location of each controlled part, according to the event type of the location confirmation event.

11. The method according to claim 10, characterized in that, The total travel range includes at least one range endpoint, each controlled part corresponds to one range endpoint, each controlled part moves in the direction of its corresponding range endpoint in the first movement, and each controlled part moves in the opposite direction to its corresponding range endpoint in the second movement; In the second movement phase, if the location confirmation event is detected, then according to the event type of the location confirmation event, the position of each controlled part at the time the location confirmation event occurs is determined as the first preset position or the second preset position of each controlled part, including: During the process of each controlled part moving in the opposite direction to its corresponding range endpoint, if the first position confirmation event is detected, the position of each controlled part at the time of the first position confirmation event is determined as the first preset position of each controlled part. During the process of each controlled part moving in the opposite direction to its corresponding range endpoint, if the second position confirmation event is detected, the position of each controlled part at the time of the second position confirmation event is determined as the second preset position of each controlled part.

12. The method according to claim 10, characterized in that, The second movement phase includes at least the second movement and the third movement performed sequentially; the total travel range includes at least one range endpoint, each controlled part corresponds to one range endpoint, each controlled part moves in the direction opposite to its corresponding range endpoint in the second movement, and each controlled part moves in the direction of its corresponding range endpoint in the third movement; In the second movement phase, if the location confirmation event is detected, then according to the event type of the location confirmation event, the position of each controlled part at the time the location confirmation event occurs is determined as the first preset position or the second preset position of each controlled part, including: During the process of each controlled part moving in the opposite direction to its corresponding range endpoint, if the second position confirmation event is detected, the position of each controlled part at the time of the second position confirmation event is determined as the second preset position of each controlled part. During the process of each controlled part moving towards its respective range endpoint, if the first position confirmation event is detected, the position of each controlled part at the time of the first position confirmation event is determined as the first preset position of each controlled part.

13. The method according to claim 9, characterized in that, The total travel range includes at least one range endpoint, each controlled part corresponds to one range endpoint, and each controlled part moves in the direction of its corresponding range endpoint during the first movement; The control of each of the controlled parts to move within the total travel range includes: When the travel type is the custom travel, each controlled part is controlled to move towards its corresponding range endpoint until each controlled part reaches its corresponding range endpoint, thereby obtaining the limit position of each controlled part; The step of obtaining the travel setting information of each controlled part based on the preset position of each controlled part includes: When the trip type is the custom trip, the distance between the first preset position of each controlled part and the second preset position of each controlled part is determined as the preset trip length of each controlled part; Based on the preset position of each controlled part and the limit position of each controlled part, determine the position offset information of each controlled part; The preset stroke length of each controlled part and the position offset information of each controlled part are determined as the stroke setting information of each controlled part; The position offset information includes at least first position offset information and / or second position offset information; the first position offset information is used to characterize the distance between the first preset position of the controlled part and the limit position of the controlled part; the second position offset information is used to characterize the distance between the second preset position of the controlled part and the limit position of the controlled part.

14. The method according to any one of claims 9 to 13, characterized in that, When the travel type is the custom travel, the second movement phase is achieved by pulling each of the controlled parts.

15. The method according to claim 8, characterized in that, The total travel range includes at least one range endpoint, each controlled part corresponds to one range endpoint, each controlled part moves in the direction of its corresponding range endpoint in the first movement, and each controlled part moves in the opposite direction to its corresponding range endpoint in the second movement; The trip type includes at least a default trip; under the default trip, the sum of the preset trip lengths in the trip setting information of each controlled part is equal to the range length of the total trip range, and the preset trips corresponding to the trip setting information of each controlled part are symmetrical about the range center of the total trip range; The control of each controlled part to move within the total travel range, and the determination of a preset position for each controlled part during its movement, includes: When the trip type is the default trip, each controlled part is controlled to move towards its corresponding range endpoint until each controlled part reaches its corresponding range endpoint. The position when each controlled part reaches its corresponding range endpoint is determined as the first preset position of each controlled part. Each of the controlled parts is controlled to move simultaneously in the opposite direction to its corresponding range endpoint until the controlled parts collide with each other. The position at which the controlled parts collide with each other is determined as the second preset position of each of the controlled parts.

16. The method according to claim 15, characterized in that, The step of obtaining the travel setting information of each controlled part based on the preset position of each controlled part includes: When the trip type is the default trip, the distance between the first preset position and the second preset position of the target controlled part in each of the controlled parts is determined as the preset trip length of each of the controlled parts; the target controlled part is any one of the controlled parts; The preset stroke length of each controlled part is determined as the stroke setting information of each controlled part.

17. The method according to claim 7, characterized in that, Upon receiving a trip setting instruction for the target device, before determining the trip type corresponding to the trip setting instruction, the process further includes: A control interface for the target device is displayed via a terminal device associated with the target device; the control interface displays control options for the target device, the control options including at least a trip setting option; the terminal device is configured to issue a trip setting command in response to a selection operation for the trip setting option; Receive the trip setting instruction issued by the terminal.

18. A travel calibration device for a target device, characterized in that, The device includes: A type determination module is used to determine the current travel type of the target device when a travel error occurs; the target device includes at least one controlled part that moves within the total travel range; The stroke calibration module is used to control each controlled part to move in its corresponding first preset direction according to the stroke calibration strategy corresponding to the stroke type, and to determine the calibrated stroke of each controlled part according to the position of each controlled part during the movement and the stroke setting information of each controlled part.

19. A stroke setting device for a target device, characterized in that, The device includes: A type determination module is used to determine the stroke type corresponding to a stroke setting instruction received for a target device; the target device includes at least one controlled part that moves within a total stroke range; The position preset module is used to control each of the controlled parts to move within the total travel range according to the travel setting strategy corresponding to the travel type, and to determine the preset position of each of the controlled parts during the movement of each of the controlled parts; the preset position includes at least a first preset position and a second preset position; The information determination module is used to obtain travel setting information of each of the controlled parts according to the preset position of each of the controlled parts; the travel setting information is used to perform the travel calibration method of the target device as described in any one of claims 1 to 6.

20. A target device, characterized in that, The target device includes at least one controlled part, and each controlled part moves on a guide rail; The target device is used to perform the stroke calibration method of the target device according to any one of claims 1 to 6 or the stroke setting method of the target device according to any one of claims 7 to 17.

21. The target device according to claim 20, characterized in that, The target device also includes at least one drive component, which is the same number as the controlled part; Each of the driving elements corresponds to one of the controlled parts, and each driving element is used to drive the corresponding controlled part to move on the guide rail.

22. The target device according to claim 21, characterized in that, The target device also includes at least one sliding member, the same number as the controlled part; Each of the sliders corresponds to one of the controlled parts, and each slider is used to slide the corresponding controlled part to the guide rail so that the corresponding controlled part can move on the guide rail; The driving component corresponding to the controlled part drives the controlled part by driving the sliding component corresponding to the controlled part.

23. The target device according to any one of claims 20 to 22, characterized in that, The guide rail also includes corresponding limiting components at both ends.

24. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the travel calibration method for the target device according to any one of claims 1 to 6 or the travel setting method for the target device according to any one of claims 7 to 17.

25. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the travel calibration method for the target device according to any one of claims 1 to 6 or the travel setting method for the target device according to any one of claims 7 to 17.

26. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it represents the steps of the travel calibration method for the target device according to any one of claims 1 to 6 or the travel setting method for the target device according to any one of claims 7 to 17.