Calibration method, device, terminal and storage medium
By detecting the difference in magnetic information and calibrating the setting relationship, the problem of inaccurate angle determination of foldable screen phones was solved, achieving more reliable and accurate angle determination and improving the user experience.
Patent Information
- Application Number
- CN202210069496.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-21
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2042-01-21
AI Technical Summary
The magnetic field measurement unit of foldable screen phones is easily affected by external magnetic fields and changes in internal structure, resulting in inaccurate determination of the included angle.
By detecting the difference in magnetic information and calibrating the setting relationship, the accuracy of the mapping relationship between magnetic information and the included angle is ensured, including taking different calibration measures within the setting period or when a setting event occurs.
It effectively avoids interference from external magnetic fields and changes in internal structure, ensuring the reliability and accuracy of the angle determination and improving the user experience.
Smart Images

Figure CN116518844B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of terminals, and in particular, to a calibration method and device, a terminal, and a storage medium. BACKGROUND
[0002] At present, folding screen mobile phones are increasingly common. The folding screen mobile phone generally determines magnetic information based on a magnetic field measurement unit. The folding screen mobile phone can be preconfigured with a set relationship, which represents a mapping relationship between the magnetic information and the included angle of the folding screen. Thus, after the magnetic field measurement unit detects the magnetic information, the included angle of the folding screen can be determined based on the magnetic information and the set relationship. However, the magnetic field measurement unit is easily disturbed by external magnetic fields and is also easily disturbed by changes in the internal structure of the mobile phone. If the above disturbances are not calibrated, the included angle cannot be accurately determined. SUMMARY
[0003] To overcome the problems in the related art, the present disclosure provides a calibration method and device, a terminal, and a storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a calibration method is provided, applied to a terminal, the terminal comprising a first component and a second component, an included angle between the first component and the second component being adjustable, and the method comprising:
[0005] determining that the first component and the second component are in a first set state;
[0006] determining difference information according to second magnetic information and first magnetic information detected in the first set state, wherein the second magnetic information corresponds to a set relationship before calibration, and the set relationship represents a mapping relationship between magnetic information and the included angle;
[0007] if it is determined that the difference information meets set threshold information, calibrating the set relationship.
[0008] Optionally, the difference information at least includes one of a magnetic field strength difference in a first direction, a magnetic field strength difference in a second direction, and a magnetic field strength difference in a third direction, and the set threshold information at least includes one of a set threshold in the first direction, a set threshold in the second direction, and a set threshold in the third direction.
[0009] The determination that the difference information meets the set threshold information comprises:
[0010] determining that an absolute value of the magnetic field strength difference in the first direction is greater than or equal to the set threshold in the first direction; and / or,
[0011] determining that an absolute value of the magnetic field strength difference in the second direction is greater than or equal to the set threshold in the second direction; and / or,
[0012] An absolute value of a difference of magnetic field strengths in the third direction is greater than or equal to a third direction set threshold value.
[0013] Optionally, the calibration of the set relationship comprises:
[0014] If it is determined that the terminal does not have a set event within a set period, the set relationship is calibrated according to the difference information.
[0015] Optionally, the calibration of the set relationship comprises:
[0016] If it is determined that the terminal has a set event within a set period, the set relationship is calibrated according to a set rule.
[0017] Optionally, the calibration of the set relationship according to the set rule comprises:
[0018] A plurality of included angle angles of the first component and the second component in a second set state are determined, and a plurality of third magnetic information corresponding to the plurality of included angle angles are determined, wherein the plurality of included angle angles and the plurality of third magnetic information are in one-to-one correspondence.
[0019] The set relationship is calibrated according to the plurality of included angle angles and the plurality of third magnetic information.
[0020] Optionally, the plurality of included angle angles respectively belong to a plurality of set angle ranges.
[0021] Optionally, the calibration of the set relationship according to the set rule further comprises:
[0022] Output indication information, the indication information being used to indicate that the first component and the second component are driven to a set angle range.
[0023] Optionally, the second set state comprises a state in which an included angle angle of the first component and the second component is greater than 0°.
[0024] Optionally, the first set state comprises a state in which an included angle angle of the first component and the second component is 0°.
[0025] According to a second aspect of the embodiments of the present disclosure, a calibration device is provided, which is applied to a terminal, the terminal comprising a first component and a second component, an included angle angle between the first component and the second component being adjustable, and the device comprising:
[0026] A determination module is configured to determine that the first component and the second component are in a first set state.
[0027] determining difference information according to the second magnetic information and the first magnetic information detected in the first setting state, wherein the second magnetic information corresponds to a setting relationship before calibration, and the setting relationship represents a mapping relationship between the magnetic information and the included angle;
[0028] a calibration module, configured to calibrate the setting relationship if it is determined that the difference information meets setting threshold information.
[0029] Optionally, the difference information includes at least one of a magnetic field intensity difference in a first direction, a magnetic field intensity difference in a second direction and a magnetic field intensity difference in a third direction, and the setting threshold information includes at least one of a first direction setting threshold, a second direction setting threshold and a third direction setting threshold.
[0030] The determination module is further configured to:
[0031] determine that an absolute value of the magnetic field intensity difference in the first direction is greater than or equal to the first direction setting threshold; and / or,
[0032] determine that an absolute value of the magnetic field intensity difference in the second direction is greater than or equal to the second direction setting threshold; and / or,
[0033] determine that an absolute value of the magnetic field intensity difference in the third direction is greater than or equal to the third direction setting threshold.
[0034] Optionally, the calibration module is further configured to:
[0035] calibrate the setting relationship according to the difference information if it is determined that the terminal does not occur a setting event in a setting period.
[0036] Optionally, the calibration module is further configured to:
[0037] calibrate the setting relationship according to a setting rule if it is determined that the terminal occurs a setting event in a setting period.
[0038] Optionally, the calibration module is further configured to:
[0039] determine a plurality of included angle degrees of the first component and the second component in a second setting state and a plurality of third magnetic information corresponding to the plurality of included angle degrees, wherein the plurality of included angle degrees and the plurality of third magnetic information are in one-to-one correspondence;
[0040] calibrate the setting relationship according to the plurality of included angle degrees and the plurality of third magnetic information.
[0041] Optionally, the plurality of included angle degrees respectively belong to a plurality of setting angle ranges.
[0042] Optionally, the calibration module is further configured to:
[0043] outputting indication information, the indication information being used to indicate that the first component and the second component are driven to a set angle range.
[0044] Optionally, the second set state includes a state in which an included angle between the first component and the second component is greater than 0°.
[0045] Optionally, the first set state includes a state in which the included angle between the first component and the second component is 0°.
[0046] According to a third aspect of the embodiments of the present disclosure, a terminal is provided, and the terminal comprises:
[0047] a processor;
[0048] a memory for storing instructions executable by the processor;
[0049] The processor is configured to perform the method according to the first aspect.
[0050] According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, and when instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to perform the method according to the first aspect.
[0051] The technical solutions provided by the embodiments of the present disclosure can have the following beneficial effects: in the method, the set relationship is calibrated based on magnetic information, so as to avoid interference caused by external magnetic fields and internal structure changes of the terminal, better ensure the reliability of the set relationship, more accurately determine the included angle between the first component and the second component, and improve the user experience.
[0052] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0053] The accompanying drawings, which are incorporated into and form part of the specification, illustrate embodiments consistent with the present disclosure and, together with the specification, serve to explain the principles of the present disclosure.
[0054] Figure 1 is a flowchart of a calibration method according to an exemplary embodiment.
[0055] Figure 2 is a flowchart of a calibration method according to an exemplary embodiment.
[0056] Figure 3 is a flowchart of a calibration method according to an exemplary embodiment.
[0057] Figure 4is a block diagram of a calibration device according to an example embodiment.
[0058] Figure 5 is a block diagram of a terminal according to an example embodiment.
[0059] Figure 6 is a schematic diagram of a first component and a second component according to an example embodiment. DETAILED DESCRIPTION
[0060] The example embodiments will be described in detail herein with reference to the attached drawings. In the following description, same numbers refer to same elements in all figures. The following detailed description does not represent all embodiments consistent with the present disclosure. Instead, they only describe example embodiments consistent with some aspects of the present disclosure, as detailed in the appended claims.
[0061] The present disclosure provides a calibration method applied to a terminal. In the method, a set relationship is calibrated based on magnetic information, thereby avoiding interference caused by external magnetic field and internal structure change of the terminal, better ensuring reliability of the set relationship, and more accurately determining an included angle between a first component and a second component, improving user experience.
[0062] In one example embodiment, a control method is provided, applied to a terminal. Referring to Figure 6 As shown in the figure, the terminal includes a first component 10 and a second component 20, and an included angle a between the first component 10 and the second component 20 is adjustable. The terminal can include a foldable screen, the first component 10 can be a first screen of the foldable screen, and the second component 20 can be a second screen of the foldable screen. Of course, the first component and the second component can also be other structures, which are not limited. For example, the terminal includes a main body and a camera component that can be popped out, the first component can be the main body, and the second component can be the camera component.
[0063] Referring to Figure 1 The method can include:
[0064] S110, determining that the first component and the second component are in a first set state;
[0065] S120, determining difference information according to the second magnetic information and the first magnetic information detected in the first set state;
[0066] S130, judging whether the difference information meets set threshold information; if the result of the judgment is yes, executing step S140; otherwise, executing step S150;
[0067] S140, calibrating the set relationship;
[0068] S150, keep the set relationship unchanged.
[0069] In step S110, the first set state can be a state in which the included angle a between the first component 10 and the second component 20 is 0°, that is, the first component 10 and the second component 20 are in a completely closed state. The first set state can also be a state in which the included angle a between the first component 10 and the second component 20 is 180°, that is, the first component 10 and the second component 20 are in a completely unfolded state. Of course, the first set state can also be other states, which is set according to actual needs, and is not limited.
[0070] Example 1,
[0071] The terminal includes a folding screen, the first component 10 is a first screen of the folding screen, the second component 20 is a second screen of the folding screen, and the first set state can refer to a state in which the included angle a of the first screen and the second screen is 0°. That is, the first set state can refer to a state in which the folding screen is closed. Wherein, whether the folding screen is in a closed state can be detected by cooperation of the magnetic sensor and the magnetic piece.
[0072] It should be noted that the terminal can start the calibration process of the set relationship based on the received control information, and then determine whether the first component 10 and the second component 20 are in the first set state.
[0073] In step S120, the first magnetic information is the magnetic information detected in the first set state. The second magnetic information corresponds to the set relationship before calibration, that is, the second magnetic information is the magnetic information corresponding to the first set state in the set relationship before the current calibration process of the first set state is started. Wherein, the second magnetic information can be directly preset in the terminal, or can be determined according to the first set state and the set relationship before calibration.
[0074] When the second magnetic information is directly preset in the terminal, the second magnetic information can be set before the terminal is shipped, or can be set after the terminal is shipped, and after the second magnetic information is set, the second magnetic information can be modified to better meet the different needs of users.
[0075] In this step, the first magnetic information can be detected by the magnetic field measurement unit. For example, after it is determined that the first component 10 and the second component 20 are in the first set state, the magnetic field measurement unit can detect the magnetic information in the first set state, and then transmit it to the processor (CPU). The processor of the terminal can obtain the above magnetic information, and determine the above magnetic information as the first magnetic information. Wherein, the magnetic field measurement unit can include at least one magnetic sensor, and the magnetic sensor can include a Hall sensor.
[0076] In this step, the processor can determine the difference information based on the first magnetic information and the second magnetic information after obtaining the first magnetic information and the second magnetic information. The magnetic information can include at least one of the magnetic field strength value in the first direction, the magnetic field strength value in the second direction, and the magnetic field strength value in the third direction. The difference information can also include at least one of the magnetic field strength difference value in the first direction, the magnetic field strength difference value in the second direction, and the magnetic field strength difference value in the third direction.
[0077] For example, the first magnetic information can include the first magnetic field strength values in the above three directions, and the second magnetic information can include the second magnetic field strength values in the above three directions. Then, the magnetic field strength difference value in the first direction can be determined based on the first magnetic field strength value and the second magnetic field strength value in the first direction. Similarly, the magnetic field strength difference value in the second direction and the magnetic field strength difference value in the third direction can also be determined. The magnetic field strength difference values in the above three directions constitute the difference information.
[0078] The magnetic field strength difference value can be obtained by subtracting the second magnetic field strength value in the corresponding direction from the first magnetic field strength value in the corresponding direction. For example, the magnetic field strength difference value in the first direction can be obtained by subtracting the second magnetic field strength value in the first direction from the first magnetic field strength value in the first direction.
[0079] It should be noted that the specific directions of the above three directions can be determined according to actual conditions, and are not limited. For example, the above three directions can be perpendicular to each other, such as the X direction, the Y direction, and the Z direction shown in FIG. 1. Figure 6
[0080] In step S130, the threshold information can include at least one of the set threshold value in the first direction, the set threshold value in the second direction, and the set threshold value in the third direction. The set threshold information can be set before the terminal is manufactured, or can be set after the terminal is manufactured. After the set threshold information is set, the set threshold information can also be modified to better meet the different needs of users.
[0081] In this step, the magnetic field strength difference value in each direction can be compared with the set threshold value respectively. If it is determined that at least one of the following three conditions is met, it can be determined that the difference information meets the set threshold information, and step S140 can be performed.
[0082] Condition 1: the absolute value of the magnetic field strength difference value in the first direction is greater than or equal to the set threshold value in the first direction;
[0083] Condition 2: the absolute value of the magnetic field strength difference value in the second direction is greater than or equal to the set threshold value in the second direction;
[0084] Condition 3: the absolute value of the magnetic field strength difference value in the third direction is greater than or equal to the set threshold value in the third direction.
[0085] If it is determined that any of the three conditions is not met, it is determined that the difference information does not meet the set threshold information, and step S150 is executed.
[0086] It should be noted that the set threshold of each direction can be set according to actual needs, and the specific value is not limited.
[0087] For example, the set threshold of the first direction can be 6551 microtesla (i.e., uT). The set threshold of the second direction can be 445 uT. The set threshold of the third direction can be 1699 uT.
[0088] In this step, the set relationship represents the mapping relationship between the magnetic information and the included angle a. The set relationship can be set before the terminal is shipped, or can be set after the terminal is shipped, and after the set relationship is set, the set relationship can also be modified to better meet the different needs of users.
[0089] It should be noted that the set relationship can exist in the form of a table, or in the form of a curve, or in the form of a relationship, and no limitation is made. In step S140, the included angle a can be determined based on the detected magnetic information and the set relationship when the magnetic field measurement unit detects the magnetic information.
[0090] Since it has been determined that the difference information meets the set threshold information, it means that the current set relationship cannot accurately determine the included angle a between the first component 10 and the second component 20, so the set relationship can be calibrated, that is, the set relationship is adjusted, and subsequently the included angle a can be determined according to the calibrated set relationship combined with the detected magnetic information to better ensure the accuracy of the included angle a.
[0091] In addition, if the difference information meets one of the three conditions, only the set relationship of the corresponding direction can be calibrated. For example, if only the absolute value of the magnetic field intensity difference of the first direction is greater than or equal to the set threshold of the first direction, only the set relationship of the first direction can be calibrated.
[0092] In step S150, since it has been determined that the difference information does not meet the set threshold information, it means that the current set relationship can still accurately determine the included angle a between the first component 10 and the second component 20, so the set relationship does not need to be adjusted, that is, the set relationship can be directly maintained unchanged, and subsequently the included angle a is still determined by the set relationship.
[0093] In the method, the setting relationship is calibrated based on the magnetic information, so as to avoid the interference caused by the external magnetic field and the change of the internal structure of the terminal, better ensure the reliability of the setting relationship, and more accurately determine the included angle a between the first component 10 and the second component 20 when the angle is detected based on the magnetic element, and improve the user experience.
[0094] It should be noted that in the method, when the setting relationship calibration is completed or it is determined that the setting relationship remains unchanged, the calibration process of this time can be ended.
[0095] In one example embodiment, a calibration method is provided, which is applied to a terminal. As shown in Figure 6 The terminal includes a first component 10 and a second component 20, and the included angle a between the first component 10 and the second component 20 is adjustable. As shown in Figure 2 In the method, the setting relationship is calibrated, which can include:
[0096] S210, determining whether a setting event occurs in the terminal within a setting period; if it is determined that the setting event occurs in the terminal within the setting period, performing step S220; if it is determined that the setting event does not occur in the terminal within the setting period, performing step S230;
[0097] S220, calibrating the setting relationship according to the setting rule;
[0098] S230, calibrating the setting relationship according to the difference value information.
[0099] The setting period can be set before the terminal is shipped, or can be set after the terminal is shipped, and the setting period can also be modified after the setting period is set to better meet the different needs of users.
[0100] The setting period can be set according to actual needs, which can be an interval period for determining the execution of the method. In this case, the method can be executed once every interval period. In addition, the setting period can also be the time when the last execution of the method ends to the time when the execution of the method starts.
[0101] The setting event refers to an event that can affect the internal structure of the terminal. The setting event can include a drop event, and can also include other events that can affect the internal structure of the terminal, which are not limited. The drop event is determined by the acceleration sensor of the terminal, or can be determined by other means, which are not limited.
[0102] In the method, if it is determined that the setting event does not occur within the setting period, it indicates that the internal structure of the terminal has not changed, and it indicates that the interference is affected by the external magnetic field, so the setting relationship can be calibrated directly through the difference value information.
[0103] Example 1,
[0104] The difference information includes a magnetic field strength difference value ΔH1 in the first direction, which is obtained by subtracting the second magnetic field strength value from the first magnetic field strength value in the first direction. ΔH1 can be positive, zero, or negative.
[0105] The setting relationship exists in the form of a curve, that is, the setting relationship includes a setting curve S in the first direction. The abscissa of the setting curve S is the included angle α, and the ordinate is the magnetic field strength value.
[0106] In this example 1, when the difference information meets the setting threshold information, and the terminal does not appear the setting event within the setting period, all the ordinates of the setting curve S in the first direction can be directly added by ΔH1 to form the calibrated setting curve S' in the first direction, that is, if the magnetic field strength value corresponding to one included angle α in the setting curve S is H, then the magnetic field strength value corresponding to this included angle α in the setting curve S' is H+ΔH1. Wherein, if ΔH1 is positive, the setting curve S is translated upwards along the ordinate by |ΔH1| to obtain the setting region S'; if ΔH1 is negative, the setting curve is translated downwards along the ordinate by |ΔH1| to obtain the setting region S'.
[0107] Then the new setting curve S' is used to replace the old setting curve S. In this way, the calibration of the setting curve in the first direction can be completed.
[0108] In addition, in the method, if it is determined that the setting event occurs within the setting period, it indicates that the internal structure of the terminal has changed, and it indicates that the interference is affected by the internal structure change. The setting relationship can be calibrated according to the setting rule.
[0109] As shown in the reference Figure 3 Calibrating the setting relationship according to the setting rule in step S220 can include:
[0110] S231, determining a plurality of included angles of the first component and the second component in the second setting state, and a plurality of third magnetic information corresponding to the plurality of included angles, wherein the plurality of included angles and the plurality of third magnetic information are one-to-one corresponding;
[0111] S232, calibrating the setting relationship according to the plurality of included angles and the plurality of third magnetic information.
[0112] In step S231, the second setting state can be different from the first setting state. For example, the first setting state can be a closed state, that is, the first state can be a state in which the included angle a between the first component 10 and the second component 20 is 0°. The second setting state can be an unfolded state, that is, the second state can be a state in which the included angle a between the first component 10 and the second component 20 is greater than 0°. Wherein, the first component 10 and the second component 20 are in the unfolded state in the second setting state. In this step, a plurality of included angles and third magnetic information corresponding to each included angle need to be determined. Wherein, the plurality of included angles can be determined by other components that can determine the angle. For example, the plurality of included angles can be detected by an inertial measurement unit (IMU).
[0113] Wherein, the plurality of included angles can respectively belong to a plurality of setting angle ranges. The setting angle range can be set before the terminal is shipped, or can be set after the terminal is shipped. In addition, after the setting angle range is set, it can be modified later to better meet the different needs of users.
[0114] Example 2,
[0115] The terminal can set four setting angle ranges, which are 15° to 45°, 45° to 90°, 90° to 135°, and 135° to 180°. Wherein, each of the above angle ranges includes a minimum angle value and does not include a maximum angle value. For example, in the angle range of 15° to 45°, 15° is included, but 45° is not included.
[0116] After determining that the difference value information meets the setting threshold information, and determining that the terminal is in the second setting state of the first component 10 and the second component 20 after the setting event occurs in the setting period, the processor of the terminal can control the setting algorithm to change from the standby state to the running state, so that the terminal can output the indication information to indicate that the included angle between the first component 10 and the second component 20 is driven to the setting angle range. For example, the indication information can be information indicating the corresponding operation, that is, the indication information is used to indicate that the included angle between the first component 10 and the second component 20 is rotated to the above four different setting angle ranges. And record at least one included angle in each setting angle range and the corresponding third magnetic information.
[0117] Wherein, the indication information can be displayed on the display screen of the terminal to guide the user to rotate the first component 10 and / or the second component 20. The indication information can also be broadcast through the microphone of the terminal to guide the user to rotate the first component 10 and / or the second component 20. The specific reminding mode of the indication information can also be other modes, which are not limited.
[0118] Example 3,
[0119] The terminal is a mobile phone including a folding screen. The terminal can set four angle ranges as same as example 2. Wherein, 15° to 45° is recorded as the first angle range, 45° to 90° is recorded as the second angle range, 90° to 135° is recorded as the third angle range, and 135° to 180° is recorded as the fourth angle range.
[0120] In this example, after the processor of the mobile phone controls the setting algorithm to change from the standby state to the running state, one screen in the folding screen can display the first indication information, which is used to instruct the user to fold the folding screen to the first angle range. After the folding angle of the folding screen is fixed, the folding angle and the third magnetic information at this time are collected. So that the processor of the mobile phone obtains one folding angle in the first angle range and the corresponding third magnetic information.
[0121] In addition, after the folding angle of the folding screen is fixed, the folding screen can output the second indication information, which is used to instruct the user to fold the folding screen to the second angle range. After the folding angle of the folding screen is fixed, the folding angle and the third magnetic information at this time are collected. So that the processor of the mobile phone obtains one folding angle in the second angle range and the corresponding third magnetic information.
[0122] Similarly, the processor can obtain one folding angle in each set angle range and the corresponding third magnetic information.
[0123] In step S232, the third magnetic information can include at least one of the third magnetic field strength value of the first direction, the third magnetic field strength value of the second direction and the third magnetic field strength value of the third direction. The setting relationship can include at least one of the setting curve of the first direction, the setting curve of the second direction and the setting curve of the third direction.
[0124] When the third magnetic information includes the third magnetic field strength value of the first direction, the third magnetic field strength value of the second direction and the third magnetic field strength value of the third direction, and the setting relationship includes the setting curve of the first direction, the setting curve of the second direction and the setting curve of the third direction, after the processor of the terminal obtains multiple folding angles and corresponding multiple third magnetic information, the processor can determine the new setting curve of the first direction based on the above multiple folding angles and the corresponding multiple third magnetic field strength values of the first direction. Similarly, the new setting curve of the second direction and the new setting curve of the third direction can be determined. Then, the new setting curve of each direction is used to replace the original old setting curve, so as to complete the calibration of the setting relationship.
[0125] It should be noted that in the method, the new setting curve of the corresponding direction can be directly fitted according to all the included angle angles and all the third magnetic field strength values of each direction. In the method, a first curve of the corresponding direction can be fitted according to a part of the included angle angles and the corresponding part of the third magnetic field strength values of each direction, and a second curve of the corresponding direction can be fitted according to another part of the included angle angles and the corresponding part of the third magnetic field strength values of each direction, and then the new setting curve of the corresponding direction can be fitted according to the first curve and the second curve.
[0126] The calibration of the setting curve of the first direction is taken as an example for introduction below.
[0127] Example 3,
[0128] The plurality of included angle angles can include a first angle A, a second angle B, a third angle C and a fourth angle D, wherein the first angle A is in a range of 15°≤A<45°, that is, the first angle A is greater than or equal to 15° and less than 45°; the second angle B is in a range of 45°≤A<90°, the third angle C is in a range of 90°≤A<135°, and the fourth angle D is in a range of 135°≤A<180°.
[0129] The third magnetic field strength value of the first direction corresponding to the first angle A is H A1 . The third magnetic field strength value of the first direction corresponding to the second angle B is H B1 . The third magnetic field strength value of the first direction corresponding to the third angle C is H C1 . The third magnetic field strength value of the first direction corresponding to the fourth angle D is H D1 .
[0130] In this example, the new setting curve of the first direction is fitted according to the first angle A, the third magnetic field strength value H A1 , the second angle B, the third magnetic field strength value H B1 , the third angle C, the third magnetic field strength value H C1 , the fourth angle D and the third magnetic field strength value H D1 , and then the new setting curve is used to replace the original setting curve. In this way, the calibration of the setting curve of the first direction can be completed.
[0131] Example 4,
[0132] In this example 4, the included angle angles and the third magnetic field information are the same as those in the above example 3.
[0133] In this example 3, the new setting curve of the first direction is fitted according to the first angle A, the third magnetic field strength value H A1 , the second angle B and the third magnetic field strength value H B1, a first curve in the first direction is fitted, and a second curve in the first direction is fitted according to the third angle C, the third magnetic field strength value H C1 , the fourth angle D, and the third magnetic field strength value H D1 , and then a new set curve in the first direction is fitted by linear fitting according to the first curve and the second curve, and finally the new set curve is used to replace the original set curve. In this way, the calibration of the set curve in the first direction can be completed.
[0134] In the method, different interference situations are determined based on whether a set event occurs, and different ways of calibrating the set relationship are adopted, so that interference caused by external magnetic fields and changes in the internal structure of the terminal can be better avoided, the reliability of the set relationship can be better ensured, the included angle a between the first component 10 and the second component 20 can be more accurately determined, and the user experience can be improved.
[0135] In one example embodiment, a calibration apparatus is provided for a terminal. Referring to Figure 6 , the terminal includes a first component 10 and a second component 20, and the included angle a between the first component 10 and the second component 20 is adjustable. The terminal can include a folding screen, the first component 10 can be a first screen of the folding screen, and the second component 20 can be a second screen of the folding screen. Of course, the first component 10 and the second component 20 can also be other structures, which are not limited. For example, the terminal includes a main body and a camera component that can be popped out, the first component can be the main body, and the second component can be the camera component.
[0136] The apparatus is used to implement the method described above. For example, referring to Figure 4 , the apparatus can include a determination module 101 and a calibration module 102, wherein during implementation of the method described above, the apparatus:
[0137] The determination module 101 is configured to determine that the first component and the second component are in a first set state.
[0138] The determination module 101 is further configured to determine difference information according to the second magnetic information and the first magnetic information detected in the first set state, wherein the second magnetic information corresponds to the set relationship before calibration, and the set relationship represents a mapping relationship between the magnetic information and the included angle.
[0139] The calibration module 102 is configured to calibrate the set relationship if it is determined that the difference information satisfies set threshold information.
[0140] In one example embodiment, a calibration apparatus is provided for a terminal. Referring to Figure 6As shown, the terminal comprises a first component 10 and a second component 20, and an angle a between the first component 10 and the second component 20 is adjustable. In the device, the difference information at least comprises one of a difference of magnetic field intensity in a first direction, a difference of magnetic field intensity in a second direction and a difference of magnetic field intensity in a third direction, and the threshold information at least comprises one of a threshold in the first direction, a threshold in the second direction and a threshold in the third direction;
[0141] Reference Figure 4 As shown, the determining module 101 is further configured to:
[0142] determine that an absolute value of the difference of magnetic field intensity in the first direction is greater than or equal to the threshold in the first direction; and / or,
[0143] determine that an absolute value of the difference of magnetic field intensity in the second direction is greater than or equal to the threshold in the second direction; and / or,
[0144] determine that an absolute value of the difference of magnetic field intensity in the third direction is greater than or equal to the threshold in the third direction.
[0145] In one example embodiment, a calibration device is provided, which is applied to a terminal. Reference Figure 6 As shown, the terminal comprises a first component 10 and a second component 20, and an angle a between the first component 10 and the second component 20 is adjustable. Reference Figure 4 As shown, in the device, the calibration module 102 is further configured to:
[0146] if it is determined that the terminal does not occur a set event in a set period, calibrating the set relationship according to the difference information.
[0147] In one example embodiment, a calibration device is provided, which is applied to a terminal. Reference Figure 6 As shown, the terminal comprises a first component 10 and a second component 20, and an angle a between the first component 10 and the second component 20 is adjustable. Reference Figure 4 As shown, in the device, the calibration module 102 is further configured to:
[0148] if it is determined that the terminal occurs a set event in a set period, calibrating the set relationship according to the set rule.
[0149] In one example embodiment, a calibration device is provided, which is applied to a terminal. Reference Figure 6 As shown, the terminal comprises a first component 10 and a second component 20, and an angle a between the first component 10 and the second component 20 is adjustable. Reference Figure 4 As shown, in the device, the calibration module 102 is further configured to:
[0150] determine a plurality of included angle degrees of the first component and the second component in the second set state, and a plurality of third magnetic information corresponding to the plurality of included angle degrees, wherein the plurality of included angle degrees and the plurality of third magnetic information are one-to-one corresponding;
[0151] calibrate the set relationship according to the plurality of included angle degrees and the plurality of third magnetic information.
[0152] In an example embodiment, a calibration apparatus is provided, and applied to a terminal. As shown in Figure 6 The terminal includes a first component 10 and a second component 20, and an included angle α between the first component 10 and the second component 20 is adjustable. In the apparatus, the plurality of included angles α respectively belong to a plurality of set angle ranges.
[0153] In an example embodiment, a calibration apparatus is provided, and applied to a terminal. As shown in Figure 6 The terminal includes a first component 10 and a second component 20, and an included angle α between the first component 10 and the second component 20 is adjustable. As shown in Figure 4 The calibration module 102 is further configured to:
[0154] output indication information, the indication information being used to indicate driving the first component and the second component to a set angle range.
[0155] In an example embodiment, a calibration apparatus is provided, and applied to a terminal. As shown in Figure 6 The terminal includes a first component 10 and a second component 20, and an included angle α between the first component 10 and the second component 20 is adjustable. In the apparatus, the second set state includes a state that the included angle α between the first component 10 and the second component 20 is greater than 0°.
[0156] In an example embodiment, a calibration apparatus is provided, and applied to a terminal. As shown in Figure 6 The terminal includes a first component 10 and a second component 20, and an included angle α between the first component 10 and the second component 20 is adjustable. In the apparatus, the first set state includes a state that the included angle α between the first component 10 and the second component 20 is 0°.
[0157] In an example embodiment, a terminal is provided, and the terminal is, for example, a mobile phone, a notebook computer, a tablet computer, a wearable device, or the like. As shown in Figure 6As shown, the terminal includes a first component 10 and a second component 20, and an angle a between the first component 10 and the second component 20 is adjustable. The terminal can include a folding screen, the first component 10 can be a first screen of the folding screen, and the second component 20 can be a second screen of the folding screen. Of course, the first component 10 and the second component 20 can also be other structures, and no limitation is made in this regard. For example, the terminal includes a main body and a camera component that can be popped out, the first component can be the main body, and the second component can be the camera component.
[0158] Reference Figure 5 As shown, the terminal 400 can include one or more components, such as a processing component 402, a memory 404, a power supply component 406, a multimedia component 408, an audio component 410, an input / output (I / O) interface 412, a sensor component 414, and a communication component 416.
[0159] The processing component 402 typically controls overall operations of the terminal 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 can include one or more processors 420 to execute instructions stored in the memory 404 to complete all or part of the steps of the methods described above. In addition, the processing component 402 can include one or more modules to facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.
[0160] The memory 404 is configured to store various types of data to support operations of the terminal 400. Examples of these data include instructions for any application or method operating on the terminal 400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 404 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0161] The power supply component 406 provides power for various components of the terminal 400. The power supply component 406 can include a power supply management system, one or more power supplies, and other components associated with generating, managing and distributing power for the terminal 400.
[0162] The multimedia component 408 includes a screen to provide an output interface between the terminal 400 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide and a gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or a sliding action, but also detect duration and intensity of the touching or sliding action. In some embodiments, the multimedia component 408 includes a front camera application and / or a back camera application. The front camera application and / or the back camera application can receive external multimedia data when the terminal 400 is in an operating mode, such as a photographing mode or a video mode. Each of the front camera application and the back camera application can be a fixed optical lens system or have a focal length and optical zoom ability.
[0163] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC) to receive an external audio signal when the terminal 400 is in an operating mode, such as a call mode, a recording mode and a voice recognition mode. The received audio signal can be further stored in the memory 404 or transmitted via the communication component 416. In some embodiments, the audio component 410 further includes a speaker to output audio signals.
[0164] The I / O interface 412 provides an interface for the processing component 402 and peripheral interface modules, which can be a keypad, a click wheel, buttons and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button and a lock button.
[0165] The sensor component 414 includes one or more sensors to provide various state assessments for the terminal 400. For example, the sensor component 414 can detect an open / closed state of the terminal 400, relative positioning of components, such as a display and a keypad of the terminal 400, a change in position of the terminal 400 or a component of the terminal 400, presence or absence of user contact with the terminal 400, an orientation or acceleration / deceleration of the terminal 400, and a temperature change of the terminal 400. The sensor component 414 can include a proximity sensor configured to detect presence of a nearby object without any physical touch. The sensor component 414 can further include a light sensor such as a CMOS or CCD image sensor for use in an imaging application. In some embodiments, the sensor component 414 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0166] The communication component 416 is configured to facilitate wired or wireless communication between the terminal 400 and another terminal. The terminal 700 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technology.
[0167] In an exemplary embodiment, the terminal 400 can be implemented with one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing terminals (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the above-described methods.
[0168] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 404 including instructions, is also provided, which can be executed by the processor 420 of the terminal 400 to perform the above-described methods. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage terminal, etc. When the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to perform the methods shown in the above-described embodiments.
[0169] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon considering the specification and practice of the disclosed application. The present disclosure is intended to cover any variations, uses, or adaptations of the application following the general principles thereof and including such departures from the present disclosure that come within known, accepted, or customary practice in the art to which the present disclosure pertains. The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0170] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon considering the specification and practice of the disclosed application. The present disclosure is intended to cover any variations, uses, or adaptations of the application following the general principles thereof and including such departures from the present disclosure that come within known, accepted, or customary practice in the art to which the present disclosure pertains. The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0171] It should be understood that the present disclosure is not limited to the precise construction that has been described above and shown in the accompanying drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the present disclosure. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A calibration method applied to a terminal, the terminal comprising a first component and a second component, wherein the included angle between the first component and the second component is adjustable, characterized in that, The method includes: Determine that the first component and the second component are in a first set state; Based on the second magnetic information and the first magnetic information detected in the first setting state, the difference information is determined, wherein the second magnetic information corresponds to the setting relationship before calibration, and the setting relationship characterizes the mapping relationship between magnetic information and included angle. If the difference information is determined to meet the set threshold information, the setting relationship is calibrated; the difference information includes at least one of the magnetic field strength difference in the first direction, the magnetic field strength difference in the second direction, and the magnetic field strength difference in the third direction, and the set threshold information includes at least one of the set threshold in the first direction, the set threshold in the second direction, and the set threshold in the third direction.
2. The method according to claim 1, characterized in that, Determining that the difference information satisfies the set threshold information includes: The absolute value of the magnetic field strength difference in the first direction is determined to be greater than or equal to a set threshold value in the first direction; and / or, The absolute value of the magnetic field strength difference in the second direction is determined to be greater than or equal to a set threshold value in the second direction; and / or, The absolute value of the magnetic field strength difference in the third direction is determined to be greater than or equal to the set threshold in the third direction.
3. The method according to claim 1, characterized in that, The calibration setting relationship includes: If it is determined that no set event has occurred in the terminal within the set period, the setting relationship is calibrated based on the difference information.
4. The method according to claim 1, characterized in that, The calibration setting relationship includes: If it is determined that a setting event occurs on the terminal within a set period, the setting relationship is calibrated according to the setting rules.
5. The method according to claim 4, characterized in that, The calibration of the setting relationship according to the set rules includes: Determine multiple angles between the first component and the second component in a second set state, and multiple third magnetic information corresponding to the multiple angles, wherein the multiple angles and the multiple third magnetic information correspond one-to-one; The calibration setting relationship is determined based on the multiple included angles and the multiple third magnetic information.
6. The method according to claim 5, characterized in that, The multiple included angles each belong to a multiple set angle range.
7. The method according to claim 6, characterized in that, The calibration of the setting relationship according to the set rules also includes: Output indication information, which is used to indicate that the first component and the second component are driven to a set angle range.
8. The method according to claim 5, characterized in that, The second setting state includes a state where the angle between the first component and the second component is greater than 0°.
9. The method according to any one of claims 1-8, characterized in that, The first setting state includes a state where the angle between the first component and the second component is 0°.
10. A calibration device applied to a terminal, the terminal comprising a first component and a second component, wherein the included angle between the first component and the second component is adjustable, characterized in that... The device includes: A determining module is used to determine that the first component and the second component are in a first set state; It is also used to determine the difference information based on the second magnetic information and the first magnetic information detected in the first setting state, wherein the second magnetic information corresponds to the setting relationship before calibration, and the setting relationship characterizes the mapping relationship between magnetic information and included angle. The calibration module is used to calibrate the setting relationship if it is determined that the difference information meets the set threshold information; the difference information includes at least one of the magnetic field strength difference in the first direction, the magnetic field strength difference in the second direction, and the magnetic field strength difference in the third direction, and the set threshold information includes at least one of the set threshold in the first direction, the set threshold in the second direction, and the set threshold in the third direction.
11. The apparatus according to claim 10, characterized in that, The determining module is further configured to: The absolute value of the magnetic field strength difference in the first direction is determined to be greater than or equal to a set threshold value in the first direction; and / or, The absolute value of the magnetic field strength difference in the second direction is determined to be greater than or equal to a set threshold value in the second direction; and / or, The absolute value of the magnetic field strength difference in the third direction is determined to be greater than or equal to the set threshold in the third direction.
12. The apparatus according to claim 10, characterized in that, The calibration module is also used for: If it is determined that no set event has occurred in the terminal within the set period, the setting relationship is calibrated based on the difference information.
13. The apparatus according to claim 10, characterized in that, The calibration module is also used for: If it is determined that a setting event occurs on the terminal within a set period, the setting relationship is calibrated according to the setting rules.
14. The apparatus according to claim 13, characterized in that, The calibration module is also used for: Determine multiple angles between the first component and the second component in a second set state, and multiple third magnetic information corresponding to the multiple angles, wherein the multiple angles and the multiple third magnetic information correspond one-to-one; The calibration setting relationship is determined based on the multiple included angles and the multiple third magnetic information.
15. The apparatus according to claim 14, characterized in that, The multiple included angles each belong to a multiple set angle range.
16. The apparatus according to claim 15, characterized in that, The calibration module is also used for: Output indication information, which is used to indicate that the first component and the second component are driven to a set angle range.
17. The apparatus according to claim 14, characterized in that, The second setting state includes a state where the angle between the first component and the second component is greater than 0°.
18. The apparatus according to any one of claims 10-17, characterized in that, The first setting state includes a state where the angle between the first component and the second component is 0°.
19. A terminal, characterized in that, The terminal includes: processor; Memory used to store the processor's executable instructions; The processor is configured to perform the method as described in any one of claims 1-9.
20. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the terminal, the terminal is able to perform the method as described in any one of claims 1-9.
Citation Information
Patent Citations
Smart refrigerator motion sensor calibration method, system and device and medium
CN109959392A
Yaw velocity compensation method and system, vehicle and computer readable storage medium
CN113830073A