Mobile terminal and method for judging indoor and outdoor positions of mobile terminal
By receiving electromagnetic wave signals and obtaining posture information, the interior and outdoor environment of the mobile terminal is determined by using the brightness sensor and acceleration sensor, the problem of poor accuracy and high power consumption of existing methods, and the effect of precise judgment and low power consumption.
Patent Information
- Application Number
- CN202411416057.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-10-10
Smart Images

Figure CN119364288A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communication technology, and in particular to a mobile terminal and a method for determining whether the mobile terminal is located indoors or outdoors, a computer storage medium, a chip and a chip module. Background Art
[0002] With the development of wireless communication technology, mobile terminals have integrated more and more functions to facilitate people's lives and work. For example, mobile phones not only have the function of making calls, but also have the functions of taking pictures, reading, watching movies, etc. In order to make the captured images have better quality and to make the mobile terminal show the best reading and watching effects, it is usually necessary to process the images according to the environment where the mobile terminal is located, that is, to use parameters matching the environment when processing the images. Therefore, it is particularly important to accurately detect the environment where the mobile terminal is located.
[0003] In different environmental scenes, indoor and outdoor can be regarded as the most basic scene distinction. The commonly used scene distinction based on scene brightness, scene color difference, etc. is affected by the indoor and outdoor scene distinction. Therefore, accurately judging whether the mobile terminal is located indoors or outdoors is crucial to the efficient use of the mobile terminal.
[0004] At present, it is usually judged whether the mobile terminal is indoors based on the difference in indoor and outdoor magnetic fields, or the characteristic that cellular signals are shielded by buildings is used to judge whether the mobile terminal is indoors. However, in actual scenarios, various electrical appliances and magnetic products will generate magnetic fields and form interference, and in terms of algorithm implementation, the power consumption is usually high because of the need to calculate and extract magnetic field characteristics in real time and analyze the magnetic field characteristics. The method of judging by cellular signal changes must be used under the premise of being able to stably receive cellular signals, so it has great limitations. At the same time, this method also needs to calculate and extract cellular signal characteristics in real time and analyze cellular signal characteristics in terms of algorithm implementation, which makes the power consumption high. Therefore, the current indoor and outdoor judgment methods based on magnetic field differences and cellular signal changes are difficult to apply in actual scenarios. Summary of the invention
[0005] The purpose of the present invention is to provide a mobile terminal and a method for determining whether the mobile terminal is located indoors or outdoors, a computer storage medium, a chip and a chip module, so as to solve the problem that the existing method for determining whether the mobile terminal is located indoors or outdoors has poor accuracy and high power consumption.
[0006] In order to solve the above technical problems, the present invention provides a method for determining whether a mobile terminal is located indoors or outdoors, comprising: Receiving electromagnetic wave signals from the environment in which the mobile terminal is located; Acquiring posture information of the mobile terminal when receiving electromagnetic wave signals; According to the posture information of the mobile terminal and the strength of the received electromagnetic wave signal, it is determined whether the mobile terminal is indoors or outdoors.
[0007] Optionally, in the method for determining whether the mobile terminal is located indoors or outdoors, the mobile terminal has a brightness sensor, and the brightness sensor is used to receive electromagnetic wave signals of the environment in which the mobile terminal is located, and the electromagnetic wave signals are electromagnetic wave signals outside the visible spectrum.
[0008] Optionally, in the method for determining whether the mobile terminal is located indoors or outdoors, the mobile terminal has an acceleration sensor, and the acceleration sensor is used to obtain posture information of the mobile terminal when receiving electromagnetic wave signals.
[0009] Optionally, in the method for determining whether the mobile terminal is located indoors or outdoors, before receiving the electromagnetic wave signal and acquiring the posture information, the method for determining whether the mobile terminal is located indoors or outdoors further includes: The brightness sensor used to receive electromagnetic wave signals and the acceleration sensor used to obtain attitude information are calibrated.
[0010] Optionally, in the method for determining whether the mobile terminal is located indoors or outdoors, the method for determining whether the mobile terminal is located indoors or outdoors according to the posture information of the mobile terminal and the strength of the received electromagnetic wave signal includes: Setting a plurality of posture forms according to an angle between a surface of the mobile terminal for receiving electromagnetic wave signals and a reference plane; Set signal strength thresholds for each gesture form; Obtaining the angle between the surface of the current mobile terminal for receiving electromagnetic wave signals and the reference plane to match the posture form; Acquiring electromagnetic wave signal strength according to the electromagnetic wave signal received by the mobile terminal; The electromagnetic wave signal strength is compared with the signal strength threshold corresponding to the matching posture form to determine whether the mobile terminal is indoors or outdoors.
[0011] Optionally, in the method for determining whether the mobile terminal is located indoors or outdoors, the angle ranges corresponding to different posture forms are not completely the same.
[0012] Optionally, in the method for determining whether the mobile terminal is located indoors or outdoors, the signal strength threshold set for each posture form includes a minimum signal strength threshold and a maximum signal strength threshold; the minimum signal strength threshold under the same posture form is less than the maximum signal strength threshold.
[0013] Optionally, in the method for determining whether the mobile terminal is located indoors or outdoors, the method for comparing the electromagnetic wave signal strength with the signal strength threshold corresponding to the matching posture form to determine whether the mobile terminal is located indoors or outdoors includes: If the electromagnetic wave signal strength is greater than the maximum signal strength threshold, it is determined that the mobile terminal is located outdoors; If the electromagnetic wave signal strength is greater than the minimum signal strength threshold and less than or equal to the maximum signal strength threshold, it is determined that the mobile terminal is located indoors; If the electromagnetic wave signal strength is less than or equal to the minimum signal strength threshold, it is determined that the mobile terminal is located in an extremely dark environment.
[0014] In order to solve the above technical problems, the present invention further provides a mobile terminal, which is used to implement the method for determining whether the mobile terminal is located indoors or outdoors as described in any one of the above items, and the mobile terminal includes: A brightness sensor, used to receive electromagnetic wave signals from the environment in which the mobile terminal is located; An acceleration sensor, used to obtain the posture information of the mobile terminal when receiving electromagnetic wave signals; The control processor is used to determine whether the mobile terminal is indoors or outdoors based on the posture information of the mobile terminal and the strength of the received electromagnetic wave signal.
[0015] In order to solve the above technical problems, the present invention also provides a computer storage medium, wherein the computer storage medium stores an executable program; when the executable program is executed, the method for determining whether the mobile terminal is located indoors or outdoors as described in any one of the above items is implemented.
[0016] To solve the above technical problems, the present invention also provides a chip or a chip module, wherein the chip or the chip module is coupled to a memory and is used to execute a computer program stored in the memory to execute a method for determining whether a mobile terminal is located indoors or outdoors as described in any one of the above items.
[0017] The mobile terminal and the method for judging whether it is located indoors or outdoors provided by the present invention, computer storage medium, chip and chip module include: receiving electromagnetic wave signals of the environment in which the mobile terminal is located; obtaining the posture information of the mobile terminal when receiving the electromagnetic wave signals; judging whether the mobile terminal is indoors or outdoors according to the posture information of the mobile terminal and the strength of the received electromagnetic wave signals. Since the strength of electromagnetic wave signals indoors and outdoors is very different, and the electromagnetic wave signals received by the mobile terminal vary with the posture of the mobile terminal, it is possible to accurately judge whether the mobile terminal is located indoors through the posture information of the mobile terminal and the strength of the received electromagnetic wave signals; since the method does not require modeling to obtain features, nor does it require real-time analysis and processing of the features, the computational complexity is low and the power consumption is low, which solves the problem of poor accuracy and high power consumption of the existing method for judging whether the mobile terminal is located indoors or outdoors. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A flow chart of a method for determining whether a mobile terminal is located indoors or outdoors provided in this embodiment; Figure 2A schematic diagram of the postures of the mobile terminal corresponding to different posture forms provided in this embodiment; Figure 3 This is a schematic diagram of the structure of a mobile terminal provided in this embodiment. DETAILED DESCRIPTION
[0019] The mobile terminal and the method for determining whether it is located indoors or outdoors, the computer storage medium, the chip and the chip module proposed in the present invention are further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the accompanying drawings are all in a very simplified form and use non-precise proportions, which are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention. In addition, the structure shown in the accompanying drawings is often part of the actual structure. In particular, the emphasis that each drawing needs to show is different, and sometimes different proportions are used.
[0020] It should be noted that the terms "first", "second", etc. in the specification, claims and drawings of the present invention are used to distinguish similar objects in order to describe the embodiments of the present invention, rather than to describe a specific order or sequence. It should be understood that the structures used in this way can be interchanged under appropriate circumstances. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0021] This embodiment provides a method for determining whether a mobile terminal is located indoors or outdoors. Figure 1 As shown, including: S1, receiving electromagnetic wave signals from the environment where the mobile terminal is located; S2, obtaining the posture information of the mobile terminal when receiving the electromagnetic wave signal; S3, judging whether the mobile terminal is indoors or outdoors according to the posture information of the mobile terminal and the strength of the received electromagnetic wave signal.
[0022] The method for determining whether a mobile terminal is located indoors or outdoors provided in this embodiment can accurately determine whether the mobile terminal is located indoors through the posture information of the mobile terminal and the strength of the received electromagnetic wave signal, because the strength of electromagnetic wave signals indoors and outdoors varies greatly, and the electromagnetic wave signals received by the mobile terminal vary with the posture of the mobile terminal. Since the method does not require modeling to obtain features, nor does it require real-time analysis and processing of the features, it has low computational complexity and low power consumption, thereby solving the problem of poor accuracy and high power consumption of existing methods for determining whether a mobile terminal is located indoors or outdoors.
[0023] Specifically, in this embodiment, step S1, receives the electromagnetic wave signal of the environment in which the mobile terminal is located. In actual application, the mobile terminal has a brightness sensor, and the brightness sensor can be used to receive the electromagnetic wave signal of the environment in which the mobile terminal is located. The electromagnetic wave signal is an electromagnetic wave signal outside the visible spectrum.
[0024] Since the signal strength of electromagnetic wave signals outside the visible spectrum (such as infrared, ultraviolet, etc.) is very different indoors and outdoors, and this difference will not change due to changes in weather or lighting, the difference is relatively stable; at the same time, the brightness sensor can identify electromagnetic wave signals of non-visible light, so the brightness sensor can be used to receive electromagnetic wave signals, and then the intensity of the electromagnetic wave signal can be used to determine whether the scene is indoors or outdoors. In this way, there is no need for complex calculations, and only the intensity of the electromagnetic wave signal needs to be judged to accurately determine whether the mobile terminal is indoors or outdoors. Not only is the calculation simple and power-saving, but the scene judgment result can also be accurately obtained.
[0025] Considering that in practical applications, different postures of the mobile terminal will have a certain impact on the efficiency of receiving electromagnetic wave signals, therefore, in order to further improve the accuracy of the judgment result, in this embodiment, step S2 obtains the posture information of the mobile terminal when receiving the electromagnetic wave signal. In this way, by obtaining the posture information of the mobile terminal, the efficiency of the mobile terminal in receiving the electromagnetic wave signal can be analyzed, and then it can be accurately determined whether the mobile terminal is indoors or outdoors.
[0026] Specifically, in this embodiment, the mobile terminal has an acceleration sensor, and the acceleration sensor is used to obtain the posture information of the mobile terminal when receiving the electromagnetic wave signal. In practical applications, the built-in acceleration sensor of the mobile terminal can obtain the angle and orientation of the current mobile terminal relative to the horizontal plane according to the change of the gravity direction. Its specific working principle is well known to those skilled in the art, and this application will not repeat it. Through the angle and orientation obtained by the acceleration sensor, the efficiency of the electromagnetic wave signal received by the mobile terminal in the current posture can be determined, and then the strength of the electromagnetic wave signal in the environment where the mobile terminal is located can be reversed. The strength of the electromagnetic wave signal calculated can be used to accurately determine whether the mobile terminal is indoors or outdoors.
[0027] In a specific embodiment, the data measured by the acceleration sensor in the vertical direction (z-axis direction) can be used to distinguish the posture of the mobile terminal. The vertical direction of the acceleration sensor carried by the mobile terminal is the direction perpendicular to the mobile terminal screen. This direction will change with the change of the mobile terminal posture. The data measured by the acceleration sensor in the vertical direction is the projection of the natural vertical downward gravity acceleration in this direction. For example, when this direction is consistent with the natural vertical downward direction, the vertical direction measurement value of the acceleration sensor is the maximum value (9.81m / s2 , i.e. gravity acceleration); when this direction is opposite to the natural vertical downward direction, the vertical measurement value of the acceleration sensor is the minimum value (-9.81m / s 2 , which is the negative value of gravity acceleration); when this direction is perpendicular to the natural vertical downward direction, the vertical direction measurement value of the acceleration sensor is 0, and the vertical downward gravity acceleration is projected as 0 in this direction.
[0028] It should be noted that, in this embodiment, the implementation order of step S1 of receiving the electromagnetic wave signal of the environment in which the mobile terminal is located and step S2 of obtaining the posture information of the mobile terminal when receiving the electromagnetic wave signal can be interchanged or performed simultaneously. The two are independent of each other. The method of determining whether the mobile terminal is located indoors or outdoors with the order changed should also fall within the scope of protection of this application.
[0029] Furthermore, in order to enable the mobile terminal to accurately obtain the strength and posture information (angle and orientation) of the electromagnetic wave signal, in this embodiment, before receiving the electromagnetic wave signal and obtaining the posture information, the method for determining whether the mobile terminal is located indoors or outdoors further includes: The brightness sensor used to receive electromagnetic wave signals and the acceleration sensor used to obtain attitude information are calibrated.
[0030] Through calibration, the attitude information obtained by the acceleration sensor can be used to confirm the efficiency of the brightness sensor in receiving indoor electromagnetic wave signals and outdoor electromagnetic wave signals at various angles and orientations, and then the intensity range of electromagnetic wave signals that the mobile terminal can receive indoors and outdoors in different attitudes can be obtained. In this way, the judgment rules can be set based on the calibration data, so that in actual applications, the mobile terminal can call these data to determine whether the mobile terminal is indoors or outdoors.
[0031] Specifically, in this embodiment, in step S3, the method for determining whether the mobile terminal is indoors or outdoors according to the posture information of the mobile terminal and the strength of the received electromagnetic wave signal includes: S31, setting a plurality of posture forms according to the angle between the surface of the mobile terminal for receiving electromagnetic wave signals and the reference plane.
[0032] Specifically, in this embodiment, if Figure 2 As shown, Figure 2 (A) to (G) respectively illustrate several possible postures of the mobile terminal. The black frame in the figure represents the housing (bottom) of the mobile terminal, the white frame represents the display panel (top) of the mobile terminal, and the rectangular frame filled with oblique stripes in the middle of the white frame represents a brightness sensor for receiving electromagnetic wave signals; the dotted line in the figure represents a reference plane, which can be a horizontal plane; the angle α in the figure represents the angle between the display panel of the mobile terminal and the reference plane. Figure 2(A) shows that the display panel of the mobile terminal faces upwards, and the brightness sensor can fully receive the electromagnetic wave signal. At this time, the angle α between the display panel of the mobile terminal and the reference plane is 0. Considering that it is impossible to be completely parallel to the reference plane in practical applications, the value of the angle α in this scenario can be -5° to 5°; Figure 2 (B) shows that the display panel of the mobile terminal faces upward, but there is a small tilt angle between the display panel of the mobile terminal and the reference plane. The brightness sensor can receive most of the electromagnetic wave signals. At this time, the angle α between the display panel of the mobile terminal and the reference plane can be 5° to 45°. Figure 2 (C) shows that the display panel of the mobile terminal faces upward, but there is a large tilt angle between the display panel of the mobile terminal and the reference plane. The brightness sensor can receive most of the electromagnetic wave signals. At this time, the angle α between the display panel of the mobile terminal and the reference plane can be 45° to 85°. Figure 2 As shown in (D), it means that the plane where the display panel of the mobile terminal is located is perpendicular to the reference plane, and the angle α is 90°. The brightness sensor can receive about half of the electromagnetic wave signal. Considering that it is impossible to be completely vertical in actual applications, the value of the angle α in this scenario can be 85° to 95°; Figure 2 (E) indicates that the display panel of the mobile terminal faces downward and has a large tilt angle with the reference plane. The brightness sensor can receive a small amount of electromagnetic wave signals. At this time, the angle α between the display panel of the mobile terminal and the reference plane can be 95° to 135°. Figure 2 (F) indicates that the display panel of the mobile terminal faces downward and has a small tilt angle with the reference plane, so the brightness sensor can receive fewer electromagnetic wave signals. At this time, the angle α between the display panel of the mobile terminal and the reference plane can be 135° to 175°. Figure 2 As shown in (G), it means that the display panel of the mobile terminal is facing downward, and the brightness sensor can only receive very few electromagnetic wave signals. At this time, the angle α between the display panel of the mobile terminal and the reference plane is 180°. Considering that it is impossible to be completely antiparallel to the reference plane in practical applications, the value of the angle α in this scenario can be 175° to 185°. In this way, according to the angle value obtained by the acceleration sensor, the posture of the mobile terminal is divided into 7 posture forms with different angle ranges.
[0033] Of course, in practical applications, more posture forms can be divided to obtain more accurate judgment results; and the angle range corresponding to each posture form can also be set according to actual needs; and the posture limitation method is not limited to the angle, but can also be the measurement value of the acceleration sensor numerical direction shown above. This application does not limit this.
[0034] Preferably, in order to ensure that the posture of the mobile terminal can smoothly transition between various posture forms, in this embodiment, the angle ranges corresponding to different posture forms are not completely the same, that is, the angle ranges corresponding to different posture forms can have overlapping parts. However, in order to ensure that the mobile terminal finally has only one posture, other additional rules need to be set to confirm the overlapping parts.
[0035] S32, setting a signal strength threshold for each posture form.
[0036] Specifically, in this embodiment, the signal strength threshold set for each posture form includes the lowest signal strength threshold K down And the maximum signal strength threshold K up ; The minimum signal strength threshold K in the unified posture form down Less than the maximum signal strength threshold K up .
[0037] In practical applications, the minimum threshold K of signal strength under different posture forms is down And the maximum signal strength threshold K up can be different, so as to accurately determine whether the mobile terminal is located indoors by combining the signal strength threshold and the posture angle. down And the maximum signal strength threshold K up The specific value of can be reasonably set according to the calibration result. The setting method can be implemented by those skilled in the art according to the needs, and this application will not go into details.
[0038] S33, obtaining the angle between the surface of the current mobile terminal for receiving electromagnetic wave signals and the reference plane to match the posture form.
[0039] Since each posture form has a corresponding angle range, after the current angle of the mobile terminal is obtained through the acceleration sensor, a matching posture form can be obtained according to the angle range in which the angle is located.
[0040] S34, obtaining electromagnetic wave signal strength according to the electromagnetic wave signal received by the mobile terminal.
[0041] Specifically, the electromagnetic wave signal is received by the brightness sensor, and the intensity value V of the electromagnetic wave signal can be obtained. light .
[0042] S35, comparing the electromagnetic wave signal strength with the signal strength threshold corresponding to the matching posture form, and determining whether the mobile terminal is indoors or outdoors.
[0043] Specifically, in this embodiment, the signal strength threshold corresponding to the matched posture form is called, and the obtained electromagnetic wave signal strength value V lightand the signal strength threshold (the minimum signal strength threshold K down And the maximum signal strength threshold K up ) for comparison: If the electromagnetic wave signal strength V light Greater than the maximum signal strength threshold K up , it means that the mobile terminal is in an electromagnetic field environment filled with a large amount of non-visible light, which is usually an outdoor environment. Therefore, it is judged that the mobile terminal is outdoors; If the electromagnetic wave signal strength V light Greater than the minimum signal strength threshold K down And less than or equal to the maximum signal strength threshold K up , it means that the non-visible electromagnetic waves in the environment where the mobile terminal is located are not large and have a certain light level. Usually, this environment belongs to an indoor environment. Therefore, it is judged that the mobile terminal is located indoors; If the electromagnetic wave signal strength V light Less than or equal to the minimum signal strength threshold K down , it means that the electromagnetic wave signal detected by the brightness sensor is very weak. Usually, this environment is extremely dark. Therefore, it is judged that the mobile terminal is in an extremely dark environment.
[0044] When the judgment result of whether the mobile terminal is located indoors or outdoors is obtained, the value corresponding to the judgment result can be assigned to the preset storage bit (such as the position status flag bit) of the mobile terminal to facilitate the mobile terminal to call and read. Of course, the posture information obtained by the acceleration sensor can also be assigned the value corresponding to the posture information to the preset storage bit (such as the posture flag bit) of the mobile terminal. This application does not limit the correspondence between the flag bit value and the judgment result, and those skilled in the art can set it according to actual needs.
[0045] This embodiment also provides a mobile terminal, which is used to implement the above-mentioned method for determining whether the mobile terminal is located indoors or outdoors. Figure 3 As shown, the mobile terminal includes: A brightness sensor, used to receive electromagnetic wave signals from the environment in which the mobile terminal is located; An acceleration sensor, used to obtain the posture information of the mobile terminal when receiving electromagnetic wave signals; The control processor is used to determine whether the mobile terminal is indoors or outdoors based on the posture information of the mobile terminal and the strength of the received electromagnetic wave signal.
[0046] The mobile terminal provided in this embodiment includes but is not limited to mobile phones, tablets, smart cameras, smart watches, laptops, etc. The mobile terminal provided in this embodiment has a large difference in the strength of electromagnetic wave signals indoors and outdoors, and the electromagnetic wave signals received by the mobile terminal vary with the posture of the mobile terminal. Therefore, the posture information obtained by the acceleration sensor and the strength of the electromagnetic wave signal received by the brightness sensor can accurately determine whether the mobile terminal is located indoors; since the method does not require modeling to obtain features, nor does it require real-time analysis and processing of features, the computational complexity is low and the power consumption is low, which solves the problem of poor accuracy and high power consumption of the existing method for determining whether the mobile terminal is located indoors or outdoors.
[0047] Furthermore, this embodiment further provides a computer storage medium, wherein the computer storage medium stores an executable program; when the executable program is executed, the method for determining whether the mobile terminal is located indoors or outdoors as described above is implemented.
[0048] Furthermore, this embodiment further provides a chip or a chip module, wherein the chip or the chip module is coupled to a memory and is used to execute a computer program stored in the memory to execute the method for determining whether a mobile terminal is located indoors or outdoors as described above.
[0049] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other. In addition, the different parts between the various embodiments can also be used in combination with each other, and the present invention is not limited to this.
[0050] The mobile terminal and the method for determining whether it is located indoors or outdoors, the computer storage medium, the chip and the chip module provided in this embodiment include: receiving electromagnetic wave signals of the environment in which the mobile terminal is located; obtaining the posture information of the mobile terminal when receiving the electromagnetic wave signals; judging whether the mobile terminal is indoors or outdoors according to the posture information of the mobile terminal and the strength of the received electromagnetic wave signals. Since the strength of electromagnetic wave signals indoors and outdoors varies greatly, and the electromagnetic wave signals received by the mobile terminal vary with the posture of the mobile terminal, it is possible to accurately determine whether the mobile terminal is located indoors through the posture information of the mobile terminal and the strength of the received electromagnetic wave signals; since this method does not require modeling to obtain features, nor does it require real-time analysis and processing of features, it has low computational complexity and low power consumption, solving the problem of poor accuracy and high power consumption of existing methods for determining whether a mobile terminal is located indoors or outdoors.
[0051] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.
Claims
1. A method for determining whether a mobile terminal is located indoors or outdoors, characterized in that: include: Receiving electromagnetic wave signals from the environment in which the mobile terminal is located; Acquiring posture information of the mobile terminal when receiving electromagnetic wave signals; According to the posture information of the mobile terminal and the strength of the received electromagnetic wave signal, it is determined whether the mobile terminal is indoors or outdoors.
2. The method for determining whether a mobile terminal is located indoors or outdoors according to claim 1, characterized in that: The mobile terminal has a brightness sensor, and uses the brightness sensor to receive electromagnetic wave signals in the environment where the mobile terminal is located. The electromagnetic wave signals are electromagnetic wave signals outside the visible spectrum.
3. The method for determining whether a mobile terminal is located indoors or outdoors according to claim 1, characterized in that: The mobile terminal has an acceleration sensor, and the acceleration sensor is used to obtain the posture information of the mobile terminal when receiving the electromagnetic wave signal.
4. The method for determining whether a mobile terminal is located indoors or outdoors according to claim 1, characterized in that: Before receiving the electromagnetic wave signal and acquiring the posture information, the method for determining whether the mobile terminal is located indoors or outdoors further includes: The brightness sensor used to receive electromagnetic wave signals and the acceleration sensor used to obtain attitude information are calibrated.
5. The method for determining whether a mobile terminal is located indoors or outdoors according to claim 1, characterized in that: The method for determining whether the mobile terminal is indoors or outdoors based on the posture information of the mobile terminal and the strength of the received electromagnetic wave signal includes: Setting a plurality of posture forms according to an angle between a surface of the mobile terminal for receiving electromagnetic wave signals and a reference plane; Set signal strength thresholds for each gesture form; Obtaining the angle between the surface of the current mobile terminal for receiving electromagnetic wave signals and the reference plane to match the posture form; Acquiring electromagnetic wave signal strength according to the electromagnetic wave signal received by the mobile terminal; The electromagnetic wave signal strength is compared with the signal strength threshold corresponding to the matching posture form to determine whether the mobile terminal is indoors or outdoors.
6. The method for determining whether a mobile terminal is located indoors or outdoors according to claim 5, characterized in that: The angle ranges corresponding to different posture forms are not exactly the same.
7. The method for determining whether a mobile terminal is located indoors or outdoors according to claim 5, characterized in that: The signal strength threshold set for each posture form includes a minimum signal strength threshold and a maximum signal strength threshold; the minimum signal strength threshold under the same posture form is less than the maximum signal strength threshold.
8. The method for determining whether a mobile terminal is located indoors or outdoors according to claim 7, characterized in that: The method of comparing the electromagnetic wave signal strength with the signal strength threshold corresponding to the matching posture form to determine whether the mobile terminal is indoors or outdoors includes: If the electromagnetic wave signal strength is greater than the maximum signal strength threshold, it is determined that the mobile terminal is located outdoors; If the electromagnetic wave signal strength is greater than the minimum signal strength threshold and less than or equal to the maximum signal strength threshold, it is determined that the mobile terminal is located indoors; If the electromagnetic wave signal strength is less than or equal to the minimum signal strength threshold, it is determined that the mobile terminal is located in an extremely dark environment.
9. A mobile terminal, used to implement the method for determining whether a mobile terminal is located indoors or outdoors as claimed in any one of claims 1 to 8, characterized in that: The mobile terminal comprises: A brightness sensor, used to receive electromagnetic wave signals from the environment in which the mobile terminal is located; An acceleration sensor, used to obtain the posture information of the mobile terminal when receiving electromagnetic wave signals; The control processor is used to determine whether the mobile terminal is indoors or outdoors based on the posture information of the mobile terminal and the strength of the received electromagnetic wave signal.
10. A computer storage medium, characterized in that: The computer storage medium stores an executable program; when the executable program is executed, the method for determining whether a mobile terminal is located indoors or outdoors as described in any one of claims 1 to 8 is implemented.
11. A chip module, characterized in that: The chip module is coupled to the memory and is used to execute a computer program stored in the memory to execute the method for determining whether the mobile terminal is located indoors or outdoors as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Indoor and outdoor hybrid positioning method and system
CN105022077A
Indoor locating method based on multi-dimensional geomagnetic information
CN109916396A
Indoor and outdoor identification method and system, electronic equipment and computer readable medium
CN113176587A
Indoor positioning navigation system and method based on RF communication
CN113624232A
Guard device for cab in construction machine
JP2007255058A