Measurement method, measurement device, storage medium and electronic equipment
Through acceleration sensors and calibration algorithms, the flattening angle of foldable electronic devices is efficiently and accurately measured, solving the problem of low accuracy in the prior art and improving equipment quality and production efficiency.
Patent Information
- Application Number
- CN202410255134.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-05
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-03-05
AI Technical Summary
In the prior art, the accuracy of the flattening angle of the detection foldable electronic device is low, resulting in inaccurate screening of defective products and affecting the quality of the equipment.
Acceleration sensors are used to measure the flattening angle of electronic devices, gravity data is obtained through calibration algorithms, and angles are calculated using trigonometric functions to achieve high-accurate flattening angle measurement.
It improves the accuracy and efficiency of flattening angle measurement, reduces costs, is suitable for batch replication of production lines, and improves the quality of electronic equipment.
Smart Images

Figure CN119268679A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a measurement method, a measurement device, a storage medium and an electronic device. Background Art
[0002] With the development of science and technology, more and more electronic devices are foldable. Foldable electronic devices include a main frame and a sub-frame. The screen of the electronic device is arranged in the sub-frame and the main frame, and the main frame and the sub-frame are connected by a rotating shaft. When the foldable electronic device is in the unfolded state, the angle between the main frame and the sub-frame is called the flattening angle of the electronic device. When the flattening angle is 180°, the user can get the best visual experience when using the screen. However, due to problems such as the processing accuracy of the rotating shaft or the size matching between the rotating shaft and the main and sub-frames, the flattening angle of the foldable electronic device may be under- or over-expanded, that is, the flattening angle is too small (for example, less than 178°) or the flattening angle is too large (for example, less than 182°). Electronic devices with under- or over-expanded flattening angles are defective products and need to be intercepted before the electronic devices leave the factory.
[0003] Currently, the flattening angle of electronic devices is detected by manual visual inspection and based solely on experience, and electronic devices with flattening angles that do not meet the requirements are intercepted before leaving the factory. However, the accuracy of manual inspection is low, which will affect the factory quality of electronic devices. Summary of the invention
[0004] In order to solve the problem of low accuracy in the flattening angle test, the present application proposes a measuring method, a measuring device, a storage medium and an electronic device.
[0005] In a first aspect, the present application proposes a measurement method, which is applied to a foldable electronic device, wherein the foldable electronic device includes a first part and a second part located on both sides of a folding axis, wherein an acceleration sensor is provided on the first part; and the method includes: placing the first part horizontally and calibrating the acceleration sensor in the first part; placing the second part horizontally and obtaining first gravity data detected by the acceleration sensor in the first part when the foldable electronic device is in an unfolded state; calculating a first angle based on the first gravity data; and determining an angle between the first part and the second part when the foldable electronic device is in an unfolded state based on the first angle.
[0006] In the present application, the first part may be a main frame of the foldable electronic device, and the second part may be a sub-frame of the foldable electronic device. When calibrating the acceleration sensor in the first part, the foldable electronic device may be in an unfolded state, the first part may be placed horizontally, and the second part may be suspended, and the acceleration sensor in the first part may be calibrated using a calibration algorithm. When acquiring the first gravity data detected by the acceleration sensor in the first part, the foldable electronic device may be in an unfolded state, the second part may be placed horizontally, and the first part may be suspended.
[0007] In this way, the flattening angle of the electronic device is measured according to the acceleration sensor built into the foldable electronic device. The measurement method is simple, accurate, and low-cost. It can be replicated in batches on the production line, which facilitates the work of production line employees, improves their work efficiency, and can improve the quality of foldable electronic devices.
[0008] In a possible implementation of the first aspect above, the acceleration sensor in the first part is calibrated, including: acquiring multiple sets of data detected by the acceleration sensor, each set of data in the multiple sets of data includes three axial data; based on the multiple sets of data, determining the average data of each axis respectively; judging whether the average data of each axis meets the calibration conditions; and determining that the average data of each axis meets the calibration conditions, and the calibration ends.
[0009] In this application, the three axial data may be data of the x-axis, y-axis, and z-axis. It is judged whether the average data of each axis meets the calibration condition, including judging the difference between the average data of each axis and the calibration value of each axis. If the difference meets the calibration condition, for example, the difference is less than 0.1, it is considered that the calibration condition is met and the calibration is ended.
[0010] In a possible implementation of the first aspect described above, obtaining multiple sets of data detected by an acceleration sensor includes: the acceleration sensor detects data at a first moment, and after a first time period at the first moment, obtaining the detection data of the acceleration sensor at a first frequency to obtain multiple sets of data; and filtering the multiple sets of data to obtain multiple sets of filtered data.
[0011] In the present application, the first moment may be 100 ms, the first duration may be 1000 ms, the first frequency may be 10 Hz, and stable data may be screened from multiple sets of data.
[0012] In a possible implementation of the first aspect above, obtaining first gravity data detected by an acceleration sensor in a first part of a foldable electronic device in an unfolded state includes: obtaining multiple sets of gravity data detected by the acceleration sensor in the first part; and obtaining the first gravity data based on an average value of the multiple sets of gravity data.
[0013] In a possible implementation of the first aspect above, the first gravity data includes at least one of gravity data of a first axis, gravity data of a second axis and gravity data of a third axis, and the first axis, the second axis and the third axis are three axes in a three-dimensional coordinate system.
[0014] In a possible implementation of the first aspect, the method further includes: a calculation method of the first angle is based on any one of the following formulas:
[0015] a = arcsin(Fx / F);
[0016] a = arccos(Fz / F);
[0017] a = arctan(Fx / Fz);
[0018]
[0019] Wherein, a is the first angle, Fx is the gravity data of the first axis, Fy is the gravity data of the second axis, Fz is the gravity data of the third axis, and F is gravity.
[0020] In a possible implementation of the first aspect above, based on the first angle, determining the angle between the first part and the second part of the foldable electronic device in the unfolded state includes: subtracting the first angle from the straight angle of 180 degrees to obtain the angle between the first part and the second part of the foldable electronic device in the unfolded state.
[0021] In the second aspect, the present application proposes a measuring device, which is applied to a foldable electronic device. The foldable electronic device includes a first part and a second part located on both sides of a folding axis. The measuring device includes a test table, a calibration slot, a test slot, and a spirit level; the test table is used to place the first part horizontally and calibrate the acceleration sensor in the first part; the test table is used to place the second part horizontally and test the angle between the first part and the second part of the foldable electronic device when it is in an unfolded state; the calibration slot is used to place the first part; the test slot is used to place the second part; the spirit level is used to indicate the horizontal posture of the test table.
[0022] In the present application, the test table may include a fixing component, such as a buckle, for fixing the first part and / or the second part. Since the first part and the second part are connected on both sides of the folding axis, when the foldable electronic device is in the unfolded state, the effect of gravity on the angle between the first part and the second part can be ignored.
[0023] In a third aspect, the present application proposes a computer-readable storage medium having instructions stored thereon. When the instructions are executed on an electronic device, the electronic device implements the above-mentioned first aspect and any possible measurement method of the first aspect.
[0024] In a fourth aspect, the present application proposes an electronic device, comprising: a memory for storing instructions executed by one or more processors of the electronic device; and a processor, which is one of the processors of the electronic device, for executing a measurement method that enables the electronic device to implement the above-mentioned first aspect and any possible implementation of the first aspect.
[0025] The electronic devices mentioned in this application include foldable electronic devices and also include other testing equipment, and the testing equipment is communicatively connected with the foldable electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 According to some embodiments of the present application, a front view schematic diagram of a foldable mobile phone 10 in an unfolded state is shown;
[0027] Figure 2 According to some embodiments of the present application, a schematic diagram of a foldable mobile phone 10 in a folded state is shown;
[0028] Figure 3 According to some embodiments of the present application, a side schematic diagram of a foldable mobile phone 10 in an unfolded state is shown;
[0029] Figure 4 According to some embodiments of the present application, an equivalent schematic diagram of a side view of a foldable mobile phone 10 in an unfolded state is shown;
[0030] Figure 5A According to some embodiments of the present application, a schematic diagram of an acceleration sensor when it is horizontal is shown;
[0031] Figure 5B According to some embodiments of the present application, a schematic diagram of force analysis of an acceleration sensor is shown;
[0032] Figure 5C According to some embodiments of the present application, a schematic diagram of an acceleration sensor when tilted is shown;
[0033] Figure 5D According to some embodiments of the present application, a schematic diagram of force analysis when an acceleration sensor is tilted is shown;
[0034] Figure 6 According to some embodiments of the present application, a flow chart of a measurement method is shown;
[0035] Figure 7 According to some embodiments of the present application, a schematic diagram of a flattening angle test is shown;
[0036] Figure 8 According to some embodiments of the present application, a schematic diagram of a test slot is shown;
[0037] Fig. 9 According to some embodiments of the present application, a schematic diagram of a flatness adjustment workbench is shown;
[0038] Fig.10 According to some embodiments of the present application, a schematic diagram of a software architecture of a foldable mobile phone 10 is shown;
[0039] Fig.11 According to some embodiments of the present application, a schematic diagram of a main frame protective cover is shown;
[0040] Fig.12 According to some embodiments of the present application, a flow chart of a method for calibrating an acceleration sensor is shown;
[0041] Fig.13 According to some embodiments of the present application, a schematic diagram of a secondary frame protective cover is shown;
[0042] Fig.14 According to some embodiments of the present application, a schematic flow chart of a flattening angle testing method is shown;
[0043] Fig.15 According to some embodiments of the present application, a schematic diagram of the hardware structure of a foldable mobile phone 10 is shown. DETAILED DESCRIPTION
[0044] The illustrative embodiments of the present application include, but are not limited to, a measuring method, a measuring device, a storage medium, and an electronic device.
[0045] The following is an introduction to the terms mentioned in this application:
[0046] (1) Acceleration sensor
[0047] An acceleration sensor is a sensor that can measure acceleration. The present application uses an acceleration sensor to calculate the tilt angle of an electronic device relative to a horizontal plane.
[0048] The electronic device mentioned in the present application may be a foldable terminal device (terminal), a foldable user equipment (UE), a foldable mobile station (MS), a foldable mobile terminal (MT), etc. The foldable terminal device may be a foldable mobile phone, a foldable smart TV, a foldable wearable device, a foldable tablet computer (Pad), a foldable computer with wireless transceiver function, a foldable virtual reality (VR) terminal device, a foldable augmented reality (AR) terminal device, a foldable wireless terminal in industrial control, a foldable wireless terminal in self driving, a foldable wireless terminal in remote medical surgery, a foldable wireless terminal in smart grid, a foldable wireless terminal in transportation safety, a foldable wireless terminal in smart city, a foldable wireless terminal in smart home, and any other foldable electronic device. For the convenience of description, the present application takes the foldable mobile phone 10 as an example for introduction.
[0049] The technical solution of the present application is introduced below in conjunction with the accompanying drawings.
[0050] As mentioned above, the foldable phone 10 includes a main frame and a sub-frame, the screen of the foldable phone 10 is arranged in the sub-frame and the main frame, and the main frame and the sub-frame are connected by a hinge. When the foldable phone 10 is in the unfolded state, the angle between the main frame and the sub-frame is called the flattening angle of the foldable phone 10. For example, Figure 1 A schematic front view of a foldable mobile phone 10 in an unfolded state is shown. Figure 1 As shown, the foldable phone 10 includes a main frame 101 and a sub-frame 102, a main screen 103 of the foldable phone 10 is arranged in the area formed by the sub-frame 102 and the main frame 101, and the main frame 101 and the sub-frame 102 are connected by a hinge 104. When the foldable phone 10 switches from the unfolded state to the folded state, the foldable phone 10 is in a bent state. Figure 2 A schematic diagram of a foldable mobile phone 10 in a folded state is shown. Figure 2 As shown, a sub-screen 201 is disposed in the sub-frame 102 of the foldable mobile phone 10 , and the user can use the sub-screen 201 when the foldable mobile phone 10 is in a bent state or a folded state.
[0051] Figure 3A schematic side view of a foldable mobile phone 10 in an unfolded state is shown. Figure 3 As shown, the main screen 103 of the foldable mobile phone 10 is arranged in the area formed by the secondary frame 102 and the main frame 101. When the foldable mobile phone 10 is in the unfolded state, the user can use the main screen 103. The angle between the main frame 101 and the secondary frame 102 is the flattening angle θ of the foldable mobile phone 10. When the flattening angle θ is 180°, the user can obtain the best visual experience when using the main screen 103. However, due to the processing accuracy of the rotating shaft 104 or the size matching between the rotating shaft 104 and the main frame 101 and the secondary frame 102, the flattening angle θ of the foldable mobile phone 10 may be under- or over-developed, that is, the angle of the flattening angle θ is too small (for example, less than 178°) or the angle of the flattening angle θ is too large (for example, less than 182°), wherein the threshold range of the flattening angle θ is 178° to 182°. In some embodiments, according to the needs of the foldable mobile phone 10, the flattening angle θ may also have other threshold ranges, which are not limited here. The foldable mobile phone 10 that does not meet the threshold range of the flattening angle θ is a defective product, for example, Figure 4 An equivalent schematic diagram of a side view of a foldable mobile phone 10 in an unfolded state is shown, as shown in FIG. Figure 4 As shown, the flattening angle θ of the foldable mobile phone 10 is 176.5°, which does not meet the threshold range of the flattening angle θ and needs to be intercepted before the foldable mobile phone 10 leaves the factory.
[0052] At present, the flattening angle of the foldable mobile phone 10 is detected by manual visual inspection and only by experience, and the foldable mobile phone 10 with a flattening angle that does not meet the requirements is intercepted before leaving the factory. However, the accuracy of manual inspection is low, which will affect the factory quality of the foldable mobile phone 10. In other embodiments, the flattening angle of the foldable mobile phone 10 is measured based on a simple measuring tool. However, the measurement accuracy of the simple measuring tool is poor. In other embodiments, the manufacturer develops equipment to test the flattening angle, and uses imaging principles and computer algorithms to obtain the flattening angle of the electronic device. However, this method is complex to measure and has a high cost.
[0053] To this end, the present application proposes a measurement method. Specifically, the acceleration sensor in the electronic device is used to obtain the components of gravity in each axis in the coordinate system, and the flattening angle of the electronic device is calculated based on the relationship of trigonometric functions. In this way, the flattening angle of the electronic device is measured according to the acceleration sensor built into the electronic device. The measurement method is simple, accurate, and low-cost. It can be replicated in batches on the production line, which is convenient for the production line employees to work, improves the work efficiency of the employees, and can improve the quality of the electronic equipment.
[0054] For example, Figure 5A A schematic diagram of a horizontal acceleration sensor is shown. Figure 5AAs shown, in the coordinate system of the acceleration sensor, the direction of the x-axis is horizontal to the right, the direction of the y-axis is perpendicular to the paper and outward, and the direction of the z-axis is vertically upward. The acceleration sensor can also have different directions of the x-axis, y-axis, and z-axis, which are not limited here. When the acceleration sensor is in a horizontal state, the gravity of the acceleration sensor is equal to the component of gravity on the z-axis. For example, Figure 5B A schematic diagram of a force analysis of an acceleration sensor is shown, Figure 5B As shown, when the acceleration sensor is in a horizontal state, the gravity F of the acceleration sensor is equal to the component Fz of the gravity on the z-axis, and the components of the gravity on the x-axis and the y-axis are zero.
[0055] When the acceleration sensor rotates around the y-axis by an angle a, which is equivalent to the flattening angle of the foldable mobile phone 10 being (180°-a), the direction of the coordinate system of the acceleration sensor changes. For example, Figure 5C A schematic diagram of an acceleration sensor when tilted is shown, such as Figure 5C As shown, the directions of the z-axis and the x-axis both change by an angle a. Figure 5D A schematic diagram of force analysis of an acceleration sensor when it is tilted is shown, Figure 5D As shown, Fz is the component of gravity on the z-axis, Fx is the component of gravity on the x-axis, and Fy is the component of gravity on the y-axis. Among them, Fx, Fy, and Fz can all be obtained by the acceleration sensor. According to the relationship of trigonometric functions, the rotation angle a of the acceleration sensor is calculated, and then the rotation angle a is subtracted from 180° to obtain the flattening angle θ of the foldable mobile phone 10.
[0056] For example, the rotation angle a can be calculated based on the component Fx of gravity in the x-axis direction obtained by the acceleration sensor and the following formula (1):
[0057] a=arcsin(Fx / F) (1)
[0058] Among them, Fx is the component of gravity in the x-axis direction, and F is gravity.
[0059] For another example, the rotation angle a can be calculated based on the component Fz of gravity in the z-axis direction obtained by the acceleration sensor and the following formula (2):
[0060] a=arccos(Fz / F) (2)
[0061] Among them, Fz is the component of gravity in the z-axis direction, and F is gravity.
[0062] For another example, the rotation angle a can be calculated according to the component Fx of gravity in the x-axis direction obtained by the acceleration sensor and the component Fz of gravity in the z-axis direction obtained by the acceleration sensor, and then according to the following formula (3):
[0063] a=arctan(Fc / Fz) (3)
[0064] Among them, Fx is the component of gravity in the x-axis direction, Fz is the component of gravity in the z-axis direction, and F is gravity.
[0065] For another example, the rotation angle a can be calculated according to the component Fx of gravity in the x-axis direction obtained by the acceleration sensor, the component Fz of gravity in the z-axis direction obtained by the acceleration sensor, and the component Fy of gravity in the y-axis direction obtained by the acceleration sensor, and then according to the following formula (4):
[0066]
[0067] Among them, Fx is the component of gravity in the x-axis direction, Fy is the component of gravity in the y-axis direction, Fz is the component of gravity in the z-axis direction, and F is gravity.
[0068] Therefore, when measuring the unfolding angle of the foldable mobile phone 10, assuming that the acceleration sensor is set in the main frame, the acceleration sensor in the main frame can be calibrated first. For example, the foldable mobile phone 10 is unfolded, and the main frame can be placed on a horizontal calibration table, the sub-frame is suspended, and the data of the acceleration sensor in the main frame is obtained, and by running the calibration algorithm of the foldable mobile phone 10, the magnitude of the gravity component Fx on the x-axis in the acceleration sensor is calibrated to 0, the magnitude of the gravity component Fy on the y-axis is calibrated to 0, and the magnitude of the gravity component Fz on the z-axis is calibrated to 9.8 (the value of gravity acceleration), wherein the calibration algorithm is an algorithm that can be used to calibrate the acceleration sensor before the foldable mobile phone 10 leaves the factory. Then the sub-frame is placed horizontally, the main frame is suspended, and the angle of the main frame is obtained. For example, according to the magnitude of the gravity component Fx on the x-axis, the gravity component Fy on the y-axis, and the gravity component Fz on the z-axis in the main frame, and based on any one of the above formulas (1) to (4), the angle of the main frame is calculated. Finally, the unfolding angle of the foldable mobile phone 10 is obtained by subtracting the angle of the main frame from 180°.
[0069] In some embodiments, the calibration algorithm of the acceleration sensor may include the following steps: first, obtain the components of gravity in each axis under the reference state and record them as original values. For example, place the foldable mobile phone 10 on a horizontal calibration table and obtain the original values of the components of gravity in the x-axis Fx, the components of gravity in the y-axis Fy, and the components of gravity in the z-axis Fz in the acceleration sensor; then obtain the difference between the original value and the standard value of the components of gravity in each axis as the initial offset. For example, the difference of 0.2 between the original value of Fz 9.6 and the standard value of z-axis 9.8 is used as the initial offset. If the initial offset is too large, it can be considered that the acceleration sensor is not placed horizontally, or the acceleration sensor itself does not meet the calibration conditions, and the calibration fails. For example, if the original value of Fz 8.0 is less than or equal to the standard value of the z-axis 9.8×cos10° (i.e., 9.65), the initial offset is too large and the calibration fails. Then, the original value and the initial offset are calculated to obtain the calibration value. For example, the original value of Fz 9.6 is added to the initial offset 0.2 to obtain the calibration value of Fx 9.8, and the calibration is completed.
[0070] In this way, the flattening angle of the electronic device is measured according to the acceleration sensor built into the electronic device. The measurement method is simple, accurate, and low-cost. It can be replicated in batches on the production line, which is convenient for the work of production line employees, improves the work efficiency of employees, and can improve the quality of electronic equipment.
[0071] Combine the following Figure 6 The measurement method mentioned in this application is described in detail. Figure 6 A flow chart of a measurement method is shown, and the measurement method is applied to a foldable mobile phone 10, which includes a first part (i.e., the main frame mentioned in the present application) and a second part (i.e., the sub-frame mentioned in the present application) located on both sides of the folding axis, wherein an acceleration sensor is provided on the first part, such as Figure 6 As shown, the method comprises the following steps:
[0072] S101: placing the first part horizontally and calibrating the acceleration sensor in the first part.
[0073] The first part is placed on a horizontal surface, and the acceleration sensor in the first part is calibrated using a calibration algorithm.
[0074] For example, multiple groups of data detected by the acceleration sensor are obtained, each of the multiple groups of data includes three axial data; based on the multiple groups of data, the average data of each axis is determined respectively; whether the average data of each axis meets the calibration conditions is judged; it is determined that the average data of each axis meets the calibration conditions, and the calibration is completed.
[0075] For example, when the accuracy of the average value of the gravity component Fx in the x-axis direction is controlled within 0.01, the calibration condition is met and the calibration is completed.
[0076] Among them, obtaining multiple groups of data detected by the acceleration sensor includes: the acceleration sensor detects data at a first moment, and after a first time period at the first moment, obtaining the detection data of the acceleration sensor at a first frequency to obtain multiple groups of data; and filtering the multiple groups of data to obtain multiple groups of filtered data.
[0077] In the present application, the first moment may be 100 ms, the first duration may be 1000 ms, the first frequency may be 10 Hz, and stable data may be screened from multiple sets of data.
[0078] S102: placing the second part horizontally, and obtaining first gravity data detected by the acceleration sensor in the first part when the foldable electronic device is in the unfolded state.
[0079] The second part is placed on a test table, and first gravity data detected by an acceleration sensor in the first part when the foldable electronic device is in an unfolded state is obtained.
[0080] Among them, obtaining first gravity data detected by the acceleration sensor in the first part of the foldable electronic device when it is in the unfolded state includes: obtaining multiple groups of gravity data detected by the acceleration sensor in the first part; and obtaining the first gravity data based on the average value of the multiple groups of gravity data.
[0081] The first gravity data includes at least one of gravity data of a first axis, gravity data of a second axis and gravity data of a third axis. The first axis, the second axis and the third axis are three axes in a three-dimensional coordinate system.
[0082] S103: Calculate a first angle based on the first gravity data.
[0083] Based on the first gravity data and according to the relationship of trigonometric functions, a first angle is calculated.
[0084] The calculation method of the first angle is based on any of the following formulas:
[0085] a = arcsin(Fx / F);
[0086] a = arccos(Fz / F);
[0087] a = arctan(Fx / Fz);
[0088]
[0089] Wherein, a is the first angle, Fx is the gravity data of the first axis, Fy is the gravity data of the second axis, Fz is the gravity data of the third axis, and F is gravity.
[0090] S104: Based on the first angle, determine an angle between the first part and the second part of the foldable electronic device in the unfolded state.
[0091] By subtracting the first angle from the straight angle of 180 degrees, the angle between the first part and the second part of the foldable electronic device in the unfolded state is obtained, that is, the unfolding angle of the foldable electronic device.
[0092] In this way, the flattening angle of the electronic device is measured according to the acceleration sensor built into the electronic device. The measurement method is simple, accurate, and low-cost. It can be replicated in batches on the production line, which is convenient for the work of production line employees, improves the work efficiency of employees, and can improve the quality of electronic equipment.
[0093] Combine the following Figures 7 to 9 Introducing the preparation stage of the flattening angle test of the foldable phone 10.
[0094] Figure 7 A schematic diagram of a flattening angle test is shown, such as Figure 7 As shown, the flattening angle test includes a test platform 705, a calibration slot 701, a test slot 702, a level 703, and a level 704. In the calibration slot 701, the main frame of the foldable mobile phone 10 is fixed with a buckle (not marked in the figure), and the sub-frame is suspended, which is used to calibrate the acceleration sensor in the main frame. For example, by running the calibration algorithm of the foldable mobile phone 10, the magnitude of the gravity component Fx in the x-axis of the acceleration sensor is calibrated to 0, the magnitude of the gravity component Fy in the y-axis is calibrated to 0, and the magnitude of the gravity component Fz in the z-axis is calibrated to 9.8 (the value of gravity acceleration). In the test slot 702, the sub-frame of the foldable mobile phone 10 is fixed with a buckle, and the main frame is suspended, and the flattening angle test is performed according to the data of the acceleration sensor in the main frame. For example, when the flattening angle of the foldable mobile phone 10 is calculated according to the data of the acceleration sensor in the main frame and combined with the above formulas (1) to (4). Level 703 and level 704 are used to indicate the level of test platform 705. For example, when test platform 705 is kept horizontal, level 703 can indicate the level, for example, the indicator scale in level 703 is displayed in the center. In order to reduce the error of the test, the difference in level between calibration slot 701 and test slot 702 should be kept within 0.1 mm. In some embodiments, according to the accuracy requirements of the flattening angle test, the level difference may also have other values, which are not limited here. In addition, in the calibration slot 701, the sub-frame of the foldable mobile phone 10 can be fixed with a buckle, and in the test slot, the main frame of the foldable mobile phone 10 can be fixed with a buckle, which is not limited here.
[0095] Figure 8 A schematic diagram of a flattened angle test table is shown, Figure 8As shown, in the test table 801, the main frame of the foldable mobile phone 10 in the calibration slot 701 is fixed with a buckle 802, and the acceleration sensor in the main frame is calibrated; the sub-frame of the foldable mobile phone 10 in the test slot 702 is fixed with a buckle 803, and the flattening angle is calculated according to the data of the acceleration sensor in the main frame. The level 703 and the level 704 are used to indicate the horizontality of the test table 801. In the present application, the buckle 802 and the buckle 803 play the role of fixing the foldable mobile phone 10. In some embodiments, other fixing methods can also be used without limitation.
[0096] Fig. 9 A schematic diagram of a flatness adjustment workbench is shown, Fig. 9 As shown, the x-axis adjustment mirror 901 is used to adjust the level of the test platform. Figure 8 In the flattening angle test table shown, the x-axis adjustment mirror 901 can be used to adjust the levelness of the test table 801. The flatness adjustment workbench mentioned in the present application can be set in the test table to adjust the levelness of the test table.
[0097] Combine the following Fig.10 The software architecture of the foldable mobile phone 10 is introduced. FIG10 shows a schematic diagram of the software architecture of the foldable mobile phone 10. Fig.10 As shown, the operating system can be divided into four layers, which are application layer 1010, application framework layer 1020, system library 1030 and kernel layer 1040 from top to bottom.
[0098] The application layer 1010 may include a series of application packages. The application package may include applications such as camera, gallery, calendar, phone, message, address book, weather, browser, music, video, etc. In the present application, after obtaining the component data of the acceleration sensor in each axis of the foldable mobile phone 10, the application layer 1010 may calculate the unfolding angle of the foldable mobile phone 10.
[0099] The application framework layer 1020 provides an application programming interface (API) and a programming framework for the applications of the application layer 1010. The application framework layer 1020 includes some predefined functions.
[0100] The application framework layer 1020 may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc. The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to the application. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. The display interface can be composed of one or more views.
[0101] The system layer 1030 may include multiple functional modules, such as a surface manager, a media library, a 3D graphics processing library (such as OpenGL ES), a 2D graphics engine (such as SGL), an Android runtime, etc.
[0102] The kernel layer 1040 is a layer between hardware and software. The kernel layer 1040 includes at least a display driver, a camera driver, an audio driver, a Bluetooth driver, a software application, etc. In the present application, in the kernel layer 1040, the components of gravity in each axis of the acceleration sensor in the foldable mobile phone 10 can be obtained.
[0103] Understandably, Fig.10 The software architecture of the foldable phone 10 shown is only an example. In other embodiments, the software architecture of the foldable phone 10 may include more or fewer modules, or may split or merge some modules, or may adopt other architectures, which are not limited here.
[0104] Combine the following Figure 11 to Figure 12 , and combined with the software architecture of the foldable mobile phone 10, a method for calibrating the acceleration sensor in the main frame of the foldable mobile phone 10 is introduced.
[0105] Fig.11 A schematic diagram of a main frame protective cover is shown, Fig.11 As shown, when calibrating the acceleration sensor in the main frame of the foldable mobile phone 10, in order to prevent the main frame from being damaged during the test, the main frame is covered with a protective cover 1101, the foldable mobile phone 10 is opened to the unfolded state, and the main frame is placed as shown in FIG. Figure 8 The main frame is fixed in the calibration slot 701 shown, and the buckle 802 is used to fix the main frame for calibration, and the sub-frame is in a suspended state. In some embodiments, since there are acceleration sensors in both the main frame and the sub-frame of the foldable mobile phone 10, the acceleration sensor in the sub-frame can also be calibrated, and the data of the acceleration sensor in the sub-frame can be used to calculate the flattening angle of the foldable mobile phone 10.
[0106] Fig.12 Shows a schematic flowchart of a method for calibrating an acceleration sensor. As Fig.12 shown, the method includes the following steps:
[0107] S201: Send a start calibration instruction.
[0108] The foldable mobile phone 10 sends an instruction to start calibrating the acceleration sensor in the main frame. Since both the main frame and the sub-frame in the foldable mobile phone 10 contain acceleration sensors, in some embodiments, an instruction to start calibrating the acceleration sensor in the sub-frame can also be sent.
[0109] S202: The underlying software starts calibration.
[0110] The underlying software in the foldable mobile phone 10 starts calibration. For example, as Fig.11 shown, put a protective cover 1101 on the main frame, and fix the main frame with a buckle and place it in the calibration slot 701 as shown in Figure 7 shown, while the sub-frame is suspended, and start calibration.
[0111] S203: Determine whether the preset threshold is met.
[0112] The foldable mobile phone 10 determines whether the preset threshold for calibrating the acceleration sensor in the main frame is met. For example, the foldable mobile phone 10 can judge through the data of the acceleration sensor in the main frame in each axial direction.
[0113] Specifically, after starting calibration, delay for a preset time, such as 100 ms, wait for the data in the acceleration sensor in the main frame to stabilize, and read N groups of data based on a preset frequency, take the average value and variance of the first M (M < N) groups of data, and judge whether the preset threshold is met according to the average value and variance. For example, read 15 groups of data at a preset frequency of 10 Hz, and take the first 10 groups to calculate the average value and variance. When the average value of the gravity in the x-axis direction is equal to 0, when the average value of the gravity in the y-axis direction is equal to 0, and when the average value of the gravity in the z-axis direction is equal to 9.8 (the magnitude of gravity), and the variance data in each axial direction approaches 0, it is judged that the preset threshold is met. In some embodiments, there may be other methods to judge whether the acceleration sensor in the main frame meets the preset threshold, and there may be other preset thresholds for the acceleration sensor, which are not limited here.
[0114] When the foldable mobile phone 10 determines that the acceleration sensor in the main frame has met the preset threshold, go to step S204; when the foldable mobile phone 10 determines that the acceleration sensor in the main frame has not met the preset threshold, go to step S206.
[0115] S204: Return the result of successful calibration.
[0116] When the foldable phone 10 determines that the acceleration sensor in the main frame has met the preset threshold, a calibration success result is returned. Since both the main frame and the sub-frame in the foldable phone 10 include acceleration sensors, in some embodiments, the acceleration sensor in the sub-frame may also be calibrated and a calibration success result is returned.
[0117] S205: Display that the calibration is successful.
[0118] The foldable mobile phone 10 can display a calibration success message on the screen to facilitate the subsequent measurement of the flattening angle.
[0119] S206: Display calibration failure.
[0120] When the foldable mobile phone 10 determines that the acceleration sensor in the main frame has not met the preset threshold, a calibration failure message can be displayed on the screen.
[0121] Calibrating the acceleration sensor in the main frame of the foldable mobile phone 10 can improve the accuracy of subsequent flattening angle testing, and the calibration method is simple and efficient.
[0122] Combine the following Fig.13 and Fig.14 And the software architecture of the foldable phone 10, introducing the method of flattening angle testing.
[0123] Fig.13 A schematic diagram of a secondary frame protective cover is shown, such as Fig.13 As shown, in order to prevent the sub-frame from being damaged during the test, the sub-frame is covered with a protective cover 1301, the foldable mobile phone 10 is opened to the unfolded state, and the sub-frame is placed as shown in FIG. Figure 8 The main frame is in a suspended state. In some embodiments, since there are acceleration sensors in both the main frame and the sub-frame of the foldable mobile phone 10, the acceleration sensor in the sub-frame can also be calibrated, and the data of the acceleration sensor in the sub-frame can be used to calculate the flattening angle of the foldable mobile phone 10. Among them, the accuracy of the protective cover 1301 is 0.08mm. In some embodiments, the protective cover 1301 can also have other accuracy requirements, which are not limited here.
[0124] Fig.14 A schematic diagram of a flattening angle test method is shown, such as Fig.14 As shown, the method comprises the following steps:
[0125] S301: Send a start test instruction.
[0126] The foldable phone 10 sends an instruction to start testing the flattening angle. When the accelerometer in the main frame of the foldable phone 10 is calibrated, the flattening angle of the foldable phone 10 is tested by the accelerometer in the main frame. In some embodiments, since both the main frame and the sub-frame of the foldable phone 10 include accelerometers, the flattening angle of the foldable phone 10 can also be tested by the accelerometer in the sub-frame after the accelerometer in the sub-frame of the foldable phone 10 is calibrated.
[0127] S302: The underlying software starts testing.
[0128] The underlying software in the foldable phone 10 starts testing. For example, Fig.13 As shown, put the protective cover 1301 on the sub-frame and fix the sub-frame with buckles in the position as shown in FIG. Figure 7 The test slot 702 is shown, while the main frame is suspended, and the flattening angle test is started.
[0129] S303: Determine whether it is a good product.
[0130] The foldable mobile phone 10 determines whether the flattening angle meets a preset threshold value, for example, whether the flattening angle meets a preset threshold value of 179° to 181°, which can be determined by the components of gravity in each axis in the acceleration sensor in the main frame. Specifically, the components of gravity in each axis in N groups of acceleration sensors in the main frame are continuously obtained, and the average value of the components of gravity in each axis is calculated, and the flattening angle of the foldable mobile phone 10 is obtained according to the trigonometric function.
[0131] For example, the angle a can be calculated based on the component Fx of gravity in the x-axis direction obtained by the acceleration sensor, the component Fz of gravity in the z-axis direction obtained by the acceleration sensor, and the component Fy of gravity in the y-axis direction obtained by the acceleration sensor, and then according to formulas (1) to (4), and the flattening angle of the foldable mobile phone 10 can be obtained by subtracting the angle a from 180°.
[0132] When the flattening angle meets the preset threshold, the foldable mobile phone 10 is judged to be a good product and the process goes to step S304; when the flattening angle does not meet the preset threshold, the foldable mobile phone 10 is judged to be a bad product and the process goes to step S306.
[0133] S304: The flattening angle test result is written into the foldable mobile phone 10.
[0134] When the foldable mobile phone 10 is judged to be a good product, the flattening angle test result is written into the foldable mobile phone 10 for subsequent query.
[0135] S305: Display test passed.
[0136] When the foldable mobile phone 10 is judged to be a good product, the screen of the foldable mobile phone 10 may display that the test has passed, and subsequent quality tests may be continued before the foldable mobile phone 10 leaves the factory.
[0137] S306: The flattening angle test result is written into the foldable mobile phone 10.
[0138] When the foldable mobile phone 10 is determined to be a defective product, the flattening angle test result may also be written into the foldable mobile phone 10 for subsequent query.
[0139] S307: Display test failure.
[0140] When the foldable phone 10 is determined to be a defective product, the screen of the foldable phone 10 may display that the test has failed, and the foldable phone 10 should be intercepted before it leaves the factory.
[0141] In this way, the flattening angle of the foldable phone 10 is measured according to the acceleration sensor built into the foldable phone 10. The measuring method is simple, accurate, and low-cost. It can be replicated in batches on the production line, which is convenient for the production line employees to work, improve the employees' work efficiency, and improve the quality of the foldable phone 10.
[0142] Combine the following Fig.15 Introducing the hardware structure of the foldable phone 10. Fig.15 FIG. 1 shows a schematic diagram of the hardware structure of a foldable mobile phone 10. Fig.15 As shown, the foldable mobile phone 10 may include a processor 110, a memory 120, an interface module 130, a power module 140, a wireless communication module 150, a mobile communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, and a display screen 192, etc.
[0143] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a GPU, an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. For example, in some embodiments of the present application, the processor 110 may execute the detection method mentioned in the present application.
[0144] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The processor 110 may execute the detection method mentioned in the present application based on the instructions and data.
[0145] The memory 120 may be used to store computer executable program codes, which include instructions. The memory 120 may include a program storage area and a data storage area. The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the foldable mobile phone 10 (such as audio data, a phone book, etc.), etc.
[0146] The display screen 192 is used to display images, videos, etc. In the present application, the display screen 192 can be used to display the flattened angle of the foldable mobile phone 10.
[0147] The sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc. In the present application, the acceleration sensor may be used to obtain the component of gravity in each axis, and the trigonometric function may be used to calculate the flattening angle of the foldable mobile phone 10.
[0148] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the foldable mobile phone 10. In other embodiments of the present application, the foldable mobile phone 10 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0149] The present application proposes a measuring device, which is applied to a foldable electronic device. The foldable electronic device includes a first part and a second part located on both sides of a folding axis. The measuring device includes a calibration table, a test table, and a spirit level. The calibration table is used to place the first part horizontally and calibrate an acceleration sensor in the first part. The test table is used to place the second part horizontally and test the angle between the first part and the second part when the foldable electronic device is in an unfolded state. The spirit level is used to indicate the horizontal posture of the first part and / or the second part.
[0150] The present application proposes a computer-readable storage medium, on which instructions are stored. When the instructions are executed on an electronic device, the electronic device implements the above-mentioned measurement method.
[0151] The present application proposes an electronic device, comprising: a memory for storing instructions executed by one or more processors of the electronic device; and a processor, which is one of the processors of the electronic device, for executing the electronic device to implement the above-mentioned measurement method.
[0152] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.
[0153] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.
[0154] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0155] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the present application.
Claims
1. A measurement method, applied to a foldable electronic device, characterized in that: The foldable electronic device comprises a first part and a second part located on both sides of a folding axis, wherein an acceleration sensor is disposed on the first part; and The method comprises: Placing the first part horizontally, and calibrating the acceleration sensor in the first part; Placing the second part horizontally, and acquiring first gravity data detected by an acceleration sensor in the first part when the foldable electronic device is in an unfolded state; Calculating a first angle based on the first gravity data; Based on the first angle, an angle between the first part and the second part of the foldable electronic device in the unfolded state is determined.
2. The method according to claim 1, characterized in that The calibrating the acceleration sensor in the first part includes: Acquire multiple sets of data detected by the acceleration sensor, each set of data in the multiple sets of data includes three axial data; Based on the multiple sets of data, respectively determine average data in each axial direction; Determining whether the average data of each axis meets the calibration condition; It is determined that the average data of each axis meets the calibration condition, and the calibration ends.
3. The method according to claim 2, characterized in that The step of acquiring multiple sets of data detected by the acceleration sensor includes: At a first moment, the acceleration sensor detects data, After a first time period at the first moment, acquiring detection data of the acceleration sensor at a first frequency to obtain multiple groups of data; The multiple groups of data are screened to obtain multiple groups of screened data.
4. The method according to claim 1, characterized in that: The obtaining of first gravity data detected by an acceleration sensor in the first part of the foldable electronic device when the foldable electronic device is in an unfolded state includes: Acquire multiple groups of gravity data detected by the acceleration sensor in the first part; The first gravity data is obtained based on an average value of the multiple groups of gravity data.
5. The method according to claim 1 or 4, characterized in that: The first gravity data includes at least one of gravity data of a first axis, gravity data of a second axis, and gravity data of a third axis. The first axis, the second axis, and the third axis are three axes in a three-dimensional coordinate system.
6. The method according to claim 5, characterized in that The method further comprises: The calculation method of the first angle is based on any of the following formulas: a = arcsin (Fx / F); a = arccos (Fz / F); a = arctan(Fx / Fz); Among them, a is the first angle, Fx is the gravity data of the first axis, Fy is the gravity data of the second axis, Fz is the gravity data of the third axis, and F is gravity.
7. The method according to claim 1, characterized in that The determining, based on the first angle, an angle between the first part and the second part of the foldable electronic device in the unfolded state includes: The angle between the first part and the second part of the foldable electronic device in the unfolded state is obtained by subtracting the first angle from the straight angle of 180 degrees.
8. A measuring device, applied to a foldable electronic device, characterized in that: The foldable electronic device comprises a first part and a second part located on both sides of a folding axis, and the measuring device comprises a test table, a calibration slot, a test slot, and a level; The test table is used to place the first part horizontally and calibrate the acceleration sensor in the first part; The test table is used to place the second part horizontally to test the angle between the first part and the second part when the foldable electronic device is in an unfolded state; The calibration slot is used to place the first part; The test slot is used to place the second part; The level is used to indicate the horizontal posture of the test table.
9. A computer-readable storage medium, characterized in that: The readable storage medium stores instructions, and when the instructions are executed on an electronic device, the electronic device implements the measurement method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: include: a memory for storing instructions to be executed by one or more processors of the electronic device; and a processor, which is one of the processors of the electronic device, configured to execute the measurement method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Slope detection method
CN102313535A
Method and device for determining angle between screens, storage medium and electronic device
CN108845773A
Vehicle lifting state identification method, system, electronic device and storage medium
CN109131005A
Clamping platform, folding angle calibration method, folding angle detection method and flatness detection method
CN110394745A
Display switching method of foldable electronic equipment, electronic equipment and medium
CN114489534A