Screen unfolding in-place detection method, device and equipment and computer storage medium

By utilizing Hall effect number calibration and magnetic encoder change rate judgment in the screen deployment detection method, the problem of screen deployment signal errors caused by magnetic encoder interference is solved, and accurate positioning and normal operation in EMC testing are achieved.

CN120651086APending Publication Date: 2025-09-16SHENZHEN ZHAOWEI MACHINERY&ELECTRONICS CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202510735364.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-04
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

During EMC testing, the magnetic field of the magnetic encoder is easily interfered with, resulting in erroneous signals when the screen is unfolded, affecting the accurate operation of the equipment.

Method used

The Hall effect calibration is performed by reading the current magnetic encoding angle of the screen to determine whether the magnetic encoding change rate is abnormal. If abnormal, the Hall effect calibration of the previous normal magnetic encoding angle is obtained to calculate the actual screen expansion angle and ensure that the screen is in place according to the given position instruction.

Benefits of technology

When the magnetic encoder is interfered with, it can accurately detect whether the screen is fully unfolded, enhancing the anti-EMC interference capability and ensuring the normal operation of the screen.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120651086A_ABST
    Figure CN120651086A_ABST
Patent Text Reader

Abstract

The invention discloses a screen unfolding in-place detection method, device and equipment and a computer storage medium, and relates to the technical field of screens. The method comprises the following steps: reading a current magnetic coding angle of a screen, and carrying out Hall number calibration according to the current magnetic coding angle; determining a current magnetic braiding change rate according to the current magnetic braiding angle; whether the current magnetic braiding angle is abnormal or not is judged according to a preset magnetic braiding change threshold value and the current magnetic braiding change rate; if the current magnetic coding angle is abnormal, acquiring a calibrated Hall number corresponding to the previous normal magnetic coding angle as a current Hall number; calculating an actual screen unfolding angle according to the current Hall number; judging whether the actual screen unfolding angle is greater than or equal to a preset target screen unfolding angle; if the actual screen unfolding angle is larger than or equal to the preset target screen unfolding angle, the screen is unfolded in place. Therefore, even if the magnetic encoder is interfered and the output angle is incorrect, the screen angle corresponding to the motor Hall can be switched to, and normal operation of the screen can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of screen technology, and in particular to a method, device, equipment and computer storage medium for detecting when a screen has been fully unfolded. Background Art

[0002] Magnetic encoders are widely used in industries such as industry and medicine to determine a device's actual position based on the duty cycle of the encoder's feedback. To ensure accurate and reliable feedback angles, the magnetic field signal from the encoder sensor must remain stable. However, during electromagnetic compatibility (EMC) testing, such as low-frequency magnetic field interference immunity testing and handheld transmitter interference immunity testing, magnetic field fluctuations can easily occur, causing the encoder to report an incorrect position, leading to erroneous screen rollout signals. Summary of the Invention

[0003] In view of this, the purpose of the present invention is to overcome the shortcomings of the prior art and provide a screen deployment detection method, device, equipment and computer storage medium, which are used to determine whether the magnetic encoder is interfered with for screen products, and to calculate the actual screen deployment angle through the Hall number to detect whether the screen is deployed in place, so that even if the magnetic encoder is interfered with, the screen can accurately move into place according to the given position instructions.

[0004] The present invention provides the following technical solutions:

[0005] In a first aspect, the present invention provides a method for detecting whether a screen has been fully unfolded, comprising:

[0006] Read the current magnetic encoding angle of the screen and perform Hall number calibration based on the current magnetic encoding angle;

[0007] Determining a current magnetic encoding change rate according to the current magnetic encoding angle;

[0008] Determining whether the current magnetic encoding angle is abnormal according to a preset magnetic encoding change threshold and the current magnetic encoding change rate;

[0009] If the current magnetic encoding angle is abnormal, the calibrated Hall number corresponding to the previous normal magnetic encoding angle is obtained as the current Hall number;

[0010] Calculate the actual screen expansion angle according to the current Hall number;

[0011] Determining whether the actual screen expansion angle is greater than or equal to a preset target screen expansion angle;

[0012] If the actual screen unfolding angle is greater than or equal to the preset target screen unfolding angle, the screen is unfolded into position.

[0013] In one embodiment, after determining whether the current magnetic encoding angle is abnormal based on the preset magnetic encoding change threshold and the current magnetic encoding change rate, the method further includes:

[0014] If the current magnetic editing angle is normal, obtaining abnormal magnetic editing angle history information, and determining whether there is a historical abnormal magnetic editing angle according to the abnormal magnetic editing angle history information;

[0015] If the historical abnormal magnetic encoding angle does not exist, the calibrated Hall number corresponding to the current magnetic encoding angle is used as the current Hall number, and the step of calculating the actual screen expansion angle according to the current Hall number is performed.

[0016] In one embodiment, after determining whether there is a historical abnormal magnetic encoding angle based on the abnormal magnetic encoding angle history information, the method further includes:

[0017] If the historical abnormal magnetic encoding angle exists, obtaining the number of consecutive normal times of the current magnetic encoding angle corresponding to the current magnetic encoding change rate;

[0018] Determine whether the number of consecutive normal times of the current magnetic encoding angle is greater than a preset number threshold;

[0019] If the number of times the current magnetic encoding angle is continuously normal is greater than a preset number threshold, the current magnetic encoding angle is used as the actual screen expansion angle, and the step of determining whether the actual screen expansion angle is greater than or equal to the target screen expansion angle is performed;

[0020] If the number of times the current magnetic encoding angle is continuously normal is less than or equal to the preset number threshold, the step of using the calibrated Hall number corresponding to the current magnetic encoding angle as the current Hall number is performed.

[0021] In one embodiment, the method further comprises:

[0022] Obtain the duration of the electromagnetic compatibility interference frequency band and the magnetic coding change detection period;

[0023] Calculating a first quotient of the electromagnetic compatibility interference frequency band duration and the magnetic encoding change detection period;

[0024] The preset number threshold is determined according to the first quotient value.

[0025] In one embodiment, determining whether the current magnetic encoding angle is abnormal based on a preset magnetic encoding change threshold and the current magnetic encoding change rate includes:

[0026] Determining whether the current magnetic encoding change rate is greater than the magnetic encoding change threshold;

[0027] If the current magnetic encoding change rate is less than or equal to the magnetic encoding change threshold, the current magnetic encoding angle is normal;

[0028] If the current magnetic encoding change rate is greater than the magnetic encoding change threshold, determining whether the current magnetic encoding angle passes through zero according to the current magnetic encoding change rate;

[0029] If the current magnetic encoding angle does not pass through zero, the current magnetic encoding angle is abnormal;

[0030] If the current magnetic encoding angle passes through zero, the current magnetic encoding angle is normal.

[0031] In one embodiment, after determining whether the actual screen expansion angle is greater than or equal to the target screen expansion angle, the method further includes:

[0032] If the actual screen unfolding angle is smaller than the target screen unfolding angle, the step of reading the current magnetic encoding angle of the screen is re-executed, and the Hall number calibration is performed according to the current magnetic encoding angle to obtain the current Hall number.

[0033] In one embodiment, the method further comprises:

[0034] Calculating a second quotient of a preset target motor speed and a maximum motor speed;

[0035] The product of the magnetic engraving change rate at the maximum motor speed and the second quotient is used as the preset magnetic engraving change threshold.

[0036] In a second aspect, the present invention provides a device for detecting whether a screen has been fully deployed, comprising:

[0037] A reading module is used to read the current magnetic encoding angle of the screen and perform Hall number calibration according to the current magnetic encoding angle;

[0038] A determination module, configured to determine a current magnetic encoding change rate according to the current magnetic encoding angle;

[0039] A first judgment module is used to judge whether the current magnetic encoding angle is abnormal according to a preset magnetic encoding change threshold and the current magnetic encoding change rate;

[0040] an acquisition module, configured to acquire, if the current magnetic encoding angle is abnormal, a calibrated Hall number corresponding to a previous normal magnetic encoding angle as the current Hall number;

[0041] A first calculation module, configured to calculate an actual screen deployment angle according to the current Hall number;

[0042] A second judgment module is used to judge whether the actual screen expansion angle is greater than or equal to a preset target screen expansion angle;

[0043] The detection module is configured to determine that the screen is fully unfolded if the actual screen unfolding angle is greater than or equal to the preset target screen unfolding angle.

[0044] In a third aspect, the present invention provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method for detecting when the screen is fully unfolded as described in the first aspect is implemented.

[0045] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the screen unfolding detection method as described in the first aspect.

[0046] The present invention discloses a method, device, equipment, and computer storage medium for detecting whether a screen has been fully deployed. The method comprises the following steps: reading the current magnetic encoding angle of the screen, calibrating the Hall effect number according to the current magnetic encoding angle, determining the current magnetic encoding change rate according to the current magnetic encoding angle, determining whether the current magnetic encoding angle is abnormal according to a preset magnetic encoding change threshold and the current magnetic encoding change rate, obtaining the calibrated Hall effect number corresponding to the previous normal magnetic encoding angle as the current Hall effect number if the current magnetic encoding angle is abnormal, calculating the actual screen deployment angle according to the current Hall effect number, determining whether the actual screen deployment angle is greater than or equal to a preset target screen deployment angle, and determining whether the screen has been fully deployed if the actual screen deployment angle is greater than or equal to the preset target screen deployment angle. In this way, by determining whether the magnetic encoding is interfered with and causes an abnormality, if the magnetic encoding is interfered with, the magnetic encoding feedback angle cannot reflect the actual position of the screen, and then switching to the Hall effect method to calculate the actual screen deployment angle, thereby detecting whether the screen is in place, thereby enhancing the anti-EMC interference capability. Even if the magnetic encoding is interfered with and causes the output angle to be incorrect, the screen angle corresponding to the motor Hall effect number can be switched to ensure the normal operation of the screen. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope of protection of the present invention. In each of the drawings, similar components are numbered similarly.

[0048] Figure 1 A schematic diagram of a process of detecting the screen being fully unfolded proposed in this embodiment is shown;

[0049] Figure 2 Another schematic diagram of the process of detecting the screen being fully unfolded proposed in this embodiment is shown;

[0050] Figure 3 Another schematic diagram of the process of detecting whether the screen has been fully unfolded is shown in this embodiment;

[0051] Figure 4 A schematic diagram showing the relationship between the cumulative Hall number and the magnetic encoder feedback angle proposed in this embodiment;

[0052] Figure 5 A schematic structural diagram of the screen unfolding position detection device proposed in this embodiment is shown. DETAILED DESCRIPTION

[0053] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0054] The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the figures is not intended to limit the scope of the claimed invention, but rather merely represents selected embodiments of the present invention. All other embodiments derived by those skilled in the art based on the embodiments of the present invention without inventive effort are intended to be within the scope of protection of the present invention.

[0055] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present invention, are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or the possibility of adding one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.

[0056] Furthermore, the terms “first,” “second,” “third,” etc., are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.

[0057] Unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by those skilled in the art to which the various embodiments of the present invention pertain. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meaning as in the context of the relevant technical field and will not be interpreted as having an idealized meaning or an overly formal meaning unless clearly defined in the various embodiments of the present invention.

[0058] Example 1

[0059] The disclosed embodiments provide a method for detecting whether a screen is fully unfolded, which is used to determine whether a magnetic encoder is interfered with for screen products, and to calculate the actual screen unfolding angle by using the Hall effect number to detect whether the screen is fully unfolded. Thus, even if the magnetic encoder is interfered with, the screen can accurately move into position according to the given position instructions.

[0060] See Figure 1 A method for detecting when a screen is fully unfolded includes steps S101 to S106 , and each step is described in detail below.

[0061] Step S101 , reading the current magnetic encoding angle of the screen, and performing Hall number calibration according to the current magnetic encoding angle.

[0062] In this embodiment, after the electronic device is initially powered on, the magnetic encoding signal is read to obtain the current magnetic encoding angle of the screen, and Hall calibration is performed according to the current magnetic encoding angle.

[0063] It's important to note that a magnetic encoder primarily consists of a permanent magnet and a Hall effect sensor. The Hall effect sensor senses the direction and strength of the permanent magnet's magnetic field and outputs a high or low level. In screen projects, the permanent magnet is mounted on the screen's rotating axis. The Hall effect sensor reads different magnetic field strengths depending on the screen's position, and the duty cycle of the output PWM wave also varies. The motor driver determines the screen's opening angle by measuring the duty cycle of the magnetic encoder signal.

[0064] Step S102: determining a current magnetic encoding change rate according to the current magnetic encoding angle.

[0065] In this embodiment, the difference between the current magnetic encoding angle q1 and the current magnetic encoding angle q0 of the previous round is used as the current magnetic encoding change rate Δ, that is, Δ=|q1-q0|. The current magnetic encoding change rate can be used to evaluate the interference degree of the current magnetic encoding angle.

[0066] Step S103 : determining whether the current magnetic encoding angle is abnormal based on a preset magnetic encoding change threshold and the current magnetic encoding change rate.

[0067] In this embodiment, when the speed is constant, the rate of change of the magnetic encoder feedback angle per unit time remains constant. Therefore, when the speed is constant, the magnetic encoder can be detected by detecting whether the rate of change of the magnetic encoder feedback angle per unit time has changed to determine whether the magnetic encoder is being interfered with. The Hall effect sensor will only output the corresponding high and low levels when the magnetic field strength reaches a certain value. If the magnetic field is disturbed, causing the original magnetic field strength to change, the output Hall effect signal is not the actual position signal. Therefore, the current magnetic encoder angle is compared with the preset magnetic encoder change threshold to determine whether the current magnetic encoder angle is abnormal. If the current magnetic encoder angle is abnormal, it indicates that the magnetic encoder is being interfered with.

[0068] Step S104 : If the current magnetic encoding angle is abnormal, the calibrated Hall number corresponding to the previous normal magnetic encoding angle is obtained as the current Hall number.

[0069] In this embodiment, when interference with the magnetic encoder is detected, the feedback angle from the magnetic encoder is no longer used as the true angle. Instead, the actual angle is calculated using the Hall effect count. Therefore, if the current magnetic encoder angle is abnormal, the calibrated Hall effect count corresponding to the previous normal magnetic encoder angle is extracted from the stored historical data and used as the current Hall effect count. The calibrated Hall effect count is the total Hall effect count.

[0070] Step S105: Calculate the actual screen expansion angle according to the current Hall number.

[0071] In this embodiment, the actual screen expansion angle p corresponding to the current Hall number is calculated. The specific calculation formula is: Where x is the preset mechanism transmission ratio, which is a known quantity, and y is the number of Hall effects per motor rotation.

[0072] Step S106 , determining whether the actual screen expansion angle is greater than or equal to a preset target screen expansion angle.

[0073] In this embodiment, it is determined whether the actual screen unfolding angle is greater than or equal to the preset target screen unfolding angle, thereby determining whether the screen is unfolded to the desired position.

[0074] Step S107: If the actual screen unfolding angle is greater than or equal to the preset target screen unfolding angle, the screen is unfolded to its full extent.

[0075] In this embodiment, if the actual screen expansion angle is greater than or equal to the preset target screen expansion angle, the screen is fully expanded, so that the device can operate stably even in EMC tests with strong magnetic field interference, and the device will not produce abnormal phenomena such as incomplete operation.

[0076] It should be noted that due to backlash in gear meshing, the backlash must be taken into account when calculating angles using Hall effect data. However, due to installation and manufacturing errors, the consistency of backlash cannot be guaranteed. When backlash is large, the actual calculated angle will be smaller. To prevent the anti-pinch function from being accidentally triggered and causing false anti-pinch errors, the anti-pinch function must be disabled.

[0077] See Figure 2 In a specific embodiment, step S1031 includes steps S1031 to S1035, and each step is described in detail below.

[0078] Step S1031 , determining whether the current magnetic encoding change rate is greater than the magnetic encoding change threshold.

[0079] If not, step S1032 is executed: the current magnetic encoding angle is normal.

[0080] If yes, step S1033 is executed: determining whether the current magnetic encoding angle passes through zero according to the current magnetic encoding change rate.

[0081] If not, step S1034 is executed: the current magnetic encoding angle is abnormal.

[0082] If yes, step S1035 is executed: the current magnetic encoding angle is normal.

[0083] In this embodiment, determining whether the current magnetic encoding change rate is greater than the magnetic encoding change rate can be used to preliminarily determine whether the current magnetic encoding angle is abnormal.

[0084] Furthermore, if the current magnetic encoding change rate is less than or equal to the magnetic encoding change threshold, the current magnetic encoding angle can be directly determined to be normal. By comparing the magnetic encoding change rate with the threshold, most normal situations can be quickly screened out, improving judgment efficiency.

[0085] Furthermore, if the current magnetic encoding change rate exceeds the magnetic encoding change threshold, it is necessary to further determine whether the current magnetic encoding angle crosses zero based on the current magnetic encoding change rate, thereby determining whether the current magnetic encoding angle is abnormal. In the special case where the change rate exceeds the threshold, the normality of the magnetic encoding angle is further confirmed by determining whether it crosses zero, avoiding misjudgments caused by zero crossings.

[0086] It should be noted that when the magnetic encoder passes through zero, it jumps from 360 degrees to 0 degrees, resulting in a very large rate of change of the current magnetic encoder angle Δ, which far exceeds the preset magnetic encoder change threshold a. temp For example, when the rotation passes through zero, the angle detected in the previous cycle is around 360 degrees, the magnetic encoding duty cycle is around 90%, and the next cycle detection is around 0 degrees, the magnetic encoding duty cycle is around 10%. At this time, the calculated magnetic encoding change rate will be very large, and reversal is also valid.

[0087] Furthermore, if the current magnetic encoding angle does not pass through zero, it can be known that the current magnetic encoding angle is abnormal.

[0088] Furthermore, if the current magnetic encoding angle passes through zero, it is determined that the current magnetic encoding angle is normal.

[0089] See Figure 3 In a specific embodiment, step S103 further includes steps S108 to S113, and each step is described in detail below.

[0090] Step S108: If the current magnetic encoding angle is normal, obtain abnormal magnetic encoding angle history information.

[0091] Step S109 , judging whether there is a historical abnormal magnetic encoding angle according to the abnormal magnetic encoding angle history information.

[0092] If not, execute step S110: use the calibrated Hall number corresponding to the current magnetic encoding angle as the current Hall number, and execute step S105.

[0093] If yes, step S111 is executed: obtaining the number of times the current magnetic encoding angle is continuously normal corresponding to the current magnetic encoding change rate.

[0094] Step S112, determining whether the number of consecutive normal times of the current magnetic encoding angle is greater than a preset number threshold.

[0095] If so, execute step S113: use the current magnetic encoding angle as the actual screen expansion angle, and execute step S106.

[0096] If not, execute step S110.

[0097] In this embodiment, if the current magnetic editing angle is normal, the abnormal magnetic editing angle history information is obtained, and it is determined whether there is a historical abnormal magnetic editing angle according to the abnormal magnetic editing angle history information, that is, whether an abnormality has occurred before.

[0098] Furthermore, if there is no historical abnormal magnetic encoding angle, the calibrated Hall number corresponding to the current magnetic encoding angle is used as the current Hall number, and the process goes to step S105.

[0099] Furthermore, if there is a historical abnormal magnetic encoding angle, the number of consecutive normal times of the current magnetic encoding angle corresponding to the current magnetic encoding change rate is obtained.

[0100] It should be noted that in each detection cycle, if the current magnetic encoding angle is normal, the number of consecutive normal times of the current magnetic encoding angle is +1; if the current magnetic encoding angle is abnormal, the number of consecutive normal times of the current magnetic encoding angle is reset to 0.

[0101] Furthermore, judging whether the number of consecutive normal times of the current magnetic encoding angle is greater than a preset threshold value can effectively evaluate the recovery of the magnetic encoding state.

[0102] Furthermore, if the current magnetic encoding angle is continuously normal for more than a preset number of times, it can be known that the current magnetic encoding angle has recovered to be stable, and the current magnetic encoding angle is used as the actual screen expansion angle, and the process goes to step S106.

[0103] Furthermore, if the number of times the current magnetic engraving angle is continuously normal is less than or equal to the preset number threshold, it can be known that the current magnetic engraving angle is still unstable, and the process goes to step S109.

[0104] It should be noted that when the magnetic coding feedback angle (current magnetic coding angle) is switched to the actual screen expansion angle, according to Figure 4Perform total Hall number calibration to ensure that the total Hall can accurately reflect the true angle at all times. Ensure that in any detection cycle, when the magnetic encoder is interfered with, when switching to the total Hall to calculate the screen rotation angle, it can accurately reflect the true angle of the screen.

[0105] In a specific embodiment, after step S106 , the method further includes: if the actual screen expansion angle is smaller than the target screen expansion angle, re-executing step S101 .

[0106] In this embodiment, if the actual screen unfolding angle is smaller than the target screen unfolding angle, it can be known that the current screen is not unfolded properly, and step S101 needs to be executed again until the screen is detected to be in place, and the loop stops.

[0107] In a specific embodiment, the method further includes: obtaining the duration of the electromagnetic compatibility interference frequency band and the magnetic encoding change detection period; calculating a first quotient of the duration of the electromagnetic compatibility interference frequency band and the magnetic encoding change detection period; and determining the preset number threshold based on the first quotient.

[0108] In this embodiment, the duration of the electromagnetic compatibility interference frequency band and the magnetic encoding change detection period are obtained, and a first quotient of the duration of the electromagnetic compatibility interference frequency band and the magnetic encoding change detection period is calculated. A preset number threshold is further determined based on the first quotient. The preset number threshold is generally greater than the first quotient.

[0109] In a specific embodiment, the method further includes: calculating a second quotient of a preset target motor speed and a maximum motor speed; and taking the product of the magnetic encoding change rate at the maximum motor speed and the second quotient as the preset magnetic encoding change threshold.

[0110] In this embodiment, the preset target motor speed v and the maximum motor speed v are calculated. max The second quotient value of the maximum motor speed v max Magnetic encoding change rate a under max The product of the second quotient is used as the preset magnetic encoding change threshold a temp The specific calculation formula is:

[0111] Among them, since the device is a speed closed-loop control, the speed will fluctuate, but the speed fluctuation is generally not too large, generally around 5%. Therefore, the preset magnetic encoding change threshold a required in actual applications temp It will be slightly larger than the preset magnetic encoder change threshold a calculated based on the preset target motor speed v temp Therefore, the preset target motor speed v can be preprocessed to obtain the motor speed v0 to be calculated, that is, v0 = v + v × 8%. The motor speed v0 to be calculated is further used as the preset target motor speed v to preset the magnetic encoding change threshold a.temp Calculation.

[0112] The screen deployment detection method proposed in this embodiment reads the current magnetic encoding angle of the screen and calibrates the Hall effect number based on the current magnetic encoding angle; determines the current magnetic encoding change rate based on the current magnetic encoding angle; determines whether the current magnetic encoding angle is abnormal based on a preset magnetic encoding change threshold and the current magnetic encoding change rate; if the current magnetic encoding angle is abnormal, obtains the calibrated Hall effect number corresponding to the previous normal magnetic encoding angle as the current Hall effect number; calculates the actual screen deployment angle based on the current Hall effect number; determines whether the actual screen deployment angle is greater than or equal to a preset target screen deployment angle; and if the actual screen deployment angle is greater than or equal to the preset target screen deployment angle, the screen is deployed in place. In this way, by determining whether the magnetic encoding is interfered with, causing the abnormality, when the magnetic encoding is interfered with, the magnetic encoding feedback angle cannot reflect the actual position of the screen, and then switches to the Hall effect method to calculate the actual screen deployment angle, thereby detecting whether the screen is in place, thereby enhancing the anti-EMC interference capability. Even if the magnetic encoding is interfered with and the output angle is incorrect, the screen angle corresponding to the motor Hall effect number can be switched to ensure normal operation of the screen.

[0113] Example 2

[0114] In addition, the present disclosure provides a screen unfolding detection device 500, see Figure 5 ,include:

[0115] The reading module 501 is used to read the current magnetic encoding angle of the screen and perform Hall number calibration according to the current magnetic encoding angle;

[0116] A determination module 502 is configured to determine a current magnetic encoding change rate according to the current magnetic encoding angle;

[0117] A first judgment module 503 is configured to judge whether the current magnetic encoding angle is abnormal based on a preset magnetic encoding change threshold and the current magnetic encoding change rate;

[0118] An acquisition module 504 is configured to acquire, if the current magnetic encoding angle is abnormal, a calibrated Hall number corresponding to a previous normal magnetic encoding angle as the current Hall number;

[0119] A first calculation module 505 is configured to calculate an actual screen expansion angle according to the current Hall number;

[0120] A second determination module 506 is configured to determine whether the actual screen expansion angle is greater than or equal to a preset target screen expansion angle;

[0121] The detection module 507 is configured to determine that the screen is fully unfolded if the actual screen unfolding angle is greater than or equal to the preset target screen unfolding angle.

[0122] Optionally, also include:

[0123] A search module, configured to obtain abnormal history information of the magnetic encoding angle if the current magnetic encoding angle is normal;

[0124] A third judgment module is used to judge whether there is a historical abnormal magnetic encoding angle according to the abnormal magnetic encoding angle history information;

[0125] The calculation module is also used to use the calibrated Hall number corresponding to the current magnetic encoding angle as the current Hall number if the historical abnormal magnetic encoding angle does not exist, and execute the step of calculating the actual screen expansion angle according to the current Hall number.

[0126] Optionally, also include:

[0127] an obtaining module, configured to obtain the number of consecutive normal times of the current magnetic encoding angle corresponding to the current magnetic encoding change rate if the historical abnormal magnetic encoding angle exists;

[0128] A fourth judgment module is used to judge whether the number of consecutive normal times of the current magnetic encoding angle is greater than a preset number threshold;

[0129] The detection module 507 is further configured to, if the number of consecutive normal times of the current magnetic encoding angle exceeds a preset number threshold, use the current magnetic encoding angle as the actual screen expansion angle and execute the step of determining whether the actual screen expansion angle is greater than or equal to the target screen expansion angle;

[0130] If the number of times the current magnetic encoding angle is continuously normal is less than or equal to the preset number threshold, the step of using the calibrated Hall number corresponding to the current magnetic encoding angle as the current Hall number is performed.

[0131] Optionally, also include:

[0132] The processing module is used to obtain the duration of the electromagnetic compatibility interference frequency band and the magnetic encoding change detection period; calculate a first quotient of the electromagnetic compatibility interference frequency band duration and the magnetic encoding change detection period; and determine the preset number threshold according to the first quotient.

[0133] Optionally, the first judgment module is further used to judge whether the current magnetic encoding change rate is greater than the magnetic encoding change threshold; if the current magnetic encoding change rate is less than or equal to the magnetic encoding change threshold, the current magnetic encoding angle is normal; if the current magnetic encoding change rate is greater than the magnetic encoding change threshold, judging whether the current magnetic encoding angle passes through zero according to the current magnetic encoding change rate; if the current magnetic encoding angle does not pass through zero, the current magnetic encoding angle is abnormal; if the current magnetic encoding angle passes through zero, the current magnetic encoding angle is normal.

[0134] Optionally, the detection module 507 is also used to re-execute the step of reading the current magnetic encoding angle of the screen if the actual screen expansion angle is smaller than the target screen expansion angle, and perform Hall number calibration according to the current magnetic encoding angle to obtain the current Hall number.

[0135] Optionally, also include:

[0136] The processing module is further configured to calculate a second quotient of a preset target motor speed and a maximum motor speed; and use the product of the magnetic encoding change rate at the maximum motor speed and the second quotient as the preset magnetic encoding change threshold.

[0137] The device provided in the embodiment of the present disclosure can execute the steps of the screen unfolding position detection method provided in Example 1, which will not be described again to avoid repetition.

[0138] The screen deployment detection device proposed in this embodiment reads the current magnetic encoding angle of the screen and calibrates the Hall effect number based on the current magnetic encoding angle; determines the current magnetic encoding change rate based on the current magnetic encoding angle; determines whether the current magnetic encoding angle is abnormal based on a preset magnetic encoding change threshold and the current magnetic encoding change rate; if the current magnetic encoding angle is abnormal, obtains the calibrated Hall effect number corresponding to the previous normal magnetic encoding angle as the current Hall effect number; calculates the actual screen deployment angle based on the current Hall effect number; determines whether the actual screen deployment angle is greater than or equal to a preset target screen deployment angle; and if the actual screen deployment angle is greater than or equal to the preset target screen deployment angle, the screen is deployed in place. In this way, by determining whether the magnetic encoding is interfered with, causing the abnormality, when the magnetic encoding is interfered with, the magnetic encoding feedback angle cannot reflect the actual position of the screen, and then switches to the Hall effect method to calculate the actual screen deployment angle, thereby detecting whether the screen is in place, thereby enhancing the anti-EMC interference capability. Even if the magnetic encoding is interfered with and the output angle is incorrect, the screen angle corresponding to the motor Hall effect number can be switched to ensure normal operation of the screen.

[0139] Example 3

[0140] In addition, an embodiment of the present disclosure provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the screen unfolding position detection method described in Example 1 is implemented.

[0141] The device provided in the embodiment of the present disclosure can execute the steps of the screen unfolding position detection method provided in Example 1, which will not be described again to avoid repetition.

[0142] Example 4

[0143] The embodiment of the present disclosure provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the method for detecting when the screen has been fully unfolded as described in the first embodiment is implemented.

[0144] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0145] The computer-readable storage medium provided in this embodiment can implement the screen unfolding position detection method provided in Example 1, and will not be described again here to avoid repetition.

[0146] In all examples shown and described herein, any specific values ​​should be interpreted as merely exemplary and not limiting, and thus other examples of the exemplary embodiments may have different values.

[0147] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.

[0148] The above-described embodiments merely illustrate several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art would be able to make numerous variations and improvements without departing from the spirit of the present invention, and all such variations and improvements fall within the scope of protection of the present invention.

Claims

1. A method for detecting whether a screen has been fully unfolded, characterized in that: include: Read the current magnetic encoding angle of the screen and perform Hall number calibration based on the current magnetic encoding angle; Determining a current magnetic encoding change rate according to the current magnetic encoding angle; Determining whether the current magnetic encoding angle is abnormal according to a preset magnetic encoding change threshold and the current magnetic encoding change rate; If the current magnetic encoding angle is abnormal, the calibrated Hall number corresponding to the previous normal magnetic encoding angle is obtained as the current Hall number; Calculate the actual screen expansion angle according to the current Hall number; Determining whether the actual screen expansion angle is greater than or equal to a preset target screen expansion angle; If the actual screen unfolding angle is greater than or equal to the preset target screen unfolding angle, the screen is unfolded into position.

2. The method for detecting whether the screen has been fully unfolded according to claim 1, wherein: After determining whether the current magnetic encoding angle is abnormal based on the preset magnetic encoding change threshold and the current magnetic encoding change rate, the method further includes: If the current magnetic editing angle is normal, obtaining abnormal magnetic editing angle history information, and determining whether there is a historical abnormal magnetic editing angle according to the abnormal magnetic editing angle history information; If the historical abnormal magnetic encoding angle does not exist, the calibrated Hall number corresponding to the current magnetic encoding angle is used as the current Hall number, and the step of calculating the actual screen expansion angle according to the current Hall number is performed.

3. The method for detecting whether the screen is fully unfolded according to claim 2, wherein: After determining whether there is a historical abnormal magnetic encoding angle according to the abnormal magnetic encoding angle history information, the method further includes: If the historical abnormal magnetic encoding angle exists, obtaining the number of consecutive normal times of the current magnetic encoding angle corresponding to the current magnetic encoding change rate; Determine whether the number of consecutive normal times of the current magnetic encoding angle is greater than a preset number threshold; If the number of times the current magnetic encoding angle is continuously normal is greater than a preset number threshold, the current magnetic encoding angle is used as the actual screen expansion angle, and the step of determining whether the actual screen expansion angle is greater than or equal to the target screen expansion angle is performed; If the number of times the current magnetic encoding angle is continuously normal is less than or equal to the preset number threshold, the step of using the calibrated Hall number corresponding to the current magnetic encoding angle as the current Hall number is performed.

4. The method for detecting whether the screen is fully unfolded according to claim 3, wherein: The method further comprises: Obtain the duration of the electromagnetic compatibility interference frequency band and the magnetic coding change detection period; Calculating a first quotient of the electromagnetic compatibility interference frequency band duration and the magnetic encoding change detection period; The preset number threshold is determined according to the first quotient value.

5. The method for detecting whether the screen is fully unfolded according to claim 1, wherein: The determining whether the current magnetic encoding angle is abnormal according to the preset magnetic encoding change threshold and the current magnetic encoding change rate includes: Determining whether the current magnetic encoding change rate is greater than the magnetic encoding change threshold; If the current magnetic encoding change rate is less than or equal to the magnetic encoding change threshold, the current magnetic encoding angle is normal; If the current magnetic encoding change rate is greater than the magnetic encoding change threshold, determining whether the current magnetic encoding angle passes through zero according to the current magnetic encoding change rate; If the current magnetic encoding angle does not pass through zero, the current magnetic encoding angle is abnormal; If the current magnetic encoding angle passes through zero, the current magnetic encoding angle is normal.

6. The method for detecting whether the screen has been fully unfolded according to claim 1, wherein: After determining whether the actual screen expansion angle is greater than or equal to the target screen expansion angle, the method further includes: If the actual screen unfolding angle is smaller than the target screen unfolding angle, the step of reading the current magnetic encoding angle of the screen is re-executed, and the Hall number calibration is performed according to the current magnetic encoding angle to obtain the current Hall number.

7. The method for detecting whether the screen is fully unfolded according to claim 1, wherein: The method further comprises: Calculating a second quotient of a preset target motor speed and a maximum motor speed; The product of the magnetic engraving change rate at the maximum motor speed and the second quotient is used as the preset magnetic engraving change threshold.

8. A device for detecting whether a screen has been unfolded to its full extent, characterized in that: include: A reading module is used to read the current magnetic encoding angle of the screen and perform Hall number calibration according to the current magnetic encoding angle; A determination module, configured to determine a current magnetic encoding change rate according to the current magnetic encoding angle; A first judgment module is used to judge whether the current magnetic encoding angle is abnormal according to a preset magnetic encoding change threshold and the current magnetic encoding change rate; an acquisition module, configured to acquire, if the current magnetic encoding angle is abnormal, a calibrated Hall number corresponding to a previous normal magnetic encoding angle as the current Hall number; A first calculation module, configured to calculate an actual screen deployment angle according to the current Hall number; A second judgment module is used to judge whether the actual screen expansion angle is greater than or equal to a preset target screen expansion angle; The detection module is configured to determine that the screen is fully unfolded if the actual screen unfolding angle is greater than or equal to the preset target screen unfolding angle.

9. An electronic device, characterized in that: The device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method for detecting when the screen is fully unfolded is implemented as claimed in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that It stores a computer program, which, when executed by a processor, implements the screen unfolding position detection method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Mechanical angle detection method, cradle head and machine readable storage medium

    CN113324565A

  • Fault diagnosis method and device of Hall sensor and steering control system

    CN114963952A

  • Ceiling screen in-place closing judgment method and device, terminal equipment and storage medium

    CN116338801A

  • Motor position determining method and device of electronic control gear shifting system and medium

    CN116379151A

  • Magnetic encoder self-correction method and system, storage medium and electronic equipment

    CN116499349A