US Pat. No. 10,694,564

BLUETOOTH PAIRING METHOD AND TERMINAL DEVICE

HUAWEIO TECHNOLOGIES CO.,...

1. A Bluetooth pairing method, comprising:receiving, by a terminal device, a first Bluetooth parameter input by a user;
encrypting, by the terminal device, the first Bluetooth parameter to generate first pairing information, wherein the first pairing information comprises a first random number set as a Bluetooth name of the terminal device;
sending, by the terminal device, the first pairing information to a peer device;
receiving, by the terminal device, second pairing information sent by the peer device, wherein the second pairing information is generated by the peer device by performing encryption computation based on a second Bluetooth parameter received by the peer device;
determining, by the terminal device, based on the second pairing information, that the first Bluetooth parameter is the same as the second Bluetooth parameter;
determining, by the peer device, based on the first pairing information, that the first Bluetooth parameter is the same as the second Bluetooth parameter; and
determining, by the terminal device, that the terminal device and the peer device are paired successfully.