CN110062412B - Wireless pairing method, system, storage medium and mobile terminal - Google Patents

Wireless pairing method, system, storage medium and mobile terminal Download PDF

Info

Publication number
CN110062412B
CN110062412B CN201910280726.8A CN201910280726A CN110062412B CN 110062412 B CN110062412 B CN 110062412B CN 201910280726 A CN201910280726 A CN 201910280726A CN 110062412 B CN110062412 B CN 110062412B
Authority
CN
China
Prior art keywords
power
wireless
wireless signals
information
mobile terminal
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
CN201910280726.8A
Other languages
Chinese (zh)
Other versions
CN110062412A (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.)
Xiamen Jiupin Sesame Information Technology Co ltd
Original Assignee
Huizhou TCL 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201910280726.8A priority Critical patent/CN110062412B/en
Publication of CN110062412A publication Critical patent/CN110062412A/en
Application granted granted Critical
Publication of CN110062412B publication Critical patent/CN110062412B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a wireless pairing method, a system, a storage medium and a mobile terminal, comprising: acquiring power of a plurality of wireless signals; determining information to be paired according to the power of the wireless signals; acquiring preset pairing information, and detecting whether the information to be paired is the same as the preset pairing information; and if so, determining that the mobile terminal is successfully paired with the target equipment. The two mobile devices can be paired quickly, and the connection establishment speed is improved.

Description

Wireless pairing method, system, storage medium and mobile terminal
Technical Field
The present application relates to the field of communications, and in particular, to a wireless pairing method, system, storage medium, and mobile terminal.
Background
In recent years, with the development of science and technology and the improvement of requirements of people on living quality, wired transmission methods cause complicated wiring and poor convenience to users, and therefore wireless transmission is adopted, wherein users use the most widely-used bluetooth transmission.
In the prior art, when two mobile devices establish bluetooth connection, a user needs to input verification information such as PIN codes or passwords of the mobile devices, and the user needs to perform a large number of clicking operations on the mobile devices, and the connection establishment method is complicated.
Therefore, the prior art has defects and needs to be improved urgently.
Disclosure of Invention
The embodiment of the application provides a wireless pairing method, which can be used for quickly pairing two mobile devices and improving the connection establishment rate.
The embodiment of the application provides a wireless pairing method, which is applied to a mobile terminal comprising a timer and a wireless transmission device, and comprises the following steps:
acquiring power of a plurality of wireless signals;
determining information to be paired according to the power of the wireless signals;
acquiring preset pairing information, and detecting whether the information to be paired is the same as the preset pairing information;
and if so, determining that the mobile terminal is successfully paired with the target equipment.
In the wireless pairing method, the step of obtaining the power of the plurality of wireless signals includes:
when a wireless matching instruction is received, monitoring the power of a wireless signal sent by the wireless transmission device;
when the power of the wireless signals sent by the wireless transmission device is monitored to be larger than a first preset threshold value, the power of the wireless signals sent by the wireless transmission device is obtained according to a time sequence and a preset time interval.
In the wireless pairing method of the present application, after the step of obtaining the powers of the plurality of wireless signals sent by the wireless transmission device according to the time sequence and the preset time interval when it is monitored that the power of the wireless signal sent by the wireless transmission device is greater than a first preset threshold, the method further includes:
judging whether the power of the plurality of wireless signals is smaller than a second preset threshold value or not;
and if the power of the plurality of wireless signals is smaller than the second preset threshold value, stopping obtaining the power of the plurality of wireless signals.
In the wireless pairing method of the present application, the step of determining information to be paired according to the powers of the plurality of wireless signals includes:
arranging the power of the plurality of wireless signals according to the acquired time sequence to obtain a power set;
determining the difference value of the power of every two adjacent wireless signals in the power set to obtain a plurality of difference values;
and determining the information to be paired according to the plurality of difference values.
In the wireless pairing method of the present application, the step of arranging the powers of the plurality of wireless signals according to the acquired time sequence to obtain a power set includes:
starting the timer, marking the power of the plurality of wireless signals, and obtaining the marked power of the plurality of wireless signals;
and obtaining the power set according to the power of the marked wireless signals.
In the wireless pairing method of the present application, after the step of stopping obtaining the power of the plurality of wireless signals if the power of the plurality of wireless signals is smaller than the second preset threshold, the method further includes:
turning off the timer and terminating the marking of the power of the plurality of wireless signals.
An embodiment of the present application further provides a wireless pairing system, including:
the device comprises an acquisition module, a power acquisition module and a power control module, wherein the acquisition module is used for acquiring the power of a plurality of wireless signals;
the determining module is used for determining the information to be paired according to the power of the plurality of wireless signals;
the detection module is used for acquiring preset pairing information and detecting whether the information to be paired is the same as the preset pairing information;
and the pairing module is used for determining that the mobile terminal and the target equipment are successfully paired if the information to be paired is the same as the preset pairing information.
In the wireless pairing system described herein, the determining module is configured to:
arranging the power of the plurality of wireless signals according to the acquired time sequence to obtain a power set;
determining the difference value of the power of every two adjacent wireless signals in the power set to obtain a plurality of difference values;
and determining the information to be paired according to the plurality of difference values.
An embodiment of the present application further provides a storage medium, where a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the wireless pairing method as described above.
An embodiment of the present application further provides a mobile terminal, where the mobile terminal includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the wireless pairing method described above by calling the computer program stored in the memory.
The wireless pairing method provided by the embodiment of the application comprises the following steps: acquiring power of a plurality of wireless signals; determining information to be paired according to the power of the wireless signals; acquiring preset pairing information, and detecting whether the information to be paired is the same as the preset pairing information; and if so, determining that the mobile terminal is successfully paired with the target equipment. The two mobile devices can be paired quickly, and the connection establishment speed is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a first flowchart of a wireless pairing method according to an embodiment of the present disclosure.
Fig. 2 is a second flowchart of a wireless pairing method according to an embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of a wireless pairing system according to an embodiment of the present application.
Fig. 4 is a specific structural block diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. 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 application.
In the prior art, the smart watch is used more and more, because the screen of smart watch is often less, therefore its demonstration content is limited, often need rely on and pass through the bluetooth with mobile terminal and be connected, then the important content that the smart watch will need to show shows through mobile terminal. In the prior art, all send display content for mobile terminal by intelligent wrist-watch, then show relevant content by mobile terminal, for example, intelligent wrist-watch detects human rhythm of the heart, and intelligent wrist-watch sends the rhythm of the heart data to mobile terminal through the bluetooth connection, finally shows human rhythm of the heart data on the screen by mobile terminal through certain processing. Based on the above, be limited by the screen of intelligent wrist-watch, intelligent wrist-watch first need establish with mobile terminal and be connected, and establish the connection process and often need more setting, and it is too complicated loaded down with trivial details especially to the live hand, the misoperation's condition can appear even.
Referring to fig. 1, fig. 1 is a first flowchart illustrating a wireless pairing method according to an embodiment of the present disclosure.
The method comprises the following steps:
step 101, obtaining power of a plurality of wireless signals.
It is understood that the power of the plurality of wireless signals obtained here is a bluetooth signal transmitted by the target device, for example: the user uses the mobile phone to carry out Bluetooth pairing with the smart watch, wherein the smart watch is the target device, and the target device can continuously send Bluetooth signals to the outside so as to be acquired by the mobile terminal of the user.
And step 102, determining information to be paired according to the power of the plurality of wireless signals.
It is understood that the power of the plurality of wireless signals acquired here may be an aggregate or an array, for example: { bluetooths [1 ]; bluetooths [2 ]; bluetooths [3 ]; bluetooths [4] } or { 1; 0.8; 1.2; 1.4; 0.6, the determining the information to be paired according to the powers of the plurality of wireless signals refers to performing corresponding operation on the power of each wireless signal in a set formed by the powers of the plurality of wireless signals to obtain the information to be paired.
103, acquiring preset pairing information, detecting whether the information to be paired is the same as the preset pairing information, and if so, executing step 104,
Specifically, the preset pairing information refers to that when the bluetooth matching is performed between the user mobile terminal and the target device for the first time, according to the preset pairing information acquired in step 101, step 102, and step 103, the preset pairing information may be stored in a storage area of the mobile terminal, so that the preset pairing information is called in the subsequent comparison. In the subsequent pairing process, the acquired information to be paired can be compared with the preset pairing information.
And step 104, if the two are the same, determining that the mobile terminal and the target device are successfully paired.
It can be understood that, when the information to be paired is the same as the preset pairing information in step 103, the mobile terminal establishes a connection with the target device, and the pairing is successful.
The wireless pairing method provided by the embodiment of the application comprises the following steps: acquiring power of a plurality of wireless signals; determining information to be paired according to the power of the wireless signals; acquiring preset pairing information, and detecting whether the information to be paired is the same as the preset pairing information; and if so, determining that the mobile terminal is successfully paired with the target equipment. The two mobile devices can be paired quickly, and the connection establishment speed is improved.
Referring to fig. 2, fig. 2 is a second flowchart illustrating a wireless pairing method according to an embodiment of the present disclosure.
The method comprises the following steps:
step 201, when receiving a wireless matching instruction, monitoring the power of a wireless signal sent by a wireless transmission device.
The wireless matching instruction refers to a function of opening a bluetooth or a wireless network and the like on the mobile terminal, and the user can click a screen or a physical key to open the bluetooth or the wireless network and the like. And when the mobile terminal receives the wireless matching instruction, the power of a wireless signal sent by a wireless transmission device of the mobile terminal within a certain range is monitored in real time. The range size here may be a transmission range of a bluetooth signal or a transmission range of a wireless network, and is not limited herein.
Step 202, when it is monitored that the power of the wireless signal sent by the wireless transmission device is greater than a first preset threshold, the power of a plurality of wireless signals sent by the wireless transmission device is obtained according to the time sequence and a preset time interval.
Specifically, in order to enable the terminal to obtain a stable bluetooth signal or a stable wireless network signal, a voltage threshold VTH1, that is, a first preset threshold, may be set, and when it is monitored that the power of the wireless signal sent by the wireless transmission device is greater than VTH1, the power of the wireless signals sent by the wireless transmission device is obtained according to a time sequence and a preset time interval. Here, the time sequence refers to the time sequence, and the preset time interval refers to the time interval at which the mobile terminal obtains the power of the wireless signal once, for example: the power of the wireless signal is acquired every 2 seconds. The first predetermined threshold is preferably 0.8 millivolts (mV).
Step 203, starting a timer, marking the power of the plurality of wireless signals to obtain the marked power of the plurality of wireless signals, and executing step 204.
It is understood that, the starting of the timer is to mark the powers of the plurality of wireless signals acquired according to the time sequence and the preset time interval, so as to obtain the marked powers of the plurality of wireless signals, so as to facilitate subsequent processing of the powers of the plurality of wireless signals.
Step 204, obtaining a power set according to the marked powers of the plurality of wireless signals, and after obtaining the power set, executing step 205.
Here, obtaining the power set according to the marked powers of the plurality of wireless signals means that the powers of the plurality of wireless signals obtained after the timer is marked are grouped into a set or an array, for example: { bluetooths [1 ]; bluetooths [2 ]; bluetooths [3 ]; bluetooths [4] … bluetooths [ i ]; bluetooths [ i +1] } or {1[1 ]; 0.8 < 2 >; 1.2[3 ]; 1.4[4 ]; 0.6[5] }; here, the numerical symbol such as "[ 1 ]" is a mark of the power of the plurality of radio signals by the timer.
Step 205, determining a difference between the powers of every two adjacent wireless signals in the power set, so as to obtain a plurality of differences. After obtaining the plurality of difference values, step 206 is performed.
It can be understood that, according to the flag of the timer on the acquired power of the wireless signal, two adjacent wireless signals in the power set are differentiated to obtain a plurality of difference values, for example: reduce [1] ═ bluetooth [2] -bluetooth [1 ]; reduce [ i ] ═ bluetooth [ i +1] -bluetooth [ i ], which is obtained by subtracting the former from the latter in the power set, or which is obtained by subtracting the latter from the former in the power set, for example: reduce [1] ═ bluetooth [1] -bluetooth [2 ]; (ii) a reduce [ i ] ═ bluetooth [ i ] -bluetooth [ i +1 ].
And step 206, determining the information to be paired according to the plurality of difference values.
Specifically, the plurality of differences obtained in step 205 are recombined in a time sequence or a label to obtain a new set or array, for example: { reduce [1] ═ bluetooth [2] -bluetooth [1 ]; …, respectively; reduce [ i ] } or reduce [1] } blue [1] -blue [2 ]; …, respectively; reduce [ i ] ═ bluetooth [ i ] -bluetooth [ i +1] }.
Wherein after step 203, comprising: step 207, determining whether the power of the plurality of wireless signals is less than a second preset threshold. If so, go to step 208.
Specifically, in order to enable the terminal to obtain a stable bluetooth signal or a stable wireless network signal, a voltage threshold VTH2, i.e. a second preset threshold, may be set, and when it is detected that the power of the wireless signal sent by the wireless transmission device is smaller than the second preset threshold, step 208 is executed. The second preset threshold here is preferably 0.5 mA.
In step 208, the timer is turned off and the power flags for the plurality of wireless signals are terminated.
And when the power of the wireless signal sent by the wireless transmission device is monitored to be smaller than a second preset threshold value, the mobile terminal closes the timer and terminates the power marking of the plurality of wireless signals. The flag value of the timer is set to "0".
In step 209, the acquisition of the power of the plurality of wireless signals is stopped.
It is understood that, after the power of the wireless signal sent by the wireless transmission device is judged to be less than the second preset threshold, the mobile terminal does not continue to obtain the power of the plurality of wireless signals.
Step 210, obtaining preset pairing information, detecting whether the information to be paired is the same as the preset pairing information, and if so, executing step 211.
It can be understood that the preset pairing information herein refers to the preset pairing information obtained in steps 201 to 209 when the mobile terminal and the target device are wirelessly paired for the first time, and the mobile terminal may store the obtained preset pairing information in a memory, so as to subsequently call out the information to be paired and the preset pairing information for checking when detecting whether the information to be paired and the preset pairing information are the same.
And step 211, determining that the mobile terminal is successfully paired with the target device.
It can be understood that, here, when the information to be paired is detected to be the same as the preset pairing information, it is determined that the mobile terminal and the target device are successfully paired, and then the mobile terminal may establish a connection with the target device.
The wireless pairing method provided by the embodiment of the application comprises the following steps: when a wireless matching instruction is received, monitoring the power of a wireless signal sent by a wireless transmission device; when the power of a wireless signal sent by a wireless transmission device is monitored to be larger than a first preset threshold value, the power of a plurality of wireless signals sent by the wireless transmission device is obtained according to a time sequence and a preset time interval; starting a timer, marking the power of the plurality of wireless signals to obtain the marked power of the plurality of wireless signals; obtaining a power set according to the power of the marked wireless signals; determining the difference value of the power of every two adjacent wireless signals in the power set to obtain a plurality of difference values; determining the information to be paired according to a plurality of difference values; judging whether the power of the plurality of wireless signals is smaller than a second preset threshold value or not; closing a timer and terminating the power marking of the plurality of wireless signals; stopping acquiring the power of the plurality of wireless signals; and acquiring preset pairing information, detecting whether the information to be paired is the same as the preset pairing information, and if so, determining that the mobile terminal and the target equipment are successfully paired. By judging whether the obtained power difference values of the plurality of wireless signals are the same or not, the two mobile devices can be rapidly paired, and the connection establishment rate is improved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a wireless pairing system according to an embodiment of the present disclosure. The wireless pairing system includes: an acquisition module 31, a determination module 32, a detection module 33, and a pairing module 34.
The obtaining module 31 is configured to obtain power of a plurality of wireless signals.
It is understood that the power of the plurality of wireless signals obtained here is a bluetooth signal transmitted by the target device, for example: the user uses the mobile phone to carry out Bluetooth pairing with the smart watch, wherein the smart watch is the target device, the target device can continuously send Bluetooth signals to the outside, and in order to enable the mobile terminal of the user to acquire the Bluetooth signals
A determining module 32, configured to determine information to be paired according to the powers of the multiple wireless signals.
It is understood that the power of the plurality of wireless signals acquired here may be an aggregate or an array, for example: { bluetooths [1 ]; bluetooths [2 ]; bluetooths [3 ]; bluetooths [4] } or { 1; 0.8; 1.2; 1.4; 0.6, the determining the information to be paired according to the powers of the plurality of wireless signals refers to performing corresponding operation on the power of each wireless signal in a set formed by the powers of the plurality of wireless signals to obtain the information to be paired.
The determining module 32 is configured to arrange the powers of the multiple wireless signals according to the acquired time sequence to obtain a power set;
here, obtaining the power set according to the marked powers of the plurality of wireless signals means that the powers of the plurality of wireless signals obtained after the timer is marked are grouped into a set or an array, for example: { bluetooths [1 ]; bluetooths [2 ]; bluetooths [3 ]; bluetooths [4] … bluetooths [ i ]; bluetooths [ i +1] } or {1[1 ]; 0.8 < 2 >; 1.2[3 ]; 1.4[4 ]; 0.6[5] }; here, the numerical symbol such as "[ 1 ]" is a mark of the power of the plurality of radio signals by the timer.
Determining the difference value of the power of every two adjacent wireless signals in the power set to obtain a plurality of difference values;
it can be understood that, according to the flag of the timer on the acquired power of the wireless signal, two adjacent wireless signals in the power set are differentiated to obtain a plurality of difference values, for example: reduce [1] ═ bluetooth [2] -bluetooth [1 ]; reduce [ i ] ═ bluetooth [ i +1] -bluetooth [ i ], which is obtained by subtracting the former from the latter in the power set, or which is obtained by subtracting the latter from the former in the power set, for example: reduce [1] ═ bluetooth [1] -bluetooth [2 ]; (ii) a reduce [ i ] ═ bluetooth [ i ] -bluetooth [ i +1 ].
And determining the information to be paired according to the plurality of difference values.
Specifically, the plurality of differences obtained in step 205 are recombined in a time sequence or a label to obtain a new set or array, for example: { reduce [1] ═ bluetooth [2] -bluetooth [1 ]; …, respectively; reduce [ i ] } or reduce [1] } blue [1] -blue [2 ]; …, respectively; reduce [ i ] ═ bluetooth [ i ] -bluetooth [ i +1] }.
The detecting module 33 is configured to obtain preset pairing information, and detect whether the information to be paired is the same as the preset pairing information.
Specifically, the preset pairing information refers to the collected preset pairing information when the user mobile terminal is firstly matched with the target device through bluetooth, and the preset pairing information can be stored in a storage area of the mobile terminal so as to be called in the subsequent comparison. In the subsequent pairing process, the acquired information to be paired can be compared with the preset pairing information.
A pairing module 34, configured to determine that the mobile terminal and the target device are successfully paired if the information to be paired is the same as the preset pairing information
It can be understood that when the information to be paired is the same as the preset pairing information, the mobile terminal establishes a connection with the target device, and the pairing is successful.
Based on the above method, the present invention further provides a storage medium having a plurality of instructions stored thereon, wherein the instructions are adapted to be loaded by a processor and to perform the wireless pairing method as described above.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Fig. 4 is a specific block diagram of a mobile terminal according to an embodiment of the present invention, where the mobile terminal may be used to implement the wireless pairing method, system, storage medium, and mobile terminal provided in the foregoing embodiments. The mobile terminal 1200 may be a smart phone or a tablet computer.
As shown in fig. 4, the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown), and a power supply 190. Those skilled in the art will appreciate that the mobile terminal 1200 configuration illustrated in fig. 4 is not intended to be limiting of the mobile terminal 1200 and may include more or less components than those illustrated, or some components in combination, or a different arrangement of components. Wherein:
the RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide mail Access (Microwave Access for micro), wimax-1, other suitable short message protocols, and any other suitable Protocol for instant messaging, and may even include those protocols that have not yet been developed.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the wireless pairing method, system, storage medium and mobile terminal in the above embodiments, and the processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120, that is, functions for mutual chip identification are implemented. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 120 may further include memory located remotely from processor 180, which may be connected to mobile terminal 1200 via a network. Examples of the above network include, but are not limited to, the internet, an intranet, a lan, a mobile communication network, and a combination thereof, and the storage 120 may be a storage medium as described above.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means 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 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to the user and various graphic user interfaces of the mobile terminal 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 3, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions. In the above embodiment, the display interface of the mobile terminal may be represented by the display unit 140, and content that associates the current mobile payment information with the current store information may be displayed on the display unit 140 of the mobile terminal 1200, that is, the display content displayed on the display interface may be displayed by the display unit 140.
The mobile terminal 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the mobile terminal 1200 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 1200, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the mobile terminal 1200.
The mobile terminal 1200, through the transmission module 170 (e.g., the wireless network module 1701 or the bluetooth module 1702), may assist the user in e-mail transmission, web browsing, streaming media access, etc., which provides the user with wireless broadband internet access. Although fig. 3 illustrates the transmission module 170, it is understood that it does not belong to the essential constitution of the mobile terminal 1200, and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 180 is a control center of the mobile terminal 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The mobile terminal 1200 also includes a power supply 190 (e.g., a battery) that powers the various components and, in some embodiments, may be logically coupled to the processor 180 via a power management system that may be used to manage charging, discharging, and power consumption management functions. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein.
Specifically, in the present embodiment, the display unit 140 of the mobile terminal 1200 is a touch screen display, and the mobile terminal 1200 further includes a memory 120 and one or more programs, wherein the one or more programs are stored in the memory 120, and the one or more programs configured to be executed by the one or more processors 180 include instructions for:
acquiring power of a plurality of wireless signals;
determining information to be paired according to the power of the wireless signals;
acquiring preset pairing information, and detecting whether the information to be paired is the same as the preset pairing information;
and if so, determining that the mobile terminal is successfully paired with the target equipment.
In some embodiments, the step of obtaining power of a plurality of wireless signals comprises:
when a wireless matching instruction is received, monitoring the power of a wireless signal sent by the wireless transmission device;
when the power of the wireless signals sent by the wireless transmission device is monitored to be larger than a first preset threshold value, the power of the wireless signals sent by the wireless transmission device is obtained according to a time sequence and a preset time interval.
In some embodiments, after the step of obtaining the powers of the plurality of wireless signals sent by the wireless transmission device according to the time sequence and the preset time interval when it is monitored that the power of the wireless signal sent by the wireless transmission device is greater than the first preset threshold, the method further includes:
judging whether the power of the plurality of wireless signals is smaller than a second preset threshold value or not;
and if the power of the plurality of wireless signals is smaller than the second preset threshold value, stopping obtaining the power of the plurality of wireless signals.
In some embodiments, the step of determining information to be paired according to the power of the plurality of wireless signals includes:
arranging the power of the plurality of wireless signals according to the acquired time sequence to obtain a power set;
determining the difference value of the power of every two adjacent wireless signals in the power set to obtain a plurality of difference values;
and determining the information to be paired according to the plurality of difference values.
In some embodiments, the step of arranging the powers of the plurality of wireless signals in the acquired time sequence to obtain a power set includes:
starting the timer, marking the power of the plurality of wireless signals, and obtaining the marked power of the plurality of wireless signals;
and obtaining the power set according to the power of the marked wireless signals.
In some embodiments, after the step of stopping obtaining the power of the plurality of wireless signals if the power of the plurality of wireless signals is smaller than the second preset threshold, the method further includes:
turning off the timer and terminating the marking of the power of the plurality of wireless signals.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The foregoing describes in detail a wireless pairing method, a wireless pairing system, a wireless pairing storage medium, and a mobile terminal provided in the embodiments of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the foregoing embodiments is only used to help understand the technical solution and the core idea of the present application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (7)

1. A wireless pairing method is applied to a mobile terminal comprising a timer and a wireless transmission device, and is characterized by comprising the following steps:
acquiring power of a plurality of wireless signals, specifically comprising: when a wireless matching instruction is received, monitoring the power of a wireless signal sent by the wireless transmission device; when the power of the wireless signals sent by the wireless transmission device is monitored to be larger than a first preset threshold value, the power of a plurality of wireless signals sent by the wireless transmission device is obtained according to a time sequence and a preset time interval;
starting the timer, marking the power of the plurality of wireless signals, and obtaining the marked power of the plurality of wireless signals;
obtaining a power set according to the power of the marked wireless signals;
determining the difference value of the power of every two adjacent wireless signals in the power set to obtain a plurality of difference values;
determining information to be paired according to the plurality of difference values;
acquiring preset pairing information, and detecting whether the information to be paired is the same as the preset pairing information;
and if so, determining that the mobile terminal is successfully paired with the target equipment.
2. The wireless pairing method according to claim 1, wherein after the step of obtaining the powers of the plurality of wireless signals sent by the wireless transmission device according to the time sequence and the preset time interval when it is monitored that the power of the wireless signal sent by the wireless transmission device is greater than the first preset threshold, the method further comprises:
judging whether the power of the plurality of wireless signals is smaller than a second preset threshold value or not;
and if the power of the plurality of wireless signals is smaller than the second preset threshold value, stopping obtaining the power of the plurality of wireless signals.
3. The wireless pairing method according to claim 2, wherein after the step of stopping obtaining the power of the plurality of wireless signals if the power of the plurality of wireless signals is smaller than the second preset threshold, the method further comprises:
turning off the timer and terminating the marking of the power of the plurality of wireless signals.
4. A wireless pairing system, comprising:
the obtaining module is configured to obtain power of a plurality of wireless signals, and specifically includes: when a wireless matching instruction is received, monitoring the power of a wireless signal sent by a wireless transmission device; when the power of the wireless signals sent by the wireless transmission device is monitored to be larger than a first preset threshold value, the power of a plurality of wireless signals sent by the wireless transmission device is obtained according to a time sequence and a preset time interval;
the determining module is used for determining the information to be paired according to the power of the plurality of wireless signals;
the detection module is used for acquiring preset pairing information and detecting whether the information to be paired is the same as the preset pairing information;
and the pairing module is used for determining that the mobile terminal and the target equipment are successfully paired if the information to be paired is the same as the preset pairing information.
5. The wireless pairing system of claim 4, wherein the determining module is configured to:
arranging the power of the plurality of wireless signals according to the acquired time sequence to obtain a power set;
determining the difference value of the power of every two adjacent wireless signals in the power set to obtain a plurality of difference values;
and determining the information to be paired according to the plurality of difference values.
6. A storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the wireless pairing method according to any one of claims 1 to 3.
7. A mobile terminal, characterized in that the mobile terminal comprises a processor and a memory, wherein the memory stores a computer program, and the processor is configured to execute the wireless pairing method according to any one of claims 1 to 3 by calling the computer program stored in the memory.
CN201910280726.8A 2019-04-09 2019-04-09 Wireless pairing method, system, storage medium and mobile terminal Active CN110062412B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910280726.8A CN110062412B (en) 2019-04-09 2019-04-09 Wireless pairing method, system, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910280726.8A CN110062412B (en) 2019-04-09 2019-04-09 Wireless pairing method, system, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN110062412A CN110062412A (en) 2019-07-26
CN110062412B true CN110062412B (en) 2022-01-04

Family

ID=67318797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910280726.8A Active CN110062412B (en) 2019-04-09 2019-04-09 Wireless pairing method, system, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN110062412B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111432387B (en) * 2020-03-31 2024-01-23 河北世纪恒兴电子技术有限公司 Many-to-many switching module, multi-machine wireless communication system and communication method thereof
CN113207087B (en) * 2021-04-27 2022-09-23 上海闻泰信息技术有限公司 Wireless communication device connection method, system, wireless communication device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6424820B1 (en) * 1999-04-02 2002-07-23 Interval Research Corporation Inductively coupled wireless system and method
CN103139885A (en) * 2011-11-29 2013-06-05 中兴通讯股份有限公司 Mobile station power control method and device based on voice services over adaptive multi-user channels on one slot (VAMOS) pairing users
CN104066205A (en) * 2014-07-03 2014-09-24 乐鑫信息科技(上海)有限公司 Device connection method and device connection device based on received signal intensity
CN105187203A (en) * 2015-09-22 2015-12-23 中国科学院信息工程研究所 Shared secret key establishment method between wireless equipment based on receiving signal intensity

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110255413A1 (en) * 2010-04-15 2011-10-20 Mediatek Inc. Communication Apparatus and ID Packet Recognition Method Thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6424820B1 (en) * 1999-04-02 2002-07-23 Interval Research Corporation Inductively coupled wireless system and method
CN103139885A (en) * 2011-11-29 2013-06-05 中兴通讯股份有限公司 Mobile station power control method and device based on voice services over adaptive multi-user channels on one slot (VAMOS) pairing users
CN104066205A (en) * 2014-07-03 2014-09-24 乐鑫信息科技(上海)有限公司 Device connection method and device connection device based on received signal intensity
CN105187203A (en) * 2015-09-22 2015-12-23 中国科学院信息工程研究所 Shared secret key establishment method between wireless equipment based on receiving signal intensity

Also Published As

Publication number Publication date
CN110062412A (en) 2019-07-26

Similar Documents

Publication Publication Date Title
CN106445596B (en) Method and device for managing setting items
WO2018166204A1 (en) Method for controlling fingerprint recognition module, and mobile terminal and storage medium
CN107317918B (en) Parameter setting method and related product
CN110691168B (en) Screen control method and device of mobile terminal and storage medium
CN110062412B (en) Wireless pairing method, system, storage medium and mobile terminal
CN107066374B (en) Data processing method and mobile terminal
CN106484141B (en) The setting method and mobile terminal of threshold value
CN111064847B (en) False touch prevention method and device, storage medium and electronic equipment
CN112199246A (en) Terminal testing method and device, storage medium and mobile terminal
CN109600514B (en) Unlocking control method and device, mobile terminal and storage medium
CN111580911A (en) Operation prompting method and device for terminal, storage medium and terminal
CN108170360B (en) Control method of gesture function and mobile terminal
CN108304709B (en) Face unlocking method and related product
CN108108608B (en) Control method of mobile terminal and mobile terminal
CN106845413B (en) Fingerprint identification method and mobile terminal
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN111355991B (en) Video playing method and device, storage medium and mobile terminal
CN109831770B (en) Pairing method and device of mobile terminal, storage medium and mobile terminal
CN106850985B (en) Control method, device and the mobile terminal of mobile terminal sensor
CN111898542A (en) Display screen control method and device and terminal
CN111399944A (en) Application function starting method and device, storage medium and mobile terminal
CN106909825B (en) Unlocking processing method and device
CN111182141B (en) Method, device and storage medium for acquiring state of terminal device
CN112558808B (en) Unlocking method and device for bang screen, terminal and storage medium
CN109995441B (en) Communication information processing method, device and storage medium

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
TR01 Transfer of patent right

Effective date of registration: 20231213

Address after: 361000 room 4101, No. 131, xinjingdongli, Haicang District, Xiamen City, Fujian Province

Patentee after: Xiamen Jiupin sesame Information Technology Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

TR01 Transfer of patent right