Direction detection method, device and storage medium

By obtaining the current posture and bending parameters of the flexible screen of the electronic device, the compensation parameters are determined to correct the detection data of the direction of the direction, solving the problem of the accuracy of the direction detection of the folding screen electronic equipment, which improves the accuracy of the direction detection.

CN113534974BActive Publication Date: 2025-01-28BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010290109.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-14
Publication Date
2025-01-28
Estimated Expiration
2040-07-21

AI Technical Summary

Technical Problem

Electronic devices including folding screens are affected by interference from circuits, sensors, etc., and the accuracy of direction sensor detection data is especially variable in different folding postures.

Method used

By obtaining the bending parameters of the flexible screen of the electronic equipment, the corresponding compensation parameters are determined, the directional sensor detection data is corrected, and the magnetic field interference generated by the circuit and components is reduced.

Benefits of technology

The accuracy of direction detection in various attitudes has been improved, and the impact of the internal interference of electronic equipment on the direction sensor detection data is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113534974B_ABST
    Figure CN113534974B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a direction detection method and device, and a storage medium. The method is applied to an electronic device with a flexible screen, and includes: obtaining detection data obtained by a direction sensor of the electronic device; obtaining the current posture of the flexible screen of the electronic device; and correcting the detection data according to the compensation parameters corresponding to the current posture to obtain a direction parameter. Through the technical solution of the embodiment of the present disclosure, for an electronic device with a flexible screen, the detection data of the direction sensor is corrected based on the bending posture, thereby reducing the interference of the magnetic field generated by the circuits and components inside the electronic device in the direction parameters obtained by the detection, and different compensation parameters are used for correction for different bending postures, thereby improving the accuracy of direction detection in various postures.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of electronic technology, and in particular to a direction detection method and device, and a storage medium. Background Art

[0002] Folding screens have become a development trend for mobile electronic device displays. Electronic devices with folding screens usually have multiple folding postures, so that the use of electronic devices is not limited to a single direction and posture, and are suitable for more types of applications and usage scenarios, improving the intelligence and diversification of human-computer interaction. However, electronic devices with folding screens often have relatively serious interference with circuits, sensors, etc. Summary of the invention

[0003] The present invention provides a direction detection method and device, and a storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a direction detection method is provided, which is applied to an electronic device with a flexible screen, including:

[0005] Acquire detection data obtained by a direction sensor of the electronic device;

[0006] Acquire the current posture of the flexible screen of the electronic device;

[0007] The detection data is corrected according to the compensation parameter corresponding to the current posture to obtain a direction parameter.

[0008] In some embodiments, the current posture includes: a bending parameter of the flexible screen; and the method further includes:

[0009] According to the preset angle range to which the bending parameter belongs, a compensation parameter corresponding to the current posture is determined.

[0010] In some embodiments, the obtaining the current posture of the flexible screen of the electronic device includes:

[0011] The bending parameter is acquired based on the posture parameter detected by the posture sensor.

[0012] In some embodiments, the step of correcting the detection data according to the compensation parameter corresponding to the current posture to obtain the direction parameter includes:

[0013] According to the compensation parameters corresponding to the current posture, at least two directional components of the detection data in the first coordinate system are corrected to obtain first component parameters on at least two directional coordinate axes of the first coordinate system; wherein the first coordinate system is the coordinate system of the direction sensor;

[0014] The direction parameter is determined based on at least two of the first component parameters.

[0015] In some embodiments, determining the direction parameter according to at least two of the first component parameters comprises:

[0016] Determine at least two second component parameters in the second coordinate system according to at least two of the first component parameters and a preset mapping relationship between the first coordinate system and the second coordinate system; wherein the second coordinate system is a coordinate system of the electronic device, and coordinate axes of the second coordinate system are orthogonal to each other;

[0017] Determine the offset angle of the direction vector corresponding to the detection data relative to each coordinate axis according to the arc tangent value of the ratio of every two of the second component parameters;

[0018] The direction parameter is determined according to each of the offset angles.

[0019] According to a second aspect of an embodiment of the present disclosure, a direction detection device is provided, which is applied to an electronic device with a flexible screen, including:

[0020] A first acquisition module is used to acquire detection data obtained by a direction sensor of the electronic device;

[0021] A second acquisition module, used to acquire the current posture of the flexible screen of the electronic device;

[0022] The correction module is used to correct the detection data according to the compensation parameters corresponding to the current posture to obtain the direction parameters.

[0023] In some embodiments, the current posture includes: a bending parameter of the flexible screen; and the device further includes:

[0024] The determination module is used to determine the compensation parameter corresponding to the current posture according to the preset angle range to which the bending parameter belongs.

[0025] In some embodiments, the second acquisition module is specifically used to:

[0026] The bending parameter is acquired based on the posture parameter detected by the posture sensor.

[0027] In some embodiments, the correction module includes:

[0028] A correction submodule, used to correct at least two directional components of the detection data in a first coordinate system according to the compensation parameters corresponding to the current posture, so as to obtain first component parameters on each coordinate axis of the first coordinate system; wherein the first coordinate system is the coordinate system of the direction sensor;

[0029] The first determination submodule is used to determine the direction parameter according to at least two of the first component parameters.

[0030] In some embodiments, the first determining submodule includes:

[0031] a second determining subunit, configured to determine at least two second component parameters in the second coordinate system according to at least two of the first component parameters and a preset mapping relationship between the first coordinate system and the second coordinate system; wherein the second coordinate system is a coordinate system of the electronic device, and coordinate axes of the second coordinate system are orthogonal to each other;

[0032] A third determination subunit, configured to determine an offset angle of a direction vector corresponding to the detection data relative to each coordinate axis according to an arc tangent value of a ratio of every two of the second component parameters;

[0033] The fourth determining subunit is used to determine the direction parameter according to each of the offset angles.

[0034] According to a third aspect of an embodiment of the present disclosure, a direction detection device is provided, the device comprising at least: a processor and a memory for storing executable instructions that can be run on the processor, wherein:

[0035] When the processor is used to run the executable instructions, the executable instructions execute the steps in any one of the above-mentioned direction detection methods.

[0036] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, can implement the steps in any of the above-mentioned direction detection methods.

[0037] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: through the technical solution of the embodiments of the present disclosure, for an electronic device with a flexible screen, the detection data of the direction sensor is corrected based on the folding posture, thereby reducing the interference of the magnetic field generated by the circuits and components inside the electronic device in the detected direction parameters, and for different folding postures, corresponding compensation parameters are used for correction, thereby improving the accuracy of direction detection in various postures.

[0038] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0040] Figure 1A process of a direction detection method according to an exemplary embodiment is shown Figure 1 ;

[0041] Figure 2 A process of a direction detection method according to an exemplary embodiment is shown Figure 2 ;

[0042] Figure 3 is a schematic diagram of a coordinate system of a direction sensor according to an exemplary embodiment;

[0043] Figure 4 is a schematic diagram showing a flexible screen of an electronic device in an unfolded state according to an exemplary embodiment;

[0044] Figure 5 is a schematic diagram showing a flexible screen of an electronic device in a folded state according to an exemplary embodiment;

[0045] Figure 6 is a schematic diagram showing that a flexible screen of an electronic device is at an angle less than 180 degrees according to an exemplary embodiment;

[0046] Figure 7 is a structural block diagram of a direction detection device according to an exemplary embodiment;

[0047] Figure 8 It is a block diagram of a physical structure of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0048] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0049] Figure 1 is a flow chart of a direction detection method according to an exemplary embodiment, the method is applied to an electronic device with a flexible screen, such as Figure 1 As shown, the following steps are included:

[0050] Step S101, acquiring detection data obtained by a direction sensor of an electronic device;

[0051] Step S102: obtaining the current posture of the flexible screen of the electronic device;

[0052] Step S103: Correct the detection data according to the compensation parameters corresponding to the current posture to obtain the direction parameters.

[0053] In the disclosed embodiments, the electronic device performs direction detection to obtain a direction parameter. The direction parameter may be the relative angle between the direction of use of the electronic device and the direction of the earth's magnetic field, which is applied to functions such as mapping, positioning, and navigation. It may also be a direct indication of the north-south direction of the earth, such as a compass or other application.

[0054] The direction sensor of an electronic device can be a sensor based on magnetic induction or electromagnetic wave induction. For example, a magnetic field induction sensor can be used to detect the earth's magnetic field to achieve the effect of detecting direction, that is, an electronic compass, etc.; it can also be a sensor that detects direction based on positioning based on electromagnetic waves received from satellites.

[0055] Since there are a large number of circuits and electronic components inside electronic devices, these circuits and electronic components may generate electromagnetic fields during use, thereby interfering with the direction detection data obtained by the direction sensor. Therefore, for the data detected by the direction sensor, certain parameter compensation is required to correct the detection data and obtain accurate direction parameters.

[0056] In the embodiments of the present disclosure, the flexible screen may include: a display screen that can be bent to form an arc surface, and a foldable display screen, etc. An electronic device with a flexible screen can be bent at a specified position or as a whole to form an arc or folded to form a certain angle, thereby changing the form of the electronic device.

[0057] In the disclosed embodiment, the electronic device with a foldable screen may have at least two parts that can move relative to each other, and each of them carries a display screen on one side, and the connection is foldable. Therefore, the electronic device with a foldable screen can have different usage postures, for example, unfolding the foldable screen so that the two parts of the electronic device are in a 180-degree state; closing the screen so that the two parts of the electronic device overlap; and opening the foldable screen to a certain angle, etc.

[0058] It is understandable that in different postures, the relative positions of the two parts of the electronic device that carry the folding screen and can be folded relative to each other will change. Therefore, the interference of the circuits and electronic components in these two parts to the direction sensor will also change. In other words, in different postures of the electronic device, the deviation of the detection data of the direction sensor of the electronic device is also different. Therefore, in this case, compensating the detection data of the direction sensor by fixed compensation parameters cannot meet the different usage postures of the electronic device.

[0059] Therefore, in the disclosed embodiment, the current posture of the flexible screen is obtained, and then the detection data is corrected according to the compensation parameters corresponding to the current posture, and finally the direction parameters are obtained. The current posture of the flexible screen can be detected by devices such as a gyroscope, an acceleration sensor or a Hall sensor. Different compensation parameters can be preset for different postures, such as unfolding the flexible screen, closing the flexible screen, or unfolding the flexible screen to a certain angle range. The preset process can be completed through experiments before the electronic device leaves the factory, using a precise direction sensor as reference data, and experimenting with the deviation of the direction sensor detection data of the electronic device under different postures, so as to obtain the corresponding compensation parameters.

[0060] Through the method of the embodiment of the present disclosure, for an electronic device with a flexible screen, the detection data of the direction sensor is corrected based on the folding posture, which can reduce the interference of the magnetic field generated by the circuits and components inside the electronic device in the detected direction parameters, and for different folding postures, corresponding compensation parameters are used for correction, thereby improving the accuracy of direction detection in various postures.

[0061] In some embodiments, the current posture in the above step S102 includes: bending parameters of the flexible screen; Figure 2 As shown, the method also includes:

[0062] Step S201: Determine a compensation parameter corresponding to the current posture according to a preset angle range to which the bending parameter belongs.

[0063] The bending parameters may include: folding angle. For example, for the posture of the foldable screen, it may be different folding angles. For some electronic devices with foldable screens, the folding angle may vary between 0 and 180 degrees; some may even be able to rotate between 0 and 360 degrees. For different preset angle ranges, different compensation parameters may be preset, for example, different compensation parameters may be set in the ranges of 0 to 45 degrees, 45 to 90 degrees, 90 to 180 degrees, etc.

[0064] The above bending parameters may also include: bending shape, which is used to represent the posture of the electronic device with a movable flexible screen. The bending shape may be the curvature of the curved surface formed by the pure flexible screen, or the bending position, etc. It may also be the folding position of the foldable screen, the number of folding layers, such as two-layer folding, or multiple-layer folding, etc.

[0065] In this way, after detecting the bending parameter of the flexible screen, the preset angle range to which the bending parameter belongs can be determined. For example, if the bending parameter of the flexible screen is detected to be 30 degrees, which belongs to the range of 0 to 45 degrees, the compensation parameter corresponding to the range of 0 to 45 degrees is called to compensate the detection data of the direction sensor.

[0066] In some embodiments, obtaining the current posture of the flexible screen of the electronic device includes:

[0067] The bending parameters are obtained based on the posture parameters detected by the posture sensor.

[0068] Here, the attitude sensor can be any sensor used in the electronic device to detect the flexible screen, including: optical sensors, electrical sensors, and magnetic sensors, etc. For example: gyroscopes and acceleration sensors, etc., can be respectively provided with a gyroscope or an acceleration sensor in the two foldable parts of the electronic device to detect the orientation of the part, for example, the screen of one part is in the vertical direction, and the screen of the other part is in the horizontal direction, then the attitude of the flexible screen of the electronic device is unfolded 90 degrees.

[0069] Another example: The Hall sensor detects the angle between the two parts of the electronic device based on the change in the magnetic field between the two parts, thereby determining the posture of the electronic device, that is, determining the bending parameters of the above-mentioned flexible screen.

[0070] In some embodiments, the detection data is corrected according to the compensation parameters corresponding to the current posture to obtain the direction parameters, including:

[0071] According to the compensation parameters corresponding to the current posture, at least two directional components of the detection data in the first coordinate system are corrected to obtain first component parameters on at least two directional coordinate axes of the first coordinate system; wherein the first coordinate system is a coordinate system of the direction sensor;

[0072] Based on the at least two first component parameters, a direction parameter is determined.

[0073] Here, the first coordinate system may be the coordinate system of the direction sensor, which serves as a reference for the direction sensor to detect data. The first coordinate system may be a Cartesian coordinate system, including: a rectangular coordinate system or an oblique coordinate system. If only the direction of a plane needs to be detected, the first coordinate system may only include coordinate axes in two directions, for example, an x-axis and a y-axis located in the same plane; if a three-dimensional direction needs to be detected, the first coordinate system may include coordinate axes in three directions, and the direction of the third coordinate axis is perpendicular to the plane where the other two coordinate axes are located, for example, a z-axis perpendicular to the plane where the x-axis and the y-axis are located. The origin of the first coordinate system may be any point. To facilitate data processing, the origin may be located at the geometric center of the direction sensor or at the intersection of any two edges.

[0074] The direction detected by the direction sensor is the geographical direction related to the earth's magnetic field, such as the geographical south or north direction. Figure 3 As shown, when the direction sensor detects the direction N, the direction data can be represented as different components on at least two coordinate axes, namely Figure 3 In the figure, the x-axis component x1, the y-axis component y1 and the z-axis component z1 reflect the direction of true north in the coordinate system, thereby converting the geographic direction into direction data relative to the coordinate system of the direction sensor, which facilitates the processing of the detection data by the electronic device.

[0075] After obtaining the detection data of at least two directional components, compensation is performed according to the compensation parameters corresponding to each directional component. If the first coordinate system is a three-dimensional coordinate system with three axes, the compensation parameter can be a three-by-three matrix, which is multiplied by the three directional components of the detection data to obtain the corrected component parameters of each direction. According to the component parameters in each direction, the directional parameters of the final detection direction in the three-dimensional space can be obtained.

[0076] In some embodiments, based on at least two first component parameters, including:

[0077] Determine at least two second component parameters in the second coordinate system according to the at least two first component parameters and a preset mapping relationship between the first coordinate system and the second coordinate system; wherein the second coordinate system is a coordinate system of the electronic device, and coordinate axes of the second coordinate system are orthogonal to each other;

[0078] Determine the offset angle of the direction vector corresponding to the detection data relative to each coordinate axis according to the arc tangent value of the ratio of each two second component parameters;

[0079] According to each offset angle, the direction parameter is determined.

[0080] After the calibration is completed, the component parameters of at least two directions are obtained. Since the first coordinate system is the coordinate system of the direction sensor, and in actual use, the direction of the electronic device may have an angle deviation from the first coordinate system. The coordinate system of the electronic device is the second coordinate system. The second coordinate system is a coordinate system set based on the physical form of the electronic device. For ease of use, the edge direction of the electronic device can be used as the coordinate axis direction of the second coordinate system, and the geometric center of the electronic device or the intersection of any two edges can be used as the origin of the second coordinate system.

[0081] In order to display the direction parameters for easy use on the electronic device, at least two direction parameters in the first coordinate system need to be mapped to the second coordinate system. Since the positional relationship between the electronic device and the direction sensor is fixed, the mapping relationship between the first coordinate system and the second coordinate system can be determined before the electronic device leaves the factory, so as to facilitate direct coordinate conversion when in use.

[0082] After obtaining the converted direction parameters, the ratio of the component parameters of each two directions is taken, which is the tangent value of the angle of the direction parameter on the plane where the coordinate axes of the two directions are located. Therefore, the actual deviation angle can be obtained by calculating the inverse tangent value, thereby determining the final direction parameter.

[0083] For example, suppose Figure 3 The coordinate system shown is the second coordinate system mentioned above. The components of the direction data N detected on the three coordinate axes are x1, y1 and z1 respectively. The angles between the detected direction and the three coordinate axes are α, β and γ respectively. The inverse tangent value is calculated according to the ratio of the component parameters of each two directions on each coordinate axis, as shown in the following formula 1:

[0084]

[0085] In the above formula, the calculated angle is a radian value. If the angle value is needed, the radian value can be divided by π and then multiplied by 180 degrees to convert it into an angle value.

[0086] The present disclosure also provides the following examples:

[0087] Electronic devices are equipped with electronic compasses for detecting directions. The electronic compasses are based on the principle of magnetic field induction, detecting the earth's magnetic field to detect directions. However, there are a large number of circuits, electronic components, and magnetic components inside electronic devices, which will interfere with the direction detection of the electronic compass. Therefore, when the electronic compass detects the direction, it is necessary to use compensation parameters to correct the detected data in order to obtain the actual direction parameters.

[0088] If the relative positions of various electromagnetic components inside the electronic device and the electronic compass are fixed, and the strength of the interference electric field generated is also fixed, then a set of fixed compensation parameters can be used to calibrate the electronic compass. However, for electronic devices with flexible screens, there may be multiple postures during use, and in different postures, the interference caused by the circuits, electronic components, and magnetic components inside the electronic device to the electronic compass will also change.

[0089] For example, when the flexible screen of the electronic device is in the unfolded state, Figure 4 As shown, the direction sensor 10 (such as an electronic compass) is located in the antenna clearance area 20 of the electronic device. According to the detection data of the direction sensor, the component ratio on at least two coordinate axes of the coordinate system of the direction sensor is determined, and the detected direction parameter is determined according to the arc tangent value of the ratio.

[0090] Since the antenna clearance area is close to the antenna and there are few circuits distributed nearby, there is almost no significant electromagnetic interference. In this case, since there is almost no magnetic field interference from external circuits, the inverse tangent of the ratio of the y-axis component to the x-axis component of the magnetic field vector of the earth's magnetic field projected on the horizontal plane of the mobile phone is the angle of deviation from the earth's true north. In other words, no correction is required at this time.

[0091] However, when the flexible screen of the electronic device is in a folded state, Figure 5 As shown in the figure, the circuit inside the folded part of the electronic device will be close to the location of the electronic compass circuit, thereby generating electromagnetic interference to the electronic compass. In this case, the ratio of the detected y-axis component to the x-axis component is no longer the tangent value of the deviation angle, so the detection data needs to be compensated. In addition, as the bending parameters of the flexible screen change, such as Figure 6 As shown, the intensity of electromagnetic interference will also vary.

[0092] Therefore, the disclosed embodiment detects the posture of the flexible screen, that is, the folding angle, based on a+g (Accelerometer-sensor+Gyroscope) or magnetic detection of the folding screen state. Then, different compensation parameters are called according to different bending parameters. That is, based on the folding posture of the flexible screen of the electronic device, the data detected by the electronic compass is corrected.

[0093] Before the electronic device leaves the factory, the direction data detected by the electronic compass under different folding postures of the electronic device can be compared with the reference data provided by the standard direction detection instrument to obtain the deviation of the electronic compass detection data under different folding postures. In this way, the compensation parameters for correcting the deviation under different folding postures can be obtained. In practical applications, different bending parameter ranges can be set according to the accuracy requirements, and corresponding compensation parameters can be determined for each bending parameter range. For example, from the folded to the unfolded state, each 45 degrees corresponds to a set of compensation parameters, so there are 4 different sets of compensation parameters for the various postures on the front of the electronic device.

[0094] In addition, when the flexible screen of an electronic device is folded, for example, when using the secondary screen of a mobile phone, the folded part will cause greater interference to the electronic compass. Therefore, a set of compensation parameters can be determined separately, specifically for this folding posture.

[0095] Since the compass of the electronic device has a first coordinate system as a detection reference, a Cartesian coordinate system can be used. When the electronic compass is installed inside the electronic device, it usually deviates from the second coordinate system of the electronic device, such as the Google coordinate system. Therefore, it is also necessary to convert the data detected by the electronic compass from the first coordinate system to the second coordinate system, so that other applications of the electronic device can use the detection data provided by the electronic compass.

[0096] Figure 7 is a block diagram of a direction detection device according to an exemplary embodiment. Figure 7 The device is applied to an electronic device with a flexible screen, and includes a first acquisition module 710, a second acquisition module 720 and a correction module 730.

[0097] A first acquisition module 710 is used to acquire detection data obtained by a direction sensor of an electronic device;

[0098] A second acquisition module 720 is used to acquire the current posture of the flexible screen of the electronic device;

[0099] The correction module 730 is used to correct the detection data according to the compensation parameters corresponding to the current posture to obtain the direction parameters.

[0100] In some embodiments, the current posture includes: a bending parameter of the flexible screen; and the device further includes:

[0101] The determination module is used to determine the compensation parameter corresponding to the current posture according to the preset angle range to which the bending parameter belongs.

[0102] In some embodiments, the second acquisition module is specifically used to:

[0103] The bending parameter is acquired based on the posture parameter detected by the posture sensor.

[0104] In some embodiments, the correction module includes:

[0105] A correction submodule, used to correct at least two directional components of the detection data in a first coordinate system according to the compensation parameters corresponding to the current posture, so as to obtain first component parameters on each coordinate axis of the first coordinate system; wherein the first coordinate system is the coordinate system of the direction sensor;

[0106] The first determination submodule is used to determine the direction parameter according to at least two of the first component parameters.

[0107] In some embodiments, the first determining submodule includes:

[0108] a second determining subunit, configured to determine at least two second component parameters in the second coordinate system according to at least two of the first component parameters and a preset mapping relationship between the first coordinate system and the second coordinate system; wherein the second coordinate system is a coordinate system of the electronic device, and coordinate axes of the second coordinate system are orthogonal to each other;

[0109] A third determination subunit, configured to determine an offset angle of a direction vector corresponding to the detection data relative to each coordinate axis according to an arc tangent value of a ratio of every two of the second component parameters;

[0110] The fourth determining subunit is used to determine the direction parameter according to each of the offset angles.

[0111] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0112] Figure 8 8 is a physical structure block diagram of an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0113] Reference Figure 8 , the electronic device 800 may include one or more of the following components: a processing component 801 , a memory 802 , a power component 803 , a multimedia component 804 , an audio component 805 , an input / output (I / O) interface 806 , a sensor component 807 , and a communication component 808 .

[0114] The processing component 801 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 801 may include one or more processors 810 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 801 may also include one or more modules to facilitate the interaction between the processing component 801 and other components. For example, the processing component 801 may include a multimedia module to facilitate the interaction between the multimedia component 804 and the processing component 801.

[0115] The memory 810 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 802 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, or an optical disk.

[0116] The power supply component 803 provides power to various components of the electronic device 800. The power supply component 803 may include: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.

[0117] The multimedia component 804 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 804 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and / or the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0118] The audio component 805 is configured to output and / or input audio signals. For example, the audio component 805 includes a microphone (MIC), and when the electronic device 800 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 810 or sent via the communication component 808. In some embodiments, the audio component 805 also includes a speaker for outputting audio signals.

[0119] I / O interface 806 provides an interface between processing component 801 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0120] The sensor assembly 807 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 807 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 807 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 807 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 807 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 807 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0121] The communication component 808 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 808 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 808 also 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 or other technologies.

[0122] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0123] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 802 including instructions, and the instructions can be executed by a processor 810 of an electronic device 800 to perform the above method. 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 disk, an optical data storage device, etc.

[0124] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute any one of the methods provided in the above embodiments.

[0125] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0126] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A direction detection method, characterized in that: Applied to electronic devices with flexible screens, including: Acquire detection data obtained by a direction sensor of the electronic device; Acquire the current posture of the flexible screen of the electronic device; Correcting the detection data according to the compensation parameter corresponding to the current posture to obtain a direction parameter; The step of correcting the detection data according to the compensation parameter corresponding to the current posture to obtain the direction parameter includes: According to the compensation parameters corresponding to the current posture, at least two direction components of the detection data in the first coordinate system are corrected to obtain first component parameters on each coordinate axis of the first coordinate system; wherein the first coordinate system is the coordinate system of the direction sensor; The direction parameter is determined based on at least two of the first component parameters.

2. The method according to claim 1, characterized in that The current posture includes: a bending parameter of the flexible screen; and the method further includes: According to the preset angle range to which the bending parameter belongs, a compensation parameter corresponding to the current posture is determined.

3. The method according to claim 2, characterized in that The obtaining the current posture of the flexible screen of the electronic device includes: The bending parameter is acquired based on the posture parameter detected by the posture sensor.

4. The method according to claim 1, characterized in that: The determining the direction parameter according to at least two of the first component parameters comprises: Determine at least two second component parameters in the second coordinate system according to at least two of the first component parameters and a preset mapping relationship between the first coordinate system and the second coordinate system; wherein the second coordinate system is a coordinate system of the electronic device, and coordinate axes of the second coordinate system are orthogonal to each other; Determine the offset angle of the direction vector corresponding to the detection data relative to each coordinate axis according to the arc tangent value of the ratio of every two of the second component parameters; The direction parameter is determined according to each of the offset angles.

5. A direction detection device, characterized in that: Applied to electronic devices with flexible screens, including: A first acquisition module is used to acquire detection data obtained by a direction sensor of the electronic device; A second acquisition module, used to acquire the current posture of the flexible screen of the electronic device; A correction module, used to correct the detection data according to the compensation parameters corresponding to the current posture to obtain a direction parameter; Wherein, the correction module comprises: A correction submodule, used to correct at least two directional components of the detection data in a first coordinate system according to the compensation parameters corresponding to the current posture, so as to obtain first component parameters on each coordinate axis of the first coordinate system; wherein the first coordinate system is the coordinate system of the direction sensor; The first determination submodule is used to determine the direction parameter according to at least two of the first component parameters.

6. The device according to claim 5, characterized in that The current posture includes: a bending parameter of the flexible screen; and the device further includes: The determination module is used to determine the compensation parameter corresponding to the current posture according to the preset angle range to which the bending parameter belongs.

7. The device according to claim 6, characterized in that The second acquisition module is specifically used for: The bending parameter is acquired based on the posture parameter detected by the posture sensor.

8. The device according to claim 5, characterized in that The first determining submodule includes: a second determining subunit, configured to determine at least two second component parameters in the second coordinate system according to at least two of the first component parameters and a preset mapping relationship between the first coordinate system and the second coordinate system; wherein the second coordinate system is a coordinate system of the electronic device, and coordinate axes of the second coordinate system are orthogonal to each other; A third determination subunit, configured to determine an offset angle of a direction vector corresponding to the detection data relative to each coordinate axis according to an arc tangent value of a ratio of every two of the second component parameters; The fourth determining subunit is used to determine the direction parameter according to each of the offset angles.

9. A direction detection device, characterized in that: The apparatus comprises at least: a processor and a memory for storing executable instructions that can be run on the processor, wherein: When the processor is used to run the executable instructions, the executable instructions execute the steps in the direction detection method provided in any one of claims 1 to 4 above.

10. A non-transitory computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the steps of the direction detection method provided in any one of claims 1 to 4 above.

Citation Information

Patent Citations

  • Geomagnetic calibration and positioning apparatus

    CN107238808A