Position correction method, equipment control system and intelligent curtain equipment

By detecting and calculating the stroke offset of the smart curtain device, and using the correction displacement to correct the device position, the problem of smart curtain stroke offset is solved, and the equipment is accurately controlled and the user's personalized needs are realized.

CN120335374APending Publication Date: 2025-07-18SHENZHEN LUMIUNITED TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510662882.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-22
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

The itinerary of smart curtains is prone to shift, which makes it impossible to meet the user's personalized opening and closing needs, affecting the automation control effect.

Method used

By detecting the stroke offset, the target device is controlled to move to the target endpoint, obtain the stroke information, calculate the correction displacement, and correct the device position using the correction displacement.

Benefits of technology

Ensure that the device can accurately reach the user's expected position, solve the problem of smart curtain stroke deviation, and improve the reliability and user experience of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120335374A_ABST
    Figure CN120335374A_ABST
Patent Text Reader

Abstract

The invention provides a position correction method, an equipment control system and intelligent curtain equipment, and relates to the technical field of Internet of Things. The method comprises the steps that if it is detected that a target device has stroke offset, the target device is controlled to move to a target end point; acquiring travel information of the target equipment; the travel information is information obtained after a target object controls the target equipment to complete a travel configuration program; the travel information comprises a closing point and an opening point; and on the basis of the closing point, the opening point and the target end point, calculating a correction displacement of the target equipment so as to correct the position of the target equipment by using the correction displacement. The problem that the stroke of the intelligent curtain is prone to deviation in the related technology is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet of Things technology. Specifically, this application relates to a position correction method, device, equipment control system, intelligent curtain device, electronic device, storage medium, and computer program product. Background Art

[0002] With the rapid development of Internet of Things technology, more and more intelligent devices have entered users' homes. Users can install intelligent curtains to achieve the effect of automatically opening and closing the curtain fabric.

[0003] Intelligent curtain motors mostly adopt a unified control method. Especially in the double-opening curtain fabric structure, usually the left and right curtain fabrics open and close synchronously. The curtain travel is regarded as the total travel length of the left and right curtain fabrics combined, and is defaulted to be equal to the length of the guide rail.

[0004] However, users have different preferences for the opening and closing effects. Some users like to open 80% of the curtain fabric, and some users like to open 100% of the curtain fabric. And due to the layout differences at home, some users may only open 30% of the left curtain fabric when opening the curtain.

[0005] Since the intelligent curtain device cannot meet the personalized needs of users, users need to manually operate the intelligent curtain. However, after manual operation, it will affect the position sensing of the intelligent curtain, thus affecting the effect of the intelligent curtain automatically pulling the curtain.

[0006] As can be seen from the above, the problem that the travel of the intelligent curtain is prone to deviation still exists. Summary of the Invention

[0007] This application provides a position correction method, device, electronic device, and storage medium respectively, which can solve the problem that the travel of the intelligent curtain in the related art is prone to deviation. The technical solutions are as follows:

[0008] According to one aspect of this application, a position correction method includes: if it is detected that the target device has a travel deviation, then controlling the target device to move to the target end point; obtaining the travel information of the target device; the travel information is the information obtained after the target object controls the target device to complete the travel configuration program; the travel information includes a closing point and an opening point; based on the closing point, the opening point, and the target end point, calculating the correction displacement of the target device to correct the position of the target device by using the correction displacement.

[0009] According to one aspect of the present application, a position correction method includes: if it is detected that a target device has a travel deviation, controlling the target device to move to a target end point; obtaining travel information of the target device; the travel information is information obtained after a target object controls the target device to complete a travel configuration program; the travel information includes a closing point and an opening point; calculating a correction displacement of the target device based on the closing point, the opening point, and the target end point, so as to correct the position of the target device by using the correction displacement.

[0010] According to one aspect of the present application, a device control system, the system includes a target device and a terminal; the terminal is used to display a device page of the target device, and the device page includes a position correction operation item; in response to a trigger operation on the position correction operation item, generating a position correction instruction and sending it to the target device; the target device is used to move to a target end point in response to the position correction instruction or when it is detected that the target device has a travel deviation; obtaining travel information of the target device; the travel information is information obtained after a target object controls the target device to complete a travel configuration program; the travel information includes a closing point and an opening point; calculating a correction displacement of the target device based on the closing point, the opening point, and the target end point, so as to correct the position of the target device by using the correction displacement.

[0011] According to one aspect of the present application, an intelligent curtain device is used to move to a target end point in response to a position correction instruction sent by a terminal or when it is detected that the intelligent curtain device has a travel deviation; obtaining travel information of the intelligent curtain device; the travel information is information obtained after a target object controls the intelligent curtain device to complete a travel configuration program; the travel information includes a closing point and an opening point; calculating a correction displacement of the intelligent curtain device based on the closing point, the opening point, and the target end point, so as to correct the position of the intelligent curtain device by using the correction displacement.

[0012] In an exemplary embodiment, the intelligent curtain device includes a plurality of drive motors and a plurality of Hall sensors; the drive motors are used to drive the intelligent curtain device to move; the Hall sensors are used to obtain the positions of the drive motors.

[0013] According to one aspect of the present application, a position correction device includes: an offset detection module, configured to control the target device to move to a target end point if a travel offset of the target device is detected; a travel acquisition module, configured to acquire travel information of the target device; the travel information is information obtained after a target object controls the target device to complete a travel configuration program; the travel information includes a closing point and an opening point; a position correction module, configured to calculate a correction displacement of the target device based on the closing point, the opening point, and the target end point, so as to correct the position of the target device by using the correction displacement.

[0014] In an exemplary embodiment, the target device includes a first sub-device and a second sub-device; the first sub-device is configured to control the movement of a first target object, and the second sub-device is configured to control the movement of a second target object; the offset detection module is configured to determine that the target device has a travel offset if the position of the first target object and / or the position of the second target object meet a set condition.

[0015] In an exemplary embodiment, the offset detection module is configured to determine that the target device has a travel offset if the position of the first target object reaches a first end point and / or the position of the second target object reaches a second end point.

[0016] In an exemplary embodiment, the travel information includes first travel information and / or second travel information; the first travel information includes a first opening point and a first closing point, and the second travel information includes a second opening point and a second closing point; the target end points include a first end point and a second end point; the position correction module is configured to, if the first target object has a travel offset, calculate based on the first opening point, the first closing point, and the first end point to obtain a first correction displacement of the first target object; if the second target object has a travel offset, calculate based on the second opening point, the second closing point, and the second end point to obtain a second correction displacement of the second target object; and obtain the correction displacement of the target device based on the first correction displacement and / or the second correction displacement.

[0017] In an exemplary embodiment, the position correction device is configured to, if a device control instruction for the target device is detected; then in response to the device control instruction, control the target device to move according to the device control instruction, so that the target device reaches the closing point or the opening point.

[0018] In an exemplary embodiment, the offset detection module is configured to detect a travel offset of the target device if a position correction instruction sent by a user terminal is received.

[0019] In an exemplary embodiment, the position correction device is configured to, if it is controlled to enter the stroke configuration program, use the Hall sensor of the target device to determine a target signal from the open point to the closed point; perform distance calculation based on the target signal to obtain the stroke information.

[0020] According to one aspect of the present application, a position correction device includes: a page display module configured to display a device page of a target device, the device page including a position correction operation item; an instruction sending module configured to generate a position correction instruction and send it to the target device in response to a trigger operation on the position correction operation item, so that the target device moves in response to the position correction instruction, and when the target device moves to a target end point, obtain the stroke information of the target device; calculate a correction displacement of the target device based on the stroke information and the target end point; and use the correction displacement to perform position correction on the target device.

[0021] In an exemplary embodiment, the page display module is configured to, if it detects that the target device has not configured the stroke, display the stroke configuration page of the target device, the stroke configuration page including a stroke setting entry; in response to a trigger operation on the stroke setting entry, control the target device to enter the stroke configuration program, so as to control the target device to reach the open point and record the position of the open point; control the target device to reach the closed point and record the position of the closed point; obtain the stroke information of the target device based on the positions corresponding to the closed point and the open point, complete the stroke configuration of the target device; and generate the position correction instruction and send it to the target device when the stroke configuration is completed.

[0022] In an exemplary embodiment, the target device includes a first sub-device and a second sub-device; the first sub-device is configured to control the movement of a first target object, and the second sub-device is configured to control the movement of a second target object; the opening points include a first opening point and a second opening point; the opening points include a first closing point and a second closing point; the instruction sending module is configured to control the first target object to reach the first opening point and record the position of the first opening point; control the first target object to reach the first closing point and record the position of the first closing point; obtain first travel information of the first target object based on the positions corresponding to the first closing point and the first opening point; control the second target object to reach the second opening point and record the position of the second opening point; control the second target object to reach the second closing point and record the position of the second closing point; obtain second travel information of the second target object based on the positions corresponding to the second closing point and the second opening point; and obtain the travel information of the target device based on the first travel information and the second travel information, thereby completing the travel configuration of the target device.

[0023] In an exemplary embodiment, the instruction sending module is configured to display a first prompt message and a first confirmation entry on the travel configuration page; the first prompt message is used to instruct the user to pull the target device to the position of the opening point; in response to a trigger operation on the first confirmation entry, obtain the position of the opening point; display a second prompt message and a second confirmation entry on the travel configuration page; the second prompt message is used to instruct the user to pull the target device to the position of the closing point; in response to a trigger operation on the second confirmation entry, obtain the position of the closing point; and obtain the travel information of the target device based on the position of the opening point and the position of the closing point, thereby completing the travel configuration of the target device.

[0024] In an exemplary embodiment, the page display module is configured to display a function prompt message and a confirmation correction entry on the device page, and the function prompt message is used to prompt the user about the function of position correction; if a confirmation correction operation is detected at the confirmation correction entry, generate the position correction instruction and send it to the target device.

[0025] In an exemplary embodiment, the position correction device is configured to obtain the position of the target device; if it is detected that the target device has a travel deviation, automatically generate the position correction instruction and send it to the target device.

[0026] According to one aspect of the present application, an electronic device includes at least one processor and at least one memory, wherein a computer program is stored on the memory, and when the computer program is executed by the processor, the above-mentioned position correction method is implemented.

[0027] According to one aspect of the present application, a storage medium stores a computer program thereon, and when the computer program is executed by one or more processors, the above-mentioned position correction method is implemented.

[0028] According to one aspect of the present application, a computer program product includes a computer program, and when the computer program is executed by one or more processors, the above-mentioned position correction method is implemented.

[0029] The beneficial effects brought by the technical solution provided by the present application are:

[0030] In the above technical solution, it is possible to avoid the situation where the target device fails to move to the opening point and closing point indicated by the stroke information when the target device is opened or closed due to offset, ensure the movement of the control target device, and the target device can accurately reach the user's expected position, thereby effectively solving the problem in the application scenario where the stroke of the intelligent curtain in the related art is prone to offset. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative efforts.

[0032] Figure 1 is a schematic diagram of the implementation environment related to the present application;

[0033] Figure 2 is a hardware structure diagram of an electronic device shown according to an exemplary embodiment;

[0034] Figure 3a is a flowchart of a position correction method shown according to an exemplary embodiment;

[0035] Figure 3b is Figure 3a a schematic diagram of the closing point, opening point and target end point related to the corresponding embodiment;

[0036] Figure 4a is Figure 3a a flowchart of step 350 in the corresponding embodiment in one embodiment;

[0037] Figure 4b is Figure 4a a schematic diagram of the position correction method related to the corresponding embodiment;

[0038] Figures 5a to 5bThe specific implementation schematic diagram showing the travel offset of the target device is shown;

[0039] Figure 6 The specific implementation schematic diagram of a travel configuration program is shown;

[0040] Figure 7a It is a flowchart of another position correction method shown according to an exemplary embodiment;

[0041] Figure 7b is Figure 7a A schematic diagram of the device page of the target device involved in the corresponding embodiment;

[0042] Figure 8a is Figure 7a A flowchart of step 630 in the corresponding embodiment in one embodiment;

[0043] Figure 8b is Figure 8a A schematic diagram of the travel configuration page involved in the corresponding embodiment;

[0044] Figures 9a to 9b A schematic diagram of a travel configuration is shown;

[0045] Figure 9c A schematic diagram of configuring endpoints for the target device is shown;

[0046] Figure 10 A schematic diagram showing a function prompt message and a confirmation correction entry

[0047] Figures 11a to 11b It is a specific implementation schematic diagram of a position correction method in an application scenario;

[0048] Figure 12 It is a structural block diagram of a position correction device shown according to an exemplary embodiment;

[0049] Figure 13 It is a structural block diagram of another position correction device shown according to an exemplary embodiment;

[0050] Figure 14 It is a structural block diagram of an electronic device shown according to an exemplary embodiment. Detailed implementation manners

[0051] The embodiments of the present application will be described in detail below. The examples of the embodiments are shown in the drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described by referring to the drawings below are exemplary and are only used to explain the present application and should not be construed as a limitation to the present application.

[0052] Those skilled in the art can understand that, unless specifically stated otherwise, the singular forms "a", "an", "the" and "said" used herein may also include the plural forms. It should be further understood that the term "comprising" used in the specification of the present disclosure means the presence of the stated features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or their groups. It should be understood that when we say that an element is "connected" or "coupled" to another element, it can be directly connected or coupled to other elements, or there may also be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0053] As mentioned above, users have different preferences for the opening and closing effects. Since the intelligent curtain device cannot meet the personalized needs of users, users need to manually operate the intelligent curtain.

[0054] Specifically, intelligent curtain devices mostly adopt a unified control method. Especially in the double-opening curtain structure, usually the left and right curtain fabrics are opened and closed synchronously. The curtain travel is regarded as the total travel length of the left and right curtain fabrics combined, and is defaulted to be equal to the length of the guide rail. The motor usually records the two ends of the guide rail as the travel limit points after controlling the curtain fabric to move to both ends of the guide rail and collide, and completes the travel configuration. During this process, the starting and ending points of the left and right curtain fabrics cannot be customized separately, and the default travel is the same.

[0055] However, this method has significant limitations. First, if the curtain fabric is manually pulled, the power is cut off, or the motor is removed and reinstalled, etc., resulting in a change in the position of the curtain fabric, the current position recorded at the motor end will be inconsistent with the actual position of the curtain fabric, causing a travel offset. In this state, when the user issues a "fully open" or "fully close" command, the movement amplitude of the curtain does not match the actual demand. For example, when the curtain fabric is actually offset, when the "close" command is executed, the curtain cannot be fully closed, resulting in light leakage and a decline in the user experience.

[0056] Although some motors support automatic calibration of the travel when detecting that the curtain fabric collides with the end points of the guide rail, it is only applicable to automatic correction under the "fully open" operation, and the premise is that the curtain fabric can move to the end points of the guide rail. Therefore, this method cannot handle scenarios such as "partially closed" or the travel of the left and right curtain fabrics being shorter than the length of the guide rail. In addition, users cannot initiate position correction actively and can only indirectly trigger automatic calibration by trying to fully open, so the usage method is limited.

[0057] The prior art lacks a flexible stroke configuration and position correction mechanism. Especially in complex scenarios such as supporting independent control of left and right curtain fabrics, relative movement between the motor and the curtain fabric, and inability to collide with the end points of the guide rails, effective stroke calibration cannot be achieved, which limits the reliability and user controllability of the intelligent curtain system.

[0058] As can be seen from the above, there are still defects in the prior art that the stroke of the intelligent curtain is prone to deviation.

[0059] Therefore, the position correction method provided in this application can effectively improve the accuracy of position correction. Correspondingly, this position correction method is applicable to a position correction device, which can be deployed on an electronic device. The electronic device can be a computer device configured with a von Neumann architecture. For example, the computer device includes a desktop computer, a laptop computer, a server, etc.; the electronic device can also refer to a portable mobile electronic device. For example, the electronic device includes a smart phone, a tablet computer, etc.; the electronic device can also be an intelligent curtain.

[0060] To make the purpose, technical solution, and advantages of this application clearer, the embodiments of this application will be further described in detail below with reference to the accompanying drawings.

[0061] Figure 1 It is a schematic diagram of the implementation environment involved in a position correction method. The implementation environment at least includes a user terminal 110, an intelligent device 130, a server end 170, and a network device. In Figure 1 Among them, the network device includes a gateway 150 and a router 190, but this is not a specific limitation here.

[0062] Among them, the user terminal 110, which can also be considered as the user end or the terminal, can deploy (also understood as install) the client associated with the intelligent device 130. This user terminal 110 can be an electronic device such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart control panel, and other devices with display and control functions, and is not limited here.

[0063] Among them, the client, which is associated with the intelligent device 130, actually means that the user registers an account in the client and configures the intelligent device 130 in the client. For example, the configuration includes adding a device identifier to the intelligent device 130, etc., so that when the client runs in the user terminal 110, it can provide functions such as device display and device control for the user. This client can be in the form of an application program or a web page. Correspondingly, the interface for the client to display the device can be in the form of a program window or a web page, and this is not limited here either.

[0064] The intelligent device 130 is deployed in the gateway 150 and communicates with the gateway 150 through its configured communication module, and thus is controlled by the gateway 150. It should be understood that the intelligent device 130 generally refers to one of multiple intelligent devices 130. Only the intelligent device 130 is taken as an example in the embodiments of the present application. That is, the embodiments of the present application do not limit the number and device type of the intelligent devices deployed in the gateway 150. In an application scenario, the intelligent device 130 accesses the gateway 150 through a local area network, so as to be deployed in the gateway 150. The process of the intelligent device 130 accessing the gateway 150 through the local area network includes: the gateway 150 first establishes a local area network, and the intelligent device 130 joins the local area network established by the gateway 150 by connecting to the gateway 150. This local area network includes but is not limited to: ZIGBEE or Bluetooth. Among them, the intelligent device 130 can be an intelligent printer, an intelligent fax machine, an intelligent camera, an intelligent air conditioner, an intelligent door lock, an intelligent light, or a human body sensor, a door and window sensor, a temperature and humidity sensor, a water immersion sensor, a natural gas alarm, a smoke alarm, a wall switch, a wall socket, a wireless switch, a wireless wall sticker switch, a magic cube controller, a curtain motor, a millimeter wave radar, etc. configured with a communication module.

[0065] The interaction between the user terminal 110 and the intelligent device 130 can be realized through a local area network or a wide area network. In an application scenario, the user terminal 110 establishes a wired or wireless communication connection with the gateway 150 through the router 190. For example, the wired or wireless method includes but is not limited to WIFI, etc., so that the user terminal 110 and the gateway 150 are deployed in the same local area network, and thus the user terminal 110 can realize the interaction with the intelligent device 130 through the local area network path. In another application scenario, the user terminal 110 establishes a wired or wireless communication connection with the gateway 150 through the server side 170. For example, the wired or wireless method includes but is not limited to 2G, 3G, 4G, 5G, WIFI, etc., so that the user terminal 110 and the gateway 150 are deployed in the same wide area network, and thus the user terminal 110 can realize the interaction with the intelligent device 130 through the wide area network path.

[0066] Among them, the server side 170 can also be considered as the cloud, the cloud platform, the platform side, the service side, etc. This server side 170 can be a single server, or a server cluster composed of multiple servers, or a cloud computing center composed of multiple servers, so as to better provide background services for a large number of user terminals 110. For example, the background services include location correction services.

[0067] In an application scenario, there is a device control system, which includes a target device and a terminal; among them, the target device can be the intelligent device 130, and the terminal can be the user terminal 110;

[0068] The terminal is used to display the device page of the target device. The device page includes a position correction operation item; in response to the triggering operation on the position correction operation item, a position correction instruction is generated and sent to the target device;

[0069] The target device is used to move to the target endpoint in response to the position correction instruction or when it is detected that the target device has a travel offset; obtain the travel information of the target device; the travel information is the information obtained after the target object controls the target device to complete the travel configuration program; the travel information includes a closing point and an opening point; based on the closing point, the opening point, and the target endpoint, calculate the correction displacement of the target device to correct the position of the target device using the correction displacement.

[0070] In a possible implementation, the intelligent curtain device is used to move to the target endpoint in response to the position correction instruction sent by the terminal or when it is detected that the intelligent curtain device has a travel offset; obtain the travel information of the intelligent curtain device; the travel information is the information obtained after the target object controls the intelligent curtain device to complete the travel configuration program; the travel information includes a closing point and an opening point; based on the closing point, the opening point, and the target endpoint, calculate the correction displacement of the intelligent curtain device to correct the position of the intelligent curtain device using the correction displacement.

[0071] Please refer to Figure 2 , Figure 2 which is a hardware structure diagram of an electronic device shown according to an exemplary embodiment. The electronic device can be an intelligent curtain device.

[0072] In a possible implementation, the intelligent curtain device includes a first sub-device, a first target object, a second sub-device, a second target object, and a guide rail. The first sub-device is used to control the movement of the first target object, and the second sub-device is used to control the movement of the second target object.

[0073] In a possible implementation, the intelligent curtain device includes a plurality of drive motors and a plurality of Hall sensors; the drive motors are used to drive the intelligent curtain device to move; the Hall sensors are used to obtain the positions of the drive motors.

[0074] Among them, the Hall sensor can obtain the rotation state of the drive motor during movement by sensing the change of the internal magnetic field of the drive motor, and calculate the current position information of the drive motor accordingly.

[0075] For example, the first target object is the left curtain (left curtain) of the intelligent curtain device, and the second target object is the right curtain (right curtain) of the intelligent curtain device. The first sub-device can be a driving motor for controlling the movement of the left curtain, and the second sub-device can be a driving motor for controlling the movement of the right curtain. Then, the first sub-device can drive the first target object to move on the guide rail, and the second sub-device can drive the second target object to move on the guide rail.

[0076] Please refer to Figure 3a , an embodiment of the present application provides a position correction method, which is applicable to an electronic device. For example, the electronic device can be Figure 1 the intelligent device 130 in the shown implementation environment, and the hardware structure of the electronic device can be as Figure 2 shown.

[0077] In the following method embodiments, for the sake of convenience of description, the execution subject of each step of the method is taken as an example of an electronic device for illustration, but this does not constitute a specific limitation. As Figure 3a shown, the method may include the following steps:

[0078] Step 310, if it is detected that the target device has a travel offset, then control the target device to move to the target end point.

[0079] Among them, the target device refers to an electronic device that can be controlled to move according to travel information.

[0080] Regarding the travel offset, it means that the current position of the target device deviates from the travel indicated by the travel information; it can be understood that the user can pre-configure the travel information for the target device so that the target device can move according to the travel indicated by the travel information; however, if the target device does not move according to the travel indicated by the travel information, for example, when controlling the target device to close, the target device does not move to the closing point in the travel information, then the current position of the target device will deviate from the travel indicated by the travel information, that is, it is considered that the target device has a travel deviation.

[0081] In a possible implementation, the target device may include a position sensor module for detecting the position of the target device, such as a Hall sensor, an encoder, etc., to obtain the current position of the target device and compare it with the position corresponding to the opening point or closing point in the travel information, so as to determine whether the target has a travel offset.

[0082] Regarding the target end point, it can refer to a reference position determined for the target device, which can be regarded as an anchor point for travel correction. The position of the target end point should be known. Then, the position of the target device can be corrected according to the travel information and the target end point, so that the target device can move according to the travel information.

[0083] For example, the target endpoint is point O, and the closing point is point A. If the target device is controlled to close but does not move to point A and stops at point B, then it is regarded that the target device has a travel deviation. At this time, the target device is controlled to move to point O for subsequent position correction of the target device.

[0084] Furthermore, if the target device is a smart curtain device, then the target endpoint can also be the rail endpoint. Since the curtain of the smart curtain device will encounter resistance when running to the rail endpoint and thus stop moving. It can be understood that natural limit is achieved by means of the physical structure of the curtain rail itself, without the need to additionally add a position sensor or an electronic limit device, which can reduce the hardware cost and system complexity. Moreover, the position of the rail endpoint is fixed and easy to identify, and it can provide a stable position reference point as the target endpoint, which helps to calculate the correction displacement of the device subsequently and ensure that the curtain can return to the correct travel position.

[0085] In addition, it is also possible to detect whether the position where the smart curtain device stops moving conforms to the closing point or the opening point corresponding to the travel information through the position sensor included in the smart curtain device. If it does not conform, it can be regarded that the smart curtain device has a position deviation.

[0086] For example, if the user removes the motor of the smart curtain device during use and then controls the movement of the curtain by pulling it by hand, and then installs the motor back, the controlled curtain may have a travel deviation. The motor will automatically execute the position correction method according to the position where the smart curtain device stops moving.

[0087] Step 330, obtain the travel information of the target device.

[0088] Among them, the travel information can be the movement information or trajectory information of the target device. The travel information includes a closing point and an opening point. The opening point can refer to the position where the target device is in the open state, and the closing point can refer to the position where the target device is in the closed state. The target object can refer to an object that can control the target device, such as a user, and is not limited here.

[0089] Regarding the travel configuration program, it can refer to a program for configuring the travel of the target device. Specifically, the closing point and the opening point can be configured for the target device to complete the travel configuration program and obtain the corresponding travel information.

[0090] In a possible implementation, the target object is the user and the target device is the curtain. Then, the user can start the travel configuration program and control the curtain to move to the open point position and the closed point position by pulling the curtain, thereby configuring the open point and the closed point (corresponding to the open state and the closed state) for the curtain, and thus completing the travel configuration program. In addition, the user can also configure the closed point and the open point for the curtain in the form of visual operation on the application program provided by the manufacturer, thereby completing the travel configuration program, which will not be specifically limited here.

[0091] Step 350: Calculate the correction displacement of the target device based on the closed point, the open point, and the target end point, so as to correct the position of the target device by using the correction displacement.

[0092] It can be understood that since the positions of the closed point, the open point, and the target end point are known, after controlling the target device to move to the target end point, the correction displacement can be calculated according to the positions corresponding to the closed point, the open point, and the target end point.

[0093] In a possible implementation, the target device can be an intelligent curtain device with a double-sided curtain structure. The intelligent curtain device includes a curtain, a guide rail, and a curtain motor. The curtain motor is used to drive the curtain to move on the guide rail. The open point refers to the position where the curtain is in the open state, and the closed point refers to the position where the curtain is in the closed state. The target end point can refer to the left end point or the right end point of the curtain guide rail.

[0094] For example, the user sets the travel information of the curtain through the travel configuration program, as Figure 3b shown. Among them, the open point A is the position where the curtain opens (corresponding to the guide rail position at 90 cm), and the closed point B is the position where the curtain closes (corresponding to the guide rail position at 15 cm). In addition, the target end point O is the end point position of the guide rail, that is, 105 cm. Then, in the actual operation process, if the position of the curtain when it opens is at the guide rail position of 80 cm, that is, it obviously does not reach the open point A, that is, the curtain has a travel offset, then the curtain can be controlled to move to the position of the target end point O (105 cm) to the right, and the correction displacement (105 cm - 90 cm = 15 cm), (105 cm - 15 cm = 90 cm) is calculated according to the target end point O, the open point A, and the closed point B. Then, the curtain can be controlled to move on the guide rail according to the correction displacement. When the curtain is opened next time, it moves 15 cm to the left to the open point position (90 cm), or when it is closed next time, it moves 90 cm to the left to the closed point position (15 cm).

[0095] Through the above process, the situation where the target device fails to move to the opening point and closing point indicated by the travel information when opening or closing due to deviation is avoided, ensuring the control of the movement of the target device, and the target device can accurately reach the position expected by the user.

[0096] In an exemplary embodiment, the target device includes a first sub-device and a second sub-device. The above method may further include the following steps: If the position of the first target object and / or the position of the second target object meet the set conditions, it is determined that the target device has a travel deviation.

[0097] Wherein, the first sub-device and the second sub-device may be independent sub-devices in the target device. The first sub-device is used to control the movement of the first target object, and the second sub-device is used to control the movement of the second target object. The first sub-device and the second sub-device may be located at different positions of the target device respectively.

[0098] For example, if the target device is a smart curtain device, then, the first sub-device may be a driving motor installed on the left side of the smart curtain device, the first target object may be the left curtain, the second sub-device may be a driving motor installed on the right side of the smart curtain device, and the second target object may be the right curtain. Then, the driving motor installed on the left side can drive the left curtain to move, and the driving motor on the right side can drive the right curtain to move. This is not limited here.

[0099] Regarding the positions of the first target object and the second target object, sensors capable of detecting positions, such as Hall sensors, may be installed at both ends of the smart curtain device to detect the positions of the first target object and the second target object.

[0100] It can be understood that since the first target object and the second target object are independent of each other, the first target object and the second target object may respectively correspond to travel information.

[0101] In a possible implementation, a first opening point and a first closing point are configured for the first target object to complete the travel configuration program for the first target object, thereby obtaining the first travel information; a second opening point and a second closing point are configured for the second target object to complete the travel configuration program for the second target object, thereby obtaining the second travel information.

[0102] Regarding the set conditions, they are conditions for determining whether the position of the first target object and / or the position of the second target object deviate from the preset travel.

[0103] For example, the opening point of the first target object is point A, and the closing point is point B. If the position of the first target object after being controlled to open is not at point A, or the position of the second target object after being controlled to close is not at point B, then, it can be regarded that the first target object has a travel deviation.

[0104] Under the action of the above embodiments, based on the positions of the first target object and the second target object, it is possible to timely identify a travel deviation when any target object has not reached the position corresponding to its preset travel, improving the accuracy of travel deviation detection.

[0105] In addition, since the first target object and the second target object are independent of each other, their opening points and closing points can be configured separately to form corresponding travel information, thereby supporting personalized travel configuration for multiple independent components of the device (such as left and right, up and down, front and back, etc.), enhancing the configuration flexibility.

[0106] In an exemplary embodiment, the above method may further include the following steps: If the position of the first target object reaches the first endpoint, and / or the position of the second target object reaches the second endpoint, it is determined that the target device has a travel deviation.

[0107] Among them, the first endpoint may refer to the reference position determined for the first target object, which can be regarded as the anchor point for travel correction of the first target object. The position of the first endpoint should be known. Then, according to the first travel information corresponding to the first target object and the first endpoint, the position of the first target object can be corrected so that the first target object can move according to the first travel information.

[0108] Similarly, the second endpoint may refer to the reference position determined for the second target object, which can be regarded as the anchor point for travel correction of the second target object. The position of the second endpoint should be known. Then, according to the second travel information corresponding to the second target object and the second endpoint, the position of the second target object can be corrected so that the second target object can move according to the second travel information.

[0109] For example, if the target device is a smart curtain device, the first target object is the left curtain, and the second target object is the right curtain, then the first endpoint can be the left rail endpoint corresponding to the left curtain, and the second endpoint can be the right rail endpoint corresponding to the right curtain.

[0110] Further, if the user has personalized the corresponding travel information for the first target object and / or the second target object, and the position of any point in the travel information is not at the position of the endpoint, it can be understood that if, in the above situation, the position of the first target object or the second target object still reaches the first endpoint or the second endpoint, then it can be indicated that the target device has a travel deviation.

[0111] In addition, if the user expects to manually correct the position of the first target object or the second target object, then the position of the first target object or the second target object can be manually moved to the first endpoint or the second endpoint to achieve manual position correction.

[0112] Under the action of the above embodiments, when the position of the first target or the position of the second target reaches the first end point or the second end point, it is possible to determine that the target device has a stroke offset, increasing the method for detecting the stroke offset.

[0113] In an exemplary embodiment, the above method may further include the following steps: If there is an overlap between the position of the first target and the position of the second target, it is determined that the target device has a stroke offset.

[0114] As described above, the first target and the second target are independent targets in the target device. Then, the first target and the second target should move independently according to their respective preset strokes. That is to say, during normal strokes, there should be a certain spatial interval or order between the two.

[0115] However, if there is an overlap between the position of the first target and the position of the second target, it can indicate that the first target or the second target has entered the motion area of the other. That is to say, at least one target does not operate according to its corresponding stroke information. Further, it can be determined that the target device has a stroke offset.

[0116] Regarding the overlap between the position of the first target and the position of the second target, it can be detected by checking whether there is a collision or physical contact during their movement. If there is a collision or physical contact, the movement of the first target and the second target will encounter resistance. Then, by detecting the resistance encountered by the first sub-device and the second sub-device or the abnormal feedback signal of the motor, it can be determined that there is an overlap between the position of the first target and the position of the second target, that is, the target device has a stroke offset.

[0117] In addition, position sensors can also be installed on the target device to obtain the positions of the first target and the second target, so as to determine whether there is an overlap between the position of the first target and the position of the second target. No specific limitation is made here.

[0118] Under the action of the above embodiments, when there is an overlap between the position of the first target and the position of the second target, it is possible to determine that the target device has a stroke offset, increasing the method for detecting the stroke offset.

[0119] Please refer to Figure 4a , in an exemplary embodiment, the stroke information includes first stroke information and / or second stroke information; the first stroke information includes a first opening point and a first closing point, and the second stroke information includes a second opening point and a second closing point; the target end points include a first end point and a second end point; the above method may further include the following steps:

[0120] Step 410, if the first target object has a travel offset, calculate based on the first opening point, the first closing point, and the first end point to obtain the first correction displacement of the first target object.

[0121] Among them, the first closing point can refer to the corresponding position when the first target object is closed, the first opening point can refer to the corresponding position when the first target object is open, and the first end point can refer to the reference position configured for the first target object, which can be regarded as the anchor point for travel correction of the first target object.

[0122] Then, the correction displacement corresponding to the closed state of the first target object can be calculated based on the first closing point and the first end point, and the correction displacement corresponding to the open state of the first target object can be calculated based on the first opening point and the first end point. Thus, the first correction displacement can be obtained according to the correction displacement corresponding to the closed state of the first target object and the correction displacement corresponding to the open state.

[0123] Step 430, if the second target object has a travel offset, calculate based on the second opening point, the second closing point, and the second end point to obtain the second correction displacement of the second target object.

[0124] Among them, the second closing point can refer to the corresponding position when the second target object is closed, the second opening point can refer to the corresponding position when the second target object is open, and the second end point can refer to the reference position configured for the second target object, which can be regarded as the anchor point for travel correction of the second target object.

[0125] Then, the correction displacement corresponding to the closed state of the second target object can be calculated based on the second closing point and the second end point, and the correction displacement corresponding to the open state of the second target object can be calculated based on the second opening point and the second end point. Thus, the second correction displacement can be obtained according to the correction displacement corresponding to the closed state of the second target object and the correction displacement corresponding to the open state.

[0126] Step 450, obtain the correction displacement of the target device based on the first correction displacement and / or the second correction displacement.

[0127] Among them, the first correction displacement refers to the correction displacement corresponding to the first target object, and the second correction displacement refers to the correction displacement corresponding to the second target object. Then, the correction displacement of the target device can be obtained according to the first correction displacement and / or the second correction displacement.

[0128] It should be supplemented and explained that if the positions of the first target object and the second target object overlap due to the travel offset of the first target object or the second target object, then the position of one of the target objects can also be used for position correction of the other target object.

[0129] Figure 4bThe specific implementation schematic diagram of a position correction method is shown, such as Figure 4b shown, the target device is a smart curtain device, the first target is the left curtain, and the second target is the right curtain; the first sub-device is a curtain motor for controlling the movement of the left curtain, and the second sub-device is a curtain motor for controlling the movement of the right curtain. Due to reasons such as power failure / removing the curtain motor (the first sub-device / the second sub-device), both the left and right curtains have a leftward offset in their travel, and there is an intersection after the travel offsets of the left and right curtains. When the left curtain normally moves to the open position, it should not originally touch the endpoint A1 of the left curtain, but it will touch the endpoint A1 when it opens after the travel offset. If it is detected that the first sub-device encounters resistance at A1, it will immediately determine that the current left curtain has a travel offset, and automatically calculate the first correction displacement based on the position of A1 and the preset first open point and second open point to restore the travel to normal. The next time the left curtain is controlled to close, the first sub-device will directly control the left curtain to move to the first closing point according to the first correction displacement, thereby completing the position correction of the left curtain; or when the first sub-device is controlled to open again, it will directly control the left curtain to move to the first open point according to the first correction displacement, thereby completing the position correction of the left curtain.

[0130] At the same time, after the position correction of the left curtain travel position is successful, the position of the left curtain is determined and correct. Then, in the subsequent process of controlling the movement of the right curtain, as long as it is detected that the right curtain collides with the left curtain during the movement, the right curtain will be immediately controlled to stop running, and the second correction displacement of the right curtain will be deduced based on the current position of the left curtain. Specifically, at this time, the position of the left curtain can be regarded as the second endpoint, and the second correction displacement is calculated based on the position of the left curtain, the second closing point, and the second opening point. Then, the next time the left curtain is controlled to close, the left curtain will directly move to the second closing point according to the second correction displacement, thereby completing the position correction of the left curtain; or when the motor is controlled to open again, the left curtain will directly move to the second opening point according to the second correction displacement, thereby completing the position correction of the left curtain.

[0131] Through the above process, in the case where the position of the first target and / or the second target is offset, without manual calibration by the user, the system can automatically calculate the first correction displacement based on the first endpoint, the first open point, and the first closing point corresponding to the first target, and calculate the second correction displacement based on the second endpoint, the second open point, and the second closing point corresponding to the second target, so as to realize the position correction of the target device according to the first correction displacement and / or the second correction displacement.

[0132] In an exemplary embodiment, after step 350, the method may further include the following steps: If a device control instruction for the target device is detected; then in response to the device control instruction, control the target device to move according to the device control instruction so that the target device reaches the closing point or the opening point.

[0133] Among them, the device control instruction is used to control the target device to move to the closed point or the open point.

[0134] Furthermore, since the target device may include a first target and a second target, the device control instruction can also be used to separately control the first sub-device to drive the first target to move to the first closed point or the first open point, or separately control the second sub-device to drive the second target to move to the second closed point or the second open point, which is not limited herein.

[0135] In a possible implementation, the user can control the target device to open or close through the application of the smart phone, thereby generating the corresponding device control instruction, and sending it to the target device through the gateway or the cloud, so that the target device moves according to the device control instruction, and the target device reaches the closed point or the open point.

[0136] In a possible implementation, the user can control the first target of the target device to open or close through the application of the smart phone, thereby generating the corresponding device control instruction, and sending it to the target device through the gateway or the cloud, so that the first sub-device moves according to the device control instruction, and the first target reaches the first closed point or the first open point.

[0137] It should be noted that the position correction of the target device can be realized through the device control instruction. It can be understood that in the case of calculating the correction displacement of the target device, the system can automatically generate the corresponding device control instruction according to the correction displacement, so that the target device moves according to the correction displacement, and further the target device reaches the closed point or the open point to complete the position correction.

[0138] In the above process, the target device can be controlled to move through the device control instruction, so that the target device reaches the closed point or the open point, and the position correction of the target device is realized.

[0139] In an exemplary embodiment, the above method may further include the following steps: if a position correction instruction sent by the user terminal is received, the travel offset of the target device is detected.

[0140] Among them, the position correction instruction is used to start the position correction process.

[0141] For example, the user can view the device page through the smart phone and trigger the position correction operation item displayed on the device page to generate the position correction instruction, and the smart phone sends it to the target device through the cloud or the gateway to start the position correction process.

[0142] Specifically, the position correction process may include: the target device moves in response to a position correction instruction. When the target device moves to the target endpoint, the travel information of the target device is obtained; based on the travel information and the target endpoint, the correction displacement of the target device is calculated; and the position of the target device is corrected using the correction displacement.

[0143] Of course, before the target device moves in response to the position correction instruction, it can also be determined whether the target device has a travel offset. If a travel offset occurs, the position correction process can be executed, and the correction displacement is calculated based on the target endpoint, open point, and closed point of the target device, and the position of the target device is corrected according to the correction displacement.

[0144] In a possible implementation, the user can trigger position correction through an application on the smartphone to generate a position correction instruction, which is sent by the smartphone to the target device through the cloud or gateway to detect the travel offset of the target device.

[0145] For example, Figure 5a and Figure 5b show a specific implementation diagram of the travel offset of the target device. As Figure 5a shown, the target device is a smart curtain device, the first target is the left curtain, and the second target is the right curtain. If the left curtain and the right curtain have a travel offset, since the positions of the left curtain and the right curtain after the offset overlap, the smart curtain device can locally detect that the left curtain and the right curtain have a travel offset.

[0146] However, as Figure 5b shown, if neither of the two curtains can touch the corresponding endpoints and there is no overlap in the positions of the two curtains after the travel offset, then at this time, the position correction cannot be automatically triggered, and the user needs to initiate the position correction process from the user side to generate a position correction instruction and send it to the smart curtain device.

[0147] Through the above process, the user can manually trigger the position correction process, increasing the way of travel offset detection, so as to cope with travel offsets in different scenarios and improve flexibility.

[0148] In an exemplary embodiment, before step 330, the above method may further include the following steps: if the target device is controlled to enter the travel configuration program, the Hall sensor of the target device is used to determine the target signal from the open point to the closed point; based on the target signal, distance calculation is performed to obtain the travel information.

[0149] As mentioned above, the travel configuration program may refer to a program for configuring the travel of the target device. Specifically, the closed point and the open point can be configured for the target device to complete the travel configuration program and obtain the corresponding travel information.

[0150] Among them, the target signal can reflect the movement amplitude and displacement path of the target device during the movement from the open point to the closed point.

[0151] Regarding the stroke configuration program, it can be actively triggered by the user to enter, for example, by long-pressing the setting key, sending a stroke configuration instruction, and other means.

[0152] In a possible implementation, the stroke configuration program uses the Hall sensor equipped on the target device to collect magnetic signals. The Hall sensor continuously monitors the magnetic field changes during the device movement, thereby forming a set of target signals. Then, according to the collected target signals, combined with the resolution of the Hall sensor and the signal characteristics per unit distance, the movement distance of the target device from the open point to the closed point can be calculated, which is the stroke length of the target device. Thus, according to the open point, closed point, and stroke length, the stroke information of the target device can be obtained.

[0153] Figure 6 A specific implementation schematic diagram of a stroke configuration program is shown in Figure 6 As shown, the intelligent curtain device includes a left curtain (the first target object) and a right curtain (the second target object). The first sub-device is the curtain motor that controls the movement of the left curtain, and the second sub-device is the curtain motor that controls the movement of the right curtain. The intelligent curtain device also includes four Hall sensors, and every two Hall sensors are used to calculate the running distance and direction of each side curtain. The Hall sensor outputs Hall signals during the motor rotation, and the running distance of the motor can be calculated through the Hall signals.

[0154] Assume that the curtain running distance corresponding to a Hall signal is 0.7 cm. Taking a curtain guide rail with a total length of 5.6 m as an example, that is, 2.8 m for each side of the left and right. In the stroke configuration program, the curtain motor first marks the Hall signal and the left and right curtain positions at the closed position as the first closed point and the second closed point. Then, after respectively controlling the left and right curtain fabrics to run to the open position, the curtain motor marks the Hall signal and the left and right curtain positions at the open position as the first open point and the second open point. Assume that it is calculated through the Hall signals sent by the Hall sensor that the left curtain has moved 300 Hall signals * 0.7 cm = 2.1 m, and the right curtain has moved 200 Hall signals * 0.7 = 1.4 m. Then, it can also be calculated that the positions of the left and right curtains moving from the open position to the first end point and the second end point are 100 Hall signals * 0.7 cm = 0.7 m and 200 Hall signals * 0.7 = 1.4 m respectively, which is transformed into Figure 6 Show the effect.

[0155] It can be understood that since the travel lengths of the left and right curtain fabrics are fixed, and the distances from the first end point to the first opening point and from the second end point to the second opening point are also fixed, for the curtain motor, in subsequent movements, as long as it is detected that the left and right curtains have reached the left and right end points, it can be determined that a travel deviation has occurred, and the corresponding correction displacements of the left and right curtain fabrics can be deduced through the first end point or the second end point.

[0156] At the same time, for the motors that control the left and right curtain fabrics unilaterally, since the positions of the two curtain fabrics may overlap in the closed position, it is also possible to automatically correct the position of the other curtain only by correcting the position of one curtain.

[0157] Through the above process, it is possible to use the Hall sensor to implement the travel configuration program of the target device without manual measurement by the user, improving the accuracy and automation of travel configuration. The travel information can be used for subsequent position correction and travel deviation detection of the target device, enhancing the overall operation reliability.

[0158] Please refer to Figure 7a , the embodiment of the present application provides a position correction method, which is applicable to an electronic device. For example, the electronic device can be Figure 1 the client 130 in the shown implementation environment, and the hardware structure of the electronic device can be as Figure 2 shown.

[0159] In the following method embodiments, for the sake of description convenience, the execution subject of each step of the method is taken as an electronic device as an example for illustration, but this does not constitute a specific limitation thereto.

[0160] As Figure 7a shown, the method may include the following steps:

[0161] Step 610, display the device page of the target device.

[0162] Among them, the device page includes a position correction operation item, and the position correction item is used to trigger the position correction process.

[0163] For example, the user can view the device page through a smart phone and trigger the position correction operation item to generate a position correction instruction, which is sent by the smart phone to the target device through the cloud or gateway to trigger the position correction process.

[0164] Figure 7b shows a schematic diagram of the device page of a target device. As Figure 7bAs shown, the device page displays the entry "Travel Calibration" corresponding to the calibration operation item. Clicking on this entry, the device page displays the confirmation entry "Start Calibration" for position calibration. If the user wishes to start the position calibration process, they can click "Start Calibration", and the target device will start the position calibration process and display a prompt message on the device page, prompting the user not to operate the target device during the position calibration process.

[0165] Step 630: In response to a trigger operation on the position calibration operation item, generate a position calibration instruction and send it to the target device, causing the target device to move in response to the position calibration instruction. When the target device moves to the target endpoint, obtain the travel information of the target device; calculate the calibration displacement of the target device based on the travel information and the target endpoint; and use the calibration displacement to perform position calibration on the target device.

[0166] Regarding the target endpoint, it can refer to the reference position determined for the target device, which can be regarded as the anchor point for travel calibration. The position of the target endpoint should be known. Then, based on the travel information and the target endpoint, the position of the target device can be corrected so that the target device can move according to the travel information.

[0167] The travel information is the information obtained after the target object controls the target device to complete the travel configuration program. The travel information includes a closing point and an opening point. The opening point can refer to the position where the target device is in the open state, and the closing point can refer to the position where the target device is in the closed state.

[0168] It can be understood that since the positions of the closing point, the opening point, and the target endpoint are known, after controlling the target device to move to the target endpoint, the calibration displacement can be calculated based on the target endpoint, the opening point, and the position corresponding to the target endpoint.

[0169] Through the above process, the user can remotely access the device page through a smart terminal (such as a smartphone) and actively trigger the calibration operation item. By means of the user's operation, the position calibration process is triggered. The system can calculate the calibration displacement of the target device based on the known target endpoint, opening point, and closing point, so as to achieve precise position calibration and ensure that the target device can accurately run to the expected position.

[0170] Please refer to Figure 8a , in an exemplary embodiment, step 630 may further include the following steps:

[0171] Step 631: If it is detected that the target device has not performed travel configuration, display the travel configuration page of the target device.

[0172] Among them, the travel configuration page includes a travel setting entry. The travel setting entry is an entry for starting the travel configuration program. If a user expects to start the travel configuration program, they can trigger the travel configuration entry to start the travel configuration program.

[0173] Figure 8b A schematic diagram of a travel configuration page is shown in Figure 8b As shown, the travel configuration page displays the travel setting entry "Set Travel". Clicking on this travel setting entry can start the travel configuration program.

[0174] Step 633: In response to the trigger operation on the travel setting entry, control the target device to enter the travel configuration program, control the target device to reach the open point, and record the position of the open point; control the target device to reach the closed point, and record the position of the closed point; based on the positions corresponding to the closed point and the open point, obtain the travel information of the target device, and complete the travel configuration of the target device.

[0175] In a possible implementation, the target device can be controlled to reach the open point and the closed point by manual control.

[0176] For example, manually control the target device to run to the open state, obtain the open point of the target device. The user can set the open effect according to their own preferences. Manually control the target device to run to the closed state, obtain the closed point of the target device. The user can set the closed effect according to their own preferences. Then, based on the positions corresponding to the closed point and the open point, the travel information of the target device can be obtained, and the travel configuration of the target device can be completed.

[0177] By guiding the user to manually set the open point and the closed point, the user is allowed to flexibly adjust the travel information of the target device according to their own usage preferences, meet diverse usage requirements, and enhance the applicability and personalized experience of the target device.

[0178] Step 635: When the travel configuration is completed, generate a position correction instruction and send it to the target device.

[0179] It can be understood that if the target device does not have travel information, the position correction process cannot be carried out smoothly. Then, when the travel configuration is completed, generating a position correction instruction and sending it to the target device can enable the position correction process.

[0180] Through the above process, if the target device has not completed the travel configuration, the user can be automatically guided to enter the travel configuration, ensuring that the target device can quickly complete the basic configuration during the first use or when restoring the initialization state, and reducing the installation and debugging threshold.

[0181] In an exemplary embodiment, the target device includes a first sub-device and a second sub-device; the first sub-device is used to control the movement of a first target object, and the second sub-device is used to control the movement of a second target object; the opening points include a first opening point and a second opening point; the opening points include a first closing point and a second closing point;

[0182] Step 633 may further include the following steps: controlling the first target object to reach the first opening point and recording the position of the first opening point; controlling the first target object to reach the first closing point and recording the position of the first closing point; obtaining the first travel information of the first target object based on the positions corresponding to the first closing point and the first opening point. Controlling the second target object to reach the second opening point and recording the position of the second opening point; controlling the second target object to reach the second closing point and recording the position of the second closing point; obtaining the second travel information of the second target object based on the positions corresponding to the second closing point and the second opening point. Obtaining the travel information of the target device based on the first travel information and the second travel information, and completing the travel configuration of the target device.

[0183] Wherein, the first sub-device and the second sub-device may be independent sub-devices in the target device. The first sub-device is used to control the movement of the first target object, and the second sub-device is used to control the movement of the second target object. The first sub-device and the second sub-device may be located at different positions of the target device respectively.

[0184] For example, if the target device is a smart curtain device, then, the first sub-device may be a driving motor installed on the left side of the smart curtain device, the first target object may be the left curtain, the second sub-device may be a driving motor installed on the right side of the smart curtain device, and the second target object may be the right curtain. Then, the driving motor installed on the left side can drive the left curtain to move, and the right driving motor can drive the right curtain to move. This is not limited herein.

[0185] Regarding the positions of the first target object and the second target object, sensors capable of detecting positions, such as Hall sensors, may be installed at both ends of the smart curtain device to detect the positions of the first target object and the second target object.

[0186] It can be understood that since the first target object and the second target object are independent of each other, the first target object and the second target object can respectively correspond to travel information.

[0187] Wherein, the first closing point may refer to the position corresponding to the case where the first target object is closed, and the first opening point may refer to the position corresponding to the case where the first target object is opened. Then, the first travel information of the first target object can be obtained based on the first closing point and the first opening point.

[0188] The second closing point may refer to the corresponding position when the second object is closed, and the second opening point may refer to the corresponding position when the second object is open. Then, based on the second closing point and the second opening point, the second travel information of the second object can be obtained.

[0189] Figures 9a to 9b A schematic diagram of a travel configuration is shown, where the target device is a smart curtain device, the first object is the left curtain, and the second object is the right curtain; as Figure 9a shown, manually control the left curtain to run to the closed state, obtain the closed position of the left curtain, and get the first closing point O of the left curtain. Manually control the right curtain to run to the closed state, obtain the closed position of the right curtain, and get the second closing point O of the right curtain. The closed state does not require the two ends of the curtain rail. The user can set the closing effect according to their own preferences.

[0190] As Figure 9b shown, manually control the left curtain to run to the open state, obtain the open position A of the left curtain, and get the first opening point of the left curtain. Manually control the right curtain to run to the open state, obtain the open position B of the right curtain, and get the second opening point of the right curtain. The open state does not require the two ends of the curtain rail. The user can set the opening effect according to their own preferences.

[0191] It should be added that the first end point and the second end point can also be set for the first object and the second object, so as to configure fixed position correction anchor points for the first object and the second object.

[0192] Figure 9c A schematic diagram of configuring end points for the target device is shown, as Figure 9c shown, the target device is a smart curtain device, the first object is the left curtain, and the second object is the right curtain; control the left and right curtains to move to the two ends of the rail respectively, and obtain the end point positions A1 and B1 of the left and right curtains.

[0193] Combined with Figures 9a to 9c it can be known that since the first opening point and the first closing point of the left curtain, the second opening point and the second closing point of the right curtain, and the end points at both ends of the track are recorded by Hall signals at the motor end, that is, the distances of A1~A, B1~B, A~O point~B are all fixed Hall signal parameters, and the travel lengths of the left and right curtains are also fixed. And the end points of the rail are fixed and will not change due to travel offset. Therefore, when there is a travel offset, as long as the left / right curtain can be controlled to move to the end of its track in any way (remote control / pull by hand / initiated by APP), when the curtain encounters resistance when moving to the end point (the Hall signal no longer changes indicating that the curtain stops without moving, and at the same time the current value rises exponentially), when it stops, it can be judged that the curtain has moved to the position of A1 / B1, and then the starting point O point and the end point A / B of the curtain can also be deduced, so as to realize the calibration of the entire curtain travel.

[0194] Through the above process, the user can configure the first travel information and the second travel information for the first target object and the second target object respectively, thereby supporting the precise control of complex device structures such as multi-track curtains and improving the compatibility and adaptability. During the travel configuration process, the user can freely control the opening and closing positions of each target object, not limited to both ends of the guide rail, enabling the curtain to customize the travel information under different shading requirements and meet the user's personalized needs for the degree of occlusion.

[0195] In another exemplary embodiment, step 633 may further include the following steps: display a first prompt message and a first confirmation entry on the travel configuration page; in response to a trigger operation on the first confirmation entry, obtain the position of the opening point; display a second prompt message and a second confirmation entry on the travel configuration page; in response to a trigger operation on the second confirmation entry, obtain the position of the closing point; based on the position of the opening point and the position of the closing point, obtain the travel information of the target device and complete the travel configuration of the target device.

[0196] Among them, the first prompt message is used to instruct the user to pull the target device to the position of the opening point, and the first confirmation entry is used to obtain the position of the opening point. The second prompt message is used to instruct the user to pull the target device to the position of the closing point, and the second confirmation entry is used for the user to obtain the position of the closing point.

[0197] It can be understood that through the step-by-step guidance of the first prompt message and the second prompt message, the user can pull the target device to the opening point and the closing point respectively under the prompt, thereby triggering the first confirmation entry and the second confirmation entry, and obtaining the position of the opening point and the position of the closing point in this way.

[0198] Through the above process, using the first confirmation entry and the second confirmation entry as the confirmation points for the user's actions, it is ensured that the system obtains the user's confirmation before recording the position of the opening point and the position of the closing point, preventing problems such as accidental touch or recording data when the curtain is not in place, and ensuring the accuracy of the acquisition of travel information.

[0199] In an exemplary embodiment, before step 630, the method may further include the following steps: display a function prompt message and a confirmation correction entry on the device page; if a confirmation correction operation is detected at the confirmation correction entry, generate a position correction instruction and send it to the target device.

[0200] Among them, the function prompt message is used to prompt the user about the function of position correction. The confirmation correction entry is an entry provided for the user to confirm position correction. The confirmation correction operation is an operation used to confirm the start of the position correction process.

[0201] Before officially starting the position correction process, a function prompt message can be displayed for the user on the device page. By viewing this function prompt message, the user can understand the function of position correction. If the user expects to start position correction, they can trigger the confirmation correction entry. For the electronic device, a confirmation correction operation can be detected at this confirmation correction entry, thereby generating a position correction instruction and sending it to the target device to start the position correction process.

[0202] Figure 10 A schematic diagram of a function prompt message and a confirmation correction entry is shown in Figure 10 As shown, a function prompt message is displayed on the device page, as well as the confirmation correction entry "Start Configuration". Clicking on "Start Configuration" can detect a confirmation correction operation at this confirmation correction entry, thereby generating a position correction instruction and sending it to the target device to start the position correction process. Among them, the click operation is regarded as the confirmation correction operation.

[0203] Through the above process, by displaying the function prompt message and the confirmation correction entry on the device page, on the premise that the user fully understands the function of position correction, the user can then independently trigger the confirmation correction entry to start the position correction process, thereby avoiding meaningless or unnecessary position correction operations of the target device caused by accidental touch or misjudgment, and improving safety and reliability.

[0204] In another exemplary embodiment, the above method may further include the following steps: obtaining the position of the target device; if it is detected that the target device has a travel offset, automatically generating a position correction instruction and sending it to the target device.

[0205] It can be understood that before sending the position correction instruction to the target device, it can also be determined first whether the target device has a travel offset. If there is a travel offset, the position correction process can be executed. Based on the target endpoint, open point, and close point of the target device, the correction displacement is calculated, and the target device is position-corrected according to the correction displacement.

[0206] Regarding the detection of travel offset, the terminal can actively obtain the position of the target device to determine whether the target device has a travel offset; it can also be that the target device automatically detects its own position to determine whether there is a position offset, and if there is a position offset, it automatically reports it to the terminal.

[0207] In a possible implementation, the target device may include a position sensor module for detecting the position of the target device. For example, a Hall sensor, an encoder, etc., to obtain the current position of the target device and compare it with the position corresponding to the open point or close point in the travel information, so as to determine whether the target has a travel offset.

[0208] Further, if the target device is a smart curtain device, then the target endpoint can also be the rail endpoint. Since the smart curtain device will encounter resistance when it runs to the rail endpoint, it will stop moving. It can be understood that natural limit is achieved by means of the physical structure of the curtain rail itself, without the need to additionally add a position sensor or an electronic limit device, which can reduce the hardware cost and system complexity. Moreover, the position of the rail endpoint is fixed and easy to identify. As the target endpoint, it can provide a stable position reference point, which helps to calculate the correction displacement of the device subsequently and ensures that the smart curtain device can return to the correct travel position.

[0209] Through the above process, it is possible to automatically detect whether the target device has a travel offset. Thus, in the case of a position offset, a position correction instruction is automatically generated and sent to the target device to ensure that the target device can promptly initiate the position correction process.

[0210] Figure 11a It is a schematic diagram of the specific implementation of a position correction method in an application scenario. This application scenario includes an application APP, the cloud, a gateway, and a smart curtain device. Among them, the smart curtain device includes a curtain, a rail, and a curtain motor, and the curtain motor is used to drive the curtain to move on the rail.

[0211] First of all, it should be noted that in the smart home application scenario, the user controls the smart curtain device through the App. After the smart curtain device has been running for a period of time, due to situations such as accidental power failure or manual intervention, the smart curtain device may have a travel offset, resulting in position errors such as "not fully opened" or "not fully closed".

[0212] The user can open the device page in the App. After clicking the "Position Correction" button, the device page displays a function prompt message of "the function of position correction", as well as a confirmation entry (such as a "Start Configuration" button). After the user reads the function prompt message and clicks the confirmation entry, the position correction operation can be triggered. The App generates a position correction instruction and forwards it to the gateway through the cloud. The gateway sends the position correction instruction to the smart curtain device. After receiving the position correction instruction, the smart curtain device controls the left and right curtain fabrics to automatically move to the left and right endpoints (the first endpoint and the second endpoint) of the curtain track. Based on the first travel information, the first endpoint, and the second endpoint, the correction displacement that needs to be corrected is calculated, and a correction success message is generated based on the correction displacement and uploaded to the cloud through the gateway. The cloud sends this correction success message to the APP, and the user can then learn through the APP that the position correction has been successfully completed.

[0213] At this time, if the user controls the smart curtain device to open or close, the smart curtain device can move to the opening point or closing point corresponding to the travel information. Of course, the user can also separately control the left and right curtain fabrics to open or close.

[0214] Of course, if the system detects that the intelligent curtain device has not been configured for travel, the APP will automatically jump to the travel configuration page, display guiding information on the travel configuration page. After the user reads the guiding information and clicks "Start Configuration", the device enters the travel configuration program, displays the travel configuration page of the target device, and in response to a trigger operation on the travel setting entry, controls the target device to enter the travel configuration program, and displays a first prompt message and a first confirmation entry on the travel configuration page; in response to a trigger operation on the first confirmation entry, obtains the position of the opening point; displays a second prompt message and a second confirmation entry on the travel configuration page; in response to a trigger operation on the second confirmation entry, obtains the position of the closing point; based on the position of the opening point and the position of the closing point, obtains the travel information of the target device, and completes the travel configuration of the target device.

[0215] Among them, the travel configuration page includes a travel setting entry. The travel setting entry is an entry for starting the travel configuration program. If the user expects to start the travel configuration program, the travel configuration entry can be triggered to start the travel configuration program; the first prompt message is used to instruct the user to pull the target device to the position of the opening point, and the first confirmation entry is used to obtain the position of the opening point. The second prompt message is used to instruct the user to pull the target device to the position of the closing point, and the second confirmation entry is used for the user to obtain the position of the closing point.

[0216] For example, manually control the target device to run to the open state, obtain the opening point of the target device. The user can set the opening effect according to their own preferences. Manually control the target device to run to the closed state, obtain the closing point of the target device. The user can set the closing effect according to their own preferences. Then, based on the positions corresponding to the closing point and the opening point, the travel information of the target device can be obtained, and the travel configuration of the target device can be completed. Then, in the case of completing the travel configuration, a position correction instruction is generated and sent to the target device.

[0217] In addition to the user manually enabling position correction, the intelligent curtain device can also enable position correction through local travel offset detection.

[0218] Figure 11b shows a specific implementation schematic diagram of the travel offset of an intelligent curtain device. As shown above in Figure 11b The travel information of the left curtain of the intelligent curtain device indicates that the opening point when the left curtain is in the open state is at the 40% length position of the guide rail, and the opening point when the right curtain is in the open state is at the 30% length position of the guide rail. Due to the travel offset of the intelligent curtain device, as shown below in Figure 11b The travel of the left curtain shifts to the left, and the opening point when the left curtain is in the open state shifts to the left. The travel of the right curtain also shifts to the left, and the opening point when the right curtain is in the open state also shifts to the left.

[0219] In addition, if the left and right curtains of the smart curtain device collide with the endpoints of the left and right guide rails (i.e., reach the first endpoint or the second endpoint), it can be regarded as a position deviation. Specifically, if the position of the left curtain reaches the endpoint of the left guide rail, and / or the position of the right curtain reaches the endpoint of the right guide rail, it is determined that the smart curtain device has a travel deviation.

[0220] Furthermore, if a collision occurs between the left and right curtains of the smart curtain device (i.e., there is an overlap in position), it can also be regarded as a position deviation. Specifically, it can be detected whether a collision or physical contact occurs during the movement of the two. If a collision or physical contact occurs, the movement of the left and right curtains will encounter resistance. Then, by detecting the resistance or abnormal feedback signal of the left curtain motor or the left curtain motor, it can be determined that there is an overlap between the position of the left curtain and the position of the right curtain, that is, the smart curtain device has a travel deviation.

[0221] It should be noted that the smart curtain device also includes a Hall sensor. When the left and right curtains collide with the endpoints of the left and right guide rails and when a collision occurs between the left and right curtains, the Hall sensor can sense the abnormal magnetic signal change during the movement of the curtain motor. When a collision occurs, the Hall sensor detects a sudden change in the magnetic field, thereby determining that a collision has occurred, and further determining that the smart curtain device has a position deviation.

[0222] Then, based on the first closing point and the first endpoint (the left endpoint of the guide rail) of the left curtain, the corresponding correction displacement when the left curtain is closed can be calculated. Based on the first opening point and the first endpoint, the corresponding correction displacement when the left curtain is opened can be calculated. Thus, according to the corresponding correction displacement when the left curtain is closed and the corresponding correction displacement when it is opened, the first correction displacement can be obtained.

[0223] Based on the second closing point and the second endpoint (the right endpoint of the guide rail) of the right curtain, the corresponding correction displacement when the right curtain is closed can be calculated. Based on the second opening point and the second endpoint, the corresponding correction displacement when the right curtain is opened can be calculated. Thus, according to the corresponding correction displacement when the right curtain is closed and the corresponding correction displacement when it is opened, the second correction displacement can be obtained. Then, based on the first correction displacement and / or the second correction displacement, the position correction of the target device can be achieved.

[0224] After obtaining the correction displacement, the position of the smart curtain device can be corrected using the correction displacement. Specifically, the smart curtain device can automatically generate corresponding device control instructions according to the correction displacement, so that the smart curtain device moves according to the correction displacement. Furthermore, the left curtain motor drives the left curtain to reach the first closing point or the first opening point, and the right curtain drives the right curtain to reach the second closing point or the second opening point to complete the position correction.

[0225] Of course, the user can also manually control the target device to turn it on or off through the application on the smartphone, thereby generating corresponding device control instructions.

[0226] In this application scenario, two position correction triggering methods, namely user active triggering and device automatic detection, are provided. When the user actively triggers the position correction operation through the APP, more triggering methods for the position correction operation can be provided for the user. Moreover, by integrating a Hall sensor into the intelligent curtain system, local offset detection can be performed based on the collision behavior between the curtain cloth and the rail endpoints and between the curtain cloths, automatically identifying travel offsets caused by power outages, external force interventions, etc., so as to initiate position correction in a timely manner without the need for active user intervention.

[0227] It should be understood that although the steps in the flowchart of the accompanying drawings are displayed in sequence according to the indication of the arrows, these steps do not necessarily need to be executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order restriction, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages. These sub-steps or stages do not necessarily need to be executed at the same moment, but can be executed at different moments, and their execution order does not necessarily need to be sequential, but can be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.

[0228] The following is an apparatus embodiment of the present application, which can be used to execute the position correction method involved in the present application. For the details not disclosed in the apparatus embodiment of the present application, please refer to the method embodiment of the position correction method involved in the present application.

[0229] Please refer to Figure 12 , in the embodiment of the present application, a position correction apparatus 900 is provided, including but not limited to: an offset detection module 910, a travel acquisition module 930, and a position correction module 950.

[0230] The offset detection module 910 is used to control the target device to move to the target endpoint if it detects that the target device has a travel offset.

[0231] The travel acquisition module 930 is used to acquire the travel information of the target device; the travel information is the information obtained after the target object controls the target device to complete the travel configuration program; the travel information includes a closing point and an opening point.

[0232] The position correction module 950 is used to calculate the correction displacement of the target device based on the closing point, the opening point, and the target endpoint, so as to correct the position of the target device by using the correction displacement.

[0233] In one embodiment, the target device includes a first sub-device and a second sub-device; the first sub-device is used to control the movement of a first target object, and the second sub-device is used to control the movement of a second target object; the offset detection module is configured to determine that the target device has a stroke offset if the position of the first target object and / or the position of the second target object meet the set conditions.

[0234] In one embodiment, the offset detection module is configured to determine that the target device has a stroke offset if the position of the first target object reaches a first end point and / or the position of the second target object reaches a second end point.

[0235] In one embodiment, the offset detection module is configured to determine that the target device has a stroke offset if there is an overlap between the position of the first target object and the position of the second target object.

[0236] In one embodiment, the stroke information includes first stroke information and / or second stroke information; the first stroke information includes a first opening point and a first closing point, and the second stroke information includes a second opening point and a second closing point; the target end points include a first end point and a second end point; the position correction module is configured to, if the first target object has a stroke offset, calculate based on the first opening point, the first closing point, and the first end point to obtain a first correction displacement of the first target object; if the second target object has a stroke offset, calculate based on the second opening point, the second closing point, and the second end point to obtain a second correction displacement of the second target object; and obtain a correction displacement of the target device based on the first correction displacement and / or the second correction displacement.

[0237] In one embodiment, the position correction device is configured to, if a device control instruction for the target device is detected, in response to the device control instruction, control the target device to move according to the device control instruction so that the target device reaches a closing point or an opening point.

[0238] In one embodiment, the offset detection module is configured to detect a stroke offset of the target device if a position correction instruction sent by the user terminal is received.

[0239] In one embodiment, the position correction device is configured to, if it is controlled to enter a stroke configuration program, use a Hall sensor of the target device to determine a target signal for moving from an opening point to a closing point; and calculate a distance based on the target signal to obtain stroke information.

[0240] Please refer to Figure 13 , an embodiment of the present application provides a position correction device 1000, including but not limited to: a page display module 1010 and an instruction sending module 1050.

[0241] The page display module 1010 is configured to display a device page of the target device, and the device page includes a position correction operation item.

[0242] The instruction sending module 1030 is configured to generate a position correction instruction and send it to the target device in response to a trigger operation on the position correction operation item, so that the target device moves in response to the position correction instruction. When the target device moves to the target end point, obtain the travel information of the target device; calculate the correction displacement of the target device based on the travel information and the target end point; and use the correction displacement to perform position correction on the target device.

[0243] In one embodiment, the instruction sending module is configured to, if it detects that the target device has not been configured for travel, display a travel configuration page for the target device. The travel configuration page includes a travel setting entry; in response to a trigger operation on the travel setting entry, control the target device to enter a travel configuration program, so as to control the target device to reach the open point and record the position of the open point; control the target device to reach the closed point and record the position of the closed point; obtain the travel information of the target device based on the positions corresponding to the closed point and the open point, complete the travel configuration of the target device; and generate a position correction instruction and send it to the target device when the travel configuration is completed.

[0244] In one embodiment, the target device includes a first sub-device and a second sub-device; the first sub-device is used to control the movement of a first target object, and the second sub-device is used to control the movement of a second target object; the open point includes a first open point and a second open point; the closed point includes a first closed point and a second closed point; the instruction sending module is configured to control the first target object to reach the first open point and record the position of the first open point; control the first target object to reach the first closed point and record the position of the first closed point; obtain the first travel information of the first target object based on the positions corresponding to the first closed point and the first open point; control the second target object to reach the second open point and record the position of the second open point; control the second target object to reach the second closed point and record the position of the second closed point; obtain the second travel information of the second target object based on the positions corresponding to the second closed point and the second open point; and obtain the travel information of the target device based on the first travel information and the second travel information, and complete the travel configuration of the target device.

[0245] In one embodiment, the instruction sending module is configured to display a first prompt message and a first confirmation entry on the travel configuration page; the first prompt message is used to instruct the user to pull the target device to the position of the open point; in response to a trigger operation on the first confirmation entry, obtain the position of the open point; display a second prompt message and a second confirmation entry on the travel configuration page; the second prompt message is used to instruct the user to pull the target device to the position of the closed point; in response to a trigger operation on the second confirmation entry, obtain the position of the closed point; and obtain the travel information of the target device based on the position of the open point and the position of the closed point, and complete the travel configuration of the target device.

[0246] In one embodiment, a page display module is configured to display a function prompt message and a confirmation correction entry on a device page. The function prompt message is used to prompt the user about the function of position correction. If a confirmation correction operation is detected at the confirmation correction entry, a position correction instruction is generated and sent to the target device.

[0247] In one embodiment, an instruction sending module is configured to obtain the position of the target device. If it is detected that the target device has a travel offset, a position correction instruction is automatically generated and sent to the target device.

[0248] It should be noted that when the above-described position correction device performs position correction, only the above-described division of each functional module is used for illustration. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the position correction device will be divided into different functional modules to complete all or part of the functions described above.

[0249] In addition, the above-described position correction device and the embodiment of the position correction method belong to the same concept. The specific ways in which each module performs operations have been described in detail in the method embodiment and will not be repeated here.

[0250] Please refer to Figure 14 , an electronic device 4000 is provided in an embodiment of the present application. The electronic device 4000 may include: a smart phone, a smart curtain device, a server, a laptop computer, a computer device, etc.

[0251] In Figure 10 , the electronic device 4000 includes at least one processor 4001 and at least one memory 4003.

[0252] Among them, the data interaction between the processor 4001 and the memory 4003 can be realized through at least one communication bus 4002. The communication bus 4002 may include a path for transmitting data between the processor 4001 and the memory 4003. The communication bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The communication bus 4002 can be divided into an address bus, a data bus, a control bus, etc. For the sake of simplicity, only a thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus.

[0253] Optionally, the electronic device 4000 may further include a transceiver 4004, which can be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception, etc. It should be noted that in practical applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation to the embodiments of the present application.

[0254] The processor 4001 can be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of the present application. The processor 4001 can also be a combination that realizes computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0255] The memory 4003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or it can also be an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory), or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, or other magnetic storage devices, or any other medium that can be used to carry or store computer programs in the form of instructions or data structures and can be accessed by the electronic device 400, but is not limited thereto.

[0256] A computer program is stored on the memory 4003, and the processor 4001 can read the computer program stored in the memory 4003 through the communication bus 4002.

[0257] The computer program is executed by one or more processors 4001 to implement the position correction method in the above various embodiments.

[0258] In addition, an embodiment of the present application provides a storage medium, on which a computer program is stored, and the computer program is executed by one or more processors to implement the position correction method described above.

[0259] An embodiment of the present application provides a computer program product, including a computer program, and the computer program is executed by one or more processors to implement the position correction method described above.

[0260] Compared with the related art, it avoids the situation that the target device fails to move to the opening point and closing point indicated by the stroke information when it is opened or closed due to deviation, ensures the movement control of the target device, and the target device can accurately reach the position expected by the user.

[0261] The above are only partial embodiments of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.

Claims

1. A position correction method, characterized in that, Including: If it is detected that the target device has a stroke offset, control the target device to move to the target end point; Obtain the stroke information of the target device; The stroke information is the information obtained after the target object controls the target device to complete the stroke configuration program; the stroke information includes a closing point and an opening point; Based on the closing point, the opening point and the target end point, calculate the correction displacement of the target device to correct the position of the target device by using the correction displacement.

2. The method according to claim 1, wherein The target device includes a first sub-device and a second sub-device; the first sub-device is used to control the movement of a first target object, and the second sub-device is used to control the movement of a second target object; The "if it is detected that the target device has a stroke offset" includes: If the position of the first target object and / or the position of the second target object meet the set conditions, it is determined that the target device has a stroke offset.

3. The method according to claim 2, characterized in that, The "if the position of the first target object and / or the position of the second target object meet the set conditions" includes: If the position of the first target object reaches the first end point, and / or, the position of the second target object reaches the second end point, it is determined that the target device has a stroke offset.

4. The method according to claim 2, wherein The "if the position of the first target object and / or the position of the second target object meet the set conditions" includes: If there is an overlap between the position of the first target object and the position of the second target object, it is determined that the target device has a stroke offset.

5. The method according to claim 2, wherein The stroke information includes first stroke information and / or second stroke information; the first stroke information includes a first opening point and a first closing point, and the second stroke information includes a second opening point and a second closing point; the target end point includes a first end point and a second end point; The "based on the closing point, the opening point and the target end point, calculate the correction displacement of the target device" includes: If the first target object has a stroke offset, calculate based on the first opening point, the first closing point and the first end point to obtain the first correction displacement of the first target object; If the second target object has a stroke offset, calculate based on the second opening point, the second closing point and the second end point to obtain the second correction displacement of the second target object; Based on the first correction displacement and / or the second correction displacement, obtain the correction displacement of the target device.

6. The method according to claim 1, wherein After using the correction displacement to correct the position of the target device, the method further includes: If a device control instruction for the target device is detected; Then in response to the device control instruction, control the target device to move according to the device control instruction so that the target device reaches the closing point or the opening point.

7. The method according to any one of claims 1 to 6, characterized in that The "if it is detected that the target device has a stroke offset" includes: If a position correction instruction sent by the user terminal is received, detect the stroke offset of the target device.

8. The method according to any one of claims 1 to 6, characterized in that, Before obtaining the stroke information of the target device, the method further includes: If being controlled to enter the stroke configuration program, use the Hall sensor of the target device to determine the target signal for moving from the opening point to the closing point; Calculate the distance based on the target signal to obtain the travel information.

9. A position correction method, characterized in that, Including: Display the device page of the target device, where the device page includes a position correction operation item; In response to the trigger operation on the position correction operation item, generate a position correction instruction and send it to the target device, so that the target device moves in response to the position correction instruction. When the target device moves to the target end point, obtain the travel information of the target device; Calculate the correction displacement of the target device based on the travel information and the target end point, so as to perform position correction on the target device using the correction displacement.

10. The method according to claim 9, characterized in that, The response to the trigger operation on the position correction operation item includes: If it is detected that the target device has not configured its travel, display the travel configuration page of the target device, where the travel configuration page includes a travel setting entry; In response to the trigger operation on the travel setting entry, control the target device to enter the travel configuration program, so as to control the target device to reach the open point and record the position of the open point; control the target device to reach the closed point and record the position of the closed point; based on the positions corresponding to the closed point and the open point, obtain the travel information of the target device and complete the travel configuration of the target device; When the travel configuration is completed, generate the position correction instruction and send it to the target device.

11. The method according to claim 10, wherein The target device includes a first sub-device and a second sub-device; the first sub-device is used to control the movement of a first target object, and the second sub-device is used to control the movement of a second target object; the open point includes a first open point and a second open point; the closed point includes a first closed point and a second closed point; The control of the target device to enter the travel configuration program includes: Control the first target object to reach the first open point and record the position of the first open point; control the first target object to reach the first closed point and record the position of the first closed point; based on the positions corresponding to the first closed point and the first open point, obtain the first travel information of the first target object; Control the second target object to reach the second open point and record the position of the second open point; control the second target object to reach the second closed point and record the position of the second closed point; based on the positions corresponding to the second closed point and the second open point, obtain the second travel information of the second target object; Based on the first travel information and the second travel information, obtain the travel information of the target device and complete the travel configuration of the target device.

12. The method according to claim 10, wherein The control of the target device to enter the travel configuration program includes: Display a first prompt message and a first confirmation entry in the travel configuration page; the first prompt message is used to instruct the user to pull the target device to the position of the open point; In response to the trigger operation on the first confirmation entry, obtain the position of the open point; Display a second prompt message and a second confirmation entry in the travel configuration page; the second prompt message is used to instruct the user to pull the target device to the closed point position; In response to a trigger operation on the second confirmation entry, obtain the position of the closing point; Based on the position of the opening point and the position of the closing point, obtain the travel information of the target device, and complete the travel configuration of the target device.

13. The method according to any one of claims 9 to 12, characterized in that, Before generating the position correction instruction and sending it to the target device after completing the travel configuration, the method further includes: Display a function prompt message and a confirmation correction entry on the device page, where the function prompt message is used to prompt the user about the function of position correction; If a confirmation correction operation is detected at the confirmation correction entry, generate the position correction instruction and send it to the target device.

14. The method according to any one of claims 9 to 12, characterized in that The method further includes: Obtain the position of the target device; if it is detected that the target device has a travel offset, automatically generate the position correction instruction and send it to the target device.

15. A device control system, characterized in that, The system includes a target device and a terminal; The terminal is configured to display a device page of the target device, where the device page includes a position correction operation item; in response to a trigger operation on the position correction operation item, generate a position correction instruction and send it to the target device; The target device is configured to move to a target end point in response to the position correction instruction or when it is detected that the target device has a travel offset; Obtain the travel information of the target device; The travel information is the information obtained after the target object controls the target device to complete the travel configuration program; the travel information includes a closing point and an opening point; based on the closing point, the opening point, and the target end point, calculate the correction displacement of the target device to correct the position of the target device using the correction displacement.

16. An intelligent curtain device, characterized in that, The intelligent curtain device is configured to move to a target end point in response to a position correction instruction sent by the terminal or when it is detected that the intelligent curtain device has a travel offset; obtain the travel information of the intelligent curtain device; The travel information is the information obtained after the target object controls the intelligent curtain device to complete the travel configuration program; the travel information includes a closing point and an opening point; based on the closing point, the opening point, and the target end point, calculate the correction displacement of the intelligent curtain device to correct the position of the intelligent curtain device using the correction displacement.

17. The intelligent curtain device according to claim 16, wherein The intelligent curtain device includes a plurality of drive motors and a plurality of Hall sensors; the drive motors are used to drive the intelligent curtain device to move; the Hall sensors are used to obtain the positions of the drive motors.

18. An electronic device includes at least one processor and at least one memory, wherein, A computer program is stored on the memory, and characterized in that when the computer program is executed by the processor, it implements the position calibration method according to any one of claims 1 to 14.

19. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by one or more processors, it implements the position calibration method according to any one of claims 1 to 14.

20. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by one or more processors, it implements the position calibration method according to any one of claims 1 to 14.

Citation Information

Cited By

  • Equipment control method, device, system, equipment, storage medium and program product

    CN120979862A