Disclosure of Invention
The embodiment of the invention aims to provide a pairing method of a mobile terminal, so as to simplify the pairing operation process of the mobile terminal.
The embodiment of the invention is realized in such a way that a pairing method of mobile terminals is applied to a system comprising a first mobile terminal and a second mobile terminal, and is characterized in that the first mobile terminal comprises an infrared transmitter, the second mobile terminal comprises an infrared receiver, and the method comprises the following steps:
after receiving the information for starting the pairing function, the first mobile terminal starts wireless communication function equipment corresponding to the pairing function, and sends a pairing signal to the second mobile terminal through the infrared transmitter, wherein the pairing signal comprises a pairing mode and a unique identifier of the first mobile terminal;
and the second mobile terminal receives the pairing signal through the infrared receiver, starts corresponding wireless communication function equipment according to a pairing mode in the pairing signal, and feeds back connection response information to the mobile terminal corresponding to the unique identifier according to the unique identifier in the pairing signal so as to realize pairing connection.
Another objective of an embodiment of the present invention is to provide a system for pairing mobile terminals, where the system includes a first mobile terminal and a second mobile terminal, and is characterized in that the first mobile terminal includes an infrared transmitter, the second mobile terminal includes an infrared receiver, and the first mobile terminal is configured to, after receiving information for starting a pairing function, turn on a wireless communication function device corresponding to the pairing function, and send a pairing signal to the second mobile terminal through the infrared transmitter, where the pairing signal includes a pairing mode and a unique identifier of the first mobile terminal;
the second mobile terminal is configured to receive the pairing signal through the infrared receiver, start a corresponding wireless communication function device according to a pairing mode in the pairing signal, and feed back connection response information to the mobile terminal corresponding to the unique identifier according to the unique identifier in the pairing signal to implement pairing connection.
Another object of an embodiment of the present invention is to provide a mobile terminal, where the mobile terminal includes an infrared emitter, and the mobile terminal further includes:
the function starting module is used for starting wireless communication function equipment corresponding to the pairing function after receiving the information for starting the pairing function;
the information sending module is used for sending a pairing signal to other mobile terminals through the infrared transmitter, wherein the pairing signal comprises a pairing mode and a unique identifier of the mobile terminal, so that the other mobile terminals receive the pairing signal through the infrared receiver, corresponding wireless communication functional equipment is started according to the pairing mode in the pairing signal, and connection response information is fed back to the mobile terminal corresponding to the unique identifier according to the unique identifier in the pairing signal to realize pairing connection.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: according to the embodiment of the invention, after the first mobile terminal receives the information for starting the pairing function, the wireless communication function equipment corresponding to the pairing function is started, and then the infrared transmitter of the first mobile terminal sends the pairing signal to the infrared receiver of the second mobile terminal to inform the second mobile terminal of starting the wireless communication function equipment corresponding to the pairing function, so that the pairing of the first mobile terminal and the second mobile terminal is completed, the pairing operation process between the mobile terminals is greatly simplified, and the pairing operation efficiency of the mobile terminals is greatly improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
According to the embodiment of the invention, after the first mobile terminal receives the information for starting the pairing function, the wireless communication function equipment corresponding to the pairing function is started, and then the infrared transmitter of the first mobile terminal sends the pairing signal to the infrared receiver of the second mobile terminal to inform the second mobile terminal of starting the wireless communication function equipment corresponding to the pairing function, so that the pairing of the first mobile terminal and the second mobile terminal is completed, the pairing operation process between the mobile terminals is greatly simplified, and the pairing operation efficiency of the mobile terminals is greatly improved.
Fig. 1 shows a system architecture of a pairing system of a mobile terminal provided in an embodiment of the present invention, and for convenience of explanation, only a part related to the embodiment of the present invention is shown.
As shown in fig. 1, the system 00 comprises a first mobile terminal 1 and a second mobile terminal 2, wherein the first mobile terminal 1 comprises an infrared transmitter 11, and the second mobile terminal 2 comprises an infrared receiver 21.
The first mobile terminal 1 and the second mobile terminal 2 include, but are not limited to, a mobile phone, a palm computer, or a tablet computer.
The first mobile terminal 1 is configured to, after receiving information for starting a pairing function, start a wireless communication function device corresponding to the pairing function, and send a pairing signal to the second mobile terminal 2 through the infrared transmitter 11, where the pairing signal includes a pairing mode and a unique identifier of the first mobile terminal 1;
the second mobile terminal 2 is configured to receive the pairing signal through the infrared receiver 21, start a corresponding wireless communication function device according to a pairing mode in the pairing signal, and feed back connection response information to the mobile terminal corresponding to the unique identifier according to the unique identifier in the pairing signal to implement pairing connection.
Preferably, the first mobile terminal 1 is specifically configured to:
after receiving information of starting a pairing function sent by a user through a preset button on a mobile terminal or one or more buttons in the existing buttons, starting wireless communication functional equipment corresponding to the pairing function; or,
after a touch sliding instruction which is sent by a user through a touch screen of the mobile terminal and used for starting a pairing function is received, wireless communication functional equipment corresponding to the pairing function is started.
Preferably, the second mobile terminal 2 is specifically configured to:
receiving the pairing signal through the infrared receiver, analyzing the pairing mode from the pairing signal, starting the wireless communication functional equipment corresponding to the pairing mode, and starting a pairing protocol corresponding to the pairing mode.
Preferably, the pairing means includes any one of: a bluetooth pairing mode, a Near Field Communication (NFC) pairing mode, or a Wireless Fidelity (Wi-Fi) pairing mode.
According to the embodiment of the invention, after the first mobile terminal receives the information for starting the pairing function, the wireless communication function equipment corresponding to the pairing function is started, and then the infrared transmitter of the first mobile terminal sends the pairing signal to the infrared receiver of the second mobile terminal to inform the second mobile terminal of starting the wireless communication function equipment corresponding to the pairing function, so that the pairing of the first mobile terminal and the second mobile terminal is completed, the pairing operation process between the mobile terminals is greatly simplified, and the pairing operation efficiency of the mobile terminals is greatly improved.
It should be noted that, for convenience of description, the system 00, the first mobile terminal 1 and the second mobile terminal 2 in fig. 1 only show portions related to the embodiment of the present invention. However, it should be clear to those skilled in the art that the constituent structures of the system 00, the first mobile terminal 1 and the second mobile terminal 2 in fig. 1 do not constitute limitations thereof, and the system 00, the first mobile terminal 1 and the second mobile terminal 2 in fig. 1 may include more or less components than those illustrated, or combine some components, or arrange different components. For example, the first mobile terminal 1 may include an infrared receiver 12, the second mobile terminal 2 may include an infrared transmitter 22, and the like.
Fig. 2 shows a flowchart of an implementation of a pairing method for a mobile terminal according to an embodiment of the present invention, where the method is applicable to the system shown in fig. 1 and including a first mobile terminal and a second mobile terminal, where the first mobile terminal includes an infrared transmitter, and the second mobile terminal includes an infrared receiver, and the method includes the following steps:
in S201, after receiving the information for starting the pairing function, the first mobile terminal starts a wireless communication function device corresponding to the pairing function, and sends a pairing signal to the second mobile terminal through the infrared transmitter, where the pairing signal includes a pairing mode and a unique identifier of the first mobile terminal.
And after receiving the information for starting the pairing function input by the user, the first mobile terminal starts the corresponding wireless communication function equipment according to the pairing function selected by the user. For example, after receiving information for starting a bluetooth pairing function input by a user, a first mobile terminal starts a bluetooth device; and after receiving the information for starting the NFC pairing function input by the user, the first mobile terminal starts the NFC equipment.
In this embodiment, after the first mobile terminal starts the wireless communication function device corresponding to the pairing function, a pairing signal is generated and modulated by a high-frequency square wave, so that the pairing signal is suitable for infrared transmission, and then the pairing signal is sent to the second mobile terminal by the infrared transmitter.
Wherein the pairing signal comprises a pairing mode and a unique identifier characterizing the first mobile terminal. For example, in the bluetooth pairing, the pairing signal is oxffccaa11, where ox is a hexadecimal start symbol, ffcc indicates that the pairing mode is the bluetooth pairing mode, and aa11 indicates the name or address of the bluetooth device of the first mobile terminal. The first mobile terminal may be uniquely determined by the name or address of the bluetooth device of the first mobile terminal. In practical applications, the pairing signal is much more complicated, which is only a simplified example and is not used to limit the pairing signal of the present embodiment.
In S202, the second mobile terminal receives the pairing signal through the infrared receiver, starts a corresponding wireless communication function device according to a pairing mode in the pairing signal, and feeds back connection response information to the mobile terminal corresponding to the unique identifier according to the unique identifier in the pairing signal to implement pairing connection.
And after the second mobile terminal receives the pairing signal, if the second mobile terminal is paired with the first mobile terminal, the corresponding wireless communication functional equipment is started according to the pairing mode in the pairing signal. The second mobile terminal and the first mobile terminal start the wireless communication function equipment of the same type. For example, the first mobile terminal starts the bluetooth device, and the second mobile terminal determines to start the bluetooth device according to the pairing signal; and the first mobile terminal starts the NFC equipment, and the second mobile terminal judges to start the NFC equipment according to the pairing signal.
And after the second mobile terminal confirms the wireless communication function equipment which is paired with the first mobile terminal and corresponds to the pairing mode, feeding back connection response information to the first mobile terminal so as to inform the first mobile terminal that the data transmission can be started.
In the embodiment of the invention, the operation process of pairing between the two mobile terminals is greatly simplified, and for a user, the pairing operation of the first mobile terminal and the second mobile terminal can be finished only by selecting the pairing function at the first mobile terminal and then determining the pairing at the second mobile terminal, so that the operation efficiency of pairing the mobile terminals is greatly improved.
Optionally, in S201, after receiving the information for starting the pairing function, the starting of the wireless communication function device corresponding to the pairing function by the first mobile terminal includes:
the method comprises the steps that after receiving information for starting a pairing function sent by a user through a preset button on the mobile terminal or one or more existing buttons of the mobile terminal, the first mobile terminal starts wireless communication functional equipment corresponding to the pairing function; or,
and after receiving a touch sliding instruction for starting a pairing function sent by a user through a touch screen of the mobile terminal, the first mobile terminal starts wireless communication functional equipment corresponding to the pairing function.
In practical application, more than 1 pairing button can be added on the screen of the mobile terminal, so that a user can input information for starting a pairing function by selecting the pairing button. For example, a bluetooth pairing button and an NFC pairing button are additionally arranged on a first mobile terminal screen, so that a user inputs information for starting a corresponding pairing function by selecting the bluetooth pairing button or the NFC pairing button. In the embodiment of the present invention, the position of the pairing button is not limited, for example, the pairing button may be located in a pull-down menu bar of the home screen, or may be located in the home screen. The pairing button may be located on the front or side of the mobile terminal as a hardware button, and is not limited herein. For example, the user may input information for starting the bluetooth pairing function by simultaneously pressing the home key and the volume up key, and input information for the NFC pairing function by simultaneously pressing the home key and the volume down key.
As another embodiment of the present invention, information for starting a corresponding pairing function may be input by presetting a touch slide gesture of the touch screen. For example, a clockwise touch of the sliding touch screen indicates that information for starting a bluetooth pairing function is input; and counterclockwise touching the sliding touch screen to represent inputting the information of the NFC pairing function.
Preferably, the unique identifier comprises a name or address of the first mobile terminal.
The name of the first mobile terminal in this embodiment may include a name of the first mobile terminal or a name of a wireless communication function device turned on by the first mobile terminal, which is not limited herein.
The address of the first mobile terminal is generally the address of the wireless communication function device that the first mobile terminal is turned on. Taking the wireless communication function device turned on by the first mobile terminal as a bluetooth device as an example, the address of the first mobile terminal is described. The address of the bluetooth device is divided into three parts: LAP (lower part of 24-bit address), UAP (upper part of 8-bit address) and NAP (16-bit meaningless address part). NAP and UAP are unique identification codes of manufacturers, and must be distributed to different manufacturers by Bluetooth authorities, and LAP is freely distributed from the manufacturers. For a certain model of mobile terminal, all individual NAPs and UAPs are fixed, and variable is LAP. The LAP has 24 bits in total, and a general manufacturer allocates addresses from 0 to 24 times of 2 when manufacturing the bluetooth devices so as to ensure the address difference among the bluetooth devices of each mobile terminal. Therefore, the address of the bluetooth device is unique, and the bluetooth device and thus the mobile terminal can be uniquely determined by the address of the bluetooth device.
Further, in S202, the receiving, by the second mobile terminal, the pairing signal through the infrared receiver, and starting the corresponding wireless communication function device according to the pairing mode in the pairing signal specifically includes:
the second mobile terminal receives the pairing signal through the infrared receiver, analyzes the pairing mode from the pairing signal, starts the wireless communication function equipment corresponding to the pairing mode, and starts a pairing protocol corresponding to the pairing mode.
In the embodiment of the present invention, after receiving the pairing signal, the second mobile terminal analyzes the pairing signal to analyze the pairing mode requested by the first mobile terminal and the name or address of the first mobile terminal. After the second mobile terminal analyzes the pairing mode, the wireless communication functional equipment corresponding to the pairing mode is automatically started without manual operation of a user.
Preferably, the pairing means includes any one of: a Bluetooth pairing mode, a Near Field Communication (NFC) pairing mode or a wireless fidelity (Wi-Fi) pairing mode.
According to the embodiment of the invention, after the first mobile terminal receives the information for starting the pairing function, the wireless communication function equipment corresponding to the pairing function is started, and then the infrared transmitter of the first mobile terminal sends the pairing signal to the infrared receiver of the second mobile terminal to inform the second mobile terminal of starting the wireless communication function equipment corresponding to the pairing function, so that the pairing of the first mobile terminal and the second mobile terminal is completed, the pairing operation process between the mobile terminals is greatly simplified, and the pairing operation efficiency of the mobile terminals is greatly improved.
Fig. 3 shows a block diagram of a mobile terminal according to an embodiment of the present invention, where the mobile terminal includes an infrared transmitter, and the mobile terminal may be applied to the system shown in fig. 1, and for convenience of description, only the part related to this embodiment is shown.
Referring to fig. 3, the mobile terminal includes:
the function starting module 31 starts the wireless communication function device corresponding to the pairing function after receiving the information for starting the pairing function.
The information sending module 32 sends a pairing signal to other mobile terminals through the infrared transmitter, where the pairing signal includes a pairing mode and a unique identifier of the mobile terminal, so that the other mobile terminals receive the pairing signal through the infrared receiver, start corresponding wireless communication function devices according to the pairing mode in the pairing signal, and feed back connection response information to the mobile terminals corresponding to the unique identifier according to the unique identifier in the pairing signal to implement pairing connection.
Further, the function starting module 31 is specifically configured to:
after receiving information of starting a pairing function sent by a user through a preset button on the mobile terminal or one or more buttons in the existing buttons, starting wireless communication functional equipment corresponding to the pairing function; or,
and after a touch sliding instruction for starting the pairing function sent by a user through the touch screen of the mobile terminal is received, starting the wireless communication functional equipment corresponding to the pairing function.
It will be apparent to those skilled in the art that, for convenience and simplicity of description, the foregoing functional units and modules are merely illustrated in terms of division, and in practical applications, the foregoing functional allocation may be performed by different functional units or modules as needed, that is, the internal structure of the mobile terminal is divided into different functional units or modules to perform all or part of the above described functions. Each functional unit in the embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the mobile terminal may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
According to the embodiment of the invention, after the first mobile terminal receives the information for starting the pairing function, the wireless communication function equipment corresponding to the pairing function is started, and then the infrared transmitter of the first mobile terminal sends the pairing signal to the infrared receiver of the second mobile terminal to inform the second mobile terminal of starting the wireless communication function equipment corresponding to the pairing function, so that the pairing of the first mobile terminal and the second mobile terminal is completed, the pairing operation process between the mobile terminals is greatly simplified, and the pairing operation efficiency of the mobile terminals is greatly improved.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.