CN107704182B - Code scanning method and mobile terminal - Google Patents

Code scanning method and mobile terminal Download PDF

Info

Publication number
CN107704182B
CN107704182B CN201710905806.9A CN201710905806A CN107704182B CN 107704182 B CN107704182 B CN 107704182B CN 201710905806 A CN201710905806 A CN 201710905806A CN 107704182 B CN107704182 B CN 107704182B
Authority
CN
China
Prior art keywords
mobile terminal
code scanning
target
fingerprint information
detecting whether
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.)
Active
Application number
CN201710905806.9A
Other languages
Chinese (zh)
Other versions
CN107704182A (en
Inventor
张薇薇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710905806.9A priority Critical patent/CN107704182B/en
Publication of CN107704182A publication Critical patent/CN107704182A/en
Application granted granted Critical
Publication of CN107704182B publication Critical patent/CN107704182B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The invention provides a code scanning method and a mobile terminal, wherein the code scanning method is applied to the mobile terminal, and comprises the following steps: detecting whether the mobile terminal meets a preset code scanning condition or not; when the mobile terminal meets the preset code scanning condition, detecting whether target fingerprint information is acquired or not; when the target fingerprint information is acquired, determining a target application corresponding to the target fingerprint information according to a pre-stored association relationship between the fingerprint information and the application; and entering a code scanning interface of the target application. Therefore, the scheme of the invention solves the problems of complicated operation process and long time consumption of the code scanning method in the prior art.

Description

Code scanning method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a code scanning method and a mobile terminal.
Background
Two-dimensional code scanning has been widely used in various use scenes, but different scenes need to be used in different two-dimensional code scanning applications. For example, a friend is added or a WeChat payment is made by using a two-dimensional code scanning function of WeChat, and a payment is made by using a scanning function of a Payment treasure.
However, in the prior art, when a user wants to scan a two-dimensional code, the following steps are required: the mobile terminal is unlocked, the application is found and opened, the two-dimension code scanning interface is accessed through multi-step operation, and then the two-dimension code scanning can be carried out. Therefore, the operation process of the code scanning method in the prior art is relatively complicated and takes a long time.
Disclosure of Invention
The embodiment of the invention provides a code scanning method and a mobile terminal, and aims to solve the problems that the operation process of the code scanning method in the prior art is complicated and the time consumption is long.
In a first aspect, an embodiment of the present invention provides a code scanning method applied to a mobile terminal, where the method includes:
detecting whether the mobile terminal meets a preset code scanning condition or not;
when the mobile terminal meets the preset code scanning condition, detecting whether target fingerprint information is acquired or not;
when the target fingerprint information is acquired, determining a target application corresponding to the target fingerprint information according to a pre-stored association relationship between the fingerprint information and the application;
and entering a code scanning interface of the target application.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
the detection module is used for detecting whether the mobile terminal meets a preset code scanning condition or not;
the fingerprint acquisition module is used for detecting whether target fingerprint information is acquired or not when the mobile terminal meets the preset code scanning condition;
the fingerprint matching module is used for determining a target application corresponding to the target fingerprint information according to the association relationship between the prestored fingerprint information and the application when the target fingerprint information is acquired;
and the code scanning processing module is used for entering a code scanning interface of the target application.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the code scanning method described above.
The embodiment of the invention has the beneficial effects that:
according to the embodiment of the invention, the application with the code scanning function on the mobile terminal is associated with different fingerprint information in advance, so that when the mobile terminal meets the preset code scanning condition and acquires the target fingerprint information, the target application associated with the target fingerprint information is automatically matched, and then a code scanning interface of the target application is entered to execute the code scanning function. Therefore, according to the embodiment of the invention, when the mobile terminal meets the preset code scanning condition, the user directly inputs the fingerprint information, so that the mobile terminal can enter the corresponding code scanning interface, a series of operations such as unlocking the mobile terminal and opening the application are not required, the whole code scanning operation is simple and convenient, and the code scanning operation time is greatly saved.
Drawings
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
FIG. 1 is a flow chart of a code scanning method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another code scanning method according to an embodiment of the present invention;
fig. 3 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a second schematic block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a hardware structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a code scanning method, which is applied to a mobile terminal, and as shown in fig. 1, the method includes:
step 101: and detecting whether the mobile terminal meets a preset code scanning condition.
The code scanning method is suitable for two-dimensional codes and bar codes.
In addition, whether the mobile terminal meets the preset code scanning condition or not is detected to judge whether the state of the mobile terminal needs to be scanned or not. When it is determined through step 101 that the mobile terminal is in a state that code scanning is required, step 102 is performed.
Step 102: and when the mobile terminal meets the preset code scanning condition, detecting whether target fingerprint information is acquired.
In the embodiment of the invention, the application with the code scanning function is associated with different fingerprint information in advance, so that when the mobile terminal meets the preset code scanning condition, the corresponding application with the code scanning function can be directly started through verification of the fingerprint information of a user.
In addition, the association relation between the application with the code scanning function and different fingerprint information can be cancelled or replaced at any time according to the actual requirements of users, so that different use habits of the users are met.
Step 103: and when the target fingerprint information is acquired, determining a target application corresponding to the target fingerprint information according to the association relationship between the pre-stored fingerprint information and the application.
In the embodiment of the invention, when the mobile terminal meets the preset code scanning condition and acquires the target fingerprint information input by the user, the fingerprint information matched with the target fingerprint information is searched from the prestored fingerprint information, so that the target application used by the user for code scanning is determined to be the application associated with the fingerprint information matched with the target fingerprint information.
Step 104: and entering a code scanning interface of the target application.
In the embodiment of the invention, no matter the mobile terminal is in the screen locking state or the non-screen locking state, as long as the mobile terminal meets the preset code scanning condition, after the target fingerprint information input by the user is acquired, the code scanning interface of the target application associated with the target fingerprint information can be directly accessed, so that the code scanning function of the mobile terminal is executed. Without the need to screen unlock and then launch the target application to scan the code as in the prior art. Therefore, the code scanning method provided by the embodiment of the invention has the advantages that the code scanning process is simple and convenient, and the time for code scanning operation is greatly saved.
As can be seen from the above, in the embodiment of the present invention, the application having the code scanning function on the mobile terminal is associated with different fingerprint information in advance, so that when the mobile terminal meets the preset code scanning condition and acquires the target fingerprint information, the target application associated with the target fingerprint information is automatically matched, and then the mobile terminal enters the code scanning interface of the target application to execute the code scanning function. Therefore, according to the embodiment of the invention, when the mobile terminal meets the preset code scanning condition, the user directly inputs the fingerprint information, so that the mobile terminal can enter the corresponding code scanning interface, a series of operations such as unlocking the mobile terminal and opening the application are not required, the whole code scanning operation is simple and convenient, and the code scanning operation time is greatly saved.
An embodiment of the present invention further provides a code scanning method, which is applied to a mobile terminal, and as shown in fig. 2, the method includes:
step 201: detecting whether the mobile terminal is changed from a motion state to a static state or not, and detecting whether a shelter exists in a preset range of the mobile terminal or not.
Step 202: and when the mobile terminal is changed from a motion state to a static state and a shelter exists in a preset range of the mobile terminal, determining that the mobile terminal meets a preset code scanning condition.
Step 203: when the mobile terminal is not changed from a motion state to a static state or no shielding object exists in a preset range of the mobile terminal, determining that the mobile terminal does not meet a preset code scanning condition.
The code scanning method is suitable for two-dimensional codes and bar codes.
In addition, whether the mobile terminal meets the preset code scanning condition or not is detected through steps 201 to 203, so that whether the code scanning is required or not is judged according to the state of the mobile terminal. When it is determined through steps 201 to 203 that the mobile terminal is in a state requiring code scanning, step 204 is executed.
In addition, before a user uses the mobile terminal to scan a code, the user needs to pick up the mobile terminal to align with a code to be scanned (such as a two-dimensional code or a bar code), and in the process of "the user needs to pick up the mobile terminal to align with the code to be scanned (such as the two-dimensional code or the bar code)", the mobile terminal is changed from a motion state to a static state, and when the mobile terminal is changed to the static state, a shielding object exists in a preset range of the mobile terminal, and the shielding object is the code to be scanned. Therefore, whether the mobile terminal meets the preset code scanning condition or not can be judged by detecting whether the mobile terminal is changed from the motion state to the static state or not and whether a shelter exists in the preset range of the mobile terminal or not.
Further, the step of detecting whether the mobile terminal changes from a moving state to a stationary state includes: acquiring an output signal of an acceleration sensor of the mobile terminal; and when the output signal of the acceleration sensor changes from the existence state to the non-existence state, determining that the mobile terminal changes from the motion state to the static state.
The acceleration sensor can measure the acceleration of the mobile terminal and the motion condition of the mobile terminal in any direction. Thus, the acceleration sensor has a signal output when the mobile terminal is in motion, and has no signal output when the mobile terminal is stationary. Therefore, the embodiment of the invention can determine whether the mobile terminal is changed from the motion state to the static state by detecting whether the output signal of the acceleration sensor on the mobile terminal is changed from the motion state to the static state.
Further, the step of detecting whether a blocking object exists in the preset range of the mobile terminal includes: detecting whether the mobile terminal receives target infrared rays, wherein the target infrared rays are infrared rays emitted by an infrared module on the mobile terminal and reflected by a shielding object; when the mobile terminal receives the target infrared ray, determining the distance between a shelter and the mobile terminal according to the intensity of the target infrared ray; and when the distance between the shielding object and the mobile terminal is within a preset range, determining that the shielding object exists in the preset range of the mobile terminal.
Wherein, the infrared emission module arranged on the mobile terminal can emit infrared rays. After the infrared ray is reflected by the near-distance object, the infrared module can receive the reflected infrared ray. In addition, the intensity of the infrared rays received by the infrared module is different, and the distance between the object reflecting the infrared rays and the mobile terminal is different. Therefore, according to the embodiment of the invention, the infrared emission module is controlled to emit the infrared ray, so that the distance between the shielding object and the mobile terminal is measured according to the intensity of the received reflected infrared ray, and whether the shielding object exists in the preset range of the mobile terminal can be further judged.
In addition, according to the embodiment of the invention, whether the mobile terminal meets the preset code scanning condition can be detected by using the original acceleration sensor and the infrared emission module on the mobile terminal, other devices do not need to be additionally arranged, and the implementation cost of the code scanning method of the embodiment of the invention is saved.
Step 204: and when the mobile terminal meets the preset code scanning condition, detecting whether target fingerprint information is acquired.
In the embodiment of the invention, the application with the code scanning function is associated with different fingerprint information in advance, so that when the mobile terminal meets the preset code scanning condition, the corresponding application with the code scanning function can be directly started through verification of the fingerprint information of a user.
In addition, the association relation between the application with the code scanning function and different fingerprint information can be cancelled or replaced at any time according to the actual requirements of users, so that different use habits of the users are met.
Step 205: and when the target fingerprint information is acquired, determining a target application corresponding to the target fingerprint information according to the association relationship between the pre-stored fingerprint information and the application.
In the embodiment of the invention, when the mobile terminal meets the preset code scanning condition and acquires the target fingerprint information input by the user, the fingerprint information matched with the target fingerprint information is searched from the prestored fingerprint information, so that the target application used by the user for code scanning is determined to be the application associated with the fingerprint information matched with the target fingerprint information.
Step 206: and entering a code scanning interface of the target application.
In the embodiment of the invention, no matter the mobile terminal is in the screen locking state or the non-screen locking state, as long as the mobile terminal meets the preset code scanning condition, after the target fingerprint information input by the user is acquired, the code scanning interface of the target application associated with the target fingerprint information can be directly accessed, so that the code scanning function of the mobile terminal is executed. Without the need to screen unlock and then launch the target application to scan the code as in the prior art. Therefore, the code scanning method provided by the embodiment of the invention has the advantages that the code scanning process is simple and convenient, and the time for code scanning operation is greatly saved.
Furthermore, preferably, after step 206, the embodiment of the present invention further comprises: detecting whether the mobile terminal is connected with a network or not; and when the mobile terminal is not connected with the network, the network connection of the mobile terminal is opened.
After entering a code scanning interface of the target application, the mobile terminal can execute the code scanning function in a networking state. In the embodiment of the present invention, after step 206, it is further detected whether the mobile terminal is connected to a network, and when the mobile terminal is not connected to the network, the mobile terminal is automatically connected to the network without manual networking again by the user, which further simplifies the operation process of the user.
Further, after the network connection of the mobile terminal is opened, the method further includes: and when the mobile terminal exits the target application or the screen of the mobile terminal is locked, closing the network connection of the mobile terminal.
When the mobile terminal is used for scanning the code and quitting an interface applied by scanning the code or locking a screen of the mobile terminal, the mobile terminal does not need to use a network, and the power consumption of the mobile terminal can be further saved by automatically closing the network connection of the mobile terminal, so that the standby time is prolonged.
In summary, in the embodiments of the present invention, an application with a code scanning function on a mobile terminal is associated with different fingerprint information in advance, so that when the mobile terminal changes from a motion state to a static state and a blocking object exists in a preset range of the mobile terminal, if target fingerprint information is acquired, a target application associated with the target fingerprint information is automatically matched, and then a code scanning interface of the target application is entered to execute the code scanning function. Therefore, according to the embodiment of the invention, when the state of the mobile terminal meets the code scanning condition, the user directly inputs the fingerprint information, so that the mobile terminal can enter the corresponding code scanning interface, a series of operations such as unlocking the mobile terminal and opening the application are not required, the whole code scanning operation is simple and convenient, and the code scanning operation time is greatly saved.
An embodiment of the present invention provides a mobile terminal, as shown in fig. 3, the mobile terminal 300 includes:
a detecting module 301, configured to detect whether the mobile terminal meets a preset code scanning condition;
a fingerprint acquisition module 302, configured to detect whether target fingerprint information is acquired when the mobile terminal meets the preset code scanning condition;
the fingerprint matching module 303 is configured to determine, when the target fingerprint information is acquired, a target application corresponding to the target fingerprint information according to an association relationship between pre-stored fingerprint information and applications;
and a code scanning processing module 304, configured to enter a code scanning interface of the target application.
Preferably, as shown in fig. 4, the detection module 301 includes:
a detecting unit 3011, configured to detect whether the mobile terminal changes from a moving state to a stationary state, and detect whether a blocking object exists within a preset range of the mobile terminal;
a first determining unit 3012, configured to determine that the mobile terminal meets the preset code scanning condition when the mobile terminal changes from a motion state to a stationary state and a shelter exists in a preset range of the mobile terminal;
a second determining unit 3013, configured to determine that the mobile terminal does not satisfy the preset code scanning condition when the mobile terminal is not changed from a motion state to a stationary state or no blocking object exists within a preset range of the mobile terminal.
Preferably, the detection unit 3011 includes:
the signal acquisition subunit is used for acquiring an output signal of an acceleration sensor of the mobile terminal;
and the state determining subunit is used for determining that the mobile terminal is changed from a motion state to a static state when the output signal of the acceleration sensor is changed from the motion state to the static state.
Preferably, as shown in fig. 4, the detecting unit 3011 includes:
an infrared detection subunit 30111, configured to detect whether the mobile terminal receives a target infrared ray, where the target infrared ray is an infrared ray obtained by reflecting an infrared ray emitted by an infrared module on the mobile terminal by a blocking object;
a distance determining subunit 30112, configured to determine, when the mobile terminal receives the target infrared ray, a distance between a blocking object and the mobile terminal according to an intensity of the target infrared ray;
and the blocking object determining subunit 30113 is configured to determine that a blocking object exists within a preset range of the mobile terminal when a distance between the blocking object and the mobile terminal is within the preset range.
Preferably, as shown in fig. 4, the mobile terminal 300 further includes:
a network detection module 305, configured to detect whether the mobile terminal is connected to a network;
a network connection module 306, configured to open a network connection of the mobile terminal when the mobile terminal is not connected to a network.
Preferably, as shown in fig. 4, the mobile terminal 300 further includes:
a network disconnection module 307, configured to close a network connection of the mobile terminal when the mobile terminal exits the target application or the mobile terminal locks a screen.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
In addition, the mobile terminal 300 according to the embodiment of the present invention associates an application having a code scanning function on the mobile terminal with different fingerprint information in advance, so that when the mobile terminal meets a preset code scanning condition and acquires target fingerprint information, a target application associated with the target fingerprint information is automatically matched, and then a code scanning interface of the target application is entered to execute the code scanning function. Therefore, according to the embodiment of the invention, when the mobile terminal meets the preset code scanning condition, the user directly inputs the fingerprint information, so that the mobile terminal can enter the corresponding code scanning interface, a series of operations such as unlocking the mobile terminal and opening the application are not required, the whole code scanning operation is simple and convenient, and the code scanning operation time is greatly saved.
An embodiment of the present invention further provides a mobile terminal, as shown in fig. 5, the mobile terminal 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to detect whether the mobile terminal meets a preset code scanning condition, and detect whether target fingerprint information is acquired when the mobile terminal meets the preset code scanning condition, so that when the target fingerprint information is acquired, a target application corresponding to the target fingerprint information is determined according to a pre-stored association relationship between fingerprint information and the application, and then a code scanning interface of the target application is entered.
Therefore, the mobile terminal 500 according to the embodiment of the present invention associates the application having the code scanning function on the mobile terminal with different fingerprint information in advance, so that when the mobile terminal meets the preset code scanning condition and acquires the target fingerprint information, the target application associated with the target fingerprint information is automatically matched, and then the mobile terminal enters the code scanning interface of the target application to execute the code scanning function. Therefore, according to the embodiment of the invention, when the mobile terminal meets the preset code scanning condition, the user directly inputs the fingerprint information, so that the mobile terminal can enter the corresponding code scanning interface, a series of operations such as unlocking the mobile terminal and opening the application are not required, the whole code scanning operation is simple and convenient, and the code scanning operation time is greatly saved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the code scanning method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. A code scanning method is applied to a mobile terminal and is characterized by comprising the following steps:
detecting whether the mobile terminal meets a preset code scanning condition or not;
when the mobile terminal meets the preset code scanning condition, detecting whether target fingerprint information is acquired or not;
when the target fingerprint information is acquired, determining a target application corresponding to the target fingerprint information according to a pre-stored association relationship between the fingerprint information and the application;
entering a code scanning interface of the target application;
the step of detecting whether the mobile terminal meets a preset code scanning condition comprises the following steps:
detecting whether the mobile terminal is changed from a motion state to a static state or not, and detecting whether a shelter exists in a preset range of the mobile terminal or not;
when the mobile terminal is changed from a motion state to a static state and a shelter exists in a preset range of the mobile terminal, determining that the mobile terminal meets the preset code scanning condition;
and when the mobile terminal is not changed from the motion state to the static state or no shielding object exists in the preset range of the mobile terminal, determining that the mobile terminal does not meet the preset code scanning condition.
2. The method according to claim 1, wherein the step of detecting whether the obstruction exists in the preset range of the mobile terminal comprises:
detecting whether the mobile terminal receives target infrared rays, wherein the target infrared rays are infrared rays emitted by an infrared module on the mobile terminal and reflected by a shielding object;
when the mobile terminal receives the target infrared ray, determining the distance between a shelter and the mobile terminal according to the intensity of the target infrared ray;
and when the distance between the shielding object and the mobile terminal is within a preset range, determining that the shielding object exists in the preset range of the mobile terminal.
3. The method of claim 1, wherein after the step of entering a code-scanning interface of the target application, the method further comprises:
detecting whether the mobile terminal is connected with a network or not;
and when the mobile terminal is not connected with the network, the network connection of the mobile terminal is opened.
4. The method of claim 3, wherein after the network connection of the mobile terminal is opened, the method further comprises:
and when the mobile terminal exits the target application or the screen of the mobile terminal is locked, closing the network connection of the mobile terminal.
5. A mobile terminal, comprising:
the detection module is used for detecting whether the mobile terminal meets a preset code scanning condition or not;
the fingerprint acquisition module is used for detecting whether target fingerprint information is acquired or not when the mobile terminal meets the preset code scanning condition;
the fingerprint matching module is used for determining a target application corresponding to the target fingerprint information according to the association relationship between the prestored fingerprint information and the application when the target fingerprint information is acquired;
the code scanning processing module is used for entering a code scanning interface of the target application;
the detection module comprises:
the mobile terminal comprises a detection unit and a detection unit, wherein the detection unit is used for detecting whether the mobile terminal is changed from a motion state to a static state or not and detecting whether a shelter exists in a preset range of the mobile terminal or not;
the first determining unit is used for determining that the mobile terminal meets the preset code scanning condition when the mobile terminal is changed from a motion state to a static state and a shelter exists in a preset range of the mobile terminal;
and the second determining unit is used for determining that the mobile terminal does not meet the preset code scanning condition when the mobile terminal is not changed from a motion state to a static state or no shielding object exists in a preset range of the mobile terminal.
6. The mobile terminal according to claim 5, wherein the detecting unit comprises:
the infrared detection subunit is used for detecting whether the mobile terminal receives target infrared rays, wherein the target infrared rays are infrared rays emitted by an infrared module on the mobile terminal and reflected by a shielding object;
the distance determining subunit is used for determining the distance between the shielding object and the mobile terminal according to the intensity of the target infrared ray when the mobile terminal receives the target infrared ray;
and the shelter determining subunit is used for determining that the shelter exists in the preset range of the mobile terminal when the distance between the shelter and the mobile terminal is within the preset range.
7. The mobile terminal of claim 5, wherein the mobile terminal further comprises:
the network detection module is used for detecting whether the mobile terminal is connected with a network or not;
and the network connection module is used for opening the network connection of the mobile terminal when the mobile terminal is not connected with the network.
8. The mobile terminal of claim 7, wherein the mobile terminal further comprises:
and the network disconnection module is used for closing the network connection of the mobile terminal when the mobile terminal exits the target application or the screen of the mobile terminal is locked.
9. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the code scanning method according to any one of claims 1 to 4.
CN201710905806.9A 2017-09-29 2017-09-29 Code scanning method and mobile terminal Active CN107704182B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710905806.9A CN107704182B (en) 2017-09-29 2017-09-29 Code scanning method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710905806.9A CN107704182B (en) 2017-09-29 2017-09-29 Code scanning method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107704182A CN107704182A (en) 2018-02-16
CN107704182B true CN107704182B (en) 2020-03-31

Family

ID=61175613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710905806.9A Active CN107704182B (en) 2017-09-29 2017-09-29 Code scanning method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107704182B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874467A (en) * 2018-06-19 2018-11-23 阿里巴巴集团控股有限公司 A kind of application function starting method, apparatus and equipment
CN109033795B (en) * 2018-07-24 2022-04-22 青岛海信移动通信技术股份有限公司 Method for unlocking terminal with camera and terminal
CN110363036B (en) * 2019-07-17 2021-02-26 珠海格力电器股份有限公司 Code scanning method and device based on wire controller and code scanning system
CN110837328B (en) * 2019-10-28 2021-08-03 维沃移动通信有限公司 Display method and electronic equipment
CN115841281B (en) * 2022-11-07 2023-11-10 宁德时代新能源科技股份有限公司 Material management method, device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528698A (en) * 2016-02-01 2016-04-27 宇龙计算机通信科技(深圳)有限公司 Fast code-scanning payment method and device
CN106095295A (en) * 2016-06-15 2016-11-09 维沃移动通信有限公司 A kind of processing method based on fingerprint recognition and mobile terminal
CN106408290A (en) * 2016-08-26 2017-02-15 维沃移动通信有限公司 Payment interface start method and mobile terminal
CN106445363A (en) * 2016-08-26 2017-02-22 维沃移动通信有限公司 Payment interface startup method and mobile terminal
CN106850943A (en) * 2016-12-07 2017-06-13 努比亚技术有限公司 A kind of apparatus and method for detecting terminal and the distance of shelter
CN106952089A (en) * 2017-02-14 2017-07-14 北京奇虎科技有限公司 A kind of startup method, device and the mobile terminal at payment interface

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105654012A (en) * 2015-12-30 2016-06-08 福建联迪商用设备有限公司 POS code scanning payment method and device
CN106709392B (en) * 2016-11-18 2019-08-09 广东小天才科技有限公司 Two-dimensional code scanning method and mobile terminal
CN106846105B (en) * 2017-01-13 2023-05-16 上海量明科技发展有限公司 Method, client and system for opening shared traffic tool
CN107045682A (en) * 2017-03-23 2017-08-15 努比亚技术有限公司 Mobile terminal and fingerprint method of payment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528698A (en) * 2016-02-01 2016-04-27 宇龙计算机通信科技(深圳)有限公司 Fast code-scanning payment method and device
CN106095295A (en) * 2016-06-15 2016-11-09 维沃移动通信有限公司 A kind of processing method based on fingerprint recognition and mobile terminal
CN106408290A (en) * 2016-08-26 2017-02-15 维沃移动通信有限公司 Payment interface start method and mobile terminal
CN106445363A (en) * 2016-08-26 2017-02-22 维沃移动通信有限公司 Payment interface startup method and mobile terminal
CN106850943A (en) * 2016-12-07 2017-06-13 努比亚技术有限公司 A kind of apparatus and method for detecting terminal and the distance of shelter
CN106952089A (en) * 2017-02-14 2017-07-14 北京奇虎科技有限公司 A kind of startup method, device and the mobile terminal at payment interface

Also Published As

Publication number Publication date
CN107704182A (en) 2018-02-16

Similar Documents

Publication Publication Date Title
CN107704182B (en) Code scanning method and mobile terminal
CN108459797B (en) Control method of folding screen and mobile terminal
CN109078319B (en) Game interface display method and terminal
CN107580147B (en) Management method of notification message and mobile terminal
CN108256853B (en) Payment method and mobile terminal
CN107835286B (en) Method for preventing mistaken unlocking and mobile terminal
CN108256308B (en) Face recognition unlocking control method and mobile terminal
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN109257505B (en) Screen control method and mobile terminal
CN110674662A (en) Scanning method and terminal equipment
CN107682359B (en) Application registration method and mobile terminal
CN109544172B (en) Display method and terminal equipment
CN109523253B (en) Payment method and device
CN108664818B (en) Unlocking control method and device
CN108156537B (en) Remote operation method of mobile terminal and mobile terminal
CN108196663B (en) Face recognition method and mobile terminal
CN111061446A (en) Display method and electronic equipment
CN110837328A (en) Display method and electronic equipment
CN107809515B (en) Display control method and mobile terminal
CN110677537B (en) Note information display method, note information sending method and electronic equipment
CN110225040B (en) Information processing method and terminal equipment
CN109359460B (en) Face recognition method and terminal equipment
CN108810276B (en) Face recognition method and mobile terminal
CN111460537A (en) Method for hiding page content and electronic equipment
CN108495276B (en) Sharing method and device of digital business card

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
GR01 Patent grant
GR01 Patent grant