Method and terminal for establishing a communication connection
Abstract
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.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1. A method for establishing a communication connection, comprising:
sending, by a first terminal, wireless fidelity (Wi-Fi) 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 WI-FI Direct configuration information of the first terminal comprises WI-FI point-to-point (P2P) group information of the first terminal, the WI-FI P2P group information of the first terminal indicating: the first terminal being not a member of an existing WI-FI P2P group, the first terminal being a group owner of an existing WI-FI P2P group to which the first terminal belongs, or the first terminal being a client of an existing WI-FI P2P group to which the first terminal belongs;
receiving, by the first terminal, Wi-Fi 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 WI-FI Direct configuration information of the second terminal comprises WI-FI P2P group information of the second terminal, the WI-FI P2P group information of the second terminal indicating: the second terminal being not a member of an existing WI-FI P2P group, the second terminal being a group owner of an existing WI-FI P2P group to which the second terminal belongs, or the second terminal being a client of an existing WI-FI P2P group to which the second terminal belongs; and
establishing a Wi-Fi WI-FI Direct connection between the first terminal and the second terminal according to the Wi-Fi WI-FI Direct configuration information of the second terminal.
2. The method according to claim 1 , wherein if the first terminal being not a member of an is not the member of the existing WI-FI P2P group and the second terminal being not a member of an is not the member of the existing WI-FI P2P group, wherein the establishing a Wi-Fi the WI-FI Direct connection between the first terminal and the second terminal according to the Wi-Fi WI-FI Direct configuration information of the second terminal comprises: establishing, by the first terminal, the Wi-Fi WI-FI Direct connection with the second terminal according to the Wi-Fi WI-FI Direct configuration information of the second terminal.
3. The method according to claim 1 , wherein if the first terminal being not a member of an is not the member of the existing WI-FI P2P group and the second terminal being a is the group owner of an the existing WI-FI P2P group to which the second terminal belongs, wherein the Wi-Fi the WI-FI Direct configuration information of the second terminal is Wi-Fi WI-FI Direct configuration information of the existing WI-FI P2P group to which the second terminal belongs; the establishing a, and wherein establishing the Wi-Fi Direct connection between the first terminal and the second terminal according to the Wi-Fi Direct configuration information of the second terminal comprises: joining, by the first terminal, the existing WI-FI P2P group to which the second terminal belongs according to the Wi-Fi WI-FI Direct configuration information of the existing WI-FI P2P group.
4. The method according to claim 1 , wherein if the first terminal being not a member of an is not the member of the existing WI-FI P2P group and the second terminal being a client of an is the client of the existing WI-FI P2P group to which the second terminal belongs, wherein the Wi-Fi the WI-FI Direct configuration information of the second terminal further comprises description information of a group owner of the existing group;
the establishing a Wi-Fi WI-FI P2P group, and wherein establishing the WI-FI Direct connection between the first terminal and the second terminal according to the Wi-Fi Direct configuration information of the second terminal comprises: joining, by the first terminal, the existing WI-FI P2P group to which the second terminal belongs according to the Wi-Fi WI-FI Direct configuration information of the existing WI-FI P2P group.
5. The method according to claim 2 , the wherein establishing, by the first terminal, the Wi-Fi WI-FI Direct connection with the second terminal according to the Wi-Fi WI-FI Direct configuration information of the second terminal comprises:
setting, by the first terminal according to the Wi-Fi WI-FI Direct configuration information of the second terminal, the Wi-Fi WI-FI Direct configuration information of a new WI-FI P2P group to be created;
sending, by the first terminal, the Wi-Fi WI-FI Direct configuration information of the new WI-FI P2P group to be created to the second terminal through the NFC connection; and
establishing, by the first terminal, the Wi-Fi WI-FI Direct connection with the second terminal according to the Wi-Fi WI-FI Direct configuration information of the new WI-FI P2P group to be created.
6. The method according to claim 4 , before the wherein before joining, by the first terminal, the existing WI-FI P2P group to which the second terminal belongs according to Wi-Fi the WI-FI Direct configuration information of the existing WI-FI P2P group, the method further comprises:
requesting, by the first terminal, the group owner of the existing WI-FI P2P group for the encryption information in the Wi-Fi WI-FI Direct configuration information of the existing WI-FI P2P group according to the description information of the group owner of the existing WI-FI P2P group; and
receiving, by the first terminal, the encryption information in the Wi-Fi WI-FI Direct configuration information of the existing WI-FI P2P group sent by the group owner.
7. A method for establishing a communication connection, comprising:
receiving, by a second terminal, wireless fidelity (Wi-Fi) WI-FI Direct configuration information of a first terminal from the first terminalthrough a near field communication (NFC) connection between the second terminal and the first terminal, wherein the Wi-Fi WI-FI Direct configuration information of the first terminal comprises WI-FI point-to-point (P2P) group information of the first terminal, the WI-FI P2P group information of the first terminal indicating: the first terminal being not a member of an existing WI-FI P2P group, the first terminal being a group owner of an existing WI-FI P2P group to which the first terminal belongs, or the first terminal being a client of an existing WI-FI P2P group to which the first terminal belongs;
sending, by the second terminal, Wi-Fi WI-FI Direct configuration information of the second terminal to the first terminal through the NFC connection between the second terminal and the first terminal, wherein the Wi-Fi WI-FI Direct configuration information of the second terminal comprises WI-FI P2P group information of the second terminal, the WI-FI P2P group information of the second terminal indicating: the second terminal being not a member of an existing WI-FI P2P group, the second terminal being a group owner of an existing WI-FI P2P group to which the second terminal belongs, or the second terminal being a client of an existing WI-FI P2P group to which the second terminal belongs; and
establishing a Wi-Fi WI-FI Direct connection between the second terminal and the first terminal according to the Wi-Fi WI-FI Direct configuration information of the first terminal.
8. The method according to claim 7 , wherein if the first terminal being not a member of an is not the member of the existing WI-FI P2P group and the second terminal being a group owner of an is the group owner of the existing WI-FI P2P group to which the second terminal belongs, wherein the Wi-Fi the WI-FI Direct configuration information of the second terminal is Wi-Fi the WI-FI Direct configuration information of the existing WI-FI P2P group to which the second terminal belongs.
9. The method according to claim 7 , wherein if the first terminal being not a member of an is not the member of the existing WI-FI P2P group and the second terminal being a client of an is the client of the existing WI-FI P2P group to which the second terminal belongs, wherein the Wi-Fi the WI-FI Direct configuration information of the second terminal further comprises description information of a group owner of the existing WI-FI P2P group.
10. A terminal, wherein the terminal is a first terminal and the terminal comprises:
a memory, configured to store an executable program code; and
at least one processor, configured to run, by reading the executable program code stored in the memory, a program corresponding to the executable program code so as to perform the following steps:
send wireless fidelity (Wi-Fi)sending WI-FI Direct configuration information of the first terminal to a second terminalthrough a near field communication (NFC) connection between the first terminal and the second terminal, wherein the Wi-FiWI-FI Direct configuration information of the first terminal comprises WI-FI point-to-point (P2P) group information of the first terminal, the WI-FI P2P group information of the first terminal indicating: the first terminal being not a member of an existing WI-FI P2P group, the first terminal being a group owner of an existing WI-FI P2P group to which the first terminal belongs, or the first terminal being a client of an existing WI-FI P2P group to which the first terminal belongs;
receive Wi-Fireceiving 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-FiWI-FI Direct configuration information of the second terminal comprises WI-FI P2P group information of the second terminal, the WI-FI P2P group information of the second terminal indicating: the second terminal being not a member of an existing WI-FI P2P group, the second terminal being a group owner of an existing WI-FI P2P group to which the second terminal belongs, or the second terminal being a client of an existing WI-FI P2P group to which the second terminal belongs; and
establish a Wi-Fiestablishing a WI-FI Direct connection between the first terminal and the second terminal according to the Wi-FiWI-FI Direct configuration information of the second terminal.
11. The terminal according to claim 10 , wherein if the first terminal being not a member of an is not the member of the existing WI-FI P2P group and the second terminal being not a member of an is not the member of the existing WI-FI P2P group, wherein the establish a Wi-Fi establishing the WI-FI Direct connection between the first terminal and the second terminal according to the Wi-Fi WI-FI Direct configuration information of the second terminal comprises: establish the Wi-Fi establishing the WI-FI Direct connection with the second terminal according to the Wi-Fi WI-FI Direct configuration information of the second terminal.
12. The terminal according to claim 10 , wherein if the first terminal being not a member of an is not the member of the existing WI-FI P2P group and the second terminal being a group owner of an is the group owner of the existing WI-FI P2P group to which the second terminal belongs, wherein the Wi-Fi the WI-FI Direct configuration information of the second terminal is Wi-Fi WI-FI Direct configuration information of the existing WI-FI P2P group to which the second terminal belongs; the establish a Wi-Fi, and wherein establishing the WI-FI Direct connection between the first terminal and the second terminal according to the Wi-Fi Direct configuration information of the second terminal comprises: join comprises joining the existing WI-FI P2P group to which the second terminal belongs according to the Wi-Fi WI-FI Direct configuration information of the existing WI-FI P2P group.
13. The terminal according to claim 10 , wherein if the first terminal being not a member of an is not the member of the existing WI-FI P2P group and the second terminal being a client of an is the client of the existing WI-FI P2P group to which the second terminal belongs, wherein the Wi-Fi the WI-FI Direct configuration information of the second terminal further comprises description information of a group owner of the existing group; the establish a Wi-Fi WI-FI P2P group, and wherein establishing the WI-FI Direct connection between the first terminal and the second terminal according to the Wi-Fi Direct configuration information of the second terminal comprises: join comprises joining the existing WI-FI P2P group to which the second terminal belongs according to the Wi-Fi Direct configuration information of the existing WI-FI P2P group.
14. The terminal according to claim 11 , the establish the Wi-Fi wherein establishing the WI-FI Direct connection with the second terminal according to the Wi-Fi WI-FI Direct configuration information of the second terminal comprises:
set the Wi-Fisetting the WI-FI Direct configuration information of the a new WI-FI P2P group to be created according to the Wi-Fi WI-FI Direct configuration information of the second terminal;
send the Wi-Fisending the WI-FI Direct configuration information of the new WI-FI P2P group to be created to the second terminalthrough the NFC connection; and
establish the Wi-Fiestablishing the WI-FI Direct connection with the second terminal according to the Wi-FiWI-FI Direct configuration information of the new WI-FI P2P group to be created.
15. The terminal according to claim 13 , before the join wherein before joining the existing WI-FI P2P group to which the second terminal belongs according to Wi-Fi the WI-FI Direct configuration information of the existing WI-FI P2P group, further comprises the steps further comprise:
requestrequesting the group owner of the existing WI-FI P2P group for the encryption information in the Wi-FiWI-FI Direct configuration information of the existing WI-FI P2P group according to the description information of the group owner of the existing WI-FI P2P group; and
receivereceiving the encryption information in the Wi-FiWI-FI Direct configuration information of the existing WI-FI P2P group sent by the group owner.
16. A terminal, wherein the terminal is a second terminal and the terminal comprises:
a memory, configured to store an executable program code; and
at least one processor, configured to run, by reading the executable program code stored in the memory, a program corresponding to the executable program code so as to perform the following steps:
receive wireless fidelity (Wi-Fi)receiving WI-FI Direct configuration information of a first terminal from the first terminal through a near field communication (NFC) connection between the second terminal and the first terminal, wherein the Wi-FiWI-FI Direct configuration information of the first terminal comprises WI-FI point-to-point (P2P) group information of the first terminal, the WI-FI P2P group information of the first terminal indicating: the first terminal being not a member of an existing WI-FI P2P group, the first terminal being a group owner of an existing WI-FI P2P group to which the first terminal belongs, or the first terminal being a client of an existing WI-FI P2P group to which the first terminal belongs;
send Wi-Fisending WI-FI Direct configuration information of the second terminal to the first terminal through the NFC connection between the second terminal and the first terminal, wherein the Wi-Fi Direct configuration information of the second terminal comprises WI-FI P2P group information of the second terminal, the WI-FI P2P group information of the second terminal comprises: the second terminal being not a member of an existing WI-FI P2P group, or the second terminal being a group owner of an existing WI-FI P2P group to which the second terminal belongs, or the second terminal being a client of an existing WI-FI P2P group to which the second terminal belongs; and
establish a Wi-Fiestablishing a WI-FI Direct connection between the second terminal and the first terminal according to the Wi-Fi Direct configuration information of the first terminal.
17. The terminal according to claim 16 , wherein if the first terminal being not a member of an is not the member of the existing WI-FI P2P group and the second terminal being a group owner of an is the group owner of the existing WI-FI P2P group to which the second terminal belongs, wherein the Wi-Fi the WI-FI Direct configuration information of the second terminal is Wi-Fi WI-FI Direct configuration information of the existing WI-FI P2P group to which the second terminal belongs.
18. The terminal according to claim 16 , if the first terminal being not a member of an wherein the first terminal is not the member of the existing WI-FI P2P group and the second terminal being a client of an is the client of the existing WI-FI P2P group to which the second terminal belongs, wherein the Wi-Fi the WI-FI Direct configuration information of the second terminal further comprises description information of a group owner of the existing WI-FI P2P group.
19. A method for establishing a communication connection, comprising:
sending, by a first terminal, WI-FI Direct configuration information of the first terminal to a second terminal, wherein the WI-FI Direct configuration information of the first terminal comprises WI-FI point-to-point (P2P) group information of the first terminal, the WI-FI P2P group information of the first terminal indicating: the first terminal being not a member of any existing WI-FI P2P group, the first terminal being a group owner of an existing WI-FI P2P group to which the first terminal belongs, or the first terminal being a client of an existing WI-FI P2P 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, wherein the WI-FI Direct configuration information of the second terminal comprises WI-FI P2P group information of the second terminal, the WI-FI P2P group information of the second terminal indicating: the second terminal being not a member of any existing WI-FI P2P group, the second terminal being a group owner of an existing WI-FI P2P group to which the second terminal belongs, or the second terminal being a client of an existing WI-FI P2P group to which the second terminal belongs; and determining that both the first terminal and the second terminal are not a member of any existing WI-FI P2P group and, based thereon, establishing, by the first terminal, 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.
20. A method for establishing a communication connection, comprising:
sending, by a first terminal, WI-FI Direct configuration information of the first terminal to a second terminal, wherein the WI-FI Direct configuration information of the first terminal comprises WI-FI point-to-point (P2P) group information of the first terminal, the WI-FI P2P group information of the first terminal indicating: the first terminal being not a member of any existing WI-FI P2P group, the first terminal being a group owner of an existing WI-FI P2P group to which the first terminal belongs, or the first terminal being a client of an existing WI-FI P2P 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, wherein the WI-FI Direct configuration information of the second terminal comprises WI-FI P2P group information of the second terminal, the WI-FI P2P group information of the second terminal indicating: the second terminal being not a member of any existing WI-FI P2P group, the second terminal being a group owner of an existing WI-FI P2P group to which the second terminal belongs, or the second terminal being a client of an existing WI-FI P2P group to which the second terminal belongs; and determining that the first terminal is not a member of any existing WI-FI P2P group and the second terminal is a group owner of the existing WI-FI P2P group to which the second terminal belongs and, based thereon, joining, by the first terminal, the existing WI-FI P2P group to which the second terminal belongs.
21. A method for establishing a communication connection, comprising:
sending, by a first terminal, WI-FI Direct configuration information of the first terminal to a second terminal, wherein the WI-FI Direct configuration information of the first terminal comprises WI-FI point-to-point (P2) group information of the first terminal, the WI-FI P2P group information of the first terminal indicating: the first terminal being not a member of any existing WI-FI P2P group, the first terminal being a group owner of an existing WI-FI P2P group to which the first terminal belongs, or the first terminal being a client of an existing WI-FI P2P 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, wherein the WI-FI Direct configuration information of the second terminal comprises WI-FI P2P group information of the second terminal, the WI-FI P2P group information of the second terminal indicating: the second terminal being not a member of any existing WI-FI P2P group, the second terminal being a group owner of an existing WI-FI P2P group to which the second terminal belongs, or the second terminal being a client of an existing WI-FI P2P group to which the second terminal belongs; and determining that the first terminal is not a member of any existing WI-FI P2P group and the second terminal is a group client of the existing WI-FI P2P group to which the second terminal belongs and, based thereon,
obtaining, by the first terminal, description information of the existing WI-FI P2P group to which the second terminal belongs comprised in the Wi-Fi Direct configuration information of the second terminal;
obtaining, by the first terminal, a group owner of the existing WI-FI P2P group to which the second terminal belongs according to the description information of the existing WI-FI P2P group to which the second terminal belongs; and
joining, by the first terminal, the existing WI-FI P2P group to which the second terminal belongs.
22. The method according to claim 19, wherein establishing, by the first terminal, the WI-FI Direct connection with the second terminal according to the WI-FI Direct configuration information of the second terminal comprises:
setting, by the first terminal according to the WI-FI Direct configuration information of the second terminal, WI-FI Direct configuration information of a new WI-FI P2P group to be created; sending, by the first terminal, the WI-FI Direct configuration information of the new WI-FI P2P group to be created to the second terminal; and establishing, by the first terminal, the WI-FI Direct connection with the second terminal according to the WI-FI Direct configuration information of the new WI-FI P2P group to be created.
23. The method according to claim 21, wherein before joining, by the first terminal, the existing WI-FI P2P group to which the second terminal belongs, the method further comprises:
requesting, by the first terminal, the group owner of the existing WI-FI P2P group to which the second terminal belongs for encryption information; and receiving, by the first terminal, the encryption information from the group owner of the existing WI-FI P2P group to which the second terminal belongs.
24. A terminal, comprising:
a memory configured to store an executable program code; and at least one processor configured to run, by reading the executable program code stored in the memory, a program corresponding to the executable program code so as to perform the following steps:
sending WI-FI Direct configuration information of the terminal to another terminal, wherein the WI-FI Direct configuration information of the terminal comprises WI-FI point-to-point (P2P) group information of the terminal, the WI-FI P2P group information of the terminal indicating: the terminal being not a member of any existing WI-FI P2P group, the terminal being a group owner of an existing WI-FI P2P group to which the terminal belongs, or the terminal being a client of an existing WI-FI P2P group to which the terminal belongs;
receiving WI-FI Direct configuration information of the other terminal from the other terminal, wherein the WI-FI Direct configuration information of the other terminal comprises WI-FI P2P group information of the other terminal, the WI-FI P2P group information of the other terminal indicating: the other terminal being not a member of any existing WI-FI P2P group, the other terminal being a group owner of an existing WI-FI P2P group to which the other terminal belongs, or the other terminal being a client of an existing WI-FI P2P group to which the other terminal belongs; and
determining that both the terminal and the other terminal are not a member of any existing WI-FI P2P group and, based thereon, establish a WI-FI Direct connection between the terminal and the other terminal according to the WI-FI Direct configuration information of the other terminal.
25. A terminal, comprising:
a memory, configured to store an executable program code; and at least one processor, configured to run, by reading the executable program code stored in the memory, a program corresponding to the executable program code so as to perform the following steps:
sending WI-FI Direct configuration information of the terminal to another terminal, wherein the WI-FI Direct configuration information of the terminal comprises WI-FI point-to-point (P2P) group information of the terminal, the WI-FI P2P group information of the terminal indicating: the terminal being not a member of any existing WI-FI P2P group, the terminal being a group owner of an existing WI-FI P2P group to which the terminal belongs, or the terminal being a client of an existing WI-FI P2P group to which the terminal belongs;
receiving WI-FI Direct configuration information of the other terminal from the other terminal, wherein the WI-FI Direct configuration information of the other terminal comprises WI-FI P2P group information of the other terminal, the WI-FI P2P group information of the other terminal indicating: the other terminal being not a member of any existing WI-FI P2P group, the other terminal being a group owner of an existing WI-FI P2P group to which the other terminal belongs, or the other terminal being a client of an existing WI-FI P2P group to which the other terminal belongs; and
determining that the terminal is not a member of any existing WI-FI P2P group and the other terminal is a group owner of the existing WI-FI P2P group to which the other terminal belongs and, based thereon, joining the existing WI-FI P2P group to which the other terminal belongs.
26. A terminal, comprising:
a memory configured to store an executable program code; and at least one processor configured to run, by reading the executable program code stored in the memory, a program corresponding to the executable program code so as to perform the following steps:
sending WI-FI Direct configuration information of the terminal to another terminal, wherein the WI-FI Direct configuration information of the terminal comprises WI-FI point-to-point (P2P) group information of the terminal, the WI-FI P2P group information of the terminal indicating: the terminal being not a member of any existing WI-FI P2P group, the terminal being a group owner of an existing WI-FI P2P group to which the terminal belongs, or the terminal being a client of an existing WI-FI P2P group to which the terminal belongs;
receiving WI-FI Direct configuration information of the other terminal from the other terminal, wherein the WI-FI Direct configuration information of the other terminal comprises WI-FI P2P group information of the other terminal, the WI-FI P2P group information of the other terminal indicating: the other terminal being not a member of any existing WI-FI P2P group, the other terminal being a group owner of an existing WI-FI P2P group to which the other terminal belongs, or the other terminal being a client of an existing WI-FI P2P group to which the other terminal belongs;
determining that the terminal is not a member of any existing WI-FI P2P group and the other terminal is a group client of the existing WI-FI P2P group to which the other terminal belongs and, based thereon,
obtaining description information of the existing WI-FI P2P group to which the other terminal belongs comprised in the WI-FI Direct configuration information of the other terminal;
obtaining a group owner of the existing WI-FI P2P group to which the other terminal belongs according to the description information of the existing WI-FI P2P group to which the other terminal belongs; and
joining the existing WI-FI P2P group to which the other terminal belongs.
27. The terminal according to claim 24, wherein establishing the WI-FI Direct connection with the other terminal according to the Wi-Fi Direct configuration information of the other terminal comprises:
setting WI-FI Direct configuration information of a new WI-FI P2P group to be created according to the WI-FI Direct configuration information of the other terminal; sending the WI-FI Direct configuration information of the new WI-FI P2P group to be created to the other terminal through; and establishing the Wi-Fi Direct connection with the other terminal according to the WI-FI Direct configuration information of the new WI-FI P2P group to be created.
28. The terminal according to claim 26, wherein before joining the existing WI-FI P2P group to which the other terminal belongs according to WI-FI Direct configuration information of the existing WI-FI P2P group, the at least one processor is further configured to perform the following steps:
requesting the group owner of the existing WI-FI P2P group to which the other terminal belongs for encryption information; and receiving the encryption information from the group owner of the existing WI-FI P2P group to which the other terminal belongs.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.