Control method and device of electric sunshade device, electronic equipment and storage medium
By optimizing the structure and control methods of the electric sunshade device, the problem of excessive sunshade curtains is solved, reducing weight and development difficulty, and improving the system's response speed and user experience.
Patent Information
- Application Number
- CN202411665849.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-02-21
AI Technical Summary
The sky curtain is too heavy, resulting in an increase in the weight of the entire vehicle, affecting the lightweight demand of electric vehicles, and reducing the user's riding experience.
By optimizing the structure and control method of the electric sunshade device, the soft shaft and rear beam are eliminated, special pull wires and electric frames are used to integrate control logic into the body domain controller, reducing the number of electronic components.
The weight of the sky curtain is reduced, the difficulty of development is reduced, and the system's response speed and reliability are improved, and the user's riding experience is improved.
Smart Images

Figure CN119489671A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a control method, device, electronic device and storage medium for an electric sunshade device. Background Art
[0002] Skylight sunshade is a practical vehicle accessory that not only reduces direct sunlight and glare, but also slows down the temperature rise in the car and improves riding comfort.
[0003] The electric sunshade of the skylight generally includes: a frame assembly (including front crossbeam, rear crossbeam and left / right guide rails), a curtain assembly, a controller assembly, and a flexible shaft. The flexible shaft is driven by the motor module in the controller, and the flexible shaft drives the movement of the sunshade. The controller assembly communicates with the entire vehicle through a wiring harness, and control commands can be input on the vehicle side through hard switches, voice, and large screens. As the area of the skylight increases, the weight of the vehicle becomes heavier. For electric vehicles, lightweighting is even more important.
[0004] Related technologies reduce the weight of the skylight by eliminating electric sunshades and using new glass, but the increased temperature inside the car and the weakened shading effect also reduce the user's riding experience. Summary of the invention
[0005] The present application provides a control method, device, electronic device and storage medium for an electric sunshade device to solve the problem of excessive weight of the skylight sunshade. By optimizing the structure of the electric sunshade device and the control method of the electric sunshade device, the weight of the skylight sunshade is reduced and the development difficulty is reduced.
[0006] The first aspect of the present application provides a control method for an electric sunshade device, wherein the electric sunshade device comprises: a sunshade frame, a front crossbeam, a left guide rail, a motor frame and a right guide rail connected end to end in sequence, a motor, a pull wire, a pull plate, a sunshade curtain and a roller envelope, wherein the roller envelope is assembled on the motor frame, the motor is connected to the pull plate through the pull wire, and the pull plate is fixed between the left guide rail and the right guide rail, wherein the method comprises:
[0007] Obtaining control instructions of the electric sunshade device and current status data of the sunshade curtain;
[0008] Determine the target state data of the sunshade according to the control instruction, and determine the execution action and execution data based on the target state data and the current state data;
[0009] When the execution action is expansion, the expansion length is determined according to the execution data, and the motor is controlled to run counterclockwise to drive the sunshade to expand to the expansion length. When the execution action is retraction, the retraction length is determined according to the execution data, and the motor is controlled to run clockwise to drive the sunshade to retract to the retracted length.
[0010] Optionally, in some embodiments, when controlling the motor to run counterclockwise to drive the sunshade to unfold to the unfolded length, the method includes:
[0011] Determining whether there is an obstacle in the deployment path of the sunshade;
[0012] If the obstacle exists in the deployment path, the motor is controlled to stop running.
[0013] Optionally, in some embodiments, the determining whether there is an obstacle in the deployment path of the sunshade curtain includes:
[0014] Obtaining the locked-rotor current of the motor;
[0015] If the stall current is greater than a preset current threshold, it is determined that the obstacle exists in the deployment path.
[0016] Optionally, in some embodiments, the determining whether there is an obstacle in the deployment path of the sunshade curtain includes:
[0017] Acquiring pressure sensing data of the pull plate;
[0018] If the pressure sensing data is greater than a preset pressure threshold, it is determined that the obstacle exists in the deployment path.
[0019] Optionally, in some embodiments, after determining the execution action and the execution data based on the target state data and the current state data, the method further includes:
[0020] Determining whether the execution data is greater than a preset limit threshold;
[0021] If the execution data is greater than the preset limit threshold, an abnormality reminder instruction is generated, and an abnormality reminder is performed based on the abnormality reminder instruction.
[0022] A second aspect of the present application provides a control device for an electric sunshade device, the electric sunshade device comprising: a sunshade frame, a front crossbeam, a left guide rail, a motor frame and a right guide rail connected end to end in sequence, a motor, a pull wire, a pull plate, a sunshade curtain and a roller envelope, the roller envelope is assembled on the motor frame, the motor is connected to the pull plate through the pull wire, and the pull plate is fixed between the left guide rail and the right guide rail, wherein the control device of the electric sunshade device comprises:
[0023] An acquisition module, used to acquire the control instructions of the electric sunshade device and the current state data of the sunshade curtain;
[0024] a determination module, configured to determine target state data of the sunshade according to the control instruction, and determine an execution action and execution data based on the target state data and the current state data;
[0025] A control module is used to determine the expansion length according to the execution data when the execution action is expansion, and control the motor to run counterclockwise to drive the sunshade to expand to the expansion length; when the execution action is retraction, determine the retraction length according to the execution data, and control the motor to run clockwise to drive the sunshade to retract to the retracted length.
[0026] Optionally, in some embodiments, when controlling the motor to run counterclockwise to drive the sunshade to unfold to the unfolded length, the control module includes:
[0027] A first judging unit, used to judge whether there is an obstacle in the deployment path of the sunshade;
[0028] The control unit is used to control the motor to stop running when the obstacle exists in the deployment path.
[0029] Optionally, in some embodiments, the first determining unit includes:
[0030] A first acquisition subunit, used for acquiring the locked-rotor current of the motor;
[0031] The first determination subunit is used to determine that the obstacle exists in the deployment path when the stall current is greater than a preset current threshold.
[0032] Optionally, in some embodiments, the first determining unit includes:
[0033] A second acquisition subunit, used for acquiring pressure sensing data of the pull plate;
[0034] The second determination subunit is configured to determine that the obstacle exists in the deployment path when the pressure sensing data is greater than a preset pressure threshold.
[0035] Optionally, in some embodiments, after determining the execution action and the execution data based on the target state data and the current state data, the determination module further includes:
[0036] A second judgment unit, configured to judge whether the execution data is greater than a preset limit threshold;
[0037] The reminder unit is used to generate an abnormal reminder instruction when the execution data is greater than the preset limit threshold, and to make an abnormal reminder based on the abnormal reminder instruction.
[0038] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the control method of the electric sunshade device as described in the above embodiment.
[0039] The fourth aspect of the present application provides a computer-readable storage medium on which a computer program is stored. The program is executed by a processor to implement the control method of the electric sunshade device as described in the above embodiment.
[0040] Thus, by obtaining the control instruction of the electric sunshade device and the current state data of the sunshade, and determining the target state data of the sunshade according to the control instruction, the execution action and execution data are determined based on the target state data and the current state data. When the execution action is to unfold, the unfolding length is determined according to the execution data, and the motor is controlled to run counterclockwise to drive the sunshade to unfold to the unfolding length. When the execution action is to retract, the retracting length is determined according to the execution data, and the motor is controlled to run clockwise to drive the sunshade to retract to the retracting length. Thus, the problem of the skylight sunshade being too heavy is solved. By optimizing the structure of the electric sunshade device and the control method of the electric sunshade device, the weight of the skylight sunshade is reduced, and the development difficulty is reduced.
[0041] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0043] Figure 1 A flow chart of a control method for an electric sunshade device provided according to an embodiment of the present application;
[0044] Figure 2 A schematic diagram of an electric sunshade device provided according to an embodiment of the present application;
[0045] Figure 3 A block diagram of a control device for an electric sunshade device provided according to an embodiment of the present application;
[0046] Figure 4 It is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0047] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0048] The following describes the control method, device, electronic device and storage medium of the electric sunshade device of the embodiment of the present application with reference to the accompanying drawings. In view of the problem of the skylight sunshade being too heavy mentioned in the above background technology, the present application provides a control method for an electric sunshade device, in which the control instruction of the electric sunshade device and the current state data of the sunshade are obtained, and the target state data of the sunshade is determined according to the control instruction, and the execution action and execution data are determined based on the target state data and the current state data. When the execution action is to unfold, the unfolding length is determined according to the execution data, and the motor is controlled to run counterclockwise to drive the sunshade to unfold to the unfolding length. When the execution action is to retract, the retracting length is determined according to the execution data, and the motor is controlled to run clockwise to drive the sunshade to retract to the retracted length. In this way, the problem of the skylight sunshade being too heavy is solved, and the weight of the skylight sunshade is reduced by optimizing the structure of the electric sunshade device and the control method of the electric sunshade device, thereby reducing the difficulty of development.
[0049] Specifically, Figure 1 A flow chart of a control method for an electric sunshade device provided in an embodiment of the present application.
[0050] It should be noted that the control method of the electric sunshade device in the embodiment of the present application is applied to an electric sunshade device, such as Figure 2 As shown, the electric sunshade device includes: a sunshade frame composed of a front crossbeam, a left guide rail, a motor frame and a right guide rail connected end to end in sequence, a motor, a pull wire, a pull plate, a sunshade curtain and a roller envelope, the roller envelope is assembled on the motor frame, the motor is connected to the pull plate through the pull wire, and the pull plate is fixed between the left guide rail and the right guide rail.
[0051] Traditional sunshade systems use flexible shafts to transmit the power of the motor to control the opening and closing of the sunshade. The electric sunshade device of the embodiment of the present application eliminates the flexible shaft and replaces it with a special pull wire, which can simplify the structure, reduce the number of parts, and may improve the response speed and reliability of the system. The special pull wire can be a high-strength fiber material to ensure performance and durability under high loads.
[0052] The rear crossbeam plays a supporting and fixing role in the sunshade structure. In the embodiment of the present application, the rear crossbeam can be eliminated and replaced with a motor frame, which can reduce material usage and reduce weight. At the same time, the motor frame can provide the necessary structural support and motor installation platform.
[0053] The traditional sunshade system includes an independent control module for processing the control signal of the motor. The embodiment of the present application eliminates the control module and integrates the control logic into the body domain controller, thereby reducing the number of electronic components and reducing costs, while improving the system's integration and intelligence level. The embodiment of the present application can use a motor with a Hall sensor to provide precise position and speed feedback, allowing the body domain controller to accurately control the sunshade.
[0054] like Figure 1 As shown, in step S101, the control instruction of the electric sunshade device and the current state data of the sunshade curtain are obtained.
[0055] Among them, the control instructions of the electric sunshade device can come from the user interface, sensor input or remote control system control, which is not specifically limited here.
[0056] Specifically, the user can issue a control command to "expand the sunshade to 50%"; can use the sunshade switch, for example, long press the expansion button, or long press the retraction button; can also remotely control it through a mobile phone APP, the current status data includes the operating status of the sunshade, and the actual position, for example, the sunshade is in the process of expanding and is currently expanded 50%.
[0057] In step S102, target state data of the sunshade is determined according to the control instruction, and an execution action and execution data are determined based on the target state data and current state data.
[0058] Specifically, the target state of the sunshade is determined according to the control instruction. For example, if the control instruction is "unfold to 50%", the target state data is that the sunshade is unfolded to 50% of the total length. If the current state data is that the sunshade is unfolded to 20% of the total length, the execution action is determined to be unfolding, and the execution data is that the unfolded length is 30% of the total length. If the current state data is that the sunshade is unfolded to 80% of the total length, the execution action is determined to be retracting, and the execution data is that the retracted length is 30% of the total length.
[0059] Optionally, in some embodiments, after determining the execution action and execution data based on the target state data and the current state data, it also includes: judging whether the execution data is greater than a preset limit threshold; if the execution data is greater than the preset limit threshold, generating an abnormal reminder instruction, and performing an abnormal reminder based on the abnormal reminder instruction.
[0060] It is understandable that in order to prevent the sunshade from malfunctioning, an over-limit protection mechanism may be provided during the process of unfolding or retracting the sunshade to prevent the sunshade from exceeding its physical limit.
[0061] Specifically, after determining the execution action and data, the system will determine whether these data exceed the preset limit threshold. The limit threshold refers to the maximum or minimum value for safe operation of the system, for example, the maximum angle or speed limit of motor rotation. If the execution data exceeds these safety limits, the system needs to take measures to prevent possible damage or failure. Once it is detected that the execution data exceeds the preset limit threshold, the system will generate an abnormal reminder instruction. The abnormal reminder instruction will trigger an alarm or notification to remind the user or system administrator of potential problems. Among them, the abnormal reminder can be a sound alarm, a visual prompt, or a notification sent through the smart home system, which is not specifically limited here.
[0062] In step S103, when the execution action is expansion, the expansion length is determined according to the execution data, and the motor is controlled to run counterclockwise to drive the sunshade to expand to the expansion length. When the execution action is retraction, the retraction length is determined according to the execution data, and the motor is controlled to run clockwise to drive the sunshade to retract to the retracted length.
[0063] Specifically, when the execution action is retraction, the retraction length is determined according to the execution data, the motor is turned on and runs clockwise, the reel reels the curtain cloth, the winding wheel unwinds the wire, the pull plate is pulled back by the curtain cloth to complete the retraction, the tension spring shortens it to offset the difference in linear speed, and the spring restores the preload; when the execution action is unfolding, the unfolding length is determined according to the execution data, the motor runs counterclockwise, the winding wheel reels the wire, the pull plate is pulled forward, the tension spring is stretched to offset the difference in linear speed, and a tensile force is generated to tighten the curtain cloth. In this embodiment of the application, the motor only acts as an actuator of the motion.
[0064] Optionally, in some embodiments, when controlling the motor to run counterclockwise to drive the sunshade to unfold to the unfolded length, it includes: determining whether there is an obstacle in the unfolding path of the sunshade; if there is an obstacle in the unfolding path, controlling the motor to stop running.
[0065] Specifically, the body domain controller receives signals from sensors, determines the working status of the sunshade, and then controls the operation of the motor to realize the opening and closing of the sunshade and adjust its position. In the process of controlling the motor to run counterclockwise to drive the sunshade to unfold to the unfolded length, the system will perform a series of judgments and operations. During the unfolding of the sunshade, the system will determine whether there are any abnormal conditions in the unfolding path of the sunshade, such as obstacles. If there is an obstacle in the unfolding path, the controller will immediately send a command to the motor to stop it to avoid damaging the sunshade or the motor. In the actual process, the body domain controller detects the obstacle and stops the motor. It can also generate abnormal reminder instructions, which will trigger alarms or notifications to remind users or system administrators of potential problems.
[0066] Optionally, in some embodiments, determining whether there is an obstacle in the deployment path of the sunshade includes: obtaining a stall current of the motor; if the stall current is greater than a preset current threshold, determining that there is an obstacle in the deployment path.
[0067] The preset current threshold may be pre-set by a user, obtained through a limited number of experiments, or obtained through a limited number of computer simulations, which is not specifically limited here.
[0068] Specifically, the motor of the embodiment of the present application can be equipped with a current sensor for real-time monitoring of the motor current. During the unfolding of the sunshade, the body domain controller will continuously obtain the stall current of the motor, that is, the current change caused by the resistance encountered by the motor during operation. The embodiment of the present application sets a current threshold, which is determined based on the current level of the motor when it is working normally and the historical current performance of the motor when encountering obstacles. When the sunshade is unfolded, if the stall current detected by the current sensor exceeds the preset current threshold, the body domain controller will think that there may be an obstacle. After determining that there is an obstacle, the body domain controller will immediately take measures to control the motor to stop running to avoid possible damage caused by continued unfolding of the sunshade.
[0069] Optionally, in some embodiments, determining whether there is an obstacle in the deployment path of the sunshade includes: obtaining pressure sensing data of the pull plate; if the pressure sensing data is greater than a preset pressure threshold, determining that there is an obstacle in the deployment path.
[0070] The preset pressure threshold may be pre-set by a user, obtained through a limited number of experiments, or obtained through a limited number of computer simulations, and is not specifically limited here.
[0071] Specifically, a pressure sensor can be installed on the pull plate of the embodiment of the present application. The pressure sensor can monitor the pressure of the sunshade in real time during the process of unfolding or retracting. The body domain controller determines whether there is an obstacle in the unfolding path of the sunshade through the pressure sensor data. The preset pressure threshold of the embodiment of the present application can be determined based on the pressure range of the sunshade during normal operation and the pressure performance of the sunshade when encountering obstacles in history. When the sunshade is unfolded, the body domain controller will continue to monitor the data of the pressure sensor. If the pressure sensor data exceeds the preset pressure threshold, the system will think that there may be an obstacle in the unfolding path of the sunshade. This judgment is based on the analysis of pressure changes. If the pressure change exceeds the set threshold, the body domain controller will execute the corresponding anti-pinch strategy. Take immediate measures to control the motor to stop running to avoid possible damage caused by the continued unfolding of the sunshade.
[0072] According to the control method of the electric sunshade device proposed in the embodiment of the present application, by obtaining the control instruction of the electric sunshade device and the current state data of the sunshade, and determining the target state data of the sunshade according to the control instruction, the execution action and execution data are determined based on the target state data and the current state data. When the execution action is to unfold, the unfolding length is determined according to the execution data, and the motor is controlled to run counterclockwise to drive the sunshade to unfold to the unfolding length. When the execution action is to retract, the retracting length is determined according to the execution data, and the motor is controlled to run clockwise to drive the sunshade to retract to the retracting length. In this way, the problem of the awning sunshade being too heavy is solved. By optimizing the structure of the electric sunshade device and the control method of the electric sunshade device, the weight of the awning sunshade is reduced, and the development difficulty is reduced.
[0073] Next, the control device of the electric sunshade device proposed in the embodiment of the present application is described with reference to the accompanying drawings.
[0074] Figure 3 It is a block diagram of a control device of an electric sunshade device according to an embodiment of the present application.
[0075] The electric sunshade device includes: a sunshade frame, a front crossbeam, a left guide rail, a motor frame and a right guide rail connected end to end, a motor, a pull wire, a pull plate, a sunshade curtain and a reel envelope, the reel envelope is assembled on the motor frame, the motor is connected to the pull plate through the pull wire, and the pull plate is fixed between the left guide rail and the right guide rail. Figure 3 As shown, the control device 10 of the electric sunshade device includes: an acquisition module 100, a determination module 200 and a control module 300.
[0076] The acquisition module 100 is used to acquire the control instructions of the electric sunshade device and the current status data of the sunshade curtain.
[0077] The determination module 200 is used to determine the target state data of the sunshade according to the control instruction, and determine the execution action and execution data based on the target state data and the current state data.
[0078] The control module 300 is used to determine the expansion length according to the execution data when the execution action is expansion, and control the motor to run counterclockwise to drive the sunshade to expand to the expansion length; when the execution action is retraction, determine the retraction length according to the execution data, and control the motor to run clockwise to drive the sunshade to retract to the retracted length.
[0079] Optionally, in some embodiments, when the motor is controlled to run counterclockwise to drive the sunshade to unfold to an unfolded length, the control module 300 includes: a first judgment unit and a control unit.
[0080] The first judgment unit is used to judge whether there is an obstacle in the deployment path of the sunshade.
[0081] The control unit is used for controlling the motor to stop running when there is an obstacle in the unfolding path.
[0082] Optionally, in some embodiments, the first judgment unit includes: a first acquisition subunit and a first determination subunit.
[0083] Wherein, the first acquisition subunit is used to acquire the stall current of the motor.
[0084] The first determination subunit is used to determine that an obstacle exists in the deployment path when the stall current is greater than a preset current threshold.
[0085] Optionally, in some embodiments, the first judgment unit includes: a second acquisition subunit and a second determination subunit.
[0086] Wherein, the second acquisition subunit is used to acquire the pressure sensing data of the pull plate.
[0087] The second determination subunit is used to determine that there is an obstacle in the deployment path when the pressure sensing data is greater than a preset pressure threshold.
[0088] Optionally, in some embodiments, after determining the execution action and the execution data based on the target state data and the current state data, the determination module 200 further includes: a second judgment unit and a reminder unit.
[0089] The second judgment unit is used to judge whether the execution data is greater than a preset limit threshold.
[0090] The reminder unit is used to generate an abnormal reminder instruction when the execution data is greater than a preset limit threshold, and to make an abnormal reminder based on the abnormal reminder instruction.
[0091] It should be noted that the above explanation of the embodiment of the control method of the electric sunshade device is also applicable to the control device of the electric sunshade device of this embodiment, and will not be repeated here.
[0092] According to the control device of the electric sunshade device proposed in the embodiment of the present application, by obtaining the control instruction of the electric sunshade device and the current state data of the sunshade, and determining the target state data of the sunshade according to the control instruction, the execution action and execution data are determined based on the target state data and the current state data. When the execution action is to unfold, the unfolding length is determined according to the execution data, and the motor is controlled to run counterclockwise to drive the sunshade to unfold to the unfolding length. When the execution action is to retract, the retracting length is determined according to the execution data, and the motor is controlled to run clockwise to drive the sunshade to retract to the retracting length. In this way, the problem of the awning sunshade being too heavy is solved. By optimizing the structure of the electric sunshade device and the control method of the electric sunshade device, the weight of the awning sunshade is reduced, and the development difficulty is reduced.
[0093] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:
[0094] Memory 401 , processor 402 , and a computer program stored in the memory 401 and executable on the processor 402 .
[0095] When the processor 402 executes the program, the control method of the electric sunshade device provided in the above embodiment is implemented.
[0096] Furthermore, the electronic device further comprises:
[0097] The communication interface 403 is used for communication between the memory 401 and the processor 402 .
[0098] The memory 401 is used to store computer programs that can be executed on the processor 402 .
[0099] The memory 401 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.
[0100] If the memory 401, the processor 402 and the communication interface 403 are implemented independently, the communication interface 403, the memory 401 and the processor 402 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0101] Optionally, in a specific implementation, if the memory 401, the processor 402 and the communication interface 403 are integrated on a chip, the memory 401, the processor 402 and the communication interface 403 can communicate with each other through an internal interface.
[0102] The processor 402 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
[0103] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the control method of the electric sunshade device as described above.
[0104] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0105] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0106] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0107] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.
[0108] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0109] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in the field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A control method for an electric sunshade device, characterized in that: The electric sunshade device comprises: a sunshade frame, a front crossbeam, a left guide rail, a motor frame and a right guide rail connected end to end in sequence, a motor, a pull wire, a pull plate, a sunshade curtain and a reel envelope, wherein the reel envelope is mounted on the motor frame, the motor is connected to the pull plate through the pull wire, and the pull plate is fixed between the left guide rail and the right guide rail, wherein the method comprises: Obtaining control instructions of the electric sunshade device and current status data of the sunshade curtain; Determine the target state data of the sunshade according to the control instruction, and determine the execution action and execution data based on the target state data and the current state data; When the execution action is expansion, the expansion length is determined according to the execution data, and the motor is controlled to run counterclockwise to drive the sunshade to expand to the expansion length. When the execution action is retraction, the retraction length is determined according to the execution data, and the motor is controlled to run clockwise to drive the sunshade to retract to the retracted length.
2. The method according to claim 1, characterized in that When the motor is controlled to run counterclockwise to drive the sunshade to unfold to the unfolded length, the method includes: Determining whether there is an obstacle in the deployment path of the sunshade; If the obstacle exists in the deployment path, the motor is controlled to stop running.
3. The method according to claim 2, characterized in that The determining whether there is an obstacle in the deployment path of the sunshade curtain includes: Obtaining the locked-rotor current of the motor; If the stall current is greater than a preset current threshold, it is determined that the obstacle exists in the deployment path.
4. The method according to claim 2, characterized in that: The determining whether there is an obstacle in the deployment path of the sunshade curtain includes: Acquiring pressure sensing data of the pull plate; If the pressure sensing data is greater than a preset pressure threshold, it is determined that the obstacle exists in the deployment path.
5. The method according to claim 1, characterized in that After determining the execution action and the execution data based on the target state data and the current state data, the method further includes: Determining whether the execution data is greater than a preset limit threshold; If the execution data is greater than the preset limit threshold, an abnormality reminder instruction is generated, and an abnormality reminder is performed based on the abnormality reminder instruction.
6. A control device for an electric sunshade device, characterized in that: The electric sunshade device comprises: a sunshade frame, a front crossbeam, a left guide rail, a motor frame and a right guide rail connected end to end in sequence, a motor, a pull wire, a pull plate, a sunshade curtain and a reel envelope, the reel envelope is assembled on the motor frame, the motor is connected to the pull plate through the pull wire, and the pull plate is fixed between the left guide rail and the right guide rail, wherein the control device of the electric sunshade device comprises: An acquisition module, used to acquire the control instructions of the electric sunshade device and the current state data of the sunshade curtain; a determination module, configured to determine target state data of the sunshade according to the control instruction, and determine an execution action and execution data based on the target state data and the current state data; A control module is used to determine the expansion length according to the execution data when the execution action is expansion, and control the motor to run counterclockwise to drive the sunshade to expand to the expansion length; when the execution action is retraction, determine the retraction length according to the execution data, and control the motor to run clockwise to drive the sunshade to retract to the retracted length.
7. The device according to claim 6, characterized in that When the motor is controlled to run counterclockwise to drive the sunshade to unfold to the unfolded length, the control module includes: A first judging unit, used to judge whether there is an obstacle in the deployment path of the sunshade; The control unit is used to control the motor to stop running when the obstacle exists in the deployment path.
8. The device according to claim 7, characterized in that The first judging unit includes: A first acquisition subunit, used for acquiring the locked-rotor current of the motor; The first determination subunit is used to determine that the obstacle exists in the deployment path when the stall current is greater than a preset current threshold.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the control method of the electric sunshade device as described in any one of claims 1 to 5.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the control method of the electric sunshade device as described in any one of claims 1 to 5.