A detection distance testing method and device for electronic equipment

By using the screen opening and closing simulation mechanism and the relative rotation of magnetic elements and Hall elements in electronic devices to adjust the magnetic flux and installation position, the problem of inconsistency between the actual detection distance and the simulated distance in the existing technology is solved, ensuring the wake-up of the electronic device. and sleeping distance are accurate, improving product quality.

CN113804237BActive Publication Date: 2024-08-30DONGGUAN HUABEL ELECTRONICS TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111129889.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-26
Publication Date
2024-08-30
Estimated Expiration
2041-09-26

AI Technical Summary

Technical Problem

In the existing technology, due to tolerances in the magnet process and theoretical simulation, the actual detection distance of the electronic device does not match the simulated distance, and the wake-up and sleep distance requirements cannot be met, resulting in poor product quality.

Method used

A detection distance test method for electronic equipment is adopted. Through the screen opening and closing simulation mechanism, the relative rotation of the magnetic element and the Hall element in the magnetic field functional area is used to obtain the relative distance when the magnetic flux changes to the switching trigger threshold value, and judge Whether the preset standards are met, and the installation position and magnetic flux of the magnetic components and Hall components are adjusted based on the judgment results to ensure that the actual detection distance is consistent with the simulated distance.

Benefits of technology

By simulating the opening and closing process of the screen, it ensures that the detection distance of the electronic device is accurate when it is awake or sleeping, thereby ensuring product quality and solving the problem that the actual detection distance does not meet the requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113804237B
    Figure CN113804237B
Patent Text Reader

Abstract

The present invention discloses a detection distance test method and device for an electronic device. The test method includes: in a magnetic field functional area formed by a magnetic element, a relative rotation is formed between a first rotating part and a second rotating part until the magnetic flux acting on the Hall element changes to the switching trigger threshold value of the Hall element; when the magnetic flux acting on the Hall element changes to the switching trigger threshold value of the Hall element, the relative distance between the reference positions on the first rotating part and the second rotating part is obtained; and whether the relative distance meets a preset standard distance condition is determined to obtain a judgment result. The present invention obtains the detection distance of the electronic device when switching to a sleep or wake-up state by simulating the process of opening and closing the screen, when the magnetic flux acting on the Hall element changes to the switching trigger threshold value of the Hall element, so that the actual detection distance is consistent with the simulated detection distance, thereby achieving the purpose of ensuring the quality of the product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic equipment, and in particular to a detection distance testing method and device for electronic equipment. Background Art

[0002] Some electronic devices with a flip function are equipped with a distance detection component. Taking a laptop computer as an example, when the laptop computer is opened, the laptop computer wakes up when the distance detection component detects that the distance between the screen and the host computer reaches the wake-up distance; when the laptop computer is closed, the laptop computer goes into sleep mode when the distance detection component detects that the distance between the screen and the host computer reaches the sleep mode distance; the wake-up distance and the sleep mode distance are collectively referred to as the detection distance of the laptop computer.

[0003] In the prior art, the components for distance detection usually include magnets and Hall sensors respectively arranged on the screen and the host; although the detection distance can be simulated by magnetic field analysis method for application to electronic devices with flip function, due to the tolerance introduced by the magnet process and theoretical simulation itself, the actual detection distance is inconsistent with the simulated detection distance, resulting in the actual detection distance not meeting the requirements. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present invention provides a detection distance testing method and device for an electronic device, which solves the problem in the prior art that the actual detection distance is inconsistent with the simulated detection distance due to tolerances introduced in the magnet process and theoretical simulation itself, resulting in the actual detection distance not meeting the requirements.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] A detection distance test method for an electronic device provides a screen opening and closing simulation mechanism, comprising: a first rotating part, provided with a magnetic element; a second rotating part, provided with a Hall element; the first rotating part can be driven to rotate relative to the second rotating part;

[0007] The test method includes:

[0008] In the magnetic field functional area formed by the magnetic element, the first rotating part and the second rotating part are caused to rotate relative to each other until the magnetic flux acting on the Hall element changes to a switching trigger threshold value of the Hall element;

[0009] When the magnetic flux acting on the Hall element changes to a switching trigger threshold value of the Hall element, obtaining a relative distance between reference positions on the first rotating part and the second rotating part;

[0010] It is determined whether the relative distance meets a preset standard distance condition to obtain a determination result.

[0011] Optionally, the switching trigger threshold value of the Hall element includes a wake-up threshold value and a sleep threshold value, and when the magnetic flux passing through the Hall element reaches the wake-up threshold value or the sleep threshold value, the level state output on the Hall element switches;

[0012] The step of causing the first rotating part and the second rotating part to rotate relative to each other until the magnetic flux acting on the Hall element changes to a switching trigger threshold value of the Hall element includes:

[0013] Opening the first rotating part relative to the second rotating part until the magnetic flux passing through the Hall element changes to a wake-up threshold value; or

[0014] The first rotating part is closed relative to the second rotating part until the magnetic flux passing through the Hall element changes to a sleep threshold value.

[0015] Optionally, determining whether the relative distance satisfies a preset standard distance condition includes:

[0016] When the magnetic flux passing through the Hall element reaches the wake-up threshold value, determining whether the relative distance meets a preset wake-up distance condition;

[0017] When the magnetic flux passing through the Hall element reaches a sleep threshold value, it is determined whether the relative distance meets a preset sleep distance condition.

[0018] Optionally, the detection distance testing method of the electronic device further includes:

[0019] According to the determination result, a unit change amount of the magnetic flux acting on the Hall element when the first rotating part and the second rotating part form a relative rotation is adjusted.

[0020] Optionally, the adjusting a unit change amount of the magnetic flux acting on the Hall element when the first rotating part and the second rotating part form a relative rotation includes:

[0021] Adjust the distance between the mounting position of the magnetic element and the Hall element and the rotating axis.

[0022] Optionally, the magnetic element is a magnetic coil;

[0023] The test method also includes:

[0024] Controlling the magnetic element to generate a target magnetic flux to form a magnetic field functional area;

[0025] The adjusting the unit change amount of the magnetic flux acting on the Hall element when the first rotating part and the second rotating part form relative rotation also includes:

[0026] The current passing through the magnetic element is adjusted to increase or decrease the target magnetic flux.

[0027] The present invention also provides a detection distance testing device for an electronic device, which is used to implement the detection distance testing method for an electronic device as described in any one of the above items, comprising:

[0028] The screen opening and closing simulation mechanism;

[0029] A control unit, connected to the screen opening and closing simulation mechanism, used to make the first rotating part and the second rotating part form a relative rotation within the magnetic field functional area formed by the magnetic element until the magnetic flux acting on the Hall element changes to a switching trigger threshold value of the Hall element;

[0030] an acquisition unit, configured to acquire a relative distance between reference positions on the first rotating part and the second rotating part when the magnetic flux acting on the Hall element changes to a switching trigger threshold value of the Hall element;

[0031] The judging unit is used to judge whether the relative distance meets a preset standard distance condition and obtain a judging result.

[0032] Optionally, the switching trigger threshold value of the Hall element includes a wake-up threshold value and a sleep threshold value, and when the magnetic flux passing through the Hall element reaches the wake-up threshold value or the sleep threshold value, the level state output on the Hall element switches;

[0033] The control unit is also used for:

[0034] Opening the first rotating part relative to the second rotating part until the magnetic flux passing through the Hall element changes to a wake-up threshold value; or

[0035] closing the first rotating part relative to the second rotating part until the magnetic flux passing through the Hall element changes to a sleep threshold value;

[0036] The judging unit is used for:

[0037] When the magnetic flux passing through the Hall element changes to a wake-up threshold value, determining whether the relative distance meets a preset wake-up distance condition;

[0038] When the magnetic flux passing through the Hall element changes to a sleep threshold value, it is determined whether the relative distance meets a preset sleep distance condition.

[0039] Optionally, the detection distance testing device for an electronic device further comprises an adjustment unit, wherein the adjustment unit is used to:

[0040] According to the determination result, a unit change amount of the magnetic flux acting on the Hall element when the first rotating part and the second rotating part form a relative rotation is adjusted.

[0041] Optionally, the magnetic element is a magnetic coil; the control unit is used to control the magnetic element to generate a target magnetic flux to form a magnetic field functional area;

[0042] The first rotating part and the second rotating part are both provided with slide rails, and the magnetic element and the Hall element are slidably mounted on the slide rails of the first rotating part and the second rotating part respectively;

[0043] The adjustment unit is used for:

[0044] According to the judgment result, the magnetic element and the Hall element are made to slide on the slide rail to adjust the distance between the installation position of the magnetic element and the Hall element and the rotating shaft; and / or

[0045] The current passing through the magnetic element is adjusted to increase or decrease the target magnetic flux.

[0046] Compared with the prior art, the present invention has the following beneficial effects:

[0047] The present invention provides a detection distance testing method and device for an electronic device. By simulating the opening and closing process of a screen, when the magnetic flux acting on a Hall element changes to a switching trigger threshold value of the Hall element, the detection distance when the electronic device switches to a sleep or wake-up state is obtained, so that the actual detection distance is consistent with the simulated detection distance, thereby achieving the purpose of ensuring product quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0049] Figure 1 A schematic diagram of the structure of the screen opening and closing simulation mechanism provided by the present invention;

[0050] Figure 2 A flow chart of a detection distance testing method for an electronic device provided by the present invention;

[0051] Figure 3 Another flow chart of a detection distance testing method of an electronic device provided by the present invention;

[0052] Figure 4A flowchart of step S4 in a detection distance testing method for an electronic device provided by the present invention;

[0053] Figure 5 Another flow chart of a detection distance testing method of an electronic device provided by the present invention;

[0054] Figure 6 Another flow chart of step S4 in the detection distance testing method of an electronic device provided by the present invention;

[0055] Figure 7 A schematic structural diagram of a detection distance testing device for an electronic device provided by the present invention.

[0056] In the above figure: 10, screen opening and closing simulation mechanism; 11, first rotating part; 111, magnetic element; 12, second rotating part; 121, Hall element; 20, control unit; 30, acquisition unit; 40, adjustment unit. DETAILED DESCRIPTION

[0057] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0058] In the description of the present invention, it is to be understood that when a component is considered to be "connected" to another component, it may be directly connected to the other component or there may be a centrally disposed component. When a component is considered to be "disposed on" another component, it may be directly disposed on the other component or there may be a centrally disposed component.

[0059] In addition, terms such as "long", "short", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings and are only used to facilitate the description of the present invention. They do not indicate or imply that the device or component referred to must have this specific direction or operate with a specific direction structure, and should not be understood as a limitation of the present invention.

[0060] The wake-up distance and sleep distance are collectively referred to as the detection distance of the electronic device. The distance detection components usually include magnets and Hall sensors that are respectively located on the screen and the host. According to Lenovo standards, the sleep distance of the electronic device must be greater than 20mm, and the wake-up distance must be less than 100mm. In the prior art, the magnetic flux of the magnet is often reduced to meet the requirement that the wake-up distance is less than 100mm, but the magnetic flux of the magnet is too small to simultaneously ensure that the sleep distance is greater than 20mm, and even the undesirable phenomenon of the screen not turning off when the cover is closed may occur. Therefore, it is necessary to simulate the detection distance of the electronic device during production to determine whether it meets the requirements.

[0061] Although the detection distance can be simulated through magnetic field analysis methods for application in electronic equipment products, the tolerance introduced by the magnet process and theoretical simulation itself causes the actual detection distance to be inconsistent with the simulated detection distance, resulting in the actual detection distance exceeding the standard and failing to meet actual needs.

[0062] To solve the above problems, the present invention provides a detection distance test solution for an electronic device. The following takes a laptop computer as an example, and further illustrates the technical solution of the present invention in conjunction with the accompanying drawings and through specific implementation methods.

[0063] Embodiment 1

[0064] Please refer to Figure 1 and Figure 2 An embodiment of the present invention provides a detection distance testing method for an electronic device, and provides a screen opening and closing simulation mechanism 10, wherein the screen opening and closing simulation mechanism 10 comprises: a first rotating part 11, provided with a magnetic element 111; a second rotating part 12, provided with a Hall element 121; the first rotating part 11 and the second rotating part 12 are connected through a rotating member, so that the first rotating part 11 can be driven to rotate relative to the second rotating part 12.

[0065] In this embodiment, the testing method includes:

[0066] S1. In the magnetic field functional area formed by the magnetic element 111 , the first rotating part 11 and the second rotating part 12 are caused to rotate relative to each other until the magnetic flux acting on the Hall element 121 changes to a switching trigger threshold value of the Hall element 121 .

[0067] It can be understood that in this embodiment, the first rotating part 11 is regarded as the screen of the laptop computer, and the second rotating part 12 is regarded as the host of the laptop computer. Opening the first rotating part 11 relative to the second rotating part 12 is used to simulate the opening action of the laptop computer screen, and closing the first rotating part 11 relative to the second rotating part 12 simulates the closing action of the laptop computer screen.

[0068] Specifically, the switching trigger threshold value of the Hall element 121 includes a wake-up threshold value and a sleep threshold value. When the magnetic flux passing through the Hall element 121 reaches the wake-up threshold value or the sleep threshold value, the level state output on the Hall element 121 switches.

[0069] Based on this, in step S1, relative rotation is formed between the first rotating part 11 and the second rotating part 12 until the magnetic flux acting on the Hall element 121 changes to a switching trigger threshold value of the Hall element 121, including:

[0070] The first rotating part 11 is opened relative to the second rotating part 12 until the magnetic flux passing through the Hall element 121 changes to a wake-up threshold value; or, during the opening process, the magnetic flux passing through the Hall element 121 gradually decays, and when it decays to the lower induction limit value of the Hall element 121, the wake-up threshold value is reached.

[0071] The first rotating part 11 is closed relative to the second rotating part 12 until the magnetic flux passing through the Hall element 121 changes to the sleep threshold value; during the closing process, the magnetic flux passing through the Hall element 121 gradually increases, and when it increases to the induction upper limit value of the Hall element 121, the sleep threshold value is reached.

[0072] Among them, when the magnetic flux passing through the Hall element 121 reaches the wake-up threshold value, the Hall element 121 switches from a low level to a high level, which is used to simulate the wake-up action of the laptop computer when the screen is opened; when the magnetic flux passing through the Hall element 121 reaches the sleep threshold value, the Hall element 121 switches from a high level to a low level, which is used to simulate the sleep action of the laptop computer when the screen is closed.

[0073] It can be understood that the rotating member is a rotating shaft, which can rotate relative to the second rotating part 12 and drive the first rotating part 11 to rotate when rotating; the rotation of the rotating shaft can be achieved by driving a motor.

[0074] S2. When the magnetic flux acting on the Hall element 121 changes to a switching trigger threshold value of the Hall element 121 , a relative distance between reference positions on the first rotating part 11 and the second rotating part 12 is obtained.

[0075] In the process of opening the first rotating part 11 relative to the second rotating part 12, when the magnetic flux acting on the Hall element 121 changes to the switching trigger threshold value of the Hall element 121, the relative distance between the reference positions on the first rotating part 11 and the second rotating part 12 obtained is the wake-up distance for triggering the laptop to wake up;

[0076] In the process of closing the first rotating part 11 relative to the second rotating part 12, when the magnetic flux acting on the Hall element 121 changes to the switching trigger threshold value of the Hall element 121, the relative distance between the reference positions on the first rotating part 11 and the second rotating part 12 is obtained, which is the sleep distance for triggering the laptop computer to sleep.

[0077] The reference positions on the first rotating part 11 and the second rotating part 12 can be determined according to requirements, specifically corresponding to the front edge of the simulated laptop computer, so as to simulate the detection distance of the laptop computer.

[0078] It can be understood that the reference position can be located on the first rotating part 11 and the second rotating part 12, or on the extension line of the first rotating part 11 and the second rotating part 12. The specific position can be determined according to the specific size of the laptop computer. In this case, the reference position on the first rotating part 11 and the second rotating part 12 is obtained based on similar triangles. Specifically, a distance measuring element can be set at the reference position, and the distance measuring element can be a laser rangefinder, which is used to obtain the relative distance between the reference positions on the first rotating part 11 and the second rotating part 12.

[0079] S3. Determine whether the relative distance meets a preset standard distance condition and obtain a determination result.

[0080] Specifically, in step S3:

[0081] When the magnetic flux passing through the Hall element 121 reaches the wake-up threshold value, it is determined whether the relative distance meets the preset wake-up distance condition; when the relative distance is less than or equal to the preset wake-up distance threshold value, the preset wake-up distance condition is met.

[0082] When the magnetic flux passing through the Hall element 121 reaches the sleep threshold value, it is determined whether the relative distance meets the preset sleep distance condition; when the relative distance is greater than or equal to the preset sleep distance threshold value, the preset sleep distance condition is met.

[0083] Furthermore, when the relative distance meets the preset wake-up distance condition, and when the relative distance meets the preset sleep distance condition, the current relative distance, the magnetic flux passing through the Hall element 121, and the operating voltage of the Hall element 121 are recorded respectively for application in notebook computer products.

[0084] Specifically, a distance measuring element is disposed on the first rotating part 11 or the second rotating part 12 , and the distance measuring element may be a laser rangefinder, which is used to obtain the relative distance between reference positions on the first rotating part 11 and the second rotating part 12 .

[0085] Meanwhile, a voltmeter and a gaussmeter are connected to the Hall element 121 to obtain the magnetic flux passing through the Hall element 121 and the operating voltage of the Hall element 121 .

[0086] Please refer to Figure 3 Furthermore, the detection distance testing method of the electronic device provided in this embodiment further includes:

[0087] S4. According to the determination result, the unit change amount of the magnetic flux acting on the Hall element 121 when the first rotating part 11 and the second rotating part 12 form a relative rotation is adjusted.

[0088] It can be understood that the change in magnetic flux acting on the Hall element 121 is specifically: the change in magnetic flux per unit displacement during the rotation of the first rotating part 11 relative to the second rotating part 12 .

[0089] Please refer to Figure 4 Specifically, the change in the magnetic flux passing through the Hall element 121 can be adjusted in the following manner:

[0090] S41 , adjusting the distance between the installation positions of the magnetic element 111 and the Hall element 121 and the rotation axis to adjust the change in magnetic flux acting on the Hall element 121 .

[0091] For example, the first rotating part 11 is opened relative to the second rotating part 12. If the magnetic flux passing through the Hall element 121 reaches the wake-up threshold value and the relative distance is greater than the preset wake-up distance threshold, the installation positions of the magnetic element 111 and the Hall element 121 are adjusted in a direction away from the rotation axis to increase the change in the magnetic flux passing through the Hall element 121 during the opening process.

[0092] Similarly, when the first rotating part 11 is closed relative to the second rotating part 12, if the magnetic flux passing through the Hall element 121 reaches the sleep threshold value and the relative distance is less than the preset sleep distance threshold, the installation positions of the magnetic element 111 and the Hall element 121 are adjusted in a direction away from the rotation axis to increase the change in the magnetic flux passing through the Hall element 121 during the opening process.

[0093] It is understandable that the distances between the magnetic element 111 and the Hall element 121 and the rotation axis may be equal or unequal; in this embodiment, the case where the distances between the magnetic element 111 and the Hall element 121 and the rotation axis are equal is taken as an example for explanation.

[0094] In addition, slide rails for mounting the magnetic element 111 and the Hall element 121 can be respectively provided on the first rotating part 11 and the second rotating part 12 to facilitate the position adjustment of the magnetic element 111 and the Hall element 121; at the same time, scales can also be set corresponding to the extension direction of the guide rails to facilitate the acquisition of the distances between the magnetic element 111 and the Hall element 121 and the rotating axis respectively.

[0095] In one of the optional embodiments, a group of magnetic elements 111 and Hall elements 121 can be set respectively for the opening and closing actions of the first rotating part 11 relative to the second rotating part 12, and the magnetic flux of the magnetic element 111 and the induction parameters of the Hall element 121 can be set respectively, so as to obtain the distance data between the two groups of magnetic elements 111 and Hall elements 121 and the rotating axis.

[0096] In another optional embodiment, the opening and closing actions of the first rotating part 11 relative to the second rotating part 12 are implemented using the same set of magnetic elements 111 and Hall elements 121. During the opening and closing tests, distance data between a magnetic element 111 and a Hall element 121 and the rotating axis are respectively obtained, and then a weighted average of the two distance data is taken as the data finally applied to the notebook computer product.

[0097] Furthermore, in this embodiment, the magnetic element 111 is a magnetizing coil; the magnetizing coil can be used to flexibly adjust the magnetic field strength in the magnetic field functional area to simulate different types of magnets. Generally speaking, the magnet proofing cycle is 7-14 days. In this embodiment, the magnetizing coil is used instead of the magnet, which can save the magnet proofing step, thereby shortening the test time cycle to ensure production progress.

[0098] Please refer to Figure 5 Based on this, the testing method provided in this embodiment also includes:

[0099] S01. Control the magnetic element 111 to generate a target magnetic flux to form a magnetic field functional area.

[0100] In this step, the current passing through the magnetic element 111 is controlled so that the magnetic element 111 generates a target magnetic flux, thereby forming a magnetic field functional area.

[0101] Furthermore, in step S4, the following steps may be performed to adjust the change in magnetic flux acting on the Hall element 121:

[0102] Please refer to Figure 6 , S42, adjust the current passing through the magnetic element 111 to increase or decrease the target magnetic flux.

[0103] It is understandable that steps S41 and S42 may be used simultaneously to adjust the change in the magnetic flux passing through the Hall element 121 , or one of them may be used to achieve the adjustment.

[0104] For example, when the installation positions of the magnetic element 111 and the Hall element 121 are fixed, the current passing through the magnetic element 111 can be adjusted in step S42 until the relative distance meets the preset standard distance condition, thereby obtaining the best target magnetic flux, and customizing the magnet applied to the laptop computer based on the target magnetic flux;

[0105] When the magnet model used in the laptop computer is certain, the distance between the installation position of the magnetic element 111 and the Hall element 121 and the rotation axis can be adjusted through step S41 until the relative distance meets the preset standard distance condition, thereby obtaining the optimal installation position of the magnetic element 111 and the Hall element 121, and installing the magnet and the Hall sensor in the laptop computer based on the installation position.

[0106] Embodiment 2

[0107] Please refer to Figure 1 and Figure 7 Based on the first embodiment, the present invention further provides a detection distance test device for an electronic device, comprising:

[0108] Screen opening and closing simulation mechanism 10; the screen opening and closing simulation mechanism 10 comprises: a first rotating part 11, provided with a magnetic element 111; a second rotating part 12, provided with a Hall element 121; the first rotating part 11 and the second rotating part 12 are connected by a rotating member;

[0109] The control unit 20 is used to make the first rotating part 11 and the second rotating part 12 form a relative rotation within the magnetic field functional area formed by the magnetic element 111 until the magnetic flux acting on the Hall element 121 changes to a switching trigger threshold value of the Hall element 121;

[0110] An acquisition unit 30, configured to acquire a relative distance between reference positions on the first rotating part 11 and the second rotating part 12 when the magnetic flux acting on the Hall element 121 changes to a switching trigger threshold value of the Hall element 121;

[0111] The judging unit is used to judge whether the relative distance meets a preset standard distance condition and obtain a judging result.

[0112] The rotating member is a rotating shaft, which can rotate relative to the second rotating part 12 and drive the first rotating part 11 to rotate when rotating; the rotation of the rotating shaft can be achieved by driving a motor. The control unit 20 is used to control the start and stop of the motor and the rotation direction, so that the first rotating part 11 and the second rotating part 12 form a relative rotation.

[0113] Specifically, the control unit 20 is also used for:

[0114] The first rotating part 11 is opened relative to the second rotating part 12 until the magnetic flux passing through the Hall element 121 reaches the wake-up threshold value; the first rotating part 11 is closed relative to the second rotating part 12 until the magnetic flux passing through the Hall element 121 reaches the sleep threshold value.

[0115] It can be understood that the control unit 20 can control the rotation direction of the motor so that the first rotating part 11 opens or closes relative to the second rotating part 12 .

[0116] It can be understood that in this embodiment, the first rotating part 11 is regarded as the screen of the laptop computer, and the second rotating part 12 is regarded as the host of the laptop computer. Opening the first rotating part 11 relative to the second rotating part 12 is used to simulate the opening action of the laptop computer screen, and closing the first rotating part 11 relative to the second rotating part 12 simulates the closing action of the laptop computer screen.

[0117] Based on this, the first rotating part 11 is opened relative to the second rotating part 12 until the magnetic flux passing through the Hall element 121 reaches the wake-up threshold value; during the opening process, the magnetic flux passing through the Hall element 121 gradually decays, and when it decays to the induction lower limit value of the Hall element 121, the wake-up threshold value is reached;

[0118] The first rotating part 11 is closed relative to the second rotating part 12 until the magnetic flux passing through the Hall element 121 reaches the sleep threshold value; during the closing process, the magnetic flux passing through the Hall element 121 gradually increases, and when it increases to the induction upper limit value of the Hall element 121, the sleep threshold value is reached.

[0119] Among them, when the magnetic flux passing through the Hall element 121 reaches the wake-up threshold value, the Hall element 121 switches from a low level to a high level, which is used to simulate the wake-up action of the laptop computer when the screen is opened; when the magnetic flux passing through the Hall element 121 reaches the sleep threshold value, the Hall element 121 switches from a high level to a low level, which is used to simulate the sleep action of the laptop computer when the screen is closed.

[0120] Specifically, the switching trigger threshold value of the Hall element 121 includes a wake-up threshold value and a sleep threshold value. When the magnetic flux passing through the Hall element 121 reaches the wake-up threshold value or the sleep threshold value, the level state output on the Hall element 121 switches.

[0121] Furthermore, the judging unit is used for:

[0122] When the magnetic flux passing through the Hall element 121 changes to the wake-up threshold value, it is determined whether the relative distance meets the preset wake-up distance condition;

[0123] When the magnetic flux passing through the Hall element 121 changes to the sleep threshold value, it is determined whether the relative distance meets the preset sleep distance condition.

[0124] Specifically, when the magnetic flux passing through the Hall element 121 reaches the wake-up threshold, the judgment unit judges whether the relative distance meets the preset wake-up distance condition; when the relative distance is less than or equal to the preset wake-up distance threshold, it is judged that the preset wake-up distance condition is met.

[0125] When the magnetic flux passing through the Hall element 121 reaches the sleep threshold value, the judgment unit judges whether the relative distance meets the preset sleep distance condition; when the relative distance is greater than or equal to the preset sleep distance threshold value, it is judged that the preset sleep distance condition is met.

[0126] The first rotating part 11 or the second rotating part 12 is provided with a distance measuring element, which may be a laser distance measuring device, for obtaining the relative distance between the reference positions on the first rotating part 11 and the second rotating part 12. At the same time, a voltmeter and a gauss meter are connected to the Hall element 121 to obtain the magnetic flux passing through the Hall element 121 and the working voltage of the Hall element 121.

[0127] When the relative distance meets the preset wake-up distance condition, and when the relative distance meets the preset sleep distance condition, the current relative distance, the magnetic flux passing through the Hall element 121, and the operating voltage of the Hall element 121 are recorded respectively for application in notebook computer products.

[0128] Furthermore, the detection distance testing device for an electronic device provided in this embodiment further includes an adjustment unit 40, and the adjustment unit 40 is used to:

[0129] According to the determination result, the unit change amount of the magnetic flux acting on the Hall element 121 when the first rotating part 11 and the second rotating part 12 form a relative rotation is adjusted.

[0130] Specifically, the magnetic element 111 is a magnetic coil; the control unit 20 is used to control the current passing through the magnetic element 111 so that the magnetic element 111 generates a target magnetic flux, thereby forming a magnetic field functional area; the first rotating part 11 and the second rotating part 12 are both provided with slide rails, and the magnetic element 111 and the Hall element 121 are respectively slidably mounted on the slide rails of the first rotating part 11 and the second rotating part 12. Scales can also be set corresponding to the extension direction of the guide rails to facilitate the acquisition of the distances between the magnetic element 111 and the Hall element 121 and the rotating axis.

[0131] Based on this, the adjustment unit 40 is used to:

[0132] According to the determination result, under the control of the control unit 20, the magnetic element 111 and the Hall element 121 are made to slide on the slide rail to adjust the distance between the installation position of the magnetic element 111 and the Hall element 121 and the rotating member; and / or

[0133] The current passing through the magnetic element 111 is adjusted to increase or decrease the target magnetic flux.

[0134] It is understood that the adjustment unit 40 includes a cylinder.

[0135] Under the control of the control unit 20, the first rotating part 11 opens relative to the second rotating part 12. When the magnetic flux passing through the Hall element 121 reaches the wake-up threshold value and the relative distance is greater than the preset wake-up distance threshold, the installation positions of the magnetic element 111 and the Hall element 121 are adjusted in a direction away from the rotating axis under the push of the cylinder to increase the change in the magnetic flux passing through the Hall element 121 during the opening process.

[0136] Similarly, under the control of the control unit 20, the first rotating part 11 is closed relative to the second rotating part 12. When the magnetic flux passing through the Hall element 121 reaches the sleep threshold value and the relative distance is less than the preset sleep distance threshold, the installation position of the magnetic element 111 and the Hall element 121 is adjusted in the direction away from the rotation axis under the push of the cylinder to increase the change in the magnetic flux passing through the Hall element 121 during the opening process.

[0137] In addition, elastic telescopic positioning members are provided in the guide rails of the first rotating part 11 and the second rotating part 12. The elastic telescopic positioning members are evenly arranged at certain intervals, so that when the cylinder pushes the magnetic element 111 and the Hall element 121, the magnetic element 111 and the Hall element 121 can be positioned at a predetermined position under the action of the elastic telescopic positioning members.

[0138] It is understandable that the distances between the magnetic element 111 and the Hall element 121 and the rotation axis may be equal or unequal; in this embodiment, the case where the distances between the magnetic element 111 and the Hall element 121 and the rotation axis are equal is taken as an example for explanation.

[0139] In addition, slide rails for mounting the magnetic element 111 and the Hall element 121 can be respectively provided on the first rotating part 11 and the second rotating part 12 to facilitate the position adjustment of the magnetic element 111 and the Hall element 121; at the same time, scales can also be set corresponding to the extension direction of the guide rails to facilitate the acquisition of the distances between the magnetic element 111 and the Hall element 121 and the rotating axis respectively.

[0140] In one optional embodiment, a group of magnetic elements 111 and Hall elements 121 may be provided respectively for the opening and closing actions of the first rotating part 11 relative to the second rotating part 12, so as to obtain distance data between the two groups of magnetic elements 111 and Hall elements 121 and the rotating axis.

[0141] In another optional embodiment, the opening and closing actions of the first rotating part 11 relative to the second rotating part 12 are implemented using the same set of magnetic elements 111 and Hall elements 121. During the opening and closing tests, distance data between a magnetic element 111 and a Hall element 121 and the rotating axis are respectively obtained, and then a weighted average of the two distance data is taken as the data finally applied to the notebook computer product.

[0142] Furthermore, in this embodiment, the magnetic element 111 is a magnetizing coil; the magnetizing coil can be used to flexibly adjust the magnetic field strength in the magnetic field functional area to simulate different types of magnets. Generally speaking, the magnet proofing cycle is 7-14 days. In this embodiment, the magnetizing coil is used instead of the magnet, which can save the magnet proofing step, thereby shortening the test time cycle to ensure production progress.

[0143] It can be understood that the above two adjustment schemes can be used simultaneously to adjust the change in the magnetic flux passing through the Hall element 121 , or one of them can be used alone.

[0144] For example, when the installation positions of the magnetic element 111 and the Hall element 121 are fixed, the current passing through the magnetic element 111 can be adjusted until the relative distance meets the preset standard distance condition, thereby obtaining the best target magnetic flux, and the magnet applied to the laptop computer can be customized based on the target magnetic flux;

[0145] When the magnet model used in the laptop computer is certain, the distance between the installation position of the magnetic element 111 and the Hall element 121 and the rotation axis can be adjusted until the relative distance meets the preset standard distance condition, thereby obtaining the optimal installation position of the magnetic element 111 and the Hall element 121, and installing the magnet and the Hall sensor in the laptop computer based on the installation position.

[0146] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A detection distance testing method for an electronic device, characterized in that: A screen opening and closing simulation mechanism is provided, comprising: a first rotating part provided with a magnetic element, and a second rotating part provided with a Hall element, wherein the first rotating part can be driven to rotate relative to the second rotating part; The test method includes: In the magnetic field functional area formed by the magnetic element, the first rotating part and the second rotating part are caused to rotate relative to each other until the magnetic flux acting on the Hall element changes to a switching trigger threshold value of the Hall element; When the magnetic flux acting on the Hall element changes to a switching trigger threshold value of the Hall element, obtaining a relative distance between reference positions on the first rotating part and the second rotating part; Determine whether the relative distance meets a preset standard distance condition, and obtain a determination result; The switching trigger threshold value of the Hall element includes a wake-up threshold value and a sleep threshold value. When the magnetic flux passing through the Hall element reaches the wake-up threshold value or the sleep threshold value, the level state output on the Hall element switches; The step of causing the first rotating part and the second rotating part to rotate relative to each other until the magnetic flux acting on the Hall element changes to a switching trigger threshold value of the Hall element includes: Opening the first rotating part relative to the second rotating part until the magnetic flux passing through the Hall element changes to a wake-up threshold value; or closing the first rotating part relative to the second rotating part until the magnetic flux passing through the Hall element changes to a sleep threshold value; The determining whether the relative distance satisfies a preset standard distance condition includes: When the magnetic flux passing through the Hall element reaches the wake-up threshold value, determining whether the relative distance meets a preset wake-up distance condition; When the magnetic flux passing through the Hall element reaches a sleep threshold value, determining whether the relative distance meets a preset sleep distance condition; According to the judgment result, the unit change amount of the magnetic flux acting on the Hall element when the first rotating part and the second rotating part form a relative rotation is adjusted until the relative distance meets a preset standard distance condition.

2. The detection distance testing method of an electronic device according to claim 1, characterized in that: The adjusting unit change amount of the magnetic flux acting on the Hall element when the first rotating part and the second rotating part form a relative rotation comprises: Adjust the distance between the mounting position of the magnetic element and the Hall element and the rotating axis.

3. The detection distance testing method of an electronic device according to claim 1, characterized in that: The magnetic element is a magnetic coil; The test method also includes: Controlling the magnetic element to generate a target magnetic flux to form a magnetic field functional area; The adjusting the unit change amount of the magnetic flux acting on the Hall element when the first rotating part and the second rotating part form relative rotation also includes: The current passing through the magnetic element is adjusted to increase or decrease the target magnetic flux.

4. A detection distance testing device for an electronic device, used to implement the detection distance testing method for an electronic device as claimed in any one of claims 1 to 3, characterized in that: include: The screen opening and closing simulation mechanism; A control unit, connected to the screen opening and closing simulation mechanism, used to make the first rotating part and the second rotating part form a relative rotation within the magnetic field functional area formed by the magnetic element until the magnetic flux acting on the Hall element changes to a switching trigger threshold value of the Hall element; an acquisition unit, configured to acquire a relative distance between reference positions on the first rotating part and the second rotating part when the magnetic flux acting on the Hall element changes to a switching trigger threshold value of the Hall element; A judging unit, used to judge whether the relative distance meets a preset standard distance condition and obtain a judging result; The switching trigger threshold value of the Hall element includes a wake-up threshold value and a sleep threshold value. When the magnetic flux passing through the Hall element reaches the wake-up threshold value or the sleep threshold value, the level state output on the Hall element switches; The control unit is also used for: Opening the first rotating part relative to the second rotating part until the magnetic flux passing through the Hall element changes to a wake-up threshold value; or closing the first rotating part relative to the second rotating part until the magnetic flux passing through the Hall element changes to a sleep threshold value; The judging unit is used for: When the magnetic flux passing through the Hall element changes to a wake-up threshold value, determining whether the relative distance meets a preset wake-up distance condition; When the magnetic flux passing through the Hall element changes to a sleep threshold value, determining whether the relative distance meets a preset sleep distance condition; The detection distance testing device for an electronic device further comprises an adjustment unit, and the adjustment unit is used for: According to the judgment result, the unit change amount of the magnetic flux acting on the Hall element when the first rotating part and the second rotating part form a relative rotation is adjusted until the relative distance meets a preset standard distance condition.

5. The detection distance testing device of an electronic device according to claim 4, characterized in that: The magnetic element is a magnetic coil; the control unit is used to control the magnetic element to generate a target magnetic flux to form a magnetic field functional area; The first rotating part and the second rotating part are both provided with slide rails, and the magnetic element and the Hall element are slidably mounted on the slide rails of the first rotating part and the second rotating part respectively; The adjustment unit is used for: According to the judgment result, the magnetic element and the Hall element are made to slide on the slide rail to adjust the distance between the installation position of the magnetic element and the Hall element and the rotating shaft; and / or The current passing through the magnetic element is adjusted to increase or decrease the target magnetic flux.

Citation Information

Patent Citations

  • Screen control method and device

    CN106339168A

  • Terminal Control Method and Terminal

    US20180007632A1