A measurement method, a measurement device, a storage medium, and an electronic device

CN119268679BActive Publication Date: 2025-12-16HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410255134.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-05
Publication Date
2025-12-16
Estimated Expiration
2044-03-05

AI Technical Summary

Technical Problem

[0004]为了解决上述展平角测试准确率低的问题,本申请提出一种测量方法、测量装置、存储介质及电子设备

Benefits of technology

[0025] The electronic device mentioned in the present application includes a foldable electronic device, and also includes other test devices, which are in communication connection with the foldable electronic device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119268679B_ABST
    Figure CN119268679B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of terminals, and discloses a measurement method, a measurement device, a storage medium and an electronic device. The measurement method disclosed by the application is applied to a foldable electronic device, the foldable electronic device comprises a first part and a second part located on both sides of a folding shaft, and an acceleration sensor is arranged on the first part; and the method comprises the following steps: horizontally placing the first part, calibrating the acceleration sensor in the first part; horizontally placing the second part, 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 of the foldable electronic device in the unfolded state based on the first angle. In this way, the unfolding angle is measured according to the acceleration sensor in the electronic device, the measurement method is simple, the accuracy is high, the cost is low, and the quality of the electronic device can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of terminal, and in particular, to a measurement method, a measurement device, a storage medium and an electronic device. BACKGROUND

[0002] With the development of science and technology, more and more electronic devices are foldable. The foldable electronic device includes a main frame and a sub-frame, and a screen of the electronic device is arranged in the main frame and the sub-frame. The main frame and the sub-frame are connected through a hinge. When the foldable electronic device is in an unfolded state, the angle between the main frame and the sub-frame is referred to as the unfolding angle of the electronic device. When the unfolding angle is 180°, the user can obtain the best visual experience when using the screen. However, due to the machining precision of the hinge or the size cooperation between the hinge and the main and sub-frames, the unfolding angle of the foldable electronic device may be under-expanded or over-expanded, that is, the unfolding angle is too small (for example, less than 178°) or too large (for example, less than 182°). The electronic device with the under-expanded or over-expanded unfolding angle is a defective product and needs to be intercepted before the electronic device is shipped.

[0003] At present, the unfolding angle of the electronic device is detected by manual visual inspection and experience, and the electronic device with an unfolding angle that does not meet the requirements is intercepted before being shipped. However, the accuracy of manual detection is low, which affects the quality of the electronic device when it is shipped. SUMMARY

[0004] In order to solve the above problem of low accuracy of unfolding angle test, the present application provides a measurement method, a measurement device, a storage medium and an electronic device.

[0005] In a first aspect, the present application provides a measurement method 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 shaft, and an acceleration sensor is arranged on the first part. 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 of the foldable electronic device in the unfolded state based on the first angle.

[0006] In the present application, the first part can be a main frame of the foldable electronic device, and the second part can be a sub-frame of the foldable electronic device. When calibrating the acceleration sensor in the first part, the foldable electronic device can be unfolded, the first part can be placed horizontally, and the second part can be suspended. The calibration algorithm is used to calibrate the acceleration sensor in the first part. When obtaining the first gravity data detected by the acceleration sensor in the first part, the foldable electronic device can be unfolded, the second part can be placed horizontally, and the first part can be suspended.

[0007] In this way, the unfolding angle of the electronic device is measured according to the acceleration sensor in the foldable electronic device. The measurement method is simple, accurate, and low in cost, and can be replicated in a production line. The method is convenient for production line workers to work and improves the work efficiency of the workers, and the quality of the foldable electronic device is improved.

[0008] In a possible implementation of the first aspect, calibrating the acceleration sensor in the first part includes: obtaining a plurality of groups of data detected by the acceleration sensor, each group of data in the plurality of groups of data including three axial data; determining average data of each axis based on the plurality of groups of data; determining whether the average data of each axis satisfies a calibration condition; and determining that the average data of each axis satisfies the calibration condition, and ending the calibration.

[0009] In the present application, the three axial data can be x-axis, y-axis, and z-axis data. Determining whether the average data of each axis satisfies the calibration condition includes determining the difference between the average data of each axis and the calibration value of each axis. If the difference satisfies the calibration condition, for example, the difference is less than 0.1, it is considered that the calibration condition is satisfied, and the calibration is ended.

[0010] In a possible implementation of the first aspect, obtaining a plurality of groups of data detected by the acceleration sensor includes: detecting data by the acceleration sensor at a first time, obtaining detection data of the acceleration sensor at a first time interval after the first time at a first frequency, and obtaining a plurality of groups of data; and selecting the plurality of groups of data to obtain a plurality of groups of selected data.

[0011] In the present application, the first time can be 100 ms, the first time interval can be 1000 ms, and the first frequency can be 10 Hz. Stable data is selected from the plurality of groups of data.

[0012] In a possible implementation of the first aspect, obtaining first gravity data detected by the acceleration sensor in the first part of the foldable electronic device in an unfolded state includes: obtaining a plurality of 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 plurality of groups of gravity data.

[0013] In a possible implementation of the first aspect, the first gravity data includes at least one of first-axis gravity data, second-axis gravity data, and third-axis gravity data, 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 that the first-angle calculation method 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 first-axis gravity data, Fy is the second-axis gravity data, Fz is the third-axis gravity data, and F is the gravity.

[0020] In a possible implementation of the first aspect, based on the first angle, the angle between the first part and the second part of the foldable electronic device in the unfolded state is determined, including: subtracting 180 degrees from the first angle to obtain the angle between the first part and the second part of the foldable electronic device in the unfolded state.

[0021] In a second aspect, the present application provides a measuring device applied to a foldable electronic device, the foldable electronic device including a first part and a second part located on both sides of a folding shaft, and the measuring device including a test table, a calibration slot, a test slot, and a level; the test table is used to horizontally place the first part to calibrate an acceleration sensor in the first part; the test table is used to horizontally place the second part to test the angle between the first part and the second part of the foldable electronic device in the unfolded state; the calibration slot is used to place the first part; the test slot is used to place the second part; and the level is used to indicate the horizontal posture of the test table.

[0022] In the present application, the test table can include a fixing component, for example, a buckle, used to fix the first part and / or the second part. Since the first part and the second part are connected on both sides of the folding shaft, the influence of gravity on the angle between the first part and the second part in the unfolded state of the foldable electronic device can be ignored.

[0023] In a third aspect, the present application provides a computer-readable storage medium, and the storage medium stores instructions, and the instructions are executed on an electronic device to enable the electronic device to implement the measuring method of the first aspect and any possible implementation of the first aspect.

[0024] In a fourth aspect, the present application provides an electronic device, comprising: a memory, configured to store instructions executed by one or more processors of the electronic device; and a processor, one of the processors of the electronic device, configured to execute the instructions to enable the electronic device to implement the measurement method of the first aspect and any possible implementation of the first aspect.

[0025] The electronic device mentioned in the present application includes a foldable electronic device, and also includes other test devices, which are in communication connection with the foldable electronic device. BRIEF DESCRIPTION OF DRAWINGS

[0026] Figure 1 According to some embodiments of the present application, a front view schematic diagram of an unfolded state of a foldable mobile phone 10 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 view schematic diagram of an unfolded state of a foldable mobile phone 10 is shown;

[0029] Figure 4 According to some embodiments of the present application, an equivalent schematic diagram of a side view of an unfolded state of a foldable mobile phone 10 is shown;

[0030] Figure 5A According to some embodiments of the present application, a schematic diagram of an acceleration sensor in a horizontal state 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 in a tilted state is shown;

[0033] Figure 5D According to some embodiments of the present application, a schematic diagram of force analysis of an acceleration sensor in a tilted state is shown;

[0034] Figure 6 According to some embodiments of the present application, a flowchart of a measurement method is shown;

[0035] Figure 7 According to some embodiments of the present application, a schematic diagram of a flat 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] Figure 9 According to some embodiments of the present application, a schematic diagram of a flatness-adjusted workbench is shown.

[0038] Figure 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] Figure 11 According to some embodiments of the present application, a schematic diagram of a main frame protective sleeve is shown.

[0040] Figure 12 According to some embodiments of the present application, a flowchart of a method for calibrating an acceleration sensor is shown.

[0041] Figure 13 According to some embodiments of the present application, a schematic diagram of a sub-frame protective sleeve is shown.

[0042] Figure 14 According to some embodiments of the present application, a flowchart of a method for testing a flat angle is shown.

[0043] Figure 15 According to some embodiments of the present application, a schematic diagram of a 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 measurement method, a measurement device, a storage medium, and an electronic device.

[0045] The terms mentioned in the present application are introduced as follows:

[0046] (1) Acceleration sensor

[0047] An acceleration sensor is a sensor capable of measuring acceleration. The present application can calculate the inclination angle of an electronic device relative to a horizontal plane using an acceleration sensor.

[0048] The electronic device mentioned in the present application can be a foldable terminal, a foldable user equipment (UE), a foldable mobile station (MS), a foldable mobile terminal (MT), etc. The foldable terminal can be a foldable mobile phone, a foldable smart TV, a foldable wearable device, a foldable Pad, a foldable computer with wireless transceiver function, a foldable virtual reality (VR) terminal, a foldable augmented reality (AR) terminal, 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, etc. For ease of description, the present application takes a foldable mobile phone 10 as an example for introduction.

[0049] The technical solutions of the present application will be introduced below in combination with the drawings.

[0050] As mentioned above, the foldable mobile phone 10 includes a main frame and a sub-frame, the sub-frame and the main frame are provided with a screen of the foldable mobile phone 10, and the main frame and the sub-frame are connected through a rotating shaft. When the foldable mobile phone 10 is in an unfolded state, the angle between the main frame and the sub-frame is referred to as the unfolding angle of the foldable mobile phone 10. For example, Figure 1 A front view schematic diagram of an unfolded state of a foldable mobile phone 10 is shown, as Figure 1 As shown, the foldable mobile phone 10 includes a main frame 101 and a sub-frame 102, a main screen 103 of the foldable mobile phone 10 is provided 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 through a rotating shaft 104. When the foldable mobile phone 10 is switched from the unfolded state to the folded state, the foldable mobile phone 10 is in a bent state. Figure 2 A schematic diagram of a foldable mobile phone 10 in a bent state is shown, as Figure 2 As shown, a sub-screen 201 is provided 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 the bent state or the folded state.

[0051] Figure 3A side view of a folded state of a foldable phone 10 is shown in FIG. 1A. Figure 3 As shown in FIG. 1B, a main screen 103 of the foldable phone 10 is arranged in an area formed by the sub-frame 102 and the main frame 101, and a user can use the main screen 103 when the foldable phone 10 is in an unfolded state. An angle between the main frame 101 and the sub-frame 102 is a flat angle θ of the foldable phone 10, and when the flat angle θ is 180°, the user can obtain the best visual experience when using the main screen 103. However, due to the machining precision of the hinge 104 or the size cooperation between the hinge 104 and the main frame 101 and the sub-frame 102, the flat angle θ of the foldable phone 10 may be under-expanded or over-expanded, i.e., the flat angle θ is too small (e.g., less than 178°) or too large (e.g., less than 182°), and the threshold range of the flat angle θ is 178° to 182°. In some embodiments, the flat angle θ can also have other threshold ranges according to the needs of the foldable phone 10, which is not limited herein. The foldable phone 10 that does not meet the threshold range of the flat angle θ is a defective product, for example, Figure 4 A side view of a folded state of a foldable phone 10 is shown in FIG. 1A. Figure 4 As shown in FIG. 1B, a main screen 103 of the foldable phone 10 is arranged in an area formed by the sub-frame 102 and the main frame 101, and a user can use the main screen 103 when the foldable phone 10 is in an unfolded state. An angle between the main frame 101 and the sub-frame 102 is a flat angle θ of the foldable phone 10, and when the flat angle θ is 180°, the user can obtain the best visual experience when using the main screen 103. However, due to the machining precision of the hinge 104 or the size cooperation between the hinge 104 and the main frame 101 and the sub-frame 102, the flat angle θ of the foldable phone 10 may be under-expanded or over-expanded, i.e., the flat angle θ is too small (e.g., less than 178°) or too large (e.g., less than 182°), and the threshold range of the flat angle θ is 178° to 182°. In some embodiments, the flat angle θ can also have other threshold ranges according to the needs of the foldable phone 10, which is not limited herein. The foldable phone 10 that does not meet the threshold range of the flat angle θ is a defective product, for example,

[0052] At present, the flat angle of the foldable phone 10 is detected by manual visual inspection and experience, and the foldable phone 10 with a flat angle that does not meet the requirements is intercepted before leaving the factory. However, the accuracy of manual detection is low, which affects the quality of the foldable phone 10 leaving the factory. In some other embodiments, a simple measuring tool is used to measure the flat angle of the foldable phone 10. However, the measuring accuracy of the simple measuring tool is poor. In some other embodiments, the manufacturer develops a device for testing the flat angle, and uses imaging principles and computer algorithms to obtain the flat angle of the electronic device. However, this method is complex and costly.

[0053] Therefore, the present application proposes a measuring method. Specifically, the components of gravity in each axis of the coordinate system are obtained by using the acceleration sensor in the electronic device, and the flat angle of the electronic device is calculated according to the relationship of the trigonometric function. In this way, the flat angle of the electronic device is measured according to the acceleration sensor in the electronic device, and the measuring method is simple, accurate, and low-cost, which can be replicated in the production line in batches, facilitate the work of the production line staff, improve the work efficiency of the staff, and improve the quality of the electronic device.

[0054] For example, Figure 5A A side view of a folded state of a foldable phone 10 is shown in FIG. 1A. Figure 5AAs shown, in the coordinate system of the acceleration sensor, the direction of the x-axis is horizontally right, the direction of the y-axis is vertically out of the paper, and the direction of the z-axis is vertically up. The acceleration sensor can also have different directions of the x-axis, y-axis, and z-axis, which are not limited herein. When the acceleration sensor is in a horizontal state, the gravity of the acceleration sensor is equal to the component of the gravity on the z-axis. For example, Figure 5B A schematic diagram of force analysis of an acceleration sensor is shown as follows, 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 y-axis are 0.

[0055] When the acceleration sensor rotates by an angle a around the y-axis, the unfolding angle of the foldable mobile phone 10 is (180°-a), and 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 as follows, Figure 5C As shown, the direction of the z-axis and the direction of the x-axis are both changed by an angle a. Figure 5D A schematic diagram of force analysis of an acceleration sensor when tilted is shown as follows, Figure 5D As shown, Fz is the component of the gravity on the z-axis, Fx is the component of the gravity on the x-axis, and Fy is the component of the gravity on the y-axis. Among them, Fx, Fy, and Fz can 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 180° is subtracted from the rotation angle a, that is, the unfolding angle θ of the foldable mobile phone 10 can be obtained.

[0056] For example, the component Fx of the gravity on the x-axis direction obtained by the acceleration sensor is used to calculate the rotation angle a according to the following formula (1):

[0057] a = arcsin(Fx / F) (1)

[0058] Among them, Fx is the component of the gravity on the x-axis direction, and F is the gravity.

[0059] For another example, the component Fz of the gravity on the z-axis direction obtained by the acceleration sensor is used to calculate the rotation angle a according to the following formula (2):

[0060] a = arccos(Fz / F) (2)

[0061] Among them, Fz is the component of the gravity on the z-axis direction, and F is the gravity.

[0062] For another example, the component Fx of the gravity on the x-axis direction obtained by the acceleration sensor and the component Fz of the gravity on the z-axis direction obtained by the acceleration sensor are used to calculate the rotation angle a according to the following formula (3):

[0063] a = arctan (Fy / Fz) (2)

[0064] wherein Fx is a component of the gravity in the x-axis direction, Fz is a component of the gravity in the z-axis direction, and F is the gravity.

[0065] For another example, the rotation angle a can be calculated according to the component Fx of the gravity in the x-axis direction obtained by the acceleration sensor, the component Fz of the gravity in the z-axis direction obtained by the acceleration sensor, and the component Fy of the gravity in the y-axis direction obtained by the acceleration sensor, and according to the following formula (4):

[0066]

[0067] wherein Fx is a component of the gravity in the x-axis direction, Fy is a component of the gravity in the y-axis direction, Fz is a component of the gravity in the z-axis direction, and F is the gravity.

[0068] Therefore, when measuring the unfolding angle of the foldable phone 10, if the acceleration sensor is arranged in the main frame, the acceleration sensor in the main frame can be calibrated first. For example, the foldable phone 10 is unfolded, and the main frame can be placed on a horizontal calibration table, and the auxiliary frame is suspended. The data of the acceleration sensor in the main frame is obtained, and the calibration algorithm of the foldable phone 10 is run to calibrate the size of the component Fx of the gravity in the x-axis of the acceleration sensor to 0, the size of the component Fy of the gravity in the y-axis to 0, and the size of the component Fz of the gravity in the z-axis to 9.8 (the value of the gravity acceleration), wherein the calibration algorithm is an algorithm that can be used to calibrate the acceleration sensor before the foldable phone 10 is shipped. Then the auxiliary frame is placed horizontally, and the main frame is suspended to obtain the angle of the main frame. For example, according to the size of the component Fx of the gravity in the x-axis, the component Fy of the gravity in the y-axis, and the component Fz of the gravity in 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 angle of the main frame is subtracted by 180° to obtain the unfolding angle of the foldable phone 10.

[0069] In some embodiments, the calibration algorithm of the acceleration sensor can include the following steps: first, obtain the components of gravity in each axis in the reference state as the original value, for example, place the foldable mobile phone 10 on the horizontal calibration table, obtain the original values of the components of gravity in the x-axis Fx, the y-axis Fy, and 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 between the original value 9.6 of Fz and the standard value 9.8 of the z-axis is 0.2, which is the initial offset. Wherein, 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 condition, then the calibration fails. For example, the original value 8.0 of Fz is less than or equal to the standard value 9.8 x cos 10° (i.e. 9.65) of the z-axis, the initial offset is too large, and the calibration fails; then, the calibration value is calculated by the original value and the initial offset, for example, the original value 9.6 of Fz is added by the initial offset 0.2 to obtain the calibration value 9.8 of Fx, and the calibration is completed.

[0070] In this way, the unfolding angle of the electronic device is measured according to the acceleration sensor built-in the electronic device, the measurement method is simple, accurate and low in cost, can be replicated in production line in batches, facilitates the work of production line workers, improves the work efficiency of workers, and improves the quality of the electronic device.

[0071] The measurement method mentioned in the present application will be described in detail below. Figure 6 The measurement method mentioned in the present application will be described in detail below. Figure 6 A flowchart of a measurement method is shown, which is applied to the foldable mobile phone 10, the foldable mobile phone 10 includes a first part (i.e. the main frame mentioned in the present application) and a second part (i.e. the auxiliary frame mentioned in the present application) located on both sides of the folding axis, wherein the first part is provided with an acceleration sensor, as shown in Figure 6 The method includes the following steps:

[0072] S101: horizontally place the first part, and calibrate the acceleration sensor in the first part.

[0073] Place the first part on the water platform, and calibrate the acceleration sensor in the first part by using the calibration algorithm.

[0074] For example, obtain a plurality of groups of data detected by the acceleration sensor, each group of data in the plurality of groups of data includes three axial data; based on the plurality of groups of data, determine the average data of each axis respectively; determine whether the average data of each axis meets the calibration condition; and when the average data of each axis meets the calibration condition, the calibration is completed.

[0075] For example, when the average value of the gravity component Fx in the x-axis is controlled within 0.01, the calibration condition is met, and the calibration is completed.

[0076] The obtaining of the plurality of groups of data detected by the acceleration sensor comprises: obtaining data detected by the acceleration sensor at a first time, and obtaining detection data of the acceleration sensor at a first time length after the first time at a first frequency to obtain the plurality of groups of data; and screening the plurality of groups of data to obtain screened plurality of groups of data.

[0077] In the present application, the first time can be 100 ms, the first time length can be 1000 ms, the first frequency can be 10 Hz, and stable data is screened from the plurality of groups of data.

[0078] S102: horizontally placing the second part, and obtaining first gravity data detected by the acceleration sensor in the first part in the unfolded state of the foldable electronic device.

[0079] Placing the second part on the test table, and obtaining first gravity data detected by the acceleration sensor in the first part in the unfolded state of the foldable electronic device.

[0080] The obtaining of the first gravity data detected by the acceleration sensor in the first part in the unfolded state of the foldable electronic device comprises: obtaining a plurality of groups 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 plurality of groups of gravity data.

[0081] The first gravity data comprises at least one of gravity data in a first axis direction, gravity data in a second axis direction, and gravity data in a third axis direction, and the first axis direction, the second axis direction, and the third axis direction are three axis directions in a three-dimensional coordinate system.

[0082] S103: calculating a first angle based on the first gravity data.

[0083] The first angle is calculated based on a relationship of a trigonometric function and the first gravity data.

[0084] The first angle is calculated based on any one of the following formulas:

[0085] a = arcsin (Fx / F);

[0086] a = arccos (Fz / F);

[0087] a = arctan (Fx / Fz);

[0088]

[0089] The first angle is calculated based on any one of the following formulas:

[0090] S104: Determine the angle between the first part and the second part of the foldable electronic device in the unfolded state based on the first angle.

[0091] Subtract the first angle from 180 degrees to obtain the angle between the first part and the second part of the foldable electronic device in the unfolded state, i.e. the unfolding angle of the foldable electronic device.

[0092] In this way, the unfolding angle of the electronic device is measured according to the acceleration sensor built-in in the electronic device, the measurement method is simple, accurate and low in cost, can be replicated in mass production line, facilitates the work of production line workers, improves the work efficiency of workers, and improves the quality of electronic devices.

[0093] The following will be described in conjunction with Figures 7 to 9 The preparation stage of the unfolding angle test of the foldable phone 10 is introduced.

[0094] Figure 7 A schematic diagram of an unfolding angle test is shown, as Figure 7 shown, the unfolding 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 phone 10 is fixed with a buckle (not labeled in the figure), and the auxiliary frame is suspended, which is used to calibrate the acceleration sensor in the main frame. For example, the size of the component Fx of the gravity in the x-axis in the acceleration sensor can be calibrated to 0, the size of the component Fy of the gravity in the y-axis can be calibrated to 0, and the size of the component Fz of the gravity in the z-axis can be calibrated to 9.8 (the value of the gravity acceleration). In the test slot 702, the auxiliary frame of the foldable phone 10 is fixed with a buckle, and the main frame is suspended. The unfolding angle is tested according to the data of the acceleration sensor in the main frame. For example, the unfolding angle of the foldable phone 10 is calculated according to the data of the acceleration sensor in the main frame and in combination with the above formula (1) to formula (4). The level 703 and the level 704 are used to indicate the levelness of the test platform 705. For example, when the test platform 705 is kept horizontal, the level 703 can indicate the level, for example, the indicating scale in the level 703 is displayed in the center. In order to reduce the error of the test, the difference in levelness between the calibration slot 701 and the test slot 702 should be kept within 0.1 mm. In some embodiments, according to the accuracy requirement of the unfolding angle test, the difference in levelness can also have other values, which are not limited herein. Also, in the calibration slot 701, the auxiliary frame of the foldable phone 10 can be fixed with a buckle, and in the test slot, the main frame of the foldable phone 10 can be fixed with a buckle, which is not limited herein.

[0095] Figure 8 A schematic diagram of an unfolding angle test platform is shown, as Figure 8As shown in the test bench 801, the main frame of the foldable phone 10 in the calibration slot 701 is fixed by the buckle 802, and the acceleration sensor in the main frame is calibrated; the sub-frame of the foldable phone 10 in the test slot 702 is fixed by the buckle 803, and the calculation of the unfolding angle is performed according to the data of the acceleration sensor in the main frame. The level meter 703 and the level meter 704 are used to indicate the levelness of the test bench 801. In this application, the buckle 802 and the buckle 803 are used to fix the foldable phone 10, and other fixing methods can also be used in some embodiments, which are not limited herein.

[0096] Figure 9 A schematic diagram of a flatness-adjusted workbench is shown as Figure 9 As shown in the unfolding angle test bench, the x-axis adjusting mirror 901 is used to adjust the levelness of the test platform. For example, in the unfolding angle test bench as shown in Figure 8 The x-axis adjusting mirror 901 can be used to adjust the levelness of the test bench 801. The flatness-adjusted workbench mentioned in this application can be arranged in the test bench to adjust the levelness of the test bench.

[0097] The software architecture of the foldable phone 10 will be introduced below. Figure 10 A schematic diagram of a software architecture of a foldable phone 10 is shown as Figure 10 As shown, the operating system can be divided into four layers, from top to bottom, the application layer 1010, the application framework layer 1020, the system library 1030, and the kernel layer 1040.

[0098] The application layer 1010 can include a series of application packages. The application package can include camera, gallery, calendar, phone, message, contacts, weather, browser, music, video, and other applications. In this application, when the component data of the acceleration sensor in the foldable phone 10 in each axis direction is obtained, the unfolding angle of the foldable phone 10 can be calculated in the application layer 1010.

[0099] The application framework layer 1020 provides application programming interfaces (APIs) and programming frameworks for the applications of the application layer 1010. The application framework layer 1020 includes some pre-defined functions.

[0100] The application framework layer 1020 can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like. The window manager is used to manage window programs. The window manager can acquire a display screen size, determine whether there is a status bar, lock a screen, and the like. The content provider is used to store and acquire data, and make the data accessible to application programs. The data can include videos, images, audio, dialed and received calls, browsing history and bookmarks, a phonebook, and the like. The view system includes visual controls, such as a control for displaying text, a control for displaying images, and the like. The view system can be used to build application programs. A display interface can be composed of one or more views.

[0101] The system layer 1030 can include a plurality of functional modules. For example, a surface manager, media libraries, a three-dimensional graphics processing library (such as OpenGL ES), a two-dimensional graphics engine (such as SGL), an Android runtime, and the like.

[0102] The kernel layer 1040 is a layer between hardware and software. The kernel layer 1040 at least contains a display driver, a camera driver, an audio driver, a Bluetooth driver, a software application, and the like. In the present application, in the kernel layer 1040, the components of gravity in the axes of the acceleration sensor in the main frame of the foldable mobile phone 10 can be acquired.

[0103] It can be understood that, Figure 10 The software architecture of the foldable mobile phone 10 shown is only an example, and in other embodiments, the software architecture of the foldable mobile phone 10 can include more or fewer modules, can split or combine part of the modules, and can also use other architectures, which are not limited herein.

[0104] The following will be described in combination with Figures 11 to 12 the software architecture of the foldable mobile phone 10, and introduce a method for calibrating the acceleration sensor in the main frame of the foldable mobile phone 10.

[0105] Figure 11 A schematic view of a main frame protective sleeve is shown, as Figure 11 When calibrating the acceleration sensor in the main frame of the foldable mobile phone 10, in order to avoid damage to the main frame during the test, the main frame is sleeved with the protective sleeve 1101, the foldable mobile phone 10 is opened to the unfolded state, and the main frame is placed in the calibration slot 701 as Figure 8 shown, and the main frame is fixed with the buckle 802 to calibrate the acceleration sensor in the main frame. In some embodiments, since the acceleration sensor exists in both the main frame and the auxiliary frame of the foldable mobile phone 10, the acceleration sensor in the auxiliary frame can also be calibrated, and the data of the acceleration sensor in the auxiliary frame can be used to calculate the unfolding angle of the foldable mobile phone 10.

[0106] Figure 12 A flowchart of a method of calibrating an acceleration sensor is shown. As shown, the method comprises the following steps: Figure 12

[0107] S201: Send a start calibration instruction.

[0108] The foldable phone 10 sends an instruction to start calibration of the acceleration sensor in the main frame. Since both the main frame and the sub-frame in the foldable phone 10 contain acceleration sensors, in some embodiments, an instruction to start calibration of 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 phone 10 starts calibration. For example, as shown, the main frame is put into a protective cover 1101 and fixed with buckles, and placed in a calibration slot 701 as shown, while the sub-frame is suspended, and calibration is started. Figure 11 Figure 7

[0111] S203: Determine whether a preset threshold is met.

[0112] The foldable phone 10 determines whether a preset threshold for calibration of the acceleration sensor in the main frame is met. For example, the foldable phone 10 can determine this by the data of the acceleration sensor in the main frame in each axis.

[0113] Specifically, after starting calibration, a preset time, for example 100 ms, is delayed, waiting for the data in the acceleration sensor in the main frame to stabilize, and N groups of data are read based on a preset frequency, the first M (M < N) groups of data are taken to calculate the mean and variance, and whether the preset threshold is met is determined according to the mean and variance. For example, 15 groups of data are read at a preset frequency of 10 Hz, and the mean and variance of the first 10 groups are calculated. When the mean of the gravity in the x-axis direction is equal to 0, the mean of the gravity in the y-axis direction is equal to 0, and the mean of the gravity in the z-axis direction is equal to 9.8 (the size of gravity), and the variance data of each axis approaches 0, it is determined that the preset threshold is met. In some embodiments, there can be other methods to determine whether the acceleration sensor in the main frame meets the preset threshold, and the acceleration sensor can also have other preset thresholds, which are not limited here.

[0114] When the foldable phone 10 determines that the acceleration sensor in the main frame has met the preset threshold, it goes to step S204; when the foldable phone 10 determines that the acceleration sensor in the main frame has not met the preset threshold, it goes to step S206.

[0115] S204: Return a result that calibration is successful.

[0116] ​​​When the foldable phone 10 judges that the acceleration sensor in the main frame has met the preset threshold, a result of successful calibration is returned. Since the main frame and the auxiliary frame of the foldable phone 10 both contain acceleration sensors, in some embodiments, the acceleration sensor in the auxiliary frame can also be calibrated, and a result of successful calibration is returned.

[0117] S205: display calibration success.

[0118] The foldable phone 10 can display information of successful calibration on the screen to facilitate subsequent measurement of the flat angle.

[0119] S206: display calibration failure.

[0120] When the foldable phone 10 judges that the acceleration sensor in the main frame has not met the preset threshold, information of calibration failure can be displayed on the screen.

[0121] Calibrating the acceleration sensor in the main frame of the foldable phone 10 can improve the accuracy of subsequent flat angle testing, and the calibration method is simple and efficient.

[0122] The following describes the flat angle testing method in combination with Figure 13 and Figure 14 and the software architecture of the foldable phone 10.

[0123] Figure 13 A schematic view of an auxiliary frame protective sleeve is shown, as Figure 13 shown, in order to avoid damage to the auxiliary frame during testing, the auxiliary frame is sleeved with a protective sleeve 1301, the foldable phone 10 is opened to an unfolded state, and the auxiliary frame is placed in a test slot 702 as Figure 8 shown, and the auxiliary frame is fixed for flat angle testing with a buckle 803, and the main frame is in a suspended state. In some embodiments, since the main frame and the auxiliary frame of the foldable phone 10 both contain acceleration sensors, the acceleration sensor in the auxiliary frame can also be calibrated, and the data of the acceleration sensor in the auxiliary frame can be used to calculate the flat angle of the foldable phone 10. The accuracy of the protective sleeve 1301 is 0.08 mm, and in some embodiments, the protective sleeve 1301 can also have other accuracy requirements, which are not limited herein.

[0124] Figure 14 A flowchart of a flat angle testing method is shown, as Figure 14 shown, the method comprises the following steps:

[0125] S301: send a start testing instruction.

[0126] The foldable phone 10 sends a command to start the test of the unfolding angle. When the acceleration sensor in the main frame of the foldable phone 10 is calibrated, the unfolding angle of the foldable phone 10 is tested by the acceleration sensor in the main frame. In some embodiments, since the main frame and the sub-frame of the foldable phone 10 both contain acceleration sensors, the unfolding angle of the foldable phone 10 can also be tested by the acceleration sensor in the sub-frame when the acceleration sensor in the sub-frame of the foldable phone 10 is calibrated.

[0127] S302: The underlying software starts the test.

[0128] The underlying software in the foldable phone 10 starts the test. For example, as shown in FIG. 13A, the sub-frame is sleeved with a protective sleeve 1301, and the sub-frame is placed in a test slot 702 as shown in FIG. 13B by a buckle, while the main frame is suspended, and the unfolding angle test is started. Figure 13 Figure 7

[0129] S303: Determine whether it is a good product.

[0130] The foldable phone 10 determines whether the unfolding angle meets the preset threshold, for example, whether the unfolding angle meets the preset threshold of 179° to 181°, which can be determined by the components of the gravity in each axis of the acceleration sensor in the main frame. Specifically, N sets of components of the gravity in each axis of the acceleration sensor in the main frame are continuously obtained, and the average value of the components of the gravity in each axis is calculated, and according to the trigonometric function, the unfolding angle of the foldable phone 10 is obtained.

[0131] For example, the components of the gravity in the x-axis direction Fx obtained by the acceleration sensor, the components of the gravity in the z-axis direction Fz obtained by the acceleration sensor, and the components of the gravity in the y-axis direction Fy obtained by the acceleration sensor are used to calculate the angle a according to the formulas (1) to (4), and the unfolding angle of the foldable phone 10 is obtained by subtracting the angle a by 180°.

[0132] When the unfolding angle meets the preset threshold, the foldable phone 10 is determined to be a good product, and step S304 is turned to; when the unfolding angle does not meet the preset threshold, the foldable phone 10 is determined to be a bad product, and step S306 is turned to.

[0133] S304: The unfolding angle test result is written into the foldable phone 10.

[0134] When the foldable phone 10 is determined to be a good product, the unfolding angle test result is written into the foldable phone 10, which is convenient for subsequent query.

[0135] S305: Display the test passed.

[0136] ​​When the foldable phone 10 is determined to be a good product, the screen of the foldable phone 10 can display that the test has passed. Before the foldable phone 10 leaves the factory, it will continue to undergo subsequent quality tests.

[0137] S306: Flat angle test results written to foldable phone 10.

[0138] When the foldable phone 10 is determined to be defective, the flattening angle test results can also be written to the foldable phone 10 for easy subsequent query.

[0139] S307: The test failed.

[0140] When the foldable phone 10 is determined to be defective, the screen of the foldable phone 10 can display "Test failed". The foldable phone 10 should be intercepted before leaving the factory.

[0141] Thus, the unfolding angle of the foldable phone 10 can be measured using the accelerometer built into the foldable phone 10. The measurement method is simple, accurate, and low-cost. It can be replicated in batches on the production line, which facilitates the operation of production line employees, improves their work efficiency, and enhances the quality of the foldable phone 10.

[0142] The following is combined Figure 15 This section introduces the hardware structure of the foldable phone 10. Figure 15 A schematic diagram of the hardware structure of a foldable phone 10 is shown. (For example...) Figure 15 As shown, the foldable 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, buttons 190, a motor 191, and a display screen 192, etc.

[0143] The processor 110 may include one or more processing units, such as 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 this application, the processor 110 may execute the detection methods mentioned in this application.

[0144] The processor 110 can further include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The processor 110 can perform the detection method mentioned in the present application based on the instructions and data.

[0145] The memory 120 can be used to store computer executable program codes, which include instructions. The memory 120 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application required by a function (such as a sound playing function, an image playing function, etc.), and the like. The data storage area can store data created during the use of the foldable mobile phone 10 (such as audio data, a phone book, etc.), and the like.

[0146] The display screen 192 is used to display images, videos, and the like. In the present application, the display screen 192 can be used to display the unfolding angle of the foldable mobile phone 10.

[0147] The sensor module 180 can include a pressure sensor, a gyroscope sensor, a barometric 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, and the like. In the present application, the acceleration sensor can be used to obtain the components of gravity in each axis, and a triangle function can be used to calculate the unfolding angle of the foldable mobile phone 10.

[0148] It can be understood that the structure shown in the embodiments 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 can include more or fewer components than shown, or combine certain components, or split certain components, or different component arrangements. The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0149] The present application provides a measuring device applied to a foldable electronic device, the foldable electronic device including a first part and a second part located on both sides of a folding shaft, the measuring device including a calibration table, a test table, and a level; the calibration table is used to horizontally place the first part to calibrate an acceleration sensor in the first part; the test table is used to horizontally place the second part to test the angle between the first part and the second part in an unfolded state; and the level is used to indicate the horizontal posture of the first part and / or the second part.

[0150] The present application provides a computer readable storage medium, the readable storage medium storing instructions, the instructions being executed on an electronic device to enable the electronic device to implement the above-mentioned measuring method.

[0151] The application provides an electronic device, comprising: a memory for storing instructions executed by one or more processors of the electronic device; and a processor, one of the processors of the electronic device, for executing instructions to enable the electronic device to implement the measurement method.

[0152] In the drawings, some structural or methodological features can be shown in a particular arrangement and / or order. However, it should be understood that such a specific arrangement and / or order can not be required. Instead, these features can be arranged in a different manner and / or order than shown in the illustrative figures, in some embodiments. Additionally, the inclusion of a structural or methodological feature in a particular figure is not meant to imply that such feature is required in all embodiments, and that feature, or other features, can be excluded from some embodiments or combined with other features in some embodiments.

[0153] It should be noted that each unit / module mentioned in the device embodiments of the present application is a logical unit / module, and in the physical world, one logical unit / module can be one physical unit / module, or a part of a physical unit / module, or a combination of multiple physical unit / modules, and the physical implementation of the logical unit / module itself is not the most important, and the combination of the functions implemented by the logical unit / module is the key to solving the technical problems proposed in 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 the units / modules that are not closely related to solving the technical problems proposed in the present application, which does not mean that the above-mentioned device embodiments do not have other units / modules.

[0154] It should be noted that in the examples and descriptions of the present patent, the relationship terms such as first and second 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 the entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including one" does not exclude the presence of another identical element in the process, method, article or device including the element.

[0155] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it should be understood by those skilled in the art that various changes in form and detail can be made therein without departing from the scope of the present application.

Claims

1. A measurement method applied to a foldable electronic device, comprising: 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 arranged on the first part; and The method comprises: placing the first part horizontally in a calibration slot of a test table surface to calibrate the acceleration sensor in the first part, a horizontal posture of the test table surface being indicated based on a level; wherein the calibration of the acceleration sensor in the first part comprises: obtaining a plurality of groups of data detected by the acceleration sensor, each group of data in the plurality of groups of data comprising three axial data, determining average data of each axis based on the plurality of groups of data, judging whether the average data of each axis satisfies a calibration condition, and determining that the average data of each axis satisfies the calibration condition, and ending the calibration; placing the second part horizontally in a test slot of the test table surface, and obtaining first gravity data detected by the acceleration sensor in the first part in an unfolded state of the foldable electronic device; calculating a first angle based on the first gravity data; determining an angle between the first part and the second part in the unfolded state of the foldable electronic device based on the first angle.

2. The method of claim 1, wherein the obtaining of the plurality of groups of data detected by the acceleration sensor comprises: detecting data by the acceleration sensor at a first time, obtaining detection data of the acceleration sensor at a first frequency after a first time length of the first time to obtain a plurality of groups of data; screening the plurality of groups of data to obtain a plurality of groups of screened data.

3. The method of claim 1, wherein, the obtaining of the first gravity data detected by the acceleration sensor in the first part in the unfolded state of the foldable electronic device comprises: obtaining a plurality of groups of gravity data detected by the acceleration sensor in the first part; obtaining the first gravity data based on an average value of the plurality of groups of gravity data.

4. The method according to claim 1 or 3, characterized in that, The first gravity data comprises at least one of first axial gravity data, second axial gravity data, and third axial gravity data, and the first axis, the second axis, and the third axis are three axes in a three-dimensional coordinate system.

5. The method of claim 4, wherein, The method further comprises: The calculation method of the first angle is based on any one of the following formulas: ; ; ; ; wherein a is the first angle, Fx is the first axial gravity data, Fy is the second axial gravity data, Fz is the third axial gravity data, and F is the gravity.

6. The method of claim 1, wherein, The determination of the angle between the first part and the second part in the unfolded state of the foldable electronic device based on the first angle comprises: subtracting the first angle from 180 degrees to obtain the angle between the first part and the second part in the unfolded state of the foldable electronic device.

7. A measuring device applied to a foldable electronic device, comprising: 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 surface, a calibration slot, a test slot, and a level. The test table is used for horizontally placing the first part to calibrate the acceleration sensor in the first part; wherein the calibration of the acceleration sensor in the first part comprises: acquiring a plurality of groups of data detected by the acceleration sensor, each group of data in the plurality of groups of data comprising three axial data; determining average data of each axial based on the plurality of groups of data; judging whether the average data of each axial satisfies a calibration condition; and determining that the average data of each axial satisfies the calibration condition, and ending the calibration. The test table is used for horizontally placing the second part to test an angle between the first part and the second part in an unfolded state of the foldable electronic device. The calibration slot is used for placing the first part. The test slot is used for placing the second part. The level is used for indicating a horizontal posture of the test table.

8. A computer-readable storage medium, characterized in that, The readable storage medium has instructions stored thereon, and the instructions, when executed on an electronic device, cause the electronic device to implement the measurement method in any one of claims 1-6.

9. An electronic device, comprising: comprise: a memory configured to store instructions for execution by one or more processors of an electronic device; and a processor, which is one of the processors of the electronic device, configured to execute the measurement method in any one of claims 1-6.

Citation Information

Patent Citations

  • Vehicle lifting state identification method, system, electronic device and storage medium

    CN109131005A

  • Foldable electronic equipment, method for controlling antenna and storage medium

    CN117423977A