Grid physical stop point determination method, device, equipment, medium and product

By acquiring stepper motor rotation angle information, the grille rotation angle and direction are determined, solving the problem of increased cost due to sensors, achieving accurate control of grille opening, simplifying the control process, and improving the power and economy of commercial vehicles.

CN115583145BActive Publication Date: 2026-05-29FAW JIEFANG AUTOMOTIVE CO

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
FAW JIEFANG AUTOMOTIVE CO
Filing Date
2022-11-07
Publication Date
2026-05-29

Smart Images

  • Figure CN115583145B_ABST
    Figure CN115583145B_ABST
Patent Text Reader

Abstract

The application relates to a grid physical stop point determination method and device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: firstly, acquiring motor rotation angle information output by a stepping motor; then, determining an initial grid rotation angle and a grid rotation direction according to the motor rotation angle information; then, controlling grid rotation according to the initial grid rotation angle and the grid rotation direction to obtain a target grid rotation angle; and finally, determining a grid physical stop point according to the target grid rotation angle and a preset grid rotation angle range. The method provided by the application directly controls grid rotation according to the motor rotation angle information output by the stepping motor, determines the grid physical stop point, does not need to additionally increase devices, can effectively save costs, and the whole control process is relatively simple.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic control technology for commercial vehicles, and in particular to a method, apparatus, computer equipment, storage medium, and computer program product for determining the physical stop point of a grille. Background Technology

[0002] With the development of electronic control technology in commercial vehicles, the electrification of various fuel-saving accessories is increasingly being applied to commercial vehicles, and electronically controlled active grilles are one of the more important fuel-saving accessories. Active grilles have two significant advantages over traditional mechanically fixed grilles: firstly, they can effectively reduce oncoming wind resistance; and secondly, they can insulate the engine compartment, thereby improving the vehicle's power and fuel economy. To realize these two advantages of active grilles, it is necessary to solve the problem of active grille opening and closing, especially accurately determining the grille opening degree to achieve optimal insulation and a lower drag coefficient.

[0003] Currently, the common method for determining the grille opening is to use a grille position sensor. However, this method increases costs and complicates the control process by adding an extra sensor. Summary of the Invention

[0004] Therefore, it is necessary to provide a method, apparatus, computer device, computer-readable storage medium, and computer program product for determining the physical stop point of a grid, which can reduce costs and simplify the control process, in order to address the above-mentioned technical problems.

[0005] Firstly, this application provides a method for determining the physical stop point of a grid. The method includes:

[0006] Obtain the motor rotation angle information output by the stepper motor;

[0007] The initial grille angle and grille rotation direction are determined based on the motor rotation angle information;

[0008] The target grid rotation angle is obtained by controlling the grid rotation based on the initial grid rotation angle and the grid rotation direction.

[0009] The physical stop point of the grille is determined based on the target grille angle and the preset grille angle range.

[0010] In one embodiment, determining the physical stop point of the grille based on the target grille angle and a preset grille angle range includes:

[0011] Determine whether the target grille angle is within the preset grille angle range;

[0012] If the target grille rotation angle is within the preset grille rotation angle range, then the starting and ending positions of the grille rotation are determined as the physical stop points of the grille.

[0013] In one embodiment, after determining whether the target grille angle is within the preset grille angle range, the method further includes:

[0014] If the target grille angle is not within the preset grille angle range, then obtain the maximum and minimum preset angles within the preset grille angle range;

[0015] If the target grille angle is less than the minimum preset angle, a first fault alarm is issued, indicating that the grille is blocked.

[0016] In one embodiment, after obtaining the maximum and minimum preset angles within the preset grille angle range, the method further includes:

[0017] If the target grille rotation angle is greater than the maximum preset rotation angle, a second fault alarm is issued, which indicates that the mechanical stop point of the grille is damaged.

[0018] In one embodiment, before controlling the grid rotation based on the initial grid rotation angle and the grid rotation direction to obtain the target grid rotation angle, the method further includes:

[0019] Determine whether the grille is in a fully open state or a fully closed state;

[0020] If the grille is not in the fully open state and is not in the fully closed state, a third fault alarm will be issued;

[0021] If the grille is in a fully open or fully closed state, then the step of controlling the grille rotation based on the initial grille rotation angle and the grille rotation direction to obtain the target grille rotation angle is executed.

[0022] In one embodiment, before obtaining the motor rotation angle information output by the stepper motor, the method further includes:

[0023] Acquire pulse signals;

[0024] The stepper motor is controlled to calculate the motor rotation angle information based on the pulse signal.

[0025] Secondly, this application also provides a device for determining the physical stop point of a grille. The device includes:

[0026] The acquisition module is used to acquire the motor rotation angle information output by the stepper motor;

[0027] The first determining module is used to determine the initial grille angle and grille rotation direction based on the motor angle information;

[0028] The control module is used to control the rotation of the grille according to the initial grille rotation angle and the grille rotation direction to obtain the target grille rotation angle;

[0029] The second determining module is used to determine the physical stop point of the grille based on the target grille angle and the preset grille angle range.

[0030] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the methods in any of the above embodiments.

[0031] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps of the methods in any of the above embodiments.

[0032] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the methods in any of the above embodiments.

[0033] The aforementioned method, apparatus, computer equipment, storage medium, and computer program product for determining the physical stop point of the grille first acquires the motor rotation angle information output by the stepper motor, then determines the initial grille rotation angle and the grille rotation direction based on the motor rotation angle information, next controls the grille rotation based on the initial grille rotation angle and the grille rotation direction to obtain the target grille rotation angle, and finally determines the physical stop point of the grille based on the target grille rotation angle and a preset grille rotation angle range. The method provided in this application directly controls the grille rotation based on the motor rotation angle information output by the stepper motor and determines the physical stop point of the grille, without requiring additional equipment, effectively saving costs, and the entire control process is relatively simple. Attached Figure Description

[0034] Figure 1 This is an application environment diagram of the method for determining the physical stop point of a grille in one embodiment;

[0035] Figure 2 This is a flowchart illustrating a method for determining the physical stop point of a grille in one embodiment;

[0036] Figure 3 This is a flowchart illustrating a method for determining grille faults in one embodiment;

[0037] Figure 4 This is a schematic diagram of the operation of the active grille in one embodiment;

[0038] Figure 5 This is a structural block diagram of a grid physical stop point determination device in one embodiment;

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

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

[0041] The method for determining the physical stop point of a grille provided in this application embodiment can be applied to, for example... Figure 1 The application environment shown in the diagram includes a controller 102, a stepper motor 104, and an active grille 106. The controller 102 can be a vehicle controller or an engine controller. Specifically, the controller 102 controls the stepper motor 104 to output motor angle information, and controls the active grille 106 to rotate based on the motor angle information output by the stepper motor 104. Finally, the physical stop position of the grille is determined based on the rotation of the active grille 106.

[0042] In one embodiment, such as Figure 2 As shown, a method for determining the physical stop point of a grid is provided, which can be applied to... Figure 1 Taking the controller in the example, the following steps are included:

[0043] S202. Obtain the motor rotation angle information output by the stepper motor.

[0044] A stepper motor is a type of electric motor that converts electrical pulse signals into corresponding angular or linear displacement. For each input pulse signal, the rotor rotates by an angle or moves forward one step. The output angular or linear displacement is proportional to the number of input pulses, and the rotational speed is proportional to the pulse frequency. The motor rotation information includes the angular displacement output by the stepper motor and the direction of rotation of the stepper motor.

[0045] Specifically, the controller controls the stepper motor to convert pulse signals into angular displacement, and obtains the angular displacement output by the stepper motor and the direction of rotation of the stepper motor.

[0046] S204. Determine the initial grille angle and grille rotation direction based on the motor rotation angle information.

[0047] The initial grille rotation angle refers to the angle at which the active grille should rotate, determined based on the motor rotation angle information. The initial grille rotation angle and the angular displacement output by the stepper motor in the motor rotation angle information are equal. The grille rotation direction is the actual direction of grille rotation, which is opposite to the direction of stepper motor rotation.

[0048] Specifically, after obtaining the motor rotation angle information, the controller determines the angular displacement output by the stepper motor as the initial grille rotation angle, and at the same time determines the opposite direction to the stepper motor rotation direction as the grille rotation direction.

[0049] S206. The target grid rotation angle is obtained by controlling the grid rotation according to the initial grid rotation angle and the grid rotation direction.

[0050] The target grille rotation angle refers to the actual angle of rotation of the active grille.

[0051] Specifically, the controller uses the initial grid rotation angle as the rotation angle magnitude and the grid rotation direction as the rotation direction to control the active grid rotation.

[0052] Before the grille rotates, the controller will also determine whether the grille is in a fully open or fully closed state according to the preset settings, in order to determine whether there is an error in the grille position information.

[0053] S208. Determine the physical stop point of the grille based on the target grille angle and the preset grille angle range.

[0054] The physical stop point of the grille refers to the starting and ending positions of the grille when it actually rotates. The starting and ending positions can be determined as the fully open physical stop point or the fully closed physical stop point according to the direction of grille rotation.

[0055] Specifically, to avoid the influence of external factors and grid malfunctions on the final determined target grid rotation angle during the grid rotation process, a reasonable preset grid rotation angle range needs to be set in advance based on the standard angle between the fully open and fully closed mechanical stop points marked on the grid nameplate. This range is used to judge whether the grid rotation process is normal. If the obtained target grid rotation angle is not within the preset range, the factors affecting grid rotation will be determined by comparing the target grid rotation angle with the upper and lower limits of the preset range, and corresponding alarm information will be issued to remind the staff to handle it in time. For example, if the standard angle on the grid nameplate is 90 degrees, the staff will use an angle range of 80 degrees or greater and 100 degrees or less as the preset grid rotation angle range based on experience and grid quality. Then, the controller determines the factors affecting grid rotation by judging whether the target grid rotation angle is less than 80 degrees or greater than 100 degrees. After determining that the target grid rotation angle is within the preset range, the controller determines the fully open and fully closed physical stop points of the grid based on the target grid rotation angle and the grid rotation direction.

[0056] In the aforementioned method for determining the physical stop point of the grille, the motor rotation angle information output by the stepper motor is first obtained. Then, the initial grille rotation angle and the grille rotation direction are determined based on the motor rotation angle information. Next, the grille rotation is controlled based on the initial grille rotation angle and the grille rotation direction to obtain the target grille rotation angle. Finally, the physical stop point of the grille is determined based on the target grille rotation angle and a preset grille rotation angle range. The method provided in this application directly controls the grille rotation based on the motor rotation angle information output by the stepper motor and determines the physical stop point of the grille. No additional devices are required, which can effectively save costs, and the entire control process is relatively simple.

[0057] In some embodiments, determining the physical stop point of the grille based on the target grille rotation angle and a preset grille rotation angle range includes: determining whether the target grille rotation angle is within the preset grille rotation angle range; if the target grille rotation angle is within the preset grille rotation angle range, then determining the starting position and ending position of the grille rotation as the physical stop point of the grille.

[0058] In this step, if the direction of the grille rotation is from the fully open position to the fully closed position, then the starting position is the fully open physical stop point and the ending position is the fully closed physical stop point. If the direction of the grille rotation is from the fully closed position to the fully open position, then the starting position is the fully closed physical stop point and the ending position is the fully open physical stop point.

[0059] The method provided in this step determines the physical stop point of the grille by judging whether the target grille rotation angle is within the preset grille rotation angle range, which can avoid the influence of grille failure or environmental factors on grille rotation.

[0060] In some embodiments, such as Figure 3 As shown, Figure 3 A method for determining grid faults is provided. After determining whether the target grid angle is within a preset grid angle range, the method further includes: if the target grid angle is not within the preset grid angle range, obtaining the maximum preset angle and the minimum preset angle within the preset grid angle range; if the target grid angle is less than the minimum preset angle, issuing a first fault alarm, the first fault alarm indicating that the grid is blocked.

[0061] In this step, the maximum preset angle and the minimum preset angle are the maximum and minimum values ​​in the preset grille angle range, respectively. For example, if the preset grille angle range is greater than or equal to 80 degrees and less than or equal to 100 degrees, then the maximum preset angle is 100 degrees and the minimum preset angle is 80 degrees.

[0062] Specifically, if the target grille angle is less than the minimum preset angle, it means that the grille cannot operate in its full range and may be blocked. In this case, the controller will issue the first fault alarm to remind the staff that the grille is blocked.

[0063] The method provided in this step will issue an alarm message when the grille cannot operate at its full range, reminding the driver to clear the blockage in time.

[0064] In some embodiments, after obtaining the maximum and minimum preset angles within the preset grille angle range, the method further includes: if the target grille angle is greater than the maximum preset angle, issuing a second fault alarm, wherein the second fault alarm indicates damage to the mechanical stop point of the grille.

[0065] In this step, the mechanical stop point of the grille refers to the fixed fully open stop point and the fixed fully closed stop point on the grille. Generally, the angle range between the fixed fully open stop point and the fixed fully closed stop point is 90 degrees.

[0066] Specifically, when the target grid angle is greater than the maximum preset angle, it indicates that at least one grid mechanical stop point is damaged, and at this time it is impossible to determine the position of the grid physical stop point based on the target grid angle.

[0067] The method provided in this step issues an alarm signal when the mechanical stop point of the grille is damaged, reminding the driver to replace the grille in time.

[0068] In some embodiments, before controlling the rotation of the grille according to the initial grille rotation angle and the grille rotation direction to obtain the target grille rotation angle, the method further includes: determining whether the grille is in a fully open state and whether it is in a fully closed state; if the grille is not in a fully open state and not in a fully closed state, then issuing a third fault alarm; if the grille is in a fully open state or in a fully closed state, then performing the step of controlling the rotation of the grille according to the initial grille rotation angle and the grille rotation direction to obtain the target grille rotation angle.

[0069] In this step, "fully open" means the grille is fully open, and "fully closed" means the grille is fully closed. Before each rotation of the grille, it must be either fully open or fully closed.

[0070] Specifically, before controlling the rotation of the grille, the controller needs to check whether the grille is in a fully open or fully closed state. If the grille is in a fully open or fully closed state, the controller controls the rotation of the grille according to the initial grille rotation angle and the grille rotation direction. If the grille is not in a fully open or fully closed state, it means that the position of the grille has changed unexpectedly after the last rotation, resulting in incorrect position information. The grille position needs to be readjusted to a fully open or fully closed state.

[0071] The method provided in this step requires determining whether the grille is fully open or fully closed before each control of the grille rotation, which ensures the accuracy of the target grille rotation angle.

[0072] In some embodiments, before acquiring the motor rotation angle information output by the stepper motor, the method further includes: acquiring a pulse signal; and controlling the stepper motor to calculate the motor rotation angle information based on the pulse signal.

[0073] In this step, the pulse signal is a discrete signal with various shapes. Compared with ordinary analog signals (such as sine waves), its characteristics are that the waveforms are discontinuous on the Y-axis (there are obvious intervals between waveforms) but have a certain periodicity.

[0074] Specifically, the controller first acquires the pulse signal, and then controls the stepper motor to convert the pulse signal into a motor rotation angle signal.

[0075] The method provided in this step calculates the motor rotation angle signal based on the pulse signal, laying the foundation for subsequently determining the target grille rotation angle.

[0076] In one embodiment, such as Figure 4 As shown, Figure 4 A schematic diagram of the operation of an active grille in one embodiment includes the following steps:

[0077] (1) Make full use of the characteristics of stepper motors and obtain motor rotation information through stepper motor control pulse data.

[0078] (2) Perform a full-close (or full-open) position confirmation. The purpose is to avoid the position of the active grille changing unexpectedly after the system is powered off, which would lead to incorrect position information. Position confirmation is required every time the system is powered on.

[0079] (3) Control the motor to the fully open (or fully closed) position. The angle through which the motor rotates can be obtained by calculating the number of stepper motor pulses, thus obtaining the angle range from fully closed to fully open.

[0080] (4) By judging whether the angle range is within a reasonable range, determine whether the position of the active grille mechanical components is normal. If it is normal, the fully open and fully closed stop positions have been found. If it is not normal, then a fault report is issued.

[0081] In this embodiment, the fully closed position is defined as 0 degrees and the fully open position as 90 degrees. By moving towards the fully open and fully closed positions, the angle of rotation of the motor between the two stop points is calculated to determine the physical stop points of the fully open and fully closed active grille. If the physical angle between the fully open and fully closed positions is within the range of 90 degrees ± 10 degrees (the deviation value can be calibrated), the mechanical structure is fault-free, and the physical stop points of fully open and fully closed can be accurately confirmed. If the measured angle is outside the range, it is determined to be a fault state, and a fault alarm needs to be broadcast. There are two types of faults: one is a stroke angle less than 90 degrees minus the deviation angle, which is defined as a stall fault, meaning the active grille is blocked by the outside and cannot operate at full stroke; the other is a stroke angle greater than 90 degrees plus the deviation angle, which is defined as an over-stroke fault, meaning the mechanical stop point of the active grille is damaged and can no longer effectively fix the grille in the fully open or fully closed position, and the grille position cannot be confirmed.

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

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

[0084] In one embodiment, such as Figure 5 As shown, a grid physical stop point determination device 500 is provided, including: an acquisition module 501, a first determination module 502, a control module 503, and a second determination module 504, wherein:

[0085] The acquisition module 501 is used to acquire the motor rotation angle information output by the stepper motor.

[0086] The first determining module 502 is used to determine the initial grid angle and the grid rotation direction based on the motor angle information.

[0087] The control module 503 is used to control the rotation of the grille according to the initial grille rotation angle and the grille rotation direction to obtain the target grille rotation angle.

[0088] The second determining module 504 is used to determine the physical stop point of the grille based on the target grille angle and the preset grille angle range.

[0089] In some embodiments, the second determining module 504 is further configured to: determine whether the target grille rotation angle is within the preset grille rotation angle range; if the target grille rotation angle is within the preset grille rotation angle range, then determine the starting point position and the ending point position of the grille rotation as the physical stop point of the grille.

[0090] In some embodiments, the physical stop point determination device 500 is specifically used for: if the target grille angle is not within the preset grille angle range, obtaining the maximum preset angle and the minimum preset angle within the preset grille angle range; if the target grille angle is less than the minimum preset angle, issuing a first fault alarm, wherein the first fault alarm indicates that the grille is blocked.

[0091] In some embodiments, the grille physical stop point determination device 500 is further configured to: issue a second fault alarm if the target grille rotation angle is greater than the maximum preset rotation angle, wherein the second fault alarm indicates that the grille mechanical stop point is damaged.

[0092] In some embodiments, the grille physical stop point determination device 500 is further configured to: determine whether the grille is in a fully open state and whether it is in a fully closed state; if the grille is not in the fully open state and not in the fully closed state, issue a third fault alarm; if the grille is in the fully open state or in the fully closed state, perform the step of controlling the grille rotation according to the initial grille rotation angle and the grille rotation direction to obtain the target grille rotation angle.

[0093] In some embodiments, the grille physical stop point determination device 500 is further configured to: acquire a pulse signal; and control the stepper motor to calculate the motor rotation angle information based on the pulse signal.

[0094] Each module in the aforementioned grid physical stop point determination device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0095] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 6As shown, the computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores grid corner data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When executed by the processor, the computer program implements a method for determining the physical stop point of a grid.

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

[0097] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps: acquiring motor rotation angle information output by a stepper motor; determining an initial grille rotation angle and a grille rotation direction based on the motor rotation angle information; controlling the grille rotation based on the initial grille rotation angle and the grille rotation direction to obtain a target grille rotation angle; and determining the physical stop point of the grille based on the target grille rotation angle and a preset grille rotation angle range.

[0098] In one embodiment, the determination of the physical stop point of the grille based on the target grille rotation angle and a preset grille rotation angle range implemented by the processor when executing the computer program includes: determining whether the target grille rotation angle is within the preset grille rotation angle range; if the target grille rotation angle is within the preset grille rotation angle range, then determining the starting position and ending position of the grille rotation as the physical stop point of the grille.

[0099] In one embodiment, after the processor executes the computer program to determine whether the target grille angle is within the preset grille angle range, the method further includes: if the target grille angle is not within the preset grille angle range, obtaining the maximum preset angle and the minimum preset angle within the preset grille angle range; if the target grille angle is less than the minimum preset angle, issuing a first fault alarm, the first fault alarm indicating that the grille is blocked.

[0100] In one embodiment, after the processor executes the computer program to obtain the maximum preset angle and the minimum preset angle within the preset grille angle range, the method further includes: if the target grille angle is greater than the maximum preset angle, issuing a second fault alarm, wherein the second fault alarm indicates damage to the mechanical stop point of the grille.

[0101] In one embodiment, before the processor executes the computer program to control the rotation of the grille according to the initial grille angle and the grille rotation direction to obtain the target grille angle, the method further includes: determining whether the grille is in a fully open state and whether it is in a fully closed state; if the grille is not in the fully open state and not in the fully closed state, issuing a third fault alarm; if the grille is in the fully open state or in the fully closed state, executing the step of controlling the rotation of the grille according to the initial grille angle and the grille rotation direction to obtain the target grille angle.

[0102] In one embodiment, before the processor executes the computer program to acquire the motor rotation information output by the stepper motor, the method further includes: acquiring a pulse signal; and controlling the stepper motor to calculate the motor rotation information based on the pulse signal.

[0103] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, it performs the following steps: acquiring motor rotation angle information output by a stepper motor; determining an initial grille rotation angle and a grille rotation direction based on the motor rotation angle information; controlling the grille rotation based on the initial grille rotation angle and the grille rotation direction to obtain a target grille rotation angle; and determining the physical stop point of the grille based on the target grille rotation angle and a preset grille rotation angle range.

[0104] In one embodiment, the determination of the physical stop point of the grille based on the target grille rotation angle and a preset grille rotation angle range, implemented by the computer program when executed by the processor, includes: determining whether the target grille rotation angle is within the preset grille rotation angle range; if the target grille rotation angle is within the preset grille rotation angle range, then determining the starting position and ending position of the grille rotation as the physical stop point of the grille.

[0105] In one embodiment, after the computer program is executed by the processor to determine whether the target grille angle is within the preset grille angle range, the method further includes: if the target grille angle is not within the preset grille angle range, obtaining the maximum preset angle and the minimum preset angle within the preset grille angle range; if the target grille angle is less than the minimum preset angle, issuing a first fault alarm, the first fault alarm indicating that the grille is blocked.

[0106] In one embodiment, after the computer program is executed by the processor to obtain the maximum preset angle and the minimum preset angle within the preset grille angle range, the method further includes: if the target grille angle is greater than the maximum preset angle, issuing a second fault alarm, wherein the second fault alarm indicates damage to the mechanical stop point of the grille.

[0107] In one embodiment, before the computer program, when executed by the processor, controls the rotation of the grille according to the initial grille angle and the grille rotation direction to obtain the target grille angle, the method further includes: determining whether the grille is in a fully open state and whether it is in a fully closed state; if the grille is not in the fully open state and not in the fully closed state, issuing a third fault alarm; if the grille is in the fully open state or in the fully closed state, executing the step of controlling the rotation of the grille according to the initial grille angle and the grille rotation direction to obtain the target grille angle.

[0108] In one embodiment, before the computer program is executed by the processor to acquire the motor rotation information output by the stepper motor, the method further includes: acquiring a pulse signal; and controlling the stepper motor to calculate the motor rotation information based on the pulse signal.

[0109] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps: acquiring motor rotation angle information output by a stepper motor; determining an initial grille rotation angle and a grille rotation direction based on the motor rotation angle information; controlling the grille rotation based on the initial grille rotation angle and the grille rotation direction to obtain a target grille rotation angle; and determining the physical stop point of the grille based on the target grille rotation angle and a preset grille rotation angle range.

[0110] In one embodiment, the determination of the physical stop point of the grille based on the target grille rotation angle and a preset grille rotation angle range, implemented by the computer program when executed by the processor, includes: determining whether the target grille rotation angle is within the preset grille rotation angle range; if the target grille rotation angle is within the preset grille rotation angle range, then determining the starting position and ending position of the grille rotation as the physical stop point of the grille.

[0111] In one embodiment, after the computer program is executed by the processor to determine whether the target grille angle is within the preset grille angle range, the method further includes: if the target grille angle is not within the preset grille angle range, obtaining the maximum preset angle and the minimum preset angle within the preset grille angle range; if the target grille angle is less than the minimum preset angle, issuing a first fault alarm, the first fault alarm indicating that the grille is blocked.

[0112] In one embodiment, after the computer program is executed by the processor to obtain the maximum preset angle and the minimum preset angle within the preset grille angle range, the method further includes: if the target grille angle is greater than the maximum preset angle, issuing a second fault alarm, wherein the second fault alarm indicates damage to the mechanical stop point of the grille.

[0113] In one embodiment, before the computer program, when executed by the processor, controls the rotation of the grille according to the initial grille angle and the grille rotation direction to obtain the target grille angle, the method further includes: determining whether the grille is in a fully open state and whether it is in a fully closed state; if the grille is not in the fully open state and not in the fully closed state, issuing a third fault alarm; if the grille is in the fully open state or in the fully closed state, executing the step of controlling the rotation of the grille according to the initial grille angle and the grille rotation direction to obtain the target grille angle.

[0114] In one embodiment, before the computer program is executed by the processor to acquire the motor rotation information output by the stepper motor, the method further includes: acquiring a pulse signal; and controlling the stepper motor to calculate the motor rotation information based on the pulse signal.

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

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

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

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

Claims

1. A method for determining the physical stop point of a grid, characterized in that, The method includes: Obtain the motor rotation angle information output by the stepper motor; The initial grille angle and grille rotation direction are determined based on the motor rotation angle information; The target grid rotation angle is obtained by controlling the grid rotation based on the initial grid rotation angle and the grid rotation direction. The physical stop point of the grille is determined based on the target grille angle and the preset grille angle range.

2. The method according to claim 1, characterized in that, The step of determining the physical stop point of the grille based on the target grille rotation angle and the preset grille rotation angle range includes: Determine whether the target grille angle is within the preset grille angle range; If the target grille rotation angle is within the preset grille rotation angle range, then the starting and ending positions of the grille rotation are determined as the physical stop points of the grille.

3. The method according to claim 2, characterized in that, After determining whether the target grille angle is within the preset grille angle range, the method further includes: If the target grille angle is not within the preset grille angle range, then obtain the maximum and minimum preset angles within the preset grille angle range; If the target grille angle is less than the minimum preset angle, a first fault alarm is issued, indicating that the grille is blocked.

4. The method according to claim 3, characterized in that, After obtaining the maximum and minimum preset angles within the preset grille angle range, the method further includes: If the target grille rotation angle is greater than the maximum preset rotation angle, a second fault alarm is issued, which indicates that the mechanical stop point of the grille is damaged.

5. The method according to claim 1, characterized in that, Before obtaining the target grid rotation angle by controlling the grid rotation based on the initial grid rotation angle and the grid rotation direction, the method further includes: Determine whether the grille is in a fully open state or a fully closed state; If the grille is not in the fully open state and is not in the fully closed state, a third fault alarm will be issued; If the grille is in a fully open or fully closed state, then the step of controlling the grille rotation based on the initial grille rotation angle and the grille rotation direction to obtain the target grille rotation angle is executed.

6. The method according to claim 1, characterized in that, Before obtaining the motor rotation angle information output by the stepper motor, the method further includes: Acquire pulse signals; The stepper motor is controlled to calculate the motor rotation angle information based on the pulse signal.

7. A device for determining the physical stop point of a grid, characterized in that, The device includes: The acquisition module is used to acquire the motor rotation angle information output by the stepper motor; The first determining module is used to determine the initial grille angle and grille rotation direction based on the motor angle information; The control module is used to control the rotation of the grille according to the initial grille rotation angle and the grille rotation direction to obtain the target grille rotation angle; The second determining module is used to determine the physical stop point of the grille based on the target grille angle and the preset grille angle range.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

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

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