Method and device for determining usage scenario, terminal and storage medium

By obtaining the measurement results of the number of positioning satellites and distance sensors, and combining other judgment conditions, determining the environmental scenarios in which the smartphone is located, the problem that existing smartphones cannot distinguish indoor and outdoor environments is solved, and the function of providing users with personalized suggestions and services is realized.

CN114063129BActive Publication Date: 2025-02-28DOUYIN VISION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010746645.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-29
Publication Date
2025-02-28
Estimated Expiration
2040-08-08

AI Technical Summary

Technical Problem

Existing smartphones cannot tell whether the environment is indoor or outdoor, and lack the ability to distinguish the environment, limiting the advice and services that can be provided to users.

Method used

By obtaining the measurement results of the number of available positioning satellites and distance sensors, and combining the motion state, ambient light data and judgment conditions of the wireless Internet signal frequency band, it is determined that the use scenario is indoor or outdoor.

Benefits of technology

The function of judging the scene based on certain conditions is realized, and it can provide users with more personalized suggestions and services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114063129B_ABST
    Figure CN114063129B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method and device, a terminal and a storage medium for determining a usage scenario. The method for determining a usage scenario includes: obtaining the number of available positioning satellites; obtaining the measurement result of a distance sensor; when the number of available positioning satellites is equal to a first threshold and the measurement result is not equal to a second threshold, determining that the usage scenario is indoors; when the number of available positioning satellites is not equal to the first threshold and the measurement result is equal to the second threshold, determining that the usage scenario is outdoor; when the number of available positioning satellites is equal to the first threshold and the measurement result is equal to the second threshold, or when the number of available positioning satellites is not equal to the first threshold and the measurement result is not equal to the second threshold, detecting a judgment condition, obtaining a judgment result, and determining a usage scenario based on the judgment result; wherein the usage scenarios include indoors and outdoors. The method for determining a usage scenario disclosed in the present disclosure can judge the scenario according to certain conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method and device for determining a usage scenario, a terminal, and a storage medium. Background Art

[0002] Currently, more and more people own smartphones, but there is currently no function to determine whether the phone is in an indoor or outdoor environment. If the environment can be distinguished, more suggestions and services can be provided to users. Summary of the invention

[0003] To solve the existing problems, the present disclosure provides a method and device for determining a usage scenario, a terminal, and a storage medium.

[0004] The present disclosure adopts the following technical solutions.

[0005] In some embodiments, the present disclosure provides a method for determining a usage scenario, including:

[0006] Get the number of available positioning satellites;

[0007] Obtaining a measurement result of the distance sensor;

[0008] When the number of available positioning satellites is equal to a first threshold and the measurement result is not equal to a second threshold, determining that the usage scenario is indoors;

[0009] When the number of available positioning satellites is not equal to the first threshold and the measurement result is equal to the second threshold, determining that the usage scenario is outdoor;

[0010] When the number of available positioning satellites is equal to the first threshold and the measurement result is equal to the second threshold, or when the number of available positioning satellites is not equal to the first threshold and the measurement result is not equal to the second threshold, detecting a judgment condition, obtaining a judgment result, and determining the usage scenario according to the judgment result;

[0011] The usage scenarios include indoors and outdoors.

[0012] In some embodiments, the present disclosure provides a method for determining a usage scenario, including:

[0013] Obtaining the number of available positioning satellites; if the number of available positioning satellites is equal to a first threshold, determining that the usage scenario is indoors; if the number of available positioning satellites is not equal to the first threshold, detecting a judgment condition, obtaining a judgment result, and determining the usage scenario according to the judgment result; wherein the usage scenario includes indoors and outdoors; or

[0014] Obtain a measurement result of a distance sensor set in the mobile terminal. If the measurement result is equal to a second threshold, determine that the usage scenario is outdoor; when the measurement result is not equal to the second threshold, detect a judgment condition, obtain a judgment result, and determine the usage scenario based on the judgment result; wherein the usage scenarios include indoors and outdoors.

[0015] In some embodiments, the present disclosure provides a device for determining a usage scenario, including:

[0016] An acquisition module, used to acquire the number of available positioning satellites and / or the measurement result of the distance sensor;

[0017] A determination module, used to determine the usage scenario; and

[0018] The detection module is used to detect the judgment conditions and obtain the judgment results.

[0019] In some embodiments, the present disclosure provides a terminal, comprising: at least one memory and at least one processor;

[0020] The at least one memory is used to store program codes, and the at least one processor is used to call the program codes stored in the at least one memory to execute the above method.

[0021] In some embodiments, the present disclosure provides a storage medium for storing program code, and the program code is used to execute the above method.

[0022] The solution for determining the usage scenario provided by the present disclosure can determine the scenario according to certain conditions. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0024] Figure 1 It is a flowchart of a method for determining a usage scenario according to an embodiment of the present disclosure.

[0025] Figure 2A It is a flowchart of a first scene determination method according to another embodiment of the present disclosure.

[0026] Figure 2B It is a flowchart of a second scene determination method according to another embodiment of the present disclosure.

[0027] Figure 3 It is a structural schematic diagram of a scene determination device according to an embodiment of the present disclosure.

[0028] Figure 4 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0030] It should be understood that the various steps described in the method embodiments of the present disclosure can be performed in sequence and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0031] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0032] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0033] It should be noted that the modification of “one” mentioned in the present disclosure is illustrative rather than restrictive, and those skilled in the art should understand that it should be understood as “one or more” unless otherwise clearly indicated in the context.

[0034] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0035] The solution provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0036] like Figure 1 As shown, Figure 1It is a flowchart of a method for determining a usage scenario according to an embodiment of the present disclosure, comprising the following steps: obtaining the number of available positioning satellites; obtaining the measurement result of the distance sensor; when the number of available positioning satellites is equal to a first threshold and the measurement result is not equal to a second threshold, determining that the usage scenario is indoors; when the number of available positioning satellites is not equal to the first threshold and the measurement result is equal to the second threshold, determining that the usage scenario is outdoor; when the number of available positioning satellites is equal to the first threshold and the measurement result is equal to the second threshold, or when the number of available positioning satellites is not equal to the first threshold and the measurement result is not equal to the second threshold, detecting a judgment condition, obtaining a judgment result, and determining the usage scenario according to the judgment result; wherein the usage scenarios include indoors and outdoors.

[0037] Wherein, the first threshold value may be zero, and the second threshold value may be infinite. Specifically, in the embodiment of the present disclosure, detecting the judgment condition, obtaining the judgment result, and determining the use scenario according to the judgment result may include: detecting the motion state, ambient light data and wireless Internet signal frequency band of the mobile terminal; wherein the motion state includes active and inactive; the wireless Internet signal frequency band includes the first frequency band, the second frequency band and the third frequency band whose signal strength decreases in sequence; when at least two conditions are met among the motion state being active, the ambient light data being less than the third threshold value and the wireless Internet signal frequency band being located in the first frequency band, the use scenario is determined to be indoor; when only one condition is met among the motion state being active, the ambient light data being less than the third threshold value and the wireless Internet signal frequency band being located in the first frequency band, the use scenario is determined to be outdoor. More specifically, detecting the motion state of the mobile terminal may include: obtaining the moving distance of the mobile terminal within the first time; if the moving distance is greater than the fourth threshold value, determining the motion state to be active; if the moving distance is not greater than the fourth threshold value, determining the motion state to be inactive. Wherein, obtaining the measurement result of the distance sensor may include: using ultrasonic ranging.

[0038] More specifically, the disclosed embodiments include two necessary determination conditions, one is the number of available positioning satellites such as GPS, and the other is the measurement result / distance of the distance sensor. If the number of available GPS satellites is a first threshold, such as 0, the scene can be determined to be indoors; if the distance is a second threshold, such as infinity, the scene can be determined to be outdoor. Please note that the distance measurement here can utilize the ultrasonic ranging function of the mobile phone, such as a device with a maximum ranging of 10 meters installed on the top or back of the mobile phone. Therefore, when the distance to the nearest object exceeds 10 meters, the distance can be considered to be infinite. Therefore, the two determination conditions here are combined in pairs to provide four possibilities. The first is to determine that the scene is indoors when the number of available GPS satellites is 0, in which case the distance must not be infinite; the second is to determine that the scene is indoors when the distance is infinite, in which case the number of available GPS satellites must not be 0; the third is that the number of available GPS satellites is 0 and the distance is infinite. The reason for this result may be that the mobile terminal is located in an open area with poor signal, so other judgment conditions are needed to make a judgment; the fourth is that the number of available GPS satellites is not 0 and the distance is not infinite. In this case, the result cannot be obtained directly, and other judgment conditions are also needed to make a judgment.

[0039] Based on the above, other (auxiliary) judgment conditions may include three items: motion state, ambient light data and the intensity of the wireless Internet signal frequency band. Among them, the motion state may include active and inactive, wherein active corresponds to outdoor and inactive corresponds to indoor. Specifically, active and inactive may include a variety of judgment criteria. For example, if the number of steps of the user within 5 minutes is less than 100 steps, the motion state can be determined as inactive; otherwise, it is determined to be active. Of course, the time and number of steps here can be determined as needed, and the embodiments of the present disclosure are not specifically limited. Ambient light data can also set a threshold value as needed. For example, when the value of ambient light data (Lsensor) is less than 1001ux, the scene can be considered to be indoors, otherwise it is outdoor. The above thresholds can be determined according to actual needs, and the example of 1001ux is only for illustration and not for limitation. The wireless Internet (WiFi) signal frequency band may include three frequency bands with intensity ranges, such as a strong signal frequency band, a medium signal frequency band and a weak signal frequency band. In the 4G frequency band, a signal greater than -70dbm is a strong signal, -70dbm to -8dbm is a medium signal, and less than -80dbm is a weak signal; in the 5G frequency band, a signal greater than -57dbm is a strong signal, -70dbm to -57dbm is a medium signal, and less than -82dbm is a weak signal. The specific values ​​of each frequency band can be determined by comparing with the actual nth generation mobile communication technology (nG), and n can also be 6, 7... When the signal strength falls within the strong signal range, the scene can be considered indoors. If not, it can be considered outdoor. When two of the above three judgment conditions determine that the scene is indoors, the scene can be determined to be indoors, otherwise the scene is determined to be outdoor.

[0040] like Figure 2A As shown, Figure 2A It is a flowchart of a first method for determining a usage scenario of another embodiment of the present disclosure, including the steps of: obtaining the number of available positioning satellites; if the number of available positioning satellites is equal to a first threshold, determining that the usage scenario is indoors; if the number of available positioning satellites is not equal to the first threshold, detecting a judgment condition, obtaining a judgment result, and determining the usage scenario according to the judgment result; wherein the usage scenario includes indoors and outdoors. Specifically, the embodiment of the present disclosure only uses the number of available GPS satellites as a necessary judgment condition. If the number of available GPS satellites is 0, the scene can be determined to be indoors; if the number of available GPS satellites is not 0, it is necessary to make a judgment with the aid of auxiliary conditions. The judgment of the auxiliary conditions can refer to the above-mentioned embodiments and will not be repeated here.

[0041] like Figure 2B As shown, Figure 2B It is a flowchart of a second method for determining a usage scenario of another embodiment of the present disclosure, comprising the steps of: obtaining a measurement result of a distance sensor disposed in the mobile terminal, and if the measurement result is equal to a second threshold, determining that the usage scenario is outdoors; when the measurement result is not equal to the second threshold, detecting a judgment condition, obtaining a judgment result, and determining the usage scenario according to the judgment result; wherein the usage scenario includes indoors and outdoors. Specifically, the embodiment of the present disclosure only uses the measurement result / distance of the distance sensor as a necessary judgment condition. If the distance is infinite, the scene can be determined to be outdoors; when the distance is not infinite, it is necessary to make a judgment with the aid of auxiliary conditions. The judgment of the auxiliary conditions can refer to the description in the above embodiments, and will not be repeated here.

[0042] The present disclosure can use the existing physical devices on the smart phone to determine whether the scene is indoors or outdoors. Specifically, the combination of the number of GPS satellites, physical sensor distance measurement, motion status, G-sensor acceleration information, and Wi-Fi signal is used as the condition for determining the environment in which the mobile phone is located. The state of the environment in which the mobile phone is located can better provide auxiliary functions such as health activity reminders for mobile phone users.

[0043] like Figure 3 As shown, the embodiment of the present disclosure also provides a device 10 for determining a scenario, including an acquisition module 13, a determination module 15 and a detection module 17. The acquisition module 13 can be used to obtain the number of available positioning satellites and / or the measurement result of the distance sensor. The determination module 15 can be used to determine the usage scenario. The detection module 17 can be used to detect the judgment condition and obtain the judgment result.

[0044] For the embodiments of the device, since they basically correspond to the method embodiments, the relevant parts refer to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the modules described as separation modules may or may not be separated. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present embodiment. Those of ordinary skill in the art can understand and implement without paying creative work.

[0045] The above describes the method and device for determining a usage scenario of the present disclosure based on the embodiments and application examples. In addition, the present disclosure also provides a terminal and a storage medium, which are described below.

[0046] Reference below Figure 4 , which shows a schematic diagram of the structure of an electronic device (such as a terminal device or a server) 800 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0047] like Figure 4 As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0048] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4The electronic device 800 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0049] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0050] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0051] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0052] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0053] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method of the present disclosure.

[0054] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0055] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0056] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.

[0057] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0058] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0059] According to one or more embodiments of the present disclosure, a method for determining a usage scenario is provided for a mobile terminal provided with a distance sensor, comprising:

[0060] Get the number of available positioning satellites;

[0061] Obtaining a measurement result of the distance sensor;

[0062] When the number of available positioning satellites is equal to a first threshold and the measurement result is not equal to a second threshold, determining that the usage scenario is indoors;

[0063] When the number of available positioning satellites is not equal to the first threshold and the measurement result is equal to the second threshold, determining that the usage scenario is outdoor;

[0064] When the number of available positioning satellites is equal to the first threshold and the measurement result is equal to the second threshold, or when the number of available positioning satellites is not equal to the first threshold and the measurement result is not equal to the second threshold, detecting a judgment condition, obtaining a judgment result, and determining the usage scenario according to the judgment result;

[0065] The usage scenarios include indoors and outdoors.

[0066] According to one or more embodiments of the present disclosure, a method is provided, characterized in that the first threshold is zero and the second threshold is infinity.

[0067] According to one or more embodiments of the present disclosure, a method is provided, characterized in that:

[0068] Detecting the judgment condition, obtaining the judgment result, and determining the usage scenario according to the judgment result includes:

[0069] Detecting the motion state, ambient light data and wireless Internet signal frequency band of the mobile terminal; wherein the motion state includes active and inactive; the wireless Internet signal frequency band includes a first frequency band, a second frequency band and a third frequency band with signal strength decreasing in sequence;

[0070] When at least two conditions are met, namely, the motion state is active, the ambient light data is less than a third threshold, and the wireless Internet signal frequency band is within the first frequency band, determining that the usage scenario is indoors;

[0071] When only one of the following conditions is met: the motion state is active, the ambient light data is less than the third threshold, and the wireless Internet signal frequency band is in the first frequency band, it is determined that the usage scenario is outdoor.

[0072] According to one or more embodiments of the present disclosure, a method is provided, characterized in that the detection

[0073] The motion state of the mobile terminal includes:

[0074] Acquire the moving distance of the mobile terminal within a first period of time;

[0075] If the moving distance is greater than a fourth threshold, determining that the motion state is active;

[0076] If the moving distance is not greater than the fourth threshold, the motion state is determined to be inactive.

[0077] According to one or more embodiments of the present disclosure, there is provided a

[0078] A method for determining a usage scenario, for a mobile terminal, comprising:

[0079] Obtaining the number of available positioning satellites; if the number of available positioning satellites is equal to a first threshold, determining that the usage scenario is indoors; if the number of available positioning satellites is not equal to the first threshold, detecting a judgment condition, obtaining a judgment result, and determining the usage scenario according to the judgment result; wherein the usage scenario includes indoors and outdoors; or

[0080] Obtain a measurement result of a distance sensor set in the mobile terminal. If the measurement result is equal to a second threshold, determine that the usage scenario is outdoor; when the measurement result is not equal to the second threshold, detect a judgment condition, obtain a judgment result, and determine the usage scenario based on the judgment result; wherein the usage scenarios include indoors and outdoors.

[0081] According to one or more embodiments of the present disclosure, a method is provided, wherein the detecting judgment condition and obtaining the judgment result comprises:

[0082] Detecting the motion state, ambient light data and wireless Internet signal frequency band of the mobile terminal; wherein the motion state includes active and inactive; the wireless Internet signal frequency band includes a first frequency band, a second frequency band and a third frequency band with signal strength decreasing in sequence;

[0083] When at least two of the following conditions are met: the motion state is active, the ambient light data is less than a third threshold, and the wireless Internet signal frequency band is within the first frequency band, determining that the usage scenario is indoors;

[0084] When only one of the following conditions is met: the motion state is active, the ambient light data is less than the third threshold, and the wireless Internet signal frequency band is in the first frequency band, it is determined that the usage scenario is outdoor.

[0085] According to one or more embodiments of the present disclosure, a method is provided, characterized in that the first threshold is zero and the second threshold is infinity.

[0086] According to one or more embodiments of the present disclosure, there is provided a device for determining a usage scenario, which is used for a mobile terminal provided with a distance sensor, and includes:

[0087] An acquisition module, used to acquire the number of available positioning satellites and / or the measurement result of the distance sensor;

[0088] A determination module, used to determine the usage scenario; and

[0089] The detection module is used to detect the judgment conditions and obtain the judgment results.

[0090] According to one or more embodiments of the present disclosure, there is provided a terminal, including: at least one memory and at least one processor;

[0091] The at least one memory is used to store program codes, and the at least one processor is used to call the program codes stored in the at least one memory to execute any one of the above methods.

[0092] According to one or more embodiments of the present disclosure, a storage medium is provided, wherein the storage medium is used to store program code, and the program code is used to execute the above method.

[0093] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0094] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0095] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A method for determining a usage scenario, for a mobile terminal provided with a distance sensor, comprising: Get the number of available positioning satellites; Obtaining a measurement result of the distance sensor; When the number of available positioning satellites is equal to a first threshold and the measurement result is not equal to a second threshold, determining that the usage scenario is indoors; When the number of available positioning satellites is not equal to the first threshold and the measurement result is equal to the second threshold, determining that the usage scenario is outdoor; When the number of available positioning satellites is equal to the first threshold and the measurement result is equal to the second threshold, or when the number of available positioning satellites is not equal to the first threshold and the measurement result is not equal to the second threshold, detecting a judgment condition, obtaining a judgment result, and determining the usage scenario according to the judgment result; The usage scenarios include indoors and outdoors, the first threshold is zero, and the second threshold is infinity.

2. The method according to claim 1, characterized in that The detecting judgment condition, obtaining the judgment result, and determining the usage scenario according to the judgment result includes: Detecting the motion state, ambient light data and wireless Internet signal frequency band of the mobile terminal; wherein the motion state includes active and inactive; the wireless Internet signal frequency band includes a first frequency band, a second frequency band and a third frequency band with signal strength decreasing in sequence; When at least two conditions are met, namely, the motion state is active, the ambient light data is less than a third threshold, and the wireless Internet signal frequency band is within the first frequency band, determining that the usage scenario is indoors; When only one of the following conditions is met: the motion state is active, the ambient light data is less than the third threshold, and the wireless Internet signal frequency band is in the first frequency band, it is determined that the usage scenario is outdoor.

3. The method according to claim 2, characterized in that The detecting the motion state of the mobile terminal comprises: Acquire the moving distance of the mobile terminal within a first period of time; If the moving distance is greater than a fourth threshold, determining that the motion state is active; If the moving distance is not greater than the fourth threshold, the motion state is determined to be inactive.

4. A device for determining a usage scenario, for a mobile terminal provided with a distance sensor, comprising: An acquisition module, used to acquire the number of available positioning satellites and the measurement result of the distance sensor; A determination module, configured to determine that the usage scenario is indoors when the number of available positioning satellites is equal to a first threshold and the measurement result is not equal to a second threshold; When the number of available positioning satellites is not equal to the first threshold and the measurement result is equal to the second threshold, determining that the usage scenario is outdoor; and a detection module, configured to detect a judgment condition and obtain a judgment result when the number of available positioning satellites is equal to the first threshold and the measurement result is equal to the second threshold, or when the number of available positioning satellites is not equal to the first threshold and the measurement result is not equal to the second threshold; a determination module, configured to determine the usage scenario according to the judgment result when the number of available positioning satellites is equal to the first threshold and the measurement result is equal to the second threshold, or when the number of available positioning satellites is not equal to the first threshold and the measurement result is not equal to the second threshold. The first threshold is zero, and the second threshold is infinity.

5. A terminal, comprising: at least one memory and at least one processor; The at least one memory is used to store program code, and the at least one processor is used to call the program code stored in the at least one memory to execute the method according to any one of claims 1 to 3.

6. A storage medium for storing a program code, wherein the program code is used to execute the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Method and system for recognizing indoor and outdoor scenes

    CN104457751A

  • GPS function power-off method, device and terminal

    WO2016145854A1