摘要 |
A method and a terminal for establishing a communication connection. In an embodiment, the method for establishing a communication connection includes: exchanging, by a first terminal, Wi-Fi Direct configuration information with a second terminal through a near field communication connection between the first terminal and the second terminal, where the exchanged Wi-Fi Direct configuration information includes group information of the first terminal or second terminal; and establishing a Wi-Fi Direct connection between the first terminal and the second terminal according to the exchanged Wi-Fi Direct configuration information. The present invention can simplify a process of establishing a Wi-Fi Direct connection, so that both of two terminals can establish a Wi-Fi Direct connection within an NFC communication range. |
主权项 |
1. A method for establishing a communication connection, comprising:
sending, by a first terminal, wireless fidelity (Wi-Fi) Direct configuration information of the first terminal to a second terminal through a near field communication (NFC) connection between the first terminal and the second terminal, wherein the Wi-Fi Direct configuration information of the first terminal comprises group information of the first terminal, the group information of the first terminal indicating: the first terminal being not a member of an existing group, the first terminal being a group owner of an existing group to which the first terminal belongs, or the first terminal being a client of an existing group to which the first terminal belongs; receiving, by the first terminal, Wi-Fi Direct configuration information of the second terminal from the second terminal through the NFC connection between the first terminal and the second terminal, wherein the Wi-Fi Direct configuration information of the second terminal comprises group information of the second terminal, the group information of the second terminal indicating: the second terminal being not a member of an existing group, the second terminal being a group owner of an existing group to which the second terminal belongs, or the second terminal being a client of an existing group to which the second terminal belongs; and establishing a Wi-Fi Direct connection between the first terminal and the second terminal according to the Wi-Fi Direct configuration information of the second terminal. |