DEVICE-PAIRING METHOD AND SYSTEM THEREFOR
Methods and apparatuses for pairing a terminal with a device are disclosed. According to certain embodiments, the methods may be performed by the terminal. The method may include obtaining a machine-readable code from the device. The methods may also include determining, based on the code, one or more pairing methods for pairing the terminal with the device. The methods may further include performing at least one of the pairing methods.
1 . A method for a terminal to communicate with a device, comprising:
obtaining a machine-readable code from the device;
determining, based on the code, one or more pairing methods for pairing the terminal with the device; and
performing at least one of the pairing methods.
2 . The method of claim 1 , wherein obtaining the code comprises at least one of:
scanning a graphic code displayed on the device;
receiving an audio signal generated by the device; or
receiving the code through near-field communication (NFC).
3 . The method of claim 2 , wherein the graphic code includes at least one of a bar code, a quick response (QR) code, a three-dimensional code, or an augmented reality code.
4 . The method of claim 1 , wherein determining the pairing methods comprises:
decoding the machine-readable code; and
obtaining a recommendation for one or more of the pairing methods.
5 . The method of claim 1 , wherein determining the pairing methods comprises:
decoding the machine-readable code;
obtaining identification information of the device; and
selecting one or more of the pairing methods based on the identification information.
6 . The method of claim 5 , wherein the identification information includes at least one of a serial number, a machine access control (MAC) address, a model number, or a version number of the device.
7 . The method of claim 5 , wherein selecting one or more of the pairing methods comprises:
querying a database to determine features of the device based on the identification information; and
selecting one or more of the pairing methods based on compatibility with the device features.
8 . The method of claim 5 , wherein selecting one or more of the pairing methods comprises:
transmitting the identification information to a server;
receiving, from the server, identification of one or more of the pairing methods based on compatibility with the device features.
9 . The method of claim 5 , wherein selecting one or more of the pairing methods comprises:
transmitting the identification information to a server;
receiving, from the server, identification of one or more of the pairing methods based on success rates of the pairing methods as applied to the device.
10 . The method of claim 1 , wherein performing at least one of the pairing methods comprises:
presenting one or more of the pairing methods to a user of the terminal;
receiving, from the user, a selection of a first pairing method; and
in response to the user input, performing the first pairing method.
11 . The method of claim 1 , wherein:
the pairing methods include at least a first pairing and a second pairing method; and
performing at least one of the pairing methods comprises:
performing the first pairing method; and
after determining that the first pairing method has failed, performing the second pairing method.
12 . A terminal, comprising:
a memory storing instructions; and
a processor configured to execute the instructions to:
obtain a machine-readable code from the device;
determine, based on the code, one or more pairing methods for pairing the terminal with the device; and
perform at least one of the pairing methods.
13 . The terminal of claim 12 , wherein:
the machine-readable code is a quick-response (QR) code; and
the terminal further comprises a camera configured to scan the QR code.
14 . The terminal of claim 12 , wherein the processor is further configured to execute the instructions to:
decode the code; and
obtain a recommendation of one or more of the pairing methods.
15 . The terminal of claim 12 , wherein the processor is further configured to execute the instructions to:
decode the code;
obtain identification information of the device;
query a database to determine features of the device based on the identification information; and
select one or more of the pairing methods based on compatibility with the device features.
16 . The terminal of claim 12 , wherein the processor is further configured to execute the instructions to:
decode the machine-readable code;
obtain identification information of the device;
transmit the identification information to a server; and
receive, from the server, identification of one or more of the pairing methods based on success rates of the pairing methods as applied to the device.
17 . A non-transitory computer-readable storage medium storing instructions that cause a processor of a terminal to perform a method for communicating with a device, the method comprising:
obtaining machine-readable code from the device;
determining, based on the machine-readable code, one or more pairing methods for pairing the terminal with the device; and
performing at least one of the pairing methods.
18 . A method performed by a server, comprising:
receiving, from a terminal, a request to recommend a pairing method for pairing the terminal with a device, the request comprising identification information of the device;
selecting, based on the identification information, a pairing method that is compatible with the device; and
transmitting the selection, to the terminal, as a recommended pairing method.
19 . The method of claim 18 , wherein selecting a pairing method comprises:
querying a database to determine features of the device based on the identification information; and
selecting a pairing method that is compatible with the features of the device.
20 . The method of claim 18 , wherein:
the server stores success rates of a plurality of pairing methods used on the device; and
selecting the pairing method comprises:
selecting the pairing method based on the success rates.
21 . A method performed by a device carrying a machine-readable code, comprising:
receiving from a terminal a command for pairing with the terminal, the command being based on the code and specifying a pairing method; and
performing pairing steps according to the received method.
22 . A system, comprising:
a device carrying a machine-readable code; and
a terminal, comprising:
a memory storing instructions; and
a processor configured to execute the instructions to:
obtain the code from the device;
determine, based on the code, one or more pairing methods for pairing the terminal with the device; and
perform at least one of the pairing methods.