CN114063129A - Method and device for determining use scene, terminal and storage medium - Google Patents
Method and device for determining use scene, terminal and storage medium Download PDFInfo
- Publication number
- CN114063129A CN114063129A CN202010746645.5A CN202010746645A CN114063129A CN 114063129 A CN114063129 A CN 114063129A CN 202010746645 A CN202010746645 A CN 202010746645A CN 114063129 A CN114063129 A CN 114063129A
- Authority
- CN
- China
- Prior art keywords
- frequency band
- determining
- threshold
- equal
- usage scenario
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000005259 measurement Methods 0.000 claims abstract description 47
- 238000001514 detection method Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 description 11
- 238000004590 computer program Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000008821 health effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S19/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/38—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
- G01S19/39—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/42—Determining position
- G01S19/45—Determining position by combining measurements of signals from the satellite radio beacon positioning system with a supplementary measurement
- G01S19/47—Determining position by combining measurements of signals from the satellite radio beacon positioning system with a supplementary measurement the supplementary measurement being an inertial measurement, e.g. tightly coupled inertial
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/10—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
- G01C21/12—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
- G01C21/16—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
- G01C21/165—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation combined with non-inertial navigation instruments
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Automation & Control Theory (AREA)
- Telephone Function (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
Abstract
The present disclosure provides a method and apparatus for determining a usage scenario, a terminal, and a storage medium. The method for determining the use scene comprises the following steps: acquiring 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 scene is indoor; when the number of available positioning satellites is not equal to a first threshold and the measurement result is equal to a second threshold, determining that the use scene is outdoor; when the number of the available positioning satellites is equal to a first threshold value and the measurement result is equal to a second threshold value, or when the number of the available positioning satellites is not equal to the first threshold value and the measurement result is not equal to the second threshold value, detecting a judgment condition, obtaining a judgment result, and determining a use scene according to the judgment result; the usage scene comprises indoor and outdoor. The method for determining the use scene can judge the scene according to certain conditions.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for determining a usage scenario, a terminal, and a storage medium.
Background
At present, more and more people have smart phones, but at present, no function can judge whether the environment where the smart phones are located is indoor or outdoor. If the environment can be distinguished, more suggestions and services can be provided for the user.
Disclosure of Invention
In order to solve the existing problems, the present disclosure provides a method and apparatus for determining a usage scenario, a terminal, and a storage medium.
The present disclosure adopts the following technical solutions.
In some embodiments, the present disclosure provides a method of determining a usage scenario, comprising:
acquiring the number of available positioning satellites;
acquiring a measurement result of the distance sensor;
determining that the usage scenario is indoors when the number of available positioning satellites is equal to a first threshold and the measurement is not equal to a second threshold;
determining that the usage scenario is outdoors when the number of available positioning satellites is not equal to the first threshold and the measurement is equal to the second threshold;
when the number of the available positioning satellites is equal to the first threshold and the measurement result is equal to the second threshold, or when the number of the 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 use scene according to the judgment result;
wherein the usage scenario includes indoor and outdoor.
In some embodiments, the present disclosure provides a method of determining a usage scenario, comprising:
acquiring the number of available positioning satellites; if the number of available positioning satellites is equal to a first threshold value, determining that the usage scenario is indoor; if the number of the available positioning satellites is not equal to the first threshold value, detecting a judgment condition to obtain a judgment result, and determining the use scene according to the judgment result; wherein the usage scenario includes indoor and outdoor; or
Obtaining a measurement result of a distance sensor arranged in the mobile terminal, and if the measurement result is equal to a second threshold value, determining that the use scene is outdoor; when the measurement result is not equal to the second threshold value, detecting a judgment condition to obtain a judgment result, and determining the use scene according to the judgment result; wherein the usage scenario includes indoor and outdoor.
In some embodiments, the present disclosure provides an apparatus for determining a usage scenario, comprising:
an acquisition module for acquiring the number of available positioning satellites and/or the measurement results of the distance sensor;
a determination module for determining the usage scenario; and
and the detection module is used for detecting the judgment condition to obtain a judgment result.
In some embodiments, the present disclosure provides a terminal comprising: at least one memory and at least one processor;
wherein the at least one memory is configured to store program code, and the at least one processor is configured to call the program code stored in the at least one memory to perform the above method.
In some embodiments, the present disclosure provides a storage medium for storing program code for performing the above-described method.
The scheme for determining the use scene can judge the scene according to certain conditions.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
Fig. 1 is a flow chart of a method of determining a usage scenario in an embodiment of the present disclosure.
Fig. 2A is a flowchart of a first decision scenario method of another embodiment of the present disclosure.
Fig. 2B is a flowchart of a second decision scenario method according to another embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of a scene determination device according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that various steps recited in method embodiments of the present disclosure may be performed in parallel and/or in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "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". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
As shown in fig. 1, fig. 1 is a flowchart of a method for determining a usage scenario according to an embodiment of the present disclosure, including the following steps: acquiring the number of available positioning satellites; acquiring a measurement result of the distance sensor; determining that the usage scenario is indoors when the number of available positioning satellites is equal to a first threshold and the measurement is not equal to a second threshold; determining that the usage scenario is outdoors when the number of available positioning satellites is not equal to the first threshold and the measurement is equal to the second threshold; when the number of the available positioning satellites is equal to the first threshold and the measurement result is equal to the second threshold, or when the number of the 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 use scene according to the judgment result; wherein the usage scenario includes indoor and outdoor.
Wherein the first threshold may be zero and the second threshold may be infinity. Specifically, in the embodiment of the present disclosure, detecting a determination condition, obtaining a determination result, and determining the usage scenario according to the determination result may include: detecting the motion state of the mobile terminal, ambient light data and a wireless internet signal frequency band; wherein the motion states include active and inactive; the wireless internet signal frequency band comprises a first frequency band, a second frequency band and a third frequency band, wherein the signal intensity of the first frequency band, the second frequency band and the third frequency band is reduced in sequence; when at least two conditions that the motion state is active, the ambient light data is smaller than a third threshold value and the wireless internet access signal frequency band is located in the first frequency band are met, determining that the use scene is indoor; and when only one condition of 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 is met, determining that the use scene is outdoor. More specifically, detecting the motion state of the mobile terminal may include: acquiring the moving distance of the mobile terminal in a first time; if the moving distance is larger than a fourth threshold value, determining that the motion state is active; if the movement distance is not greater than the fourth threshold, then the motion state is determined to be inactive. Wherein obtaining the measurement result of the distance sensor may include: and (4) measuring the distance by using ultrasonic waves.
More specifically, the disclosed embodiments include two necessary decision conditions, one being the number of available positioning satellites, such as GPS, and two being the measurement/distance of the distance sensor. If the number of the GPS available satellites is a first threshold value, for example, 0, the scene can be determined to be indoor; if the distance is a second threshold, e.g., infinity, then the scene may be deemed to be outdoors. Note that the distance measurement can use the ultrasonic distance measurement function of the mobile phone itself, for example, a device with a limit of 10 meters is mounted on the top or back of the mobile phone, so when the distance from the nearest object exceeds 10 meters, the distance can be considered as infinite. Therefore, the two determination conditions can be combined in pairs to provide four possibilities. The first method is that the scene is judged to be indoor through the GPS available satellite number of 0, and the required distance is not infinite at the moment; the second is that the scene is judged to be indoor by the infinite distance, and the number of the needed GPS available satellites is not 0; thirdly, the number of the usable satellites of the GPS is 0, the distance is infinite, and the reason for generating the result is probably that the mobile terminal is located in an open area with poor signals, so that the judgment needs to be carried out by other judgment conditions; the fourth method is that the number of the usable satellites of the GPS is not 0 and the distance is not infinite, so that the result cannot be directly obtained, and the judgment needs to be carried out by other judgment conditions.
In light of the above, the other (auxiliary) judgment conditions may include three items: the motion state, the ambient light data and the intensity of the wireless internet signal frequency band. Wherein the motion state may include active and inactive, wherein active corresponds to outdoor and inactive corresponds to indoor. In particular, active and inactive may include various decision criteria, e.g., a user may assume the exercise state is inactive if the number of steps in 5 minutes, e.g., less than 100 steps; otherwise, the activity is determined. Of course, the time and the number of steps can be determined as required, and the embodiment of the disclosure is not particularly limited. The ambient light data may also be set to a threshold value as needed, for example, when the value of the ambient light data (Lsensor) is less than 1001ux, the scene may be considered as indoor, and conversely, the scene may be considered as outdoor. The threshold value can be determined according to actual needs, and 1001ux is exemplified for illustrative purposes only and is not limiting. The wireless internet access (WiFi) signal bands may include three intensity ranges, such as a strong signal band, a medium signal band, and a weak signal band. In a 4G frequency band, more than-70 dbm is a strong signal, between-70 dbm and-8 dbm is a medium signal, and less than-80 dbm is a weak signal; in a 5G frequency band, more than-57 dbm is a strong signal, 70dbm to-57 dbm is a medium signal, and less than-82 dbm is a weak signal. The specific value of each frequency band can be determined against the actual nth generation mobile communication technology (nG), and n can be 6, 7 … …. When the signal strength falls within the strong signal range, the scene may be considered indoor, and if not, the scene may be considered outdoor. When two of the three judgment conditions are determined as indoor, the scene can be determined as indoor, otherwise, the scene is determined as outdoor.
As shown in fig. 2A, fig. 2A is a flowchart of a first method for determining a usage scenario according to another embodiment of the present disclosure, which includes the steps of: acquiring the number of available positioning satellites; if the number of available positioning satellites is equal to a first threshold value, determining that the usage scenario is indoor; if the number of the available positioning satellites is not equal to the first threshold value, detecting a judgment condition to obtain a judgment result, and determining the use scene according to the judgment result; wherein the usage scenario includes indoor and outdoor. Specifically, the embodiment of the present disclosure only uses the number of GPS available satellites as a necessary determination condition, and if the number of GPS available satellites is 0, it can be determined that the scene is indoor; if the GPS can judge that the satellite number is not 0, the judgment needs to be carried out by the aid of auxiliary conditions. The determination of the auxiliary condition can refer to the above embodiments, and is not described herein again.
As shown in fig. 2B, fig. 2B is a flowchart of a second method for determining a usage scenario according to another embodiment of the present disclosure, which includes the steps of: obtaining a measurement result of a distance sensor arranged in the mobile terminal, and if the measurement result is equal to a second threshold value, determining that the use scene is outdoor; when the measurement result is not equal to the second threshold value, detecting a judgment condition to obtain a judgment result, and determining the use scene according to the judgment result; wherein the usage scenario includes indoor and outdoor. Specifically, the embodiment of the present disclosure only uses the measurement result/distance of the distance sensor as a necessary determination condition, and if the distance is infinite, the scene may be determined to be outdoors; if the distance is not infinite, the determination needs to be made with the aid of auxiliary conditions. The determination of the auxiliary condition can refer to the above embodiments, and is not described herein again.
The method and the device can judge whether the scene is indoor or outdoor by utilizing the existing physical devices on the smart phone. Specifically, the combination of GPS satellite number, physical sensor (sensor) distance measurement, motion state, G-sensor acceleration information and Wi-Fi signals is used in a mixed mode to serve as conditions for judging the environment where the mobile phone is located. And the state of the environment where the mobile phone is located can be utilized to better provide auxiliary functions such as health activity prompt and the like for the mobile phone user.
As shown in fig. 3, an apparatus 10 for determining a scene according to an embodiment of the present disclosure further includes an obtaining module 13, a determining module 15, and a detecting module 17. Wherein the acquisition module 13 may be used to acquire the number of available positioning satellites and/or the measurements of the distance sensors. The determination module 15 may be used to determine the usage scenario. The detecting module 17 may be configured to detect the determination condition to obtain a determination result.
For the embodiments of the apparatus, since they correspond substantially to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described apparatus embodiments are merely illustrative, wherein the modules described as separate modules may or may not be separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The method and the apparatus for determining a usage scenario of the present disclosure are described above based on the embodiments and application examples. In addition, the present disclosure also provides a terminal and a storage medium, which are described below.
Referring now to fig. 4, a schematic diagram of an electronic device (e.g., a terminal device or server) 800 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the electronic device 800 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods of the present disclosure as described above.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above 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 a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The 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, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a method of determining a usage scenario for a mobile terminal provided with a distance sensor, including:
acquiring the number of available positioning satellites;
acquiring a measurement result of the distance sensor;
determining that the usage scenario is indoors when the number of available positioning satellites is equal to a first threshold and the measurement is not equal to a second threshold;
determining that the usage scenario is outdoors when the number of available positioning satellites is not equal to the first threshold and the measurement is equal to the second threshold;
when the number of the available positioning satellites is equal to the first threshold and the measurement result is equal to the second threshold, or when the number of the 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 use scene according to the judgment result;
wherein the usage scenario includes indoor and outdoor.
In accordance with one or more embodiments of the present disclosure, there is provided a method wherein the first threshold is zero and the second threshold is infinity.
According to one or more embodiments of the present disclosure, there is provided a method characterized in that the method further comprises a step of performing a calibration process on the measured data
Detecting a judgment condition, obtaining a judgment result, and determining the use scene according to the judgment result comprises the following steps:
detecting the motion state of the mobile terminal, ambient light data and a wireless internet signal frequency band; wherein the motion states include active and inactive; the wireless internet signal frequency band comprises a first frequency band, a second frequency band and a third frequency band, wherein the signal intensity of the first frequency band, the second frequency band and the third frequency band is reduced in sequence;
when at least two conditions that the motion state is active, the ambient light data is smaller than a third threshold value and the wireless internet access signal frequency band is located in the first frequency band are met, determining that the use scene is indoor;
and when only one condition of 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 is met, determining that the use scene is outdoor.
According to one or more embodiments of the present disclosure, there is provided a method characterized in that the detecting is performed by a computer
The motion state of the mobile terminal comprises:
acquiring the moving distance of the mobile terminal in a first time;
if the moving distance is larger than a fourth threshold value, determining that the motion state is active;
if the movement distance is not greater than the fourth threshold, then the motion state is determined to be inactive.
According to one or more embodiments of the present disclosure, there is provided a
A method for determining a usage scenario for a mobile terminal includes:
acquiring the number of available positioning satellites; if the number of available positioning satellites is equal to a first threshold value, determining that the usage scenario is indoor; if the number of the available positioning satellites is not equal to the first threshold value, detecting a judgment condition to obtain a judgment result, and determining the use scene according to the judgment result; wherein the usage scenario includes indoor and outdoor; or
Obtaining a measurement result of a distance sensor arranged in the mobile terminal, and if the measurement result is equal to a second threshold value, determining that the use scene is outdoor; when the measurement result is not equal to the second threshold value, detecting a judgment condition to obtain a judgment result, and determining the use scene according to the judgment result; wherein the usage scenario includes indoor and outdoor.
According to one or more embodiments of the present disclosure, there is provided a method, in which detecting a determination condition and obtaining a determination result includes:
detecting the motion state of the mobile terminal, ambient light data and a wireless internet signal frequency band; wherein the motion states include active and inactive; the wireless internet signal frequency band comprises a first frequency band, a second frequency band and a third frequency band, wherein the signal intensity of the first frequency band, the second frequency band and the third frequency band is reduced in sequence;
when at least two conditions of the motion state being active, the ambient light data being less than a third threshold value and the wireless internet access signal frequency band being located in the first frequency band are met, determining that the use scene is indoor;
and when only one condition of 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 is met, determining that the use scene is outdoor.
In accordance with one or more embodiments of the present disclosure, there is provided a method wherein the first threshold is zero and the second threshold is infinity.
According to one or more embodiments of the present disclosure, there is provided an apparatus for determining a usage scenario for a mobile terminal provided with a distance sensor, including:
an acquisition module for acquiring the number of available positioning satellites and/or the measurement results of the distance sensor;
a determination module for determining the usage scenario; and
and the detection module is used for detecting the judgment condition to obtain a judgment result.
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;
wherein the at least one memory is configured to store program code, and the at least one processor is configured to call the program code stored in the at least one memory to perform the method of any one of the above.
According to one or more embodiments of the present disclosure, there is provided a storage medium for storing program code for performing the above-described method.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims (10)
1. A method of determining a usage scenario for a mobile terminal provided with a distance sensor, comprising:
acquiring the number of available positioning satellites;
acquiring a measurement result of the distance sensor;
determining that the usage scenario is indoors when the number of available positioning satellites is equal to a first threshold and the measurement is not equal to a second threshold;
determining that the usage scenario is outdoors when the number of available positioning satellites is not equal to the first threshold and the measurement is equal to the second threshold;
when the number of the available positioning satellites is equal to the first threshold and the measurement result is equal to the second threshold, or when the number of the 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 use scene according to the judgment result;
wherein the usage scenario includes indoor and outdoor.
2. The method of claim 1, wherein the first threshold is zero and the second threshold is infinity.
3. The method according to claim 1 or 2, wherein the detecting the determination condition, obtaining a determination result, and determining the usage scenario according to the determination result comprises:
detecting the motion state of the mobile terminal, ambient light data and a wireless internet signal frequency band; wherein the motion states include active and inactive; the wireless internet signal frequency band comprises a first frequency band, a second frequency band and a third frequency band, wherein the signal intensity of the first frequency band, the second frequency band and the third frequency band is reduced in sequence;
when at least two conditions that the motion state is active, the ambient light data is smaller than a third threshold value and the wireless internet access signal frequency band is located in the first frequency band are met, determining that the use scene is indoor;
and when only one condition of 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 is met, determining that the use scene is outdoor.
4. The method according to claim 3, wherein the detecting the motion state of the mobile terminal comprises:
acquiring the moving distance of the mobile terminal in a first time;
if the moving distance is larger than a fourth threshold value, determining that the motion state is active;
if the movement distance is not greater than the fourth threshold, then the motion state is determined to be inactive.
5. A method of determining a usage scenario for a mobile terminal, comprising:
acquiring the number of available positioning satellites; if the number of available positioning satellites is equal to a first threshold value, determining that the usage scenario is indoor; if the number of the available positioning satellites is not equal to the first threshold value, detecting a judgment condition to obtain a judgment result, and determining the use scene according to the judgment result; wherein the usage scenario includes indoor and outdoor; or
Obtaining a measurement result of a distance sensor arranged in the mobile terminal, and if the measurement result is equal to a second threshold value, determining that the use scene is outdoor; when the measurement result is not equal to the second threshold value, detecting a judgment condition to obtain a judgment result, and determining the use scene according to the judgment result; wherein the usage scenario includes indoor and outdoor.
6. The method of claim 5, wherein detecting the determination condition and obtaining the determination result comprises:
detecting the motion state of the mobile terminal, ambient light data and a wireless internet signal frequency band; wherein the motion states include active and inactive; the wireless internet signal frequency band comprises a first frequency band, a second frequency band and a third frequency band, wherein the signal intensity of the first frequency band, the second frequency band and the third frequency band is reduced in sequence;
when at least two conditions of the motion state being active, the ambient light data being less than a third threshold value and the wireless internet access signal frequency band being located in the first frequency band are met, determining that the use scene is indoor;
and when only one condition of 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 is met, determining that the use scene is outdoor.
7. The method of claim 5 or 6, wherein the first threshold is zero and the second threshold is infinity.
8. An apparatus for determining a usage scenario for a mobile terminal provided with a distance sensor, comprising:
an acquisition module for acquiring the number of available positioning satellites and/or the measurement results of the distance sensor;
a determination module for determining the usage scenario; and
and the detection module is used for detecting the judgment condition to obtain a judgment result.
9. A terminal, comprising:
at least one memory and at least one processor;
wherein the at least one memory is configured to store program code and the at least one processor is configured to invoke the program code stored in the at least one memory to perform the method of any of claims 1 to 7.
10. A storage medium for storing program code for performing the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010746645.5A CN114063129A (en) | 2020-07-29 | 2020-07-29 | Method and device for determining use scene, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010746645.5A CN114063129A (en) | 2020-07-29 | 2020-07-29 | Method and device for determining use scene, terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114063129A true CN114063129A (en) | 2022-02-18 |
Family
ID=80226881
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010746645.5A Pending CN114063129A (en) | 2020-07-29 | 2020-07-29 | Method and device for determining use scene, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114063129A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115695650A (en) * | 2022-10-24 | 2023-02-03 | 北京小米移动软件有限公司 | Indoor and outdoor scene switching identification method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104457751A (en) * | 2014-11-19 | 2015-03-25 | 中国科学院计算技术研究所 | Method and system for recognizing indoor and outdoor scenes |
JP2016133431A (en) * | 2015-01-20 | 2016-07-25 | 株式会社Nttドコモ | Indoor/outdoor determination device, indoor/outdoor determination method, and radio communication terminal |
WO2016145854A1 (en) * | 2015-08-25 | 2016-09-22 | 中兴通讯股份有限公司 | Gps function power-off method, device and terminal |
CN108931802A (en) * | 2018-07-23 | 2018-12-04 | 中国科学院计算技术研究所 | A kind of indoor and outdoor scene detection method |
-
2020
- 2020-07-29 CN CN202010746645.5A patent/CN114063129A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104457751A (en) * | 2014-11-19 | 2015-03-25 | 中国科学院计算技术研究所 | Method and system for recognizing indoor and outdoor scenes |
JP2016133431A (en) * | 2015-01-20 | 2016-07-25 | 株式会社Nttドコモ | Indoor/outdoor determination device, indoor/outdoor determination method, and radio communication terminal |
WO2016145854A1 (en) * | 2015-08-25 | 2016-09-22 | 中兴通讯股份有限公司 | Gps function power-off method, device and terminal |
CN108931802A (en) * | 2018-07-23 | 2018-12-04 | 中国科学院计算技术研究所 | A kind of indoor and outdoor scene detection method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115695650A (en) * | 2022-10-24 | 2023-02-03 | 北京小米移动软件有限公司 | Indoor and outdoor scene switching identification method, device, equipment and storage medium |
CN115695650B (en) * | 2022-10-24 | 2024-05-14 | 北京小米移动软件有限公司 | Indoor and outdoor scene switching identification method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9838838B2 (en) | Location determination using a companion device | |
US8892390B2 (en) | Determining motion states | |
EP3087683B1 (en) | Apparatus, system and method of bluetooth communication | |
US20170034656A1 (en) | Apparatus,system and method of geofencing | |
US20090267832A1 (en) | Systems and methods for dynamically determining position | |
US9807561B2 (en) | User settlement detection | |
CN111897904A (en) | Method and device for determining whether ship enters typhoon ring and electronic equipment | |
CN114063129A (en) | Method and device for determining use scene, terminal and storage medium | |
CN111490833B (en) | Method, device, system and medium for adjusting transmitting signal of antenna | |
CN112929240A (en) | Method, device, terminal and non-transitory storage medium for acquiring communication delay time | |
CN111798251A (en) | Verification method and device of house source data and electronic equipment | |
CN113923667B (en) | Control method, device, equipment and medium of terminal equipment | |
CN111935640B (en) | Terminal control method and device, terminal and storage medium | |
CN113240108B (en) | Model training method and device and electronic equipment | |
CN113055534A (en) | Terminal control method and device, terminal and non-transitory storage medium | |
CN111835917A (en) | Method, device and equipment for showing activity range and computer readable medium | |
CN114006988A (en) | Doorbell response method, device, equipment and storage medium | |
CN113435528A (en) | Object classification method and device, readable medium and electronic equipment | |
CN115817163B (en) | Method, apparatus, electronic device and computer readable medium for adjusting wheel speed of vehicle | |
CN115862183B (en) | Sensor characteristic engineering information construction method, device, equipment and computer medium | |
CN112328341B (en) | Model display method, device, electronic equipment and storage medium | |
CN118275126A (en) | Detection system | |
CN113030992A (en) | Distance measuring method and device for electronic equipment, terminal and storage medium | |
CN118785097A (en) | Abnormal position information determining method, device, equipment and storage medium | |
CN115542714A (en) | Vehicle-mounted display time verification method and device based on GPS information and related equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |