WO2019196253A1 - 一种组网方法及设备 - Google Patents

一种组网方法及设备 Download PDF

Info

Publication number
WO2019196253A1
WO2019196253A1 PCT/CN2018/097288 CN2018097288W WO2019196253A1 WO 2019196253 A1 WO2019196253 A1 WO 2019196253A1 CN 2018097288 W CN2018097288 W CN 2018097288W WO 2019196253 A1 WO2019196253 A1 WO 2019196253A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
network group
access point
network
access
Prior art date
Application number
PCT/CN2018/097288
Other languages
English (en)
French (fr)
Inventor
陈才龙
朱爽
魏万军
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201880044571.1A priority Critical patent/CN110832947B/zh
Publication of WO2019196253A1 publication Critical patent/WO2019196253A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Definitions

  • the embodiments of the present invention relate to the field of communications technologies, and in particular, to a networking method and device.
  • a wireless local area network (WLAN) direct connection protocol is a protocol in a WLAN protocol suite.
  • a WLAN direct connection protocol refers to a device that can easily connect to each other through a WLAN direct connection without requiring an intermediary wireless connection. Entry point.
  • WLAN direct connection network Group
  • the devices that participate in the establishment of the WLAN direct connection group are WLAN direct devices (Devices).
  • the WLAN direct connection negotiation is performed. Select a central device and use the group owner (GO) to establish a WLAN direct connection group.
  • the GC searches for the GO itself and then requests to connect to the GO to join the Group.
  • the users holding each device first manually open the WLAN direct connection function of the device, and then one of the multiple devices establishes a WLAN direct connection group as a GO.
  • the user holding the GC manually operates to search for the GO, and the GC sends a connection request to the GO under the user's operation after searching for the GO.
  • the GO agrees to the GC access under the operation of the user, and thus the multiple devices implement the WLAN direct connection network. It can be seen that the user needs to participate in the establishment of the WLAN direct connection group between multiple devices in the prior art.
  • a WLAN directly connected group between devices is set up in a manual manner, some scenarios such as network anomalies and network conflicts need to be manually resolved. The requirements for users are high.
  • the threshold for product usage based on existing technologies is high. difference.
  • the embodiment of the present invention provides a networking method and device, which are used to solve the problem that the product usage threshold and the user experience are poor according to the manual networking technology existing in the prior art.
  • the embodiment of the present application provides a networking method, including: detecting, by a first terminal, a user requesting a short-distance networking with a target group, where the target group includes a first terminal and at least two The second terminal.
  • the first terminal establishes a short-distance network connection with the second terminal.
  • the first terminal displays an instant communication interface, and the instant communication interface is configured to communicate with a user of the second terminal.
  • the first terminal establishes a short-distance network connection with the second terminal after detecting the operation of the user requesting the short-distance networking with the target group, and the user is required to operate the terminal to search according to the prior art.
  • the connection request is sent to other terminals, and the connection request of other terminals is agreed.
  • the embodiment of the present application can establish a close-range network connection with the second terminal without requiring the user to perform other operations. For example, after three terminals are used as an example, after three terminals respectively detect the operation of the user requesting the short-distance networking, the three terminals automatically establish a short-distance network connection, so that the three terminals can communicate with each other.
  • the user needs to negotiate to determine one of the terminals as the GO, and then the user operates the GO to search for the wireless signals of the other two terminals. After searching for the other two terminals, the user selects the other two terminals by operating on the GO, and sends a request message to the other two terminals by operating the GO to request the other two terminals to access the WLAN Direct technology. GO. After the other two terminals receive the request message sent by the GO, the user needs to perform the operation of WLAN Direct on the terminal, so that the terminal can access the GO based on the WLAN Direct technology.
  • the operations of the user can be reduced, so that the network establishment process can be better implemented without perception to the user.
  • the manual participation resolution can be eliminated, thereby reducing the requirement for users and improving the user experience.
  • the first terminal may automatically establish a close-range network connection with the second terminal.
  • the first terminal can establish a short-distance network connection with the second terminal without the user being aware, so that the user can directly communicate with the network group formed by the second terminal by using the first terminal.
  • the short-range network connection may be one of the following connection modes: Bluetooth connection, near field communication (NFC), wireless local area networks (WLAN) direct connection, Wi-Fi hotspot connection.
  • the first terminal may broadcast a first central point election message and receive a second central point election message broadcast by the second terminal.
  • the first central point election message carries at least one of the following information: the device identity of the first terminal, the networking capability of the first terminal, and the first terminal sending the first center
  • the first central point election message is used to notify the receiving end that the first terminal is in a state to be networked.
  • the second central point election message carries at least one of the following information: the device identity of the second terminal, the networking capability of the second terminal, and the second terminal sending the second central point election
  • the second central point election message is used to notify the receiving end that the second terminal is in a state to be networked.
  • each terminal may determine whether it is an access point according to a central point election message broadcast by other terminals, and determine that the terminal that is the access point creates a message through the broadcast center point, so that other terminals connect to the access point as an access terminal. In this way, the user can operate without networking, so that the network group can be established without the user's perception.
  • the first terminal can create a message through a conventional Bluetooth, or Bluetooth low energy (BLE) broadcast center point.
  • BLE Bluetooth low energy
  • the first terminal after the first terminal establishes a short-distance network connection with the second terminal, the first terminal is an access terminal, and the first terminal may pass the access point and Any one of the second terminals that are the access terminals communicates.
  • the first terminal may receive a third central point created by an access point of the second network group.
  • the third central point creation message is used to notify the receiving end that the terminal that sends the third central point creation message is the access point of the second network group, and the third central point creation message carries the following information.
  • At least one of: a device identity of the access point of the second network group, a networking capability of an access point of the second network group, and the second network group is established for at least two third terminals A network group obtained after a short-distance network connection.
  • the first terminal may determine an access point of the third network group according to the preset rule and the third central point creation message, where the third network group is combined with the second network group and then obtained by the second network group
  • the network group, the first network group is a network group obtained after the first terminal establishes a short-distance network connection with the second terminal. If the access point of the third network group is an access point of the second network group, the first terminal is connected as an access point to an access point of the second network group. If the access point of the third network group is the access point of the first network group, the access point of the second network group serves as an access point to connect to the access point of the first network group. .
  • the first terminal combines with the network and is a network group when receiving a central point creation message broadcasted by an access point of another network group.
  • the first terminal may be in the same group as the access point of the second network group.
  • the first network group and the second network group are merged, thereby improving network security.
  • the first terminal may receive a central point connection message broadcast by an access end of the second network group,
  • the central point connection message is used to notify the receiving end that the terminal that sends the central point connection message has accessed the access point of the second network group, and the central point connection message carries at least one of the following information: a device identity of the access point of the second network group, and a networking capability of the access point of the second network group, where the second network group obtains a short-distance network connection for at least two third terminals Network group.
  • the first terminal may determine an access point of the third network group according to the preset rule and the central point connection message, where the third network group is a network that is combined with the first network group and the second network.
  • the first network group is a network group obtained after the first terminal establishes a short-distance network connection with the second terminal. If the access point of the third network group is an access point of the second network group, the first terminal is connected as an access point to an access point of the second network group. If the access point of the third network group is the access point of the first network group, the access point of the second network group serves as an access point to connect to the access point of the first network group. .
  • the first terminal combines with the network and is a network group when receiving the central point connection message broadcasted by the access end of the other network group.
  • the first terminal may be in the same group as the access end of the second network group.
  • the first network group and the second network group are combined to improve network security.
  • the first terminal before the first terminal is connected as an access point to an access point of the second network group, the first terminal may also obtain an access end of the second network group. Quantity. Determining, by the first terminal, a connection manner of an access point that needs to be connected to the second network group, according to the number of access terminals in the second network group and the number of access terminals in the first network group, The first terminal is connected to the access point of the second network group according to the determined connection manner. In the above, the first terminal determines the access mode of the access point of the second network group according to the access capability of the access point of the second network group, so that the network quality can be better ensured.
  • the first terminal may be connected to the access point of the second network group as a wireless fidelity client WIFI STA, and maintained with the access terminal in the first network group. Internet connection.
  • the first terminal is an access point of the first network group
  • the sum of the number of access terminals in the first network group and the number of access terminals in the second network group is less than or equal to the preset
  • the value may be that the first terminal may connect to the access point of the second network group as a network group client GC, and disconnect the network connection with the access terminal in the first network group.
  • the WLAN directly connects to the access point of the second network group, and the access point of the second network group.
  • the WIFI connection can be used to access the access point of the second network group, thereby reducing the load of the access point of the second network group, thereby ensuring better network quality.
  • the first terminal may send a merge message to the access point of the first network group, where the merge message is used to indicate that the access point of the first network group is used as a WIFI STA.
  • An access point connected to the second network group.
  • the first terminal may connect to the access point of the second network group as a GC, and disconnect the network connection with the access point of the first network group.
  • the access point of the first network group can access the access point of the second network group by using the WLAN direct connection mode when the access point of the access point of the second network group is not exceeded, in the second network.
  • the WIFI connection can be used to access the access point of the second network group, thereby reducing the load of the access point of the second network group, thereby ensuring better network quality.
  • the embodiment of the present application provides a first terminal, including: a processor, configured to detect a user requesting operation of a short-distance networking with a target group, where the target group includes a first terminal and at least Two second terminals; and establishing a close-range network connection with the second terminal. And a display screen, configured to display an instant communication interface for communicating with a user of the second terminal after the transceiver establishes a short-distance network connection with the second terminal.
  • the first terminal may further include a touch screen.
  • the touch screen is configured to trigger an instruction for requesting a short-distance networking with the target group under the operation of the user.
  • the processor may be specifically configured to: receive the instruction triggered by the touch screen when detecting a user requesting a short-distance networking with a target group.
  • the processor may be configured to automatically establish a short-distance network connection with the second terminal when establishing a short-distance network connection with the second terminal.
  • the short-range network connection may be one of the following connection modes: Bluetooth connection, NFC, WLAN direct connection, WLAN hotspot connection.
  • the first terminal may further include a transceiver.
  • the transceiver is configured to broadcast a first central point election message and receive a second central point election message broadcast by the second terminal;
  • the first central point election message may carry at least one of the following information: The device identifier of the first terminal, the networking capability of the first terminal, and the time when the first terminal sends the first central point election message, where the first central point election message is used to notify the receiving end
  • the first terminal is in a state to be networked;
  • the second center point election message may carry at least one of the following information: a device identity of the second terminal, a networking capability of the second terminal, and the The time at which the second terminal sends the second central point election message, where the second central point election message is used to notify the receiving end that the second terminal is in a state to be networked.
  • the processor when establishing a short-distance network connection with the second terminal, may be specifically configured to: determine, according to a preset rule, the second central point election message received by the transceiver, the first terminal Whether it is an access point. If it is determined that it is an access point, the transceiver is further configured to broadcast a first central point creation message, where the second terminal is connected as an access end to the first terminal, and the first central point is used to create a message. The first terminal is an access point at the notification receiving end. If it is determined that it is not an access point, the transceiver may be further configured to receive a second central point creation message broadcast by the access point, where the second central point creation message is used to notify the receiving end to send the second central point.
  • the terminal that creates the message is the access point.
  • the processor may be further configured to, after the transceiver receives the second central point creation message, connect to the access point as an access end, where the target group is apart from the access point.
  • a second terminal other than the access terminal accesses the access point.
  • the transceiver may be configured to pass the access point and any one of the second terminals as the access terminal after the processor establishes a short-distance network connection with the second terminal. Communicate.
  • the transceiver may be configured to receive a second network group after the processor establishes a short-distance network connection with the second terminal.
  • the third central point creation message broadcasted by the access point the third central point creation message is used to notify the receiving end that the terminal that sends the third central point creation message is the access point of the second network group,
  • the third central point creation message carries at least one of the following information: a device identity of the access point of the second network group, a networking capability of an access point of the second network group,
  • the second network group is a network group obtained after establishing a short-distance network connection for at least two third terminals.
  • the processor may be further configured to determine an access point of the third network group according to the preset rule and the third central point creation message received by the transceiver, where the third network group is the first network group And a network group obtained by combining the second network with the second network, where the first network group is a network group obtained by establishing a short-distance network connection between the first terminal and the second terminal. If the access point of the third network group is an access point of the second network group, the processor may be further configured to be used as an access point of the access terminal to connect to the second network group. If the access point of the third network group is the access point of the first network group, the access point of the second network group serves as an access point to connect to the access point of the first network group. .
  • the first terminal is an access terminal.
  • the transceiver may be configured to receive a central point connection message broadcast by an access end of the second network group after the processor establishes a short-distance network connection with the second terminal, where the central point connection message is used
  • the terminal that sends the central point connection message to the receiving end has accessed the access point of the second network group, and the central point connection message carries at least one of the following information: the second network group
  • the device identity of the access point, the networking capability of the access point of the second network group, and the second network group is a network group obtained by establishing a short-distance network connection between at least two third terminals.
  • the processor is further configured to determine an access point of the third network group according to the preset rule and the central point connection message, where the third network group is combined with the second network group and then obtained by the second network group
  • the network group, the first network group is a network group obtained after the first terminal establishes a short-distance network connection with the second terminal. If the access point of the third network group is the access point of the second network group, the processor may be further configured to be used as an access point of the access terminal to connect to the second network group. If the access point of the third network group is the access point of the first network group, the access point of the second network group serves as an access point to connect to the access point of the first network group. .
  • the processor may be further configured to obtain the number of access terminals in the second network group before connecting as an access point to the access point of the second network group, and Determining, according to the number of access terminals in the second network group and the number of access terminals in the first network group, a connection manner of an access point that needs to be connected to the second network group.
  • the processor is configured to: when the access terminal is connected to the access point of the second network group, the first terminal is connected to the access point of the second network group according to the determined connection manner .
  • the processor determines, according to the number of access terminals in the second network group and the number of access terminals in the first network group, when a connection mode of an access point that needs to be connected to the second network group is determined,
  • the method may be specifically configured to: if the sum of the number of the access terminals in the first network group and the number of the access terminals in the second network group is greater than a preset value, connect the WIFI STA as the wireless fidelity client to the first An access point of the second network group and maintaining a network connection with the access terminal in the first network group.
  • the processor determines, according to the number of access terminals in the second network group and the number of access terminals in the first network group, when a connection mode of an access point that needs to be connected to the second network group is determined,
  • the method may be specifically configured to: if the sum of the number of access terminals in the first network group and the number of access terminals in the second network group is greater than a preset value, control the transceiver to the first network group
  • the access point sends a merge message, where the merge message is used to indicate that the access point of the first network group is connected to the access point of the second network group by the WIFI STA.
  • the embodiment of the present application provides a networking apparatus, including: a detecting module, configured to detect a user requesting operation of a short-distance networking with a target group, where the target group includes a first terminal and at least Two second terminals.
  • the network connection module is configured to establish a short-distance network connection with the second terminal after the detecting module detects that the user requests the operation of the short-distance networking with the target group.
  • a display module configured to display an instant communication interface for communicating with a user of the second terminal after the network connection module establishes a short-distance network connection with the second terminal.
  • the network connection module may be specifically configured to: automatically establish a short-distance network connection with the second terminal.
  • the short-range network connection may be one of the following connection modes: Bluetooth connection, NFC, WLAN direct connection, WLAN hotspot connection.
  • the device may also include a transceiver module.
  • the transceiver module is configured to broadcast a first central point election message, where the first central point election message carries at least one of the following information: a device identity of the first terminal, and a networking of the first terminal The capability, the time at which the first terminal sends the first central point election message, the first central point election message is used to notify the receiving end that the first terminal is in a state to be networked.
  • the network connection module may be configured to determine whether the first terminal is an access point according to a preset rule and the second central point election message received by the transceiver module.
  • the transceiver module may be further configured to broadcast a first central point creation message, where the second terminal is connected as an access end to the first terminal, and the first central point creates a message. And the method is used to notify the receiving end that the first terminal is an access point. If it is determined that it is not an access point, the transceiver module may be further configured to receive a second central point creation message broadcast by the access point.
  • the network connection module may be further configured to: after the transceiver module receives the second central point creation message broadcasted by the access point, connect to the access point as an access end, where the target group is removed The second terminal that is not the access point accesses the access point, and the second central point creation message is used to notify the receiving end that the terminal that sends the second central point creation message is the access point.
  • the device may also include a communication module.
  • the communication module is configured to communicate with the second terminal that is an access terminal by using the access point after the network connection module establishes a short-distance network connection with the second terminal.
  • the apparatus may also include a determination module.
  • the transceiver module may be further configured to: after the network connection module establishes a short-distance network connection with the second terminal, receive a third center point creation message broadcast by an access point of the second network group, where the The third central point creation message is used to notify the receiving end that the terminal that sends the third central point creation message is the access point of the second network group, and the third central point creation message carries at least one of the following information: The device identity of the access point of the second network group, and the networking capability of the access point of the second network group, where the second network group establishes a short-distance network connection for at least two third terminals The resulting network group.
  • the determining module is configured to determine an access point of the third network group according to the preset rule and the third central point creation message received by the transceiver module, where the third network group is the first network group and the The second network combines and then obtains a network group, where the first network group is a network group obtained by establishing a short-distance network connection between the first terminal and the second terminal. If the determining module determines that the access point of the third network group is the access point of the second network group, the network connection module may be further configured to connect, by the first terminal, the access terminal to the The access point of the second network group. If the determining module determines that the access point of the third network group is an access point of the first network group, the access point of the second network group is connected as an access end to the first network. Group of access points.
  • the transceiver module may be further configured to receive a center point broadcast by an access end of the second network group after the network connection module establishes a short-distance network connection with the second terminal.
  • a connection message the central point connection message is used to notify the receiving end that the terminal that sends the central point connection message has accessed the access point of the second network group, and the central point connection message carries at least the following information
  • An item a device identity of the access point of the second network group, a networking capability of an access point of the second network group, and a second network group establishing a short-distance network for at least two third terminals The network group obtained after the connection.
  • the determining module may be further configured to determine an access point of the third network group according to the preset rule and the central point connection message received by the transceiver module, where the third network group is the first network group and the The second network combines and then obtains a network group, where the first network group is a network group obtained by establishing a short-distance network connection between the first terminal and the second terminal. If the determining module determines that the access point of the third network group is the access point of the second network group, the network connection module may be further configured to connect to the second network group as an access end. Access point. If the determining module determines that the access point of the third network group is an access point of the first network group, the access point of the second network group is connected as an access end to the first network. Group of access points.
  • the device may also include an acquisition module. And an obtaining module, configured to obtain the number of access terminals in the second network group before the network connection module is connected as an access point to the access point of the second network group.
  • the determining module may be further configured to determine, according to the number of access terminals in the second network group and the number of access terminals in the first network group, a connection that needs to be connected to an access point of the second network group. the way.
  • the network connection module when the access terminal is connected to the access point of the second network group, may be specifically configured to: connect to the access point of the second network group according to the determined connection manner.
  • the method may be specifically configured to: if the sum of the number of the access terminals in the first network group and the number of access terminals in the second network group is greater than a preset value, the wireless fidelity client WIFI The STA is connected to the access point of the second network group and maintains a network connection with the access terminal in the first network group.
  • the determining module when determining the connection mode of the access point that needs to be connected to the second network group, according to the number of the access terminals in the second network group and the number of the access terminals in the first network group, The method may be specifically configured to: if the sum of the number of the access terminals in the first network group and the number of the access terminals in the second network group is greater than a preset value, accessing the first network group by using the transceiver module The point sends a merge message, where the merge message is used to indicate that the access point of the first network group is connected to the access point of the second network group as a WIFI STA.
  • the embodiment of the present application further provides a computer storage medium, where the software program stores a software program, where the software program can implement the first aspect or the first one when being read and executed by one or more processors Any of the aspects provided by the design.
  • an embodiment of the present application provides a computer program product comprising instructions, when executed on a computer, causing a computer to perform the method provided by any one of the above first aspect or the first aspect.
  • FIG. 1 is a schematic structural diagram of a WLAN direct connection group according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart diagram of a networking method according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of an instant messaging interface according to an embodiment of the present application.
  • 4A is a schematic diagram of a network group formed by terminal A, terminal B, terminal C, and terminal D according to an embodiment of the present disclosure
  • FIG. 4B is a schematic diagram of a network group formed by terminal B, terminal C, and terminal D according to an embodiment of the present disclosure
  • 4C is a schematic diagram of a network group formed by terminal A, terminal B, terminal C, and terminal D according to an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of a networking process according to an embodiment of the present application.
  • FIG. 6A is a schematic diagram of a network combination and process according to an embodiment of the present application.
  • FIG. 6B is a schematic diagram of another network combination and process according to an embodiment of the present application.
  • FIG. 7A is a schematic diagram of a merged network group according to an embodiment of the present application.
  • FIG. 7B is a schematic diagram of another merged network group according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a networking device according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of a first terminal according to an embodiment of the present disclosure.
  • the terminal can be used as a wireless router to share the Internet to other terminals with wireless local area networks (WLAN) functions.
  • the first terminal is used as a WiFi access point (WiFi AP) to share the Internet
  • the second terminal having the WLAN function can access the Internet by accessing the first terminal as a WiFi client (WiFi STA).
  • the second terminal can perform Internet browsing, file transmission, and the like through the Internet shared by the first terminal.
  • a terminal that supports the WLAN Direct function can transmit data by using a WLAN direct connection technology to connect to the network.
  • Terminals that support the WLAN Direct function can be connected to each other without having to join the Internet.
  • a terminal that supports the WLAN Direct function can perform a one-to-one connection, or multiple terminals can be connected at the same time.
  • two or more terminals are directly connected by WLAN Direct technology, they can form a WLAN Direct group, that is, a WLAN Direct network group.
  • WLAN Direct group Three components are defined in the basic architecture of the WLAN Direct group: WLAN Direct device, group owner (GO), group client (GC), where WLAN The terminals in the Direct group are WLAN Direct devices, the GO is the terminal as the access point in the WLAN Direct group, and the GC is the terminal in the WLAN Direct group as the access terminal.
  • the user opens the WLAN direct connection function of the terminal, and the terminal sends a wireless signal to the other two terminals, so that the other two terminals can detect the terminal.
  • the terminal After the user holding the three terminals negotiates, one of the terminals is determined as the GO, and the other two terminals are used as the GC.
  • the user then operates the GC to search for the wireless signal of the GO. After searching for the GO, the user requests access to the GO by selecting the GO on the GC and triggering the GC to send a connection request to the GO.
  • the GO After the GO receives the connection request sent by the GC, the user agrees to the GC access by operating the GO, and then the GC accesses the GO based on the WLAN Direct technology after the GO agrees to access.
  • the two GCs access the GO
  • the three terminals form a WLAN Direct group, and the WLAN Direct group can be as shown in FIG.
  • the function of the GO is similar to that of a WLAN access point (AP). Terminals that do not support the WLAN direct connection function can also discover and connect to the GO. These terminal devices are called legacy clients.
  • the terminal has been widely used to implement file sharing in a close-range scenario, but these require manual participation in network formation, and the network establishment process cannot be perceived by the user.
  • the network established by the terminal using the WLAN direct connection technology is temporary, that is, the network is disbanded after the network is not needed to be used, and the network needs to be re-established when the file is shared again.
  • the WLAN Direct group shown in FIG. 1 as an example, after the user turns off the WLAN direct connection function of the three terminals, the WLAN Direct group is dissolved. If the three terminals transmit data to each other again, the above process needs to be repeated to re-establish the WLAN Direct group disbanding, and the user experience is poor.
  • some network construction anomalies and conflict scenarios require manual participation and resolution. The requirements for users are high. The products based on existing technologies have high thresholds for use and poor experience.
  • the embodiment of the present application provides a networking method and device, which are used to solve the problem that the product usage threshold and the user experience are poor based on the manual networking technology existing in the prior art.
  • the method and the device are based on the same inventive concept. Since the principles of the method and the device for solving the problem are similar, the implementation of the device and the method can be referred to each other, and the repeated description is not repeated.
  • the plurality mentioned in the examples of the present application means two or more.
  • the group mentioned in the embodiment of the present application is an upper-level logical relationship, similar to a group of users such as a WeChat group and a QQ group, and terminals in the same group can establish a short-distance network connection with each other.
  • the network group mentioned in the embodiment of the present application is an underlying physical link relationship, and terminals in the same network group can communicate with each other, that is, communication between all nodes in the network group is reachable.
  • FIG. 2 is a flowchart of a networking method provided by an embodiment of the present application.
  • the method can be used in a terminal supporting WLAN Direct function, and the terminal can be a laptop, a tablet, a smart phone, a modern printer, a wireless mouse, a wireless keyboard, a remote controller, a speaker, a television, a display, a camera, a scanner, and music. Equipment, etc.
  • the networking method includes:
  • the first terminal detects an operation of the user requesting a short-distance networking with the target group, where the target group includes the first terminal and the at least two second terminals.
  • the user can request a close-range networking with the target group by starting an application (application, APP) for the short-distance networking on the first terminal, or can also request and target the group by opening the short-distance networking function of the first terminal. Group close network.
  • the user may perform a preset gesture request and a target group close-range networking on the first terminal, such as double-clicking the touch screen of the first terminal, pressing a specific physical key on the first terminal, and at the first terminal.
  • the touch screen draws a circle with the knuckles and so on.
  • the user can perform other operations on the first terminal to request a short-distance networking with the target group.
  • the embodiment of the present application does not specifically limit the operation behavior of the user.
  • the target group may be pre-established for the first terminal and the users of the at least two second terminals.
  • the first terminal may create a group under the operation of the user, and then invite the second terminal to join the group.
  • the first terminal may send a network link inviting to join the group to the second terminal, and the second terminal clicks the network after receiving the network link sent by the first terminal. Link to join the group.
  • the first terminal may also send a second-dimensional code that invites to join the group to the second terminal, and the second terminal joins the group by scanning the two-dimensional code after receiving the two-dimensional code sent by the first terminal.
  • the first terminal may also present a two-dimensional code that invites to join the group to the second terminal, and the second terminal joins the group by scanning the two-dimensional code.
  • the first terminal may also send the group name to the second terminal, or the user holding the first terminal may spoof the group name to the user holding the second terminal, and the user searches for the second terminal. Apply for the group name after joining the group name.
  • the first terminal may also invite the second terminal to join the group by using other methods, which is not repeatedly described herein.
  • the terminal that creates the group may also be any second terminal. The embodiment of the present application is only described by taking the first terminal as an example.
  • the target group may also be configured by the first terminal and the at least two second terminals by detecting surrounding devices, such as the first terminal and the at least two second terminals respectively searching for devices existing around, in the first and at least two
  • the two terminals automatically form a group after detecting each other.
  • the first terminal and the at least two second terminals can respectively turn on the Bluetooth function, and then search for the surrounding Bluetooth devices.
  • the first terminal and the at least two second terminals may also respectively turn on the WLAN Direct function, and then search for surrounding WLAN Direct devices.
  • the first terminal and the at least two second terminals may also respectively open a near field communication (NFC) function, and then search for surrounding NFC devices and the like.
  • NFC near field communication
  • the first terminal and the at least two second terminals may also detect surrounding devices by other technologies, thereby automatically forming a group.
  • the target group may also be formed by other means, and the embodiments of the present application are not described herein again.
  • the first terminal establishes a short-distance network connection with the second terminal.
  • the short-distance network connection may be one of the following connection methods: Bluetooth connection, NFC, WLAN direct connection, WLAN hotspot connection, or short-distance network connection may also be other connection methods, such as the connection mode of future communication development, etc.
  • the application embodiment here does not specifically limit the connection manner of the short-distance network connection.
  • the first terminal and the second terminal can automatically establish a short-distance network connection. After the first terminal establishes a short-distance network connection with the second terminal, the first network group can be obtained.
  • the first terminal may The second terminal automatically establishes a close-range network connection. If the distance between the first terminal and the second terminal is not within the preset range, the first terminal may automatically establish a short-distance network connection with the second terminal when the distance from the second terminal is within a preset range.
  • the preset range may be the transmission distance of the Bluetooth. Of course, the preset range may also be other distances. The preset range is not specifically limited herein.
  • the first terminal displays an instant messaging interface, configured to communicate with a user of the second terminal.
  • the first terminal remarks the second terminal as "Zhang XX", and the instant communication interface in which the first terminal communicates with the second terminal may be as shown in FIG.
  • the user can send data to the second terminal on the instant messaging interface, or can receive the second terminal to send data on the instant messaging interface.
  • the first terminal may also not display the instant messaging interface. For example, if the first terminal is a modern printer, a wireless mouse, a wireless keyboard, a remote controller, a speaker, a television, a display, a camera, a scanner, a music device, etc., the first The terminal may not display the instant messaging interface, but directly receive the data sent by the second terminal.
  • the terminal when detecting that the user requests the operation of the short-distance networking with the target group, the terminal may establish a short-distance network connection with the second terminal without performing other operations. For example, after three terminals are used as an example, after three terminals respectively detect the operation of the user requesting the short-distance networking, the three terminals automatically establish a short-distance network connection, so that the three terminals can communicate with each other. Compared with the prior art, after the three terminals respectively detect the operation of the user requesting the short-distance networking, the user needs to negotiate to determine one of the terminals as the GO, and then the user operates the GO to search for the wireless signals of the other two terminals.
  • the user After searching for the other two terminals, the user selects the other two terminals by operating on the GO, and sends a request message to the other two terminals by operating the GO to request the other two terminals to access the WLAN Direct technology. GO. After the other two terminals receive the request message sent by the GO, the user needs to perform the operation of WLAN Direct on the terminal, so that the terminal can access the GO based on the WLAN Direct technology.
  • the operations of the user can be reduced, so that the network establishment process can be better implemented without perception to the user.
  • a plurality of terminals can automatically establish a short-distance network connection, when some scenarios such as network abnormalities and conflicts occur, the manual participation resolution can be eliminated, thereby reducing the requirement for users and improving the user experience.
  • the first terminal may automatically establish a close-range network connection with the second terminal by:
  • the first terminal broadcasts a central point election message.
  • the central point election message may be used to notify the receiving end that the terminal that sends the central point election message is in the state to be networked, and the central point election message may carry one or more of the following information: the terminal that sends the central point election message.
  • the device identity the networking capability of the terminal that sends the central point election message, and the time when the terminal sends the central point election message.
  • the central point election message may also carry other information, such as the load information of the terminal that sends the central point election message.
  • the priority of the terminal that sends the central point election message, and the priority is used to indicate the priority of the terminal as the access point when the access point is elected.
  • the embodiment of the present application is not specifically limited herein.
  • the device identity of the terminal may be the peer's PeerID.
  • the name of the message involved in the embodiment of the present application is only an exemplary description, and may be named as another name in the actual application, such as naming the central point election message as XX, it should be understood that if the XX The function implemented by the central point election message in the embodiment of the present application may also be implemented, and the XX may be understood as the central point election message in the embodiment of the present application.
  • the first terminal receives a central point election message broadcast by the second terminal.
  • the first terminal may save the information carried in the central point election message.
  • the first terminal determines, according to the preset rule and the central point election message broadcast by the second terminal, whether the first terminal is an access point.
  • the first terminal may wait for the preset duration and determine whether the first terminal is an access point according to the preset rule and the central point election message broadcast by the second terminal, so that the first terminal receives the second terminal sent by the target group.
  • the central point of the election message If the first terminal is an access point, step A4 is performed. If the first terminal is not an access point, step A5 is performed.
  • An access point mentioned in the embodiment of the present application can be understood as a GO, and an access end can be understood as a GC.
  • step A3 can be implemented in any of the following five ways:
  • the first terminal may determine whether the first terminal is an access point by using the first rule and the device identity of the second terminal.
  • the first rule may be that the device identity of the access point is the smallest among the device identifiers of all the terminals, and the first terminal may determine itself by determining whether the device identity of the device is smaller than the device identity of any second terminal. Whether it is an access point. If the device identity of the first terminal is smaller than the device identity of any second terminal, it is determined that it is an access point, and vice versa, it is determined that it is not an access point.
  • the first rule may also be that the device identity of the access point is the largest among the device identifiers of all terminals, or the first rule may also be to sort the device identifiers of all terminals according to the largest to smallest, and access The device identity of the point is ranked second, or the first rule may also sort the device identity of all terminals according to the size from small to large, the device identity of the access point is ranked second, and the like, the first rule Others, the first rule is not specifically limited herein.
  • the first terminal may determine whether the first terminal is an access point by using the second rule and the networking capability of the second terminal.
  • the second rule may be that the networking capability of the access point is the largest among the networking capabilities of all the terminals, and the first terminal may determine itself by determining whether the networking capability of the access terminal is greater than the networking capability of any second terminal. Whether it is an access point. If the networking capability of the first terminal is greater than the networking capability of any second terminal, it is determined that it is an access point, and vice versa, it is determined that it is not an access point.
  • the first terminal may determine whether the first terminal is the access point by using the third rule and the time when the second terminal sends the central point election message.
  • the third rule may be the time when the center point election message is sent by the other terminal, and the time at which the access point sends the center point election message is the earliest, and the first terminal may determine the time of sending the center point election message by itself. Whether the time of sending the central point election message is earlier than any second terminal determines whether it is an access point. If the time at which the first terminal sends the central point election message is earlier than the time at which the second terminal sends the central point election message, it determines that it is an access point, and vice versa, determines that it is not an access point.
  • the first terminal may determine whether the first terminal is an access point by using the fourth rule and the load information of the second terminal.
  • the fourth rule may be that the load of the access point is the smallest among the loads of all the terminals, and the first terminal may determine whether it is an access point by determining whether its own load is less than the load of any second terminal. If the load of the first terminal is less than the load of any second terminal, it is determined that it is an access point, and vice versa, it is determined that it is not an access point.
  • the first terminal may determine whether the first terminal is an access point by using the fifth rule and the priority of the second terminal.
  • the fourth rule may be that the priority of the access point is the largest among the priorities of all the terminals, and the first terminal may determine whether it is the access by determining whether the priority of the access terminal is greater than the priority of any second terminal. point. If the priority of the first terminal is greater than the priority of any second terminal, it is determined that it is an access point, and vice versa, it is determined that it is not an access point.
  • A4 If the first terminal determines that it is an access point, the broadcast center point creates a message, and the second terminal connects to the first terminal as an access end.
  • the central point creation message may be used to notify the receiving end that the terminal that sends the central point creation message is the access point, so that the receiving end can access the terminal that sends the central point creation message after receiving the central point creation message.
  • the first terminal can periodically broadcast a central point creation message.
  • the access terminal may periodically broadcast a central point connection message after accessing the access point, and the central point connection message is used to notify the receiving end to send the central point connection message to the access point, and the central point connection message may carry the access The identity of the point.
  • the central point connection message sent by the access terminal carries the identifier of the new access point, so that the access end can notify other groups in the group through the central point connection message.
  • the terminal migrates to the new access point.
  • the first terminal may receive the message sent by other terminals in the same group.
  • the first terminal may not receive or may not process after receiving.
  • the message may be a central point election message, a message may be created for the central point, or a central point connection message may be used.
  • the first terminal determines that it is not an access point, after receiving the message of the central point broadcasted by the access point, the first terminal is connected as an access terminal to the access point, and the target group is other than the access point.
  • the other second terminal accesses the access point as an access terminal.
  • the access point may be sent by a second terminal in the target group according to the preset rule and the central point election message sent by other terminals in the target group.
  • the first terminal and the other second terminals may broadcast a central point connection message after connecting to the access point.
  • the first terminal and the second terminal may use a traditional Bluetooth, or a BLE broadcast center point election message, a central point creation message, and a central point connection message.
  • a traditional Bluetooth or a BLE broadcast center point election message, a central point creation message, and a central point connection message.
  • BLE technology is a low-cost, short-range, interoperable and robust wireless technology that operates in the unlicensed 2.4GHz ISM RF band and can be used in products with higher real-time requirements but lower data rates, such as mice. Keyboard and so on.
  • the first terminal and the second terminal may also use other technologies to broadcast the central point election message, the central point creation message, and the central point connection message, such as the broadcast technology that appears in the future development of the communication, and the embodiment of the present application does not use the broadcast technology here. Specific restrictions are made.
  • the embodiment of the present application uses BLE as an example for description.
  • the access point may periodically broadcast a central point to create a message, and the access end may periodically broadcast a central point connection message.
  • the first terminal may communicate with any second terminal that is the access terminal through the access point.
  • the short-distance network connection can be automatically established between the access terminals of the first network group.
  • the access point of the first network group may be the first terminal or any second terminal.
  • the reason that the access point of the first network group leaves the first network group may be that the access point of the first network group is shut down, or the network connection function may be closed for the access point of the first network group, or may be the first The access point of the network group is far away from the first network group.
  • the access point of the first network group may also leave the first network group for other reasons.
  • the embodiment of the present application is not specifically limited herein.
  • a short-distance network connection can be automatically established between the access terminals of the first network group.
  • the access point of the first network group can be used as the access terminal to access the second network group. Access point.
  • the access point of the first network group can access the second network group when the power is turned on, and the access point of the first network group can also access the second network group when the network connection function is restarted, and the first network group is connected.
  • the access point may also be connected to the second network group when the second network group is located.
  • the access point of the first network group may also access the second network group in other scenarios.
  • the embodiment of the present application is not specifically limited herein.
  • terminal A, terminal B, terminal C, and terminal D form a network group, where terminal A is an access point of the network group.
  • terminal B, the terminal C, and the terminal D form a new network group, as shown in FIG. 4B, where the terminal B is an access point of the newly formed network group.
  • the terminal A returns, it can serve as the access terminal access terminal B, as shown in FIG. 4C.
  • the two network groups can be combined into one network group.
  • the first network group and the third network group may be combined into one fourth network group obtained by establishing a short-distance network connection for at least two terminals.
  • the first terminal receives a message broadcast by a third terminal in the third network group. If the third terminal is the access point of the third network group, the message broadcast by the third terminal is a central point creation message, and the central point creation message is used to notify the receiving end that the third terminal is the third network group.
  • the ingress point, and the central point creation message may carry at least one of the following information: a device identity of the third terminal, and a networking capability of the third terminal. If the third terminal is the access end of the third network group, the message broadcast by the third terminal may be a central point connection message, where the central point connection message is used to notify the receiving end that the third terminal has accessed the third network group.
  • the ingress point, and the central point connection message may carry at least one of the following information: a device identity of the access point of the third network group, and a networking capability of the access point of the third network group.
  • the first terminal and the third terminal may be in the same group, so the first terminal may process the message broadcast by the third terminal.
  • the first terminal determines, according to the preset rule and the message broadcast by the third terminal, whether the access point of the second network group can serve as an access point of the fourth network group. If yes, go to step B3. If no, go to step B4.
  • the process of determining whether the access point of the first network group can be used as the access point of the fourth network group according to the preset rule and the message broadcast by the third terminal may refer to step A3, and the embodiment of the present application is no longer here. Repeat the details.
  • the first terminal is connected as an access point to an access point of the third network group.
  • the first terminal may obtain the number of the access terminals in the third network group, so that the first terminal may be configured according to the first terminal.
  • the number of the access terminals in the third network group and the number of the access terminals in the first network group determine the connection manner of the access point that needs to be connected to the third network group, and the first terminal can connect to the third network according to the determined connection manner. Group of access points.
  • the number of the access terminals in the third network group may be carried in the message broadcast by the third terminal, so that the first terminal may obtain the number of the access terminals in the third network group when receiving the message broadcast by the third terminal.
  • the first terminal determines, according to the number of the access terminals in the third network group and the number of the access terminals in the first network group, the connection mode of the access point that needs to be connected to the third network group, which can be implemented in any of the following manners:
  • the first terminal may As the access point of the WIFI STA connected to the third network group, that is, the first terminal adopts the WIFI connection manner as the access point of the access terminal connected to the third network group.
  • the first terminal adopts a WIFI connection manner as an access point of the access terminal connected to the third network group, and the first terminal can maintain a network connection with the access terminal in the first network group.
  • the preset value may be determined according to an access resource, an access capability, a load information, and the like of an access point of the third network group.
  • the terminal can be used as a wireless router to share the Internet with other WLAN-enabled terminals.
  • other terminals can be connected to the terminal as a WIFI STA.
  • the WLAN hotspot architecture defines three components: a WIFI hotspot device, a WIFI access point (AP), and a WIFI STA.
  • a WLAN-enabled terminal can be used as a WIFI hotspot device, and a WIFI STA is a WIFI AP. WIFI hotspot device.
  • the first terminal is the access point of the first network group
  • the first terminal is when the sum of the number of the access terminals in the first network group and the number of the access terminals in the third network group is less than or equal to a preset value.
  • the access point can be connected to the third network group as the GC, that is, the first terminal adopts the WLAN direct connection mode as the access point of the access terminal connected to the third network group.
  • the network connection between the access terminal and the access terminal in the first network group may be disconnected.
  • the first terminal may Sending a merge message to the access point of the first network group, where the merge message is used to indicate that the access point of the first network group is connected to the access point of the third network group by the WIFI STA.
  • the access point of the first network group is connected to the access point of the third network group as the WIFI STA, the network connection with the access end of the first network group can be maintained.
  • a terminal can be connected to the access point of the third network group as a GC.
  • the network connection with the access point of the first network group can be disconnected.
  • the first terminal may also broadcast a central point connection message, where the central point connection message is used to notify the receiving end that the first terminal is connected to the access point of the third network group.
  • the other terminals of the first network group may also connect to the access point of the third network group after receiving the central point connection message broadcast by the first terminal.
  • other terminals of the first network group may also connect to the third network group when determining that the access point of the first network group is in the same group as the access point of the third network group. Entry point.
  • the access point of the third network group is used as an access point to connect to the access point of the first network group.
  • For the process of the access point of the third network group being connected to the access point of the first network group refer to the method described in B3, and details are not repeatedly described herein.
  • the networking process is specifically described in detail below in conjunction with specific application scenarios.
  • the device identifier of the terminal that sends the central point election message is carried in the central point election message.
  • the preset rule is that the device identity of the access point is the smallest among the device identity identifiers of all the terminals, and the terminal A and the terminal B are The networking process of the terminal C and the terminal D is described.
  • the device identity of the terminal A is the smallest.
  • the networking process can be referred to as shown in FIG. 5.
  • the terminal A, the terminal B, the terminal C, and the terminal D respectively elect a message through the BLE broadcast center point, and receive the central point election message of the other terminal through the BLE broadcast.
  • the terminal A, the terminal B, the terminal C, and the terminal D respectively store the device identity identifiers carried in the received central point election messages.
  • the terminal A, the terminal B, the terminal C, and the terminal D respectively determine whether they receive a message with a higher priority than the central point election message. If yes, go to step S505. If no, step S506 is performed.
  • the message with a higher priority than the central point election message is a central point creation message and/or a central point connection message.
  • S505 Process the received highest priority message. If the received message with the highest priority is a central point creation message, the terminal can be connected as an access terminal to the terminal that sends the central point creation message. If the received message with the highest priority is the central point connection message, and the central point connection message carries the identifier of the access point, the terminal can be connected as an access terminal to the terminal corresponding to the identifier.
  • the terminal A determines that its own device identity is the smallest, and creates a message through the BLE broadcast center point.
  • the terminal B, the terminal C, and the terminal D are connected to the terminal A as an access terminal after receiving the message created by the terminal A through the center point of the BLE broadcast.
  • the terminal A, the terminal B, the terminal C, and the terminal D are assembled into a network group as shown in FIG. 4A.
  • the network group 1 and the network group 2 shown in FIG. 4A are taken as an example to describe the process of merging the network group 1 and the network group 2.
  • the network group 2 includes the terminal E, the terminal F, and the terminal G, where the terminal E is the network group 2 Access point.
  • Scenario 1 The terminal A of the network group 1 and the terminal E of the network group 2 belong to the same group. When the network group 1 and the network group 2 are close to each other, each terminal in the network group 1 can perform the following steps, as shown in FIG. 6A.
  • Step S601a the terminal A receives the terminal E to create a message through the center point of the BLE broadcast, and the center point creation message carries the number of access terminals connected by the terminal E and the device identity of the terminal E.
  • Step S602a is performed.
  • step S602a The terminal A determines whether the device identity of the terminal E is smaller than its own device identity. If yes, step S603a is performed. If not, no treatment will be taken.
  • step S603a the terminal A determines whether the sum of the number of access terminals connected to the terminal and the number of access terminals connected to the terminal E is less than a preset value. If yes, step S604a is performed. If not, step S607a is performed.
  • the terminal A accesses the terminal E by using the WLAN direct connection mode, and connects the message through the BLE broadcast center point, and the center point connection message is used to notify the receiving end terminal A that the terminal E has been accessed.
  • the network connection between terminal B, terminal C, and terminal D can be disconnected.
  • step S605a may be separately performed for terminal B, terminal C, and terminal D.
  • step S605a after receiving the connection message of the terminal A through the center point of the BLE broadcast, determining whether the terminal E is in the same group as itself. If yes, step S606a is performed. If not, no treatment will be taken.
  • the combined network group may be as shown in FIG. 7A.
  • the terminal A accesses the terminal E by using a WIFI connection, and maintains a network connection with the terminal B, the terminal C, and the terminal D.
  • the merged network group can be as shown in Figure 7B.
  • Scenario 2 The terminal B of the network group 1 and the terminal E of the network group 2 belong to the same group. When the network group 1 and the network group 2 are close, the terminal B can perform the following steps, as shown in FIG. 6B.
  • the terminal B receives the terminal E to create a message through the center point of the BLE broadcast, and the center point creation message carries the number of access terminals connected by the terminal E and the device identity of the terminal E.
  • Step S602b is performed.
  • step S602b the terminal B determines whether the device identity of the terminal E is smaller than the device identity of the terminal A. If yes, step S603b is performed. If not, no treatment will be taken.
  • step S603b the terminal B determines whether the sum of the number of access terminals connected to the terminal E and the number of access terminals connected to the terminal A is less than a preset value. If yes, step S604b is performed. If not, step S607b is performed.
  • the terminal B accesses the terminal A by using the WLAN direct connection mode, and connects the message through the BLE broadcast center point, and the center point connection message is used to notify the receiving end terminal B that the terminal E has been accessed.
  • terminal B accesses terminal A in a WLAN direct connection manner, the network connection between the terminal and the terminal A can be disconnected.
  • step S605b may be separately performed for terminal A, terminal C, and terminal D.
  • step S605b after receiving the connection message of the terminal B through the center point of the BLE broadcast, determining whether the terminal E is in the same group as itself. If yes, step S606b is performed. If not, no treatment will be taken.
  • the combined network group may be as shown in FIG. 7A.
  • the terminal B sends a merge indication message to the terminal A, where the merge indication message is used to indicate that the terminal A accesses the terminal E by using a WIFI connection. Therefore, after receiving the merge indication message sent by the terminal B, the terminal A accesses the terminal E by using a WIFI connection.
  • the terminal A accesses the terminal E by using the WIFI connection, the network connection with the terminal B, the terminal C, and the terminal D can be maintained, as shown in FIG. 7B.
  • the terminal E can receive the central point connection message broadcasted by the terminal B, and the central point connection message carries the number of access terminals connected by the terminal A and the device identity of the terminal A. After receiving the central point connection message broadcasted by the terminal B, the terminal E may perform the steps S602a to S607a, and details are not repeatedly described in the embodiment of the present application.
  • Terminal B of network group 1 and terminal F of network group 2 belong to the same group.
  • the terminal B can receive the central point connection message broadcasted by the terminal F, and the central point connection message carries the number of access terminals connected by the terminal E and the device identity of the terminal E.
  • the terminal B may perform the steps S602b to S607b, and the details are not repeatedly described in the embodiment of the present application.
  • the terminal F can receive the central point connection message broadcasted by the terminal B, and the central point connection message carries the number of access terminals connected by the terminal A and the device identity of the terminal A. After receiving the central point connection message broadcasted by the terminal B, the terminal F may perform the steps S602b to S607b, and the details are not repeatedly described in the embodiment of the present application.
  • the terminal when detecting that the user requests the operation of the short-distance networking with the target group, the terminal may establish a short-distance network connection with the second terminal without performing other operations. For example, after three terminals are used as an example, after three terminals respectively detect the operation of the user requesting the short-distance networking, the three terminals automatically establish a short-distance network connection, so that the three terminals can communicate with each other. Compared with the prior art, after the three terminals respectively detect the operation of the user requesting the short-distance networking, the user needs to negotiate to determine one of the terminals as the GO, and then the user operates the GO to search for the wireless signals of the other two terminals.
  • the user After searching for the other two terminals, the user selects the other two terminals by operating on the GO, and sends a request message to the other two terminals by operating the GO to request the other two terminals to access the WLAN Direct technology. GO. After the other two terminals receive the request message sent by the GO, the user needs to perform the operation of WLAN Direct on the terminal, so that the terminal can access the GO based on the WLAN Direct technology.
  • the operations of the user can be reduced, so that the network establishment process can be better implemented without perception to the user.
  • a plurality of terminals can automatically establish a short-distance network connection, when some scenarios such as network abnormalities and conflicts occur, the manual participation resolution can be eliminated, thereby reducing the requirement for users and improving the user experience.
  • the embodiment of the present invention provides a networking device 80, specifically for implementing the method described in the embodiment described in FIG. 2 to FIG. 7B, and the structure of the device is as shown in FIG.
  • the detection module 81, the network connection module 82 and the display module 83 are included, wherein:
  • the detecting module 81 is configured to detect, by the user, the operation of the short-distance networking with the target group, where the target group includes the first terminal and the at least two second terminals.
  • the network connection module 82 is configured to establish a short-distance network connection with the second terminal after the detecting module 81 detects that the user requests the operation of the short-distance networking with the target group.
  • the display module 83 is configured to display an instant communication interface for communicating with the user of the second terminal after the network connection module 82 establishes a short-distance network connection with the second terminal.
  • the network connection module 82 is specifically configured to: automatically establish a short-distance network connection with the second terminal.
  • the short-range network connection may be one of the following connection modes: Bluetooth connection, NFC, WLAN direct connection, and WLAN hotspot connection.
  • the device 80 can also include a transceiver module 84.
  • the transceiver module 84 is configured to broadcast a first central point election message, where the first central point election message carries at least one of the following information: a device identity of the first terminal, and a group of the first terminal.
  • the network capability, the time at which the first terminal sends the first central point election message, the first central point election message is used to notify the receiving end that the first terminal is in a state to be networked.
  • the network connection module 82 may be configured to determine whether the first terminal is an access point according to a preset rule and the second central point election message received by the transceiver module 84.
  • the transceiver module 84 may be further configured to broadcast a first central point creation message, where the second terminal is connected as an access end to the first terminal, and the first central point is created. The message is used to notify the receiving end that the first terminal is an access point. If it is determined that it is not an access point, the transceiver module 84 may be further configured to receive a second central point creation message broadcast by the access point.
  • the network connection module 82 may be further configured to, after the transceiver module 84 receives the second central point creation message broadcasted by the access point, connect to the access point as an access end, in the target group. The second terminal that is not the access point accesses the access point, and the second central point creation message is used to notify the receiving end that the terminal that sends the second central point creation message is an access point.
  • the device 80 can also include a communication module 85.
  • the communication module 85 is configured to communicate with the second terminal that is an access terminal by using the access point after the network connection module 82 establishes a short-distance network connection with the second terminal.
  • the device 80 can also include a determination module 86.
  • the transceiver module 84 may be further configured to: after the network connection module 82 establishes a short-distance network connection with the second terminal, receive a third central point creation message broadcasted by an access point of the second network group, where The third central point creation message is used to notify the receiving end that the terminal that sends the third central point creation message is the access point of the second network group, and the third central point creation message carries at least the following information.
  • the determining module 86 is configured to determine an access point of the third network group according to the preset rule and the third central point creation message received by the transceiver module 84, where the third network group is the first network group and The second network combines and then obtains a network group, where the first network group is a network group obtained by establishing a short-distance network connection between the first terminal and the second terminal. If the determining module 86 determines that the access point of the third network group is the access point of the second network group, the network connection module 82 may also be used to connect the first terminal as an access terminal. An access point of the second network group. If the determining module 86 determines that the access point of the third network group is an access point of the first network group, the access point of the second network group is connected as an access end to the first The access point of the network group.
  • the transceiver module 84 may be further configured to: after the network connection module 82 establishes a short-distance network connection with the second terminal, receive the broadcast of the access end of the second network group. a central point connection message, the central point connection message is used to notify the receiving end that the terminal that sends the central point connection message has accessed the access point of the second network group, and the central point connection message carries the following information At least one of: a device identity of the access point of the second network group, a networking capability of an access point of the second network group, and the second network group is established for at least two third terminals A network group obtained after a short-distance network connection.
  • the determining module 86 is further configured to determine an access point of the third network group according to the preset rule and the central point connection message received by the transceiver module 84, where the third network group is the first network group and The second network combines and then obtains a network group, where the first network group is a network group obtained by establishing a short-distance network connection between the first terminal and the second terminal. If the determining module 86 determines that the access point of the third network group is the access point of the second network group, the network connection module 82 may be further configured to connect to the second as an access terminal. The access point of the network group. If the determining module 86 determines that the access point of the third network group is an access point of the first network group, the access point of the second network group is connected as an access end to the first The access point of the network group.
  • the device 80 can also include an acquisition module 87.
  • the obtaining module 87 is configured to obtain the number of access terminals in the second network group before the network connection module 82 is connected as an access point to the access point of the second network group.
  • the determining module 86 may be further configured to determine, according to the number of access terminals in the second network group and the number of access terminals in the first network group, an access point that needs to be connected to the second network group. Connection method.
  • the network connection module 82 when the access terminal is connected to the access point of the second network group, may be specifically configured to: connect to the access point of the second network group according to the determined connection manner.
  • the first terminal is an access point of the first network group.
  • the determining module 86 determines, according to the number of access terminals in the second network group and the number of access terminals in the first network group received by the transceiver module 84, that the connection to the second network group is required.
  • the connection mode of the access point may be specifically configured to: if the sum of the number of the access terminals in the first network group and the number of access terminals in the second network group is greater than a preset value, the wireless fidelity client The end WIFI STA is connected to the access point of the second network group and maintains a network connection with the access end in the first network group.
  • the first terminal is an access end of the first network group.
  • the determining module 86 when determining the connection mode of the access point that needs to be connected to the second network group, according to the number of access terminals in the second network group and the number of access terminals in the first network group The method may be specifically configured to: if the sum of the number of the access terminals in the first network group and the number of access terminals in the second network group is greater than a preset value, then the first network group is sent to the first network group by the transceiver module 84.
  • the access point sends a merge message, where the merge message is used to indicate that the access point of the first network group is connected to the access point of the second network group by the WIFI STA.
  • each functional module in each embodiment of the present application may be integrated in the In a processor, it can also be physically existed alone, or two or more modules can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • FIG. 9 is a schematic structural diagram of a first terminal according to an embodiment of the present disclosure.
  • the first terminal 100 includes a display screen 110, a processor 120, and a memory 130.
  • the memory 130 can be used to store software programs and data, and the processor 120 executes various functional applications and data processing of the first terminal 100 by running software programs and data stored in the memory 130, as the processor 120 can execute FIG. 2 to FIG. 7B, in addition to sending and receiving messages, displaying other operations other than the instant messaging interface, such as step S202 in FIG. 2, step S502 in step S504, step S504, and the like.
  • the memory 130 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system program, an application required for at least one function (such as establishing a close-range network connection with the second terminal, etc.), and the like;
  • the data area may store data acquired according to the first terminal 100 (such as a center point election message received by the first terminal 100, etc.) and the like.
  • the memory 130 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the processor 120 is a control center of the first terminal 100, and connects various parts of the entire first terminal by using various interfaces and lines, and executes the first terminal 100 by running or executing software programs and/or data stored in the memory 130. Various functions to perform overall monitoring of the first terminal.
  • the processor 120 may include one or more general-purpose processors, and may also include one or more digital signal processors (DSPs), or MCUs, etc., for performing related operations to implement the embodiments of the present application.
  • DSPs digital signal processors
  • the first terminal 100 may further include an input device 140 for receiving input digital information, character information or a touch touch operation/contactless gesture, and generating a signal input related to user setting and function control of the first terminal 100, and the like.
  • the input device 140 may include a touch panel 141.
  • the touch panel 141 also referred to as a touch screen, can collect touch operations on or near the user (such as the user's operation on the touch panel 141 or on the touch panel 141 using any suitable object or accessory such as a finger, a stylus, or the like. ), and drive the corresponding connection device according to a preset program.
  • the touch panel 141 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 120 is provided and can receive commands from the processor 120 and execute them. For example, the user clicks an icon or a legend for requesting a close-range network on the touch panel 141 with a finger, the touch detection device detects the signal brought by the click, and then transmits the signal to the touch control. The touch controller then converts this signal into coordinates and sends it to the processor 120.
  • the processor 120 determines the operation (on) for the icon or legend, and then Determine the memory space required to perform the operation. If the required memory space is smaller than the free memory, a close network connection with the second terminal will be started.
  • the touch panel 141 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input device 140 may also include other input devices 142, which may include, but are not limited to, one or more of a physical keyboard, function keys (such as control buttons, switch buttons, etc.).
  • the display device 110 includes a display panel 111 for displaying an instant communication interface, an instant communication interface, for communicating with a user of the second terminal. Information that may be input by the user or information provided to the user, various menu interfaces of the first terminal 100, and the like.
  • the display panel can be configured by using a liquid crystal display (LCD) or an organic light-emitting diode (OLED).
  • the touch panel 141 can cover the display panel 111 to form a touch display screen.
  • the first terminal 100 may further include a power source 150 for powering other modules.
  • the wearable smart device 100 may further include a transceiver 160, where the transceiver 160 is configured to perform operations of transceiving messages in the method described in FIG. 2 to FIG. 7B, such as a broadcast center point election message, receiving a central point connection message sent by the second terminal, and the like.
  • the transceiver 160 may include an NFC module 161 for performing near field communication with other devices, and may further include a Bluetooth module 162 for performing Bluetooth communication with other devices, and may also include a radio frequency (RF) circuit 163.
  • RF radio frequency
  • the network communication with the wireless network device may further include a WLAN module 164, configured to communicate with other devices by using a WLAN direct connection manner or with other devices by using a WIFI connection manner.
  • the first terminal 100 may further include a speaker 170 for playing music, a voice prompt, or a beep sound, and the like.
  • the embodiment of the invention further provides a computer readable storage medium for storing computer software instructions required to execute the above-mentioned processor, which comprises a program for executing the above-mentioned processor.
  • the embodiment of the present invention further provides a chip, which includes the above communication interface and the foregoing processor, and is used to support the terminal to implement any one of the methods described in the embodiments shown in FIG. 2 to FIG. 7B.
  • embodiments of the embodiments of the present application can be provided as a method, system, or computer program product. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种组网方法及设备,用以解决现有技术中存在的基于人工组网技术的产品使用门槛高、用户体验较差的问题。该方法包括:第一终端检测用户请求与目标群组近距离组网的操作,其中,所述目标群组包括第一终端及至少两个第二终端。所述第一终端与所述第二终端建立近距离网络连接。所述第一终端在与所述第二终端建立近距离网络连接后显示即时通信界面,即时通信界面用于与所述第二终端的用户通信。

Description

一种组网方法及设备
本申请要求在2018年04月12日提交中国专利局、申请号为201810325466.7、发明名称为“近距离的组网方法和终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及通信技术领域,尤其涉及一种组网方法及设备。
背景技术
无线局域网络(wireless local area networks,WLAN)直连协议,是WLAN协议簇中的一个协议,WLAN直连协议是指设备之间通过WLAN直连能够轻松彼此连接而不需要一个中介性质的无线接入点。目前市面上智能终端已经在广泛使用WLAN直连实现近距离场景下的文件分享。在组建WLAN直连网络(Group)之前,参与组建WLAN直连Group的设备均为WLAN直连设备(Device),当这些WLAN直连Device之间完成WLAN直连协商后,在这些WLAN直连Device中选择一个中心设备,作为网络组负责人(group owner,GO)来建立WLAN直连Group。WLAN直连Group建立后,GC自行搜索GO,然后请求连接到GO以加入这个Group。
目前,多个设备在组建WLAN直连Group时,首先持有各个设备的用户分别手动打开设备的WLAN直连功能,然后多个设备中的一个设备作为GO建立WLAN直连Group。持有该GC的用户手动操作去搜索GO,并且GC在搜索到GO之后在用户的操作下向GO发送连接请求。GO在接收到GC发送的连接请求后在用户的操作下同意GC接入,至此多个设备实现WLAN直连组网。可见,现有技术中多设备之间在组建WLAN直连Group时需要用户参与组建。通过人工参与组建的方式组建设备之间的WLAN直连Group时,一些组网异常、组网冲突等场景都需要人工参与解决,对用户要求高,基于现有技术实现的产品使用门槛高、体验差。
发明内容
本申请实施例提供了一种组网方法及设备,用以解决现有技术中存在的基于人工组网技术的产品使用门槛高、用户体验较差的问题。
第一方面,本申请实施例提供了一种组网方法,包括:第一终端检测用户请求与目标群组近距离组网的操作,其中,所述目标群组包括第一终端及至少两个第二终端。所述第一终端与所述第二终端建立近距离网络连接。所述第一终端在与所述第二终端建立近距离网络连接后显示即时通信界面,该即时通信界面用于与所述第二终端的用户通信。本申请实施例中第一终端在检测用户请求与目标群组近距离组网的操作后,与所述第二终端建立近距离网络连接,相比于现有技术中,需要用户操作终端进行搜索其他终端、向其他终端发送连接请求、同意其他终端的连接请求等行为,本申请实施例不需要用户进行其他操作就可以与第二终端建立近距离网络连接。例如,以3个终端为例,3个终端分别检测到用户请求近距离组网的操作后,这3个终端自动建立近距离网络连接,从而这3个终端可以 相互通信。相比于现有技术中,3个终端分别检测到用户请求近距离组网的操作后,用户需要协商确定其中一个终端作为GO,然后用户操作该GO搜索另外两个终端的无线信号。在搜索到另外两个终端后,用户再通过在该GO上操作选中另外两个终端,并通过操作该GO向另外两个终端发送请求消息,以请求另外两个终端基于WLAN Direct技术接入该GO。另外两个终端接收到GO发送的请求消息后,用户需要在终端上进行同意进行WLAN Direct的操作,使得该终端可以基于WLAN Direct技术接入该GO。本申请实施例中多个终端在建立近距离网络连接时,可以减少用户的操作,从而可以较好的实现组网建立过程对用户的无感知。并且,由于多个终端可以自动建立近距离网络连接,因此出现一些建网异常、冲突等场景时可以不需要人工参与解决,从而可以降低对用户要求高,进而可以提高用户体验。
在一种可能的设计中,所述第一终端可以自动与所述第二终端建立近距离网络连接。上述设计中,第一终端可以在用户无感知的情况下与所述第二终端建立近距离网络连接,从而用户可以直接使用第一终端与第二终端组建的网络组进行通信。
在一种可能的设计中,所述近距离网络连接可以为以下连接方式之一:蓝牙连接、近场通信(near field communication,NFC)、无线局域网络(wireless local area networks,WLAN)直连、WLAN热点连接。
在一种可能的设计中,所述第一终端可以广播第一中心点选举消息,并接收所述第二终端广播的第二中心点选举消息。其中,所述第一中心点选举消息携带如下信息中的至少一项:所述第一终端的设备身份标识、所述第一终端的组网能力、所述第一终端发送所述第一中心点选举消息的时间,所述第一中心点选举消息用于通知接收端所述第一终端处于待组网状态。所述第二中心点选举消息携带如下信息中的至少一项:所述第二终端的设备身份标识、所述第二终端的组网能力、所述第二终端发送所述第二中心点选举消息的时间,所述第二中心点选举消息用于通知接收端所述第二终端处于待组网状态。所述第一终端根据预设规则以及所述第二终端广播的所述第二中心点选举消息确定所述第一终端是否为接入点。所述第一终端若确定自身为接入点,则广播第一中心点创建消息,所述第二终端作为接入端连接到所述第一终端,所述第一中心点创建消息用于通知接收端所述第一终端为接入点。所述第一终端若确定自身不是接入点,则在接收到接入点广播的第二中心点创建消息后,作为接入端连接到所述接入点,所述目标群组中除所述接入点以外的其他第二终端接入所述接入点,所述第二中心点创建消息用于通知接收端发送所述第二中心点创建消息的终端为接入点。上述设计中,各个终端可以根据其他终端广播的中心点选举消息确定自身是否为接入点,确定为接入点的终端通过广播中心点创建消息使得其他终端作为接入端连接到该接入点,通过这种方式进行组网时可以不需要用户的操作,从而可以在用户无感知的情况下组建网络组。
在一种可能的设计中,第一终端可以通过传统蓝牙、或者蓝牙低功耗(bluetooth low energy,BLE)广播中心点创建消息。
在一种可能的设计中,在所述第一终端与所述第二终端建立近距离网络连接之后,所述第一终端为接入端,所述第一终端可以通过所述接入点与任意一个作为接入端的第二终端进行通信。
在一种可能的设计中,在所述第一终端与所述第二终端建立近距离网络连接之后,所述第一终端可以接收第二网络组的接入点所广播的第三中心点创建消息,所述第三中心点 创建消息用于通知接收端发送所述第三中心点创建消息的终端为所述第二网络组的接入点,且所述第三中心点创建消息携带如下信息中的至少一项:所述第二网络组的接入点的设备身份标识、所述第二网络组的接入点的组网能力,所述第二网络组为至少两个第三终端建立近距离网络连接后得到的网络组。所述第一终端可以根据预设规则以及所述第三中心点创建消息确定第三网络组的接入点,所述第三网络组为第一网络组与所述第二网络组合并后得到的网络组,所述第一网络组为所述第一终端与所述第二终端建立近距离网络连接后得到的网络组。若所述第三网络组的接入点为所述第二网络组的接入点,则所述第一终端作为接入端连接到所述第二网络组的接入点。若所述第三网络组的接入点为所述第一网络组的接入点,则所述第二网络组的接入点作为接入端连接到所述第一网络组的接入点。上述设计中,第一终端在接收到其他网络组的接入点广播的中心点创建消息时与该网络组合并为一个网络组。
在一种可能的设计中,第一终端可以与第二网络组的接入点在同一个群组中。上述设计中,第一终端在与第二网络组的接入点在同一个群组的情况下,将第一网络组与第二网络组进行合并,可以提高网络安全性。
在一种可能的设计中,在所述第一终端与所述第二终端建立近距离网络连接之后,所述第一终端可以接收第二网络组的接入端所广播的中心点连接消息,所述中心点连接消息用于通知接收端发送所述中心点连接消息的终端已接入所述第二网络组的接入点,且所述中心点连接消息携带如下信息中的至少一项:所述第二网络组的接入点的设备身份标识、所述第二网络组的接入点的组网能力,所述第二网络组为至少两个第三终端建立近距离网络连接后得到的网络组。所述第一终端可以根据预设规则以及所述中心点连接消息确定第三网络组的接入点,所述第三网络组为第一网络组与所述第二网络组合并后得到的网络组,所述第一网络组为所述第一终端与所述第二终端建立近距离网络连接后得到的网络组。若所述第三网络组的接入点为所述第二网络组的接入点,则所述第一终端作为接入端连接到所述第二网络组的接入点。若所述第三网络组的接入点为所述第一网络组的接入点,则所述第二网络组的接入点作为接入端连接到所述第一网络组的接入点。上述设计中,第一终端在接收到其他网络组的接入端广播的中心点连接消息时与该网络组合并为一个网络组。
在一种可能的设计中,第一终端可以与第二网络组的接入端在同一个群组中。上述设计中,第一终端在与第二网络组的接入端在同一个群组的情况下,将第一网络组与第二网络组进行合并,可以提高网络安全性。
在一种可能的设计中,在所述第一终端作为接入端连接到所述第二网络组的接入点之前,所述第一终端还可以获得所述第二网络组中接入端的数量。所述第一终端根据所述第二网络组中接入端的数量以及所述第一网络组中接入端的数量,确定需要连接到所述第二网络组的接入点的连接方式,从而所述第一终端按照确定的连接方式连接到所述第二网络组的接入点。上述涉及中,第一终端根据第二网络组的接入点的接入能力确定接入所述第二网络组的接入点的方式,从而可以较好的保证网络质量。
在一种可能的设计中,若所述第一终端为所述第一网络组的接入点,则在第一网络组中接入端的数量与所述第二网络组中接入端的数量之和大于预设值时,所述第一终端可以作为无线保真客户端WIFI STA连接到所述第二网络组的接入点,并保持与所述第一网络组中接入端之间的网络连接。或者,若所述第一终端为所述第一网络组的接入点,在第一网络组中接入端的数量与所述第二网络组中接入端的数量之和小于等于所述预设值时,所 述第一终端可以作为网络组客户端GC连接到所述第二网络组的接入点,并断开与所述第一网络组中接入端之间的网络连接。上述设计中,第一终端在不超出第二网络组的接入点的接入能力时可以采用WLAN直连的方式接入第二网络组的接入点,在第二网络组的接入点的接入能力不足时可以采用WIFI连接的方式接入第二网络组的接入点,从而可以降低第二网络组的接入点的负载,进而可以较好的保证网络质量。
在一种可能的设计中,若所述第一终端为所述第一网络组的接入端,则在所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和大于预设值时,所述第一终端可以向所述第一网络组的接入点发送合并消息,所述合并消息用于指示所述第一网络组的接入点作为WIFI STA连接到所述第二网络组的接入点。或者,若所述第一终端为所述第一网络组的接入端,则在所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和小于等于所述预设值时,所述第一终端可以作为GC连接到所述第二网络组的接入点,并断开与所述第一网络组的接入点之间的网络连接。上述设计中,第一网络组的接入点在不超出第二网络组的接入点的接入能力时可以采用WLAN直连的方式接入第二网络组的接入点,在第二网络组的接入点的接入能力不足时可以采用WIFI连接的方式接入第二网络组的接入点,从而可以降低第二网络组的接入点的负载,进而可以较好的保证网络质量。
第二方面,本申请实施例提供了一种第一终端,包括:处理器,用于检测用户请求与目标群组近距离组网的操作,其中,所述目标群组包括第一终端及至少两个第二终端;并与所述第二终端建立近距离网络连接。显示屏,用于在所述收发器与所述第二终端建立近距离网络连接后,显示即时通信界面,用于与所述第二终端的用户通信。
在一种可能的设计中,所述第一终端还可以包括触摸屏。所述触摸屏,用于在用户的操作下触发请求与目标群组近距离组网的指令。所述处理器,在检测用户请求与目标群组近距离组网的操作时,可以具体用于:接收所述触摸屏触发的所述指令。
在一种可能的设计中,所述处理器,在与所述第二终端建立近距离网络连接时,可以具体用于:自动与所述第二终端建立近距离网络连接。
在一种可能的设计中,所述近距离网络连接可以为以下连接方式之一:蓝牙连接、NFC、WLAN直连、WLAN热点连接。
在一种可能的设计中,所述第一终端还可以包括收发器。所述收发器,用于广播第一中心点选举消息,并接收所述第二终端广播的第二中心点选举消息;所述第一中心点选举消息可以携带如下信息中的至少一项:所述第一终端的设备身份标识、所述第一终端的组网能力、所述第一终端发送所述第一中心点选举消息的时间,所述第一中心点选举消息用于通知接收端所述第一终端处于待组网状态;所述第二中心点选举消息可以携带如下信息中的至少一项:所述第二终端的设备身份标识、所述第二终端的组网能力、所述第二终端发送所述第二中心点选举消息的时间,所述第二中心点选举消息用于通知接收端所述第二终端处于待组网状态。所述处理器,在与所述第二终端建立近距离网络连接时,可以具体用于:根据预设规则以及所述收发器接收到的所述第二中心点选举消息确定所述第一终端是否为接入点。若确定自身为接入点,所述收发器,还用于广播第一中心点创建消息,所述第二终端作为接入端连接到所述第一终端,所述第一中心点创建消息用于通知接收端所述第一终端为接入点。若确定自身不是接入点,所述收发器,还可以用于接收接入点广播的第二中心点创建消息,所述第二中心点创建消息用于通知接收端发送所述第二中心点创 建消息的终端为接入点。所述处理器,还可以用于在所述收发器接收到所述第二中心点创建消息后,作为接入端连接到所述接入点,所述目标群组中除所述接入点以外的其他第二终端接入所述接入点。
在一种可能的设计中,所述收发器,可以用于在所述处理器与所述第二终端建立近距离网络连接之后,通过所述接入点与任意一个作为接入端的第二终端进行通信。
在一种可能的设计中,若所述第一终端为接入端,所述收发器,可以用于在所述处理器与所述第二终端建立近距离网络连接之后,接收第二网络组的接入点所广播的第三中心点创建消息,所述第三中心点创建消息用于通知接收端发送所述第三中心点创建消息的终端为所述第二网络组的接入点,且所述第三中心点创建消息携带如下信息中的至少一项:所述第二网络组的接入点的设备身份标识、所述第二网络组的接入点的组网能力,所述第二网络组为至少两个第三终端建立近距离网络连接后得到的网络组。所述处理器,还可以用于根据预设规则以及所述收发器接收到的所述第三中心点创建消息确定第三网络组的接入点,所述第三网络组为第一网络组与所述第二网络组合并后得到的网络组,所述第一网络组为所述第一终端与所述第二终端建立近距离网络连接后得到的网络组。若所述第三网络组的接入点为所述第二网络组的接入点,所述处理器还可以用于作为接入端连接到所述第二网络组的接入点。若所述第三网络组的接入点为所述第一网络组的接入点,则所述第二网络组的接入点作为接入端连接到所述第一网络组的接入点。
在一种可能的设计中,若所述第一终端为接入端。所述收发器,可以用于在所述处理器与所述第二终端建立近距离网络连接之后,接收第二网络组的接入端所广播的中心点连接消息,所述中心点连接消息用于通知接收端发送所述中心点连接消息的终端已接入所述第二网络组的接入点,且所述中心点连接消息携带如下信息中的至少一项:所述第二网络组的接入点的设备身份标识、所述第二网络组的接入点的组网能力,所述第二网络组为至少两个第三终端建立近距离网络连接后得到的网络组。所述处理器,还用于根据预设规则以及所述中心点连接消息确定第三网络组的接入点,所述第三网络组为第一网络组与所述第二网络组合并后得到的网络组,所述第一网络组为所述第一终端与所述第二终端建立近距离网络连接后得到的网络组。若所述第三网络组的接入点为所述第二网络组的接入点,所述处理器,还可以用于作为接入端连接到所述第二网络组的接入点。若所述第三网络组的接入点为所述第一网络组的接入点,则所述第二网络组的接入点作为接入端连接到所述第一网络组的接入点。
在一种可能的设计中,所述处理器,还可以用于在作为接入端连接到所述第二网络组的接入点之前,获得所述第二网络组中接入端的数量,并根据所述第二网络组中接入端的数量以及所述第一网络组中接入端的数量,确定需要连接到所述第二网络组的接入点的连接方式。所述处理器,在作为接入端连接到所述第二网络组的接入点时,具体用于:所述第一终端按照确定的连接方式连接到所述第二网络组的接入点。
在一种可能的设计中,若所述第一终端为所述第一网络组的接入点。所述处理器,在根据所述第二网络组中接入端的数量以及所述第一网络组中接入端的数量,确定需要连接到所述第二网络组的接入点的连接方式时,可以具体用于:若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和大于预设值,则作为无线保真客户端WIFI STA连接到所述第二网络组的接入点,并保持与所述第一网络组中接入端之间的网络连接。或者,若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和小于等于所 述预设值,则作为网络组客户端GC连接到所述第二网络组的接入点,并断开与所述第一网络组中接入端之间的网络连接。
在一种可能的设计中,若所述第一终端为所述第一网络组的接入端。所述处理器,在根据所述第二网络组中接入端的数量以及所述第一网络组中接入端的数量,确定需要连接到所述第二网络组的接入点的连接方式时,可以具体用于:若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和大于预设值,则控制所述收发器向所述第一网络组的接入点发送合并消息,所述合并消息用于指示所述第一网络组的接入点作为WIFI STA连接到所述第二网络组的接入点。或者,若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和小于等于所述预设值,则作为GC连接到所述第二网络组的接入点,并断开与所述第一网络组的接入点之间的网络连接。
第三方面,本申请实施例提供了一种组网装置,包括:检测模块,用于检测用户请求与目标群组近距离组网的操作,其中,所述目标群组包括第一终端及至少两个第二终端。网络连接模块,用于在所述检测模块检测到用户请求与目标群组近距离组网的操作后,与所述第二终端建立近距离网络连接。显示模块,用于在所述网络连接模块与所述第二终端建立近距离网络连接后,显示即时通信界面,用于与所述第二终端的用户通信。
在一种可能的设计中,所述网络连接模块,可以具体用于:自动与所述第二终端建立近距离网络连接。
在一种可能的设计中,所述近距离网络连接可以为以下连接方式之一:蓝牙连接、NFC、WLAN直连、WLAN热点连接。
在一种可能的设计中,所述装置还可以包括收发模块。所述收发模块,用于广播第一中心点选举消息,所述第一中心点选举消息携带如下信息中的至少一项:所述第一终端的设备身份标识、所述第一终端的组网能力、所述第一终端发送所述第一中心点选举消息的时间,所述第一中心点选举消息用于通知接收端所述第一终端处于待组网状态。以及,接收所述第二终端广播的第二中心点选举消息,所述第二中心点选举消息携带如下信息中的至少一项:所述第二终端的设备身份标识、所述第二终端的组网能力、所述第二终端发送所述第二中心点选举消息的时间,所述第二中心点选举消息用于通知接收端所述第二终端处于待组网状态。所述网络连接模块,可以具体用于:根据预设规则以及所述收发模块接收的所述第二中心点选举消息确定所述第一终端是否为接入点。若确定自身为接入点,所述收发模块,还可以用于广播第一中心点创建消息,所述第二终端作为接入端连接到所述第一终端,所述第一中心点创建消息用于通知接收端所述第一终端为接入点。若确定自身不是接入点,所述收发模块,还可以用于接收接入点广播的第二中心点创建消息。所述网络连接模块,还可以用于在所述收发模块接收到接入点广播的第二中心点创建消息后,作为接入端连接到所述接入点,所述目标群组中除所述接入点以外的其他第二终端接入所述接入点,所述第二中心点创建消息用于通知接收端发送所述第二中心点创建消息的终端为接入点。
在一种可能的设计中,所述装置还可以包括通信模块。所述通信模块,用于在所述网络连接模块与所述第二终端建立近距离网络连接之后,通过所述接入点与任意一个作为接入端的第二终端进行通信。
在一种可能的设计中,所述装置还可以包括确定模块。所述收发模块,还可以用于在所述网络连接模块与所述第二终端建立近距离网络连接之后,接收第二网络组的接入点所 广播的第三中心点创建消息,所述第三中心点创建消息用于通知接收端发送所述第三中心点创建消息的终端为所述第二网络组的接入点,且所述第三中心点创建消息携带如下信息中的至少一项:所述第二网络组的接入点的设备身份标识、所述第二网络组的接入点的组网能力,所述第二网络组为至少两个第三终端建立近距离网络连接后得到的网络组。所述确定模块,用于根据预设规则以及所述收发模块接收的所述第三中心点创建消息确定第三网络组的接入点,所述第三网络组为第一网络组与所述第二网络组合并后得到的网络组,所述第一网络组为所述第一终端与所述第二终端建立近距离网络连接后得到的网络组。若所述确定模块确定所述第三网络组的接入点为所述第二网络组的接入点,所述网络连接模块还可以用于所述第一终端作为接入端连接到所述第二网络组的接入点。若所述确定模块确定所述第三网络组的接入点为所述第一网络组的接入点,则所述第二网络组的接入点作为接入端连接到所述第一网络组的接入点。
在一种可能的设计中,所述收发模块,还可以用于在所述网络连接模块与所述第二终端建立近距离网络连接之后,接收第二网络组的接入端所广播的中心点连接消息,所述中心点连接消息用于通知接收端发送所述中心点连接消息的终端已接入所述第二网络组的接入点,且所述中心点连接消息携带如下信息中的至少一项:所述第二网络组的接入点的设备身份标识、所述第二网络组的接入点的组网能力,所述第二网络组为至少两个第三终端建立近距离网络连接后得到的网络组。所述确定模块,还可以用于根据预设规则以及所述收发模块接收的所述中心点连接消息确定第三网络组的接入点,所述第三网络组为第一网络组与所述第二网络组合并后得到的网络组,所述第一网络组为所述第一终端与所述第二终端建立近距离网络连接后得到的网络组。若所述确定模块确定所述第三网络组的接入点为所述第二网络组的接入点,所述网络连接模块,还可以用于作为接入端连接到所述第二网络组的接入点。若所述确定模块确定所述第三网络组的接入点为所述第一网络组的接入点,则所述第二网络组的接入点作为接入端连接到所述第一网络组的接入点。
在一种可能的设计中,所述装置还可以包括获取模块。获取模块,用于在所述网络连接模块作为接入端连接到所述第二网络组的接入点之前,获得所述第二网络组中接入端的数量。所述确定模块,还可以用于根据所述第二网络组中接入端的数量以及所述第一网络组中接入端的数量,确定需要连接到所述第二网络组的接入点的连接方式。所述网络连接模块,在作为接入端连接到所述第二网络组的接入点时,可以具体用于:按照确定的连接方式连接到所述第二网络组的接入点。
在一种可能的设计中,若所述第一终端为所述第一网络组的接入点。所述确定模块,在根据所述第二网络组中接入端的数量以及所述收发模块接收的所述第一网络组中接入端的数量,确定需要连接到所述第二网络组的接入点的连接方式时,可以具体用于:若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和大于预设值,则作为无线保真客户端WIFI STA连接到所述第二网络组的接入点,并保持与所述第一网络组中接入端之间的网络连接。或者,若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和小于等于所述预设值,则作为网络组客户端GC连接到所述第二网络组的接入点,并断开与所述第一网络组中接入端之间的网络连接。
在一种可能的设计中,若所述第一终端为所述第一网络组的接入端。所述确定模块,在根据所述第二网络组中接入端的数量以及所述第一网络组中接入端的数量,确定需要连接到所述第二网络组的接入点的连接方式时,可以具体用于:若所述第一网络组中接入端 的数量与所述第二网络组中接入端的数量之和大于预设值,则通过收发模块向所述第一网络组的接入点发送合并消息,所述合并消息用于指示所述第一网络组的接入点作为WIFI STA连接到所述第二网络组的接入点。或者,若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和小于等于所述预设值,则作为GC连接到所述第二网络组的接入点,并断开与所述第一网络组的接入点之间的网络连接。
第四方面,本申请实施例中还提供一种计算机存储介质,该存储介质中存储软件程序,该软件程序在被一个或多个处理器读取并执行时可实现第一方面或上述第一方面的任意一种设计提供的方法。
第五方面,本申请实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面或上述第一方面的任意一种设计提供的方法。
附图说明
图1为本申请实施例提供的一种WLAN直连组的架构示意图;
图2为本申请实施例提供的一种组网方法的流程示意图;
图3为本申请实施例提供的一种即时通信界面的示意图;
图4A为本申请实施例提供的终端A、终端B、终端C、终端D所组建网络组的示意图;
图4B为本申请实施例提供的终端B、终端C、终端D所组建网络组的示意图;
图4C为本申请实施例提供的终端A、终端B、终端C、终端D所组建网络组的示意图;
图5为本申请实施例提供的一种组网过程的示意图;
图6A为本申请实施例提供的一种网络组合并过程的示意图;
图6B为本申请实施例提供的另一种网络组合并过程的示意图;
图7A为本申请实施例提供的一种合并后的网络组的示意图;
图7B为本申请实施例提供的另一种合并后的网络组的示意图;
图8为本申请实施例提供的一种组网装置的结构示意图;
图9为本申请实施例提供的一种第一终端的结构示意图。
具体实施方式
下面将结合附图对本申请实施例作进一步地详细描述。
目前,终端可以作为无线路由器将因特网分享给其他具备无线局域网络(wireless local area networks,WLAN)功能的终端。具体的,第一终端作为WiFi接入点(WiFi AP)将因特网进行分享,具备WLAN功能的第二终端可以通过作为WiFi客户端(WiFi STA)接入到第一终端从而接入到因特网中,进而第二终端可以通过第一终端分享的因特网进行互联网浏览、文件传输等。
但有些情况下,用户不需要使用因特网,只想连接两个设备并在它们之间共享一些数据,如发送文件或在打印机上打印一些东西。这种情况下,支持WLAN直连(WLAN Direct)功能的终端可以通过WLAN直连技术进行网络连接,从而传输数据。支持WLAN Direct功能的终端可以相互连接,而无需加入因特网。支持WLAN Direct功能的终端可以进行一 对一连接,或者多个终端可以同时连接。当两个或两个以上终端通过WLAN Direct技术直接连接时,它们可以形成WLAN Direct组(group),也就是WLAN Direct网络组。
WLAN Direct组的基本架构中定义了三个组件,这三个组件分别是:WLAN Direct设备(device)、小组负责人(group owner,GO)、小组客户端(group client,GC),其中,WLAN Direct group中的终端均为WLAN Direct device,GO为WLAN Direct group中作为接入点的终端,GC为WLAN Direct group中作为接入端的终端。
以3个终端组建WLAN Direct group为例,在组建WLAN Direct group之前,用户打开终端的WLAN直连功能的操作,该终端向另外两个终端发出无线信号,以使另外两个终端可以检测到该终端。持有3个终端的用户经过协商之后确定其中一个终端作为GO,另外两个终端作为GC。然后用户操作GC搜索GO的无线信号。在搜索到GO后,用户通过在GC上选中GO,并触发GC向GO发送连接请求,以请求接入该GO。GO接收到GC发送的连接请求后,用户通过操作GO同意GC接入,之后GC在GO同意接入后基于WLAN Direct技术接入该GO。在两个GC接入该GO后,3个终端组建一个WLAN Direct group,该WLAN Direct group可以如图1所示。GO的功能类似于WLAN接入点(access point,AP),周围不支持WLAN直连功能的终端也可以发现并连接到GO,这些终端设备被称之为遗留客户端(legacy clients)。
目前,终端已经在广泛使用WLAN直连实现近距离场景下的文件分享,但这些都需要人工参与网络组建,无法做到组网建立过程对用户的无感知。并且,终端使用WLAN直连技术组建的网络都是临时的,即在不需要使用该网络后解散该网络,再次分享文件时需要重新建网。以图1所示的WLAN Direct group为例,在用户关闭3个终端的WLAN直连功能后,该WLAN Direct group解散。若之后这3个终端再次相互传输数据时,需要再次重复上述过程重新组建WLAN Direct group解散,用户体验较差。此外,一些建网异常、冲突场景都需要人工参与解决,对用户要求高,基于现有技术实现的产品使用门槛高、体验差。
基于此,本申请实施例提供一种组网方法及装置,用以解决现有技术中存在的基于人工组网技术的产品使用门槛高、用户体验较差的问题。其中,方法和装置是基于同一发明构思的,由于方法及装置解决问题的原理相似,因此装置与方法的实施可以相互参见,重复之处不再赘述。
本申请实施例中提及的多个,是指两个或两个以上。
本申请实施例中提及的群组,是一种上层逻辑关系,类似微信群、QQ群等用户群组,处于同一群组的终端可以相互建立近距离网络连接。
本申请实施例中提及的网络组,是一种底层物理链路关系,同一网络组中的终端之间可以相互通信,也就是网络组中所有节点之间通信可达
另外,需要理解的是,在本申请实施例的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。
参见图2,为本申请实施例提供的组网方法的流程图。该方法可以用于支持WLAN Direct功能的终端中,终端可以为笔记本电脑,平板电脑、智能手机、现代打印机、无线鼠标、无线键盘、遥控器、扬声器、电视机、显示器,照相机,扫描仪,音乐设备等。该组网方法包括:
S201,第一终端检测用户请求与目标群组近距离组网的操作,其中,所述目标群组包 括第一终端及至少两个第二终端。用户可以通过启动第一终端上用于近距离组网的应用程序(application,APP)请求与目标群组近距离组网,或者也可以通过打开第一终端的近距离组网功能请求与目标群组近距离组网。或者,用户也可以在第一终端上执行预设手势请求与目标群组近距离组网,预设手势如双击第一终端的触摸屏、按压第一终端上的特定物理键、在第一终端的触摸屏用指关节画个圈等等。当然,用户也可以在第一终端上进行其他操作以请求与目标群组近距离组网,本申请实施例在这里对用户的操作行为不做具体限定。
该目标群组可以为第一终端及至少两个第二终端的用户预先建立的。例如,第一终端可以在用户的操作下创建一个群组,然后邀请第二终端加入该群组。第一终端在邀请第二终端加入该群组时,第一终端可以向第二终端发送邀请加入该群组的网络链接,第二终端在接收到第一终端发送的网络链接后通过点击该网络链接加入该群组。或者,第一终端也可以向第二终端发送邀请加入该群组的二维码,第二终端在接收到第一终端发送的二维码后通过扫描该二维码加入该群组。或者,第一终端也可以向第二终端出示邀请加入该群组的二维码,第二终端通过扫描该二维码加入该群组。或者,第一终端也可以向第二终端发送群组名称,或持有第一终端的用户通过口述等方式将群组名称告诉持有第二终端的用户,用户在第二终端上搜索到该群组名称后申请加入该群组。当然,第一终端也可以通过其他方式邀请第二终端加入该群组,本申请实施例在这里不再一一赘述。需要说明的是,创建群组的终端也可以为任一第二终端,本申请实施例在这里仅以第一终端为例进行说明。
该目标群组也可以为第一终端及至少两个第二终端通过检测周围设备组建的,如第一终端及至少两个第二终端分别搜索周围存在的设备,在第一及至少两个第二终端检测到彼此之后自动组建群组。例如,第一终端及至少两个第二终端可以分别打开蓝牙功能,之后搜索周围的蓝牙设备。或者,第一终端及至少两个第二终端也可以分别打开WLAN Direct功能,之后搜索周围的WLAN Direct设备。或者,第一终端及至少两个第二终端也可以分别打开近场通信(near field communication,NFC)功能,之后搜索周围的NFC设备等等。当然,第一终端及至少两个第二终端也可以通过其他技术检测周围设备,从而自动组建群组。
该目标群组也可以是通过其他方式组建的,本申请实施例在这里不再一一赘述。
S202,所述第一终端与所述第二终端建立近距离网络连接。其中近距离网络连接可以为以下连接方式之一:蓝牙连接、NFC、WLAN直连、WLAN热点连接,或者,近距离网络连接也可以为其他连接方式,如未来通信发展出现的连接方式等,本申请实施例在这里对近距离网络连接的连接方式不做具体限定。第一终端与第二终端可以自动建立近距离网络连接。第一终端与第二终端建立近距离网络连接后可以得到第一网络组。
在一种可能的实施方式中,第一终端检测用户请求与目标群组近距离组网的操作后,若第一终端与第二终端的距离在预设范围内,则第一终端可以与第二终端自动建立近距离网络连接。若第一终端与第二终端的距离未在预设范围内,则第一终端可以在与第二终端的距离在预设范围内时再与第二终端自动建立近距离网络连接。预设范围可以为蓝牙的传输距离,当然,预设范围也可以为其他距离,本申请实施例在这里不对预设范围进行具体限定。
S203,所述第一终端显示即时通信界面,用于与所述第二终端的用户通信。以第一终端将第二终端备注为“张XX”为例,第一终端与所述第二终端进行通信的即时通信界面可以如3所示。用户可以在该即时通信界面上向第二终端发送数据,也可以在该即时通信 界面上接收第二终端发送数据。第一终端也可以不显示即时通信界面,例如,若第一终端为现代打印机、无线鼠标、无线键盘、遥控器、扬声器、电视机、显示器,照相机,扫描仪,音乐设备等设备时,第一终端可以不显示即时通信界面,而是直接接收第二终端发送的数据。
本申请实施例中终端在检测到用户请求与目标群组近距离组网的操作时,不需要用户进行其他操作就可以与第二终端建立近距离网络连接。例如,以3个终端为例,3个终端分别检测到用户请求近距离组网的操作后,这3个终端自动建立近距离网络连接,从而这3个终端可以相互通信。相比于现有技术中,3个终端分别检测到用户请求近距离组网的操作后,用户需要协商确定其中一个终端作为GO,然后用户操作该GO搜索另外两个终端的无线信号。在搜索到另外两个终端后,用户再通过在该GO上操作选中另外两个终端,并通过操作该GO向另外两个终端发送请求消息,以请求另外两个终端基于WLAN Direct技术接入该GO。另外两个终端接收到GO发送的请求消息后,用户需要在终端上进行同意进行WLAN Direct的操作,使得该终端可以基于WLAN Direct技术接入该GO。本申请实施例中多个终端在建立近距离网络连接时,可以减少用户的操作,从而可以较好的实现组网建立过程对用户的无感知。并且,由于多个终端可以自动建立近距离网络连接,因此出现一些建网异常、冲突等场景时可以不需要人工参与解决,从而可以降低对用户要求高,进而可以提高用户体验。
在一种可能的实现方式中,所述第一终端可以通过如下方式自动与所述第二终端建立近距离网络连接:
A1,第一终端广播中心点选举消息。其中,中心点选举消息可以用于通知接收端发送该中心点选举消息的终端处于待组网状态,且中心点选举消息可以携带如下信息中的一个或多个:发送该中心点选举消息的终端的设备身份标识、发送该中心点选举消息的终端的组网能力、终端发送该中心点选举消息的时间,中心点选举消息还可以携带其他信息,如发送该中心点选举消息的终端的负载信息,发送该中心点选举消息的终端的优先级等等,该优先级用于指示在选举接入点时终端可以作为接入点的优先级,本申请实施例在这里不做具体限定。终端的设备身份标识可以为终端的PeerID。
为了描述方便,本申请实施例中所涉及的消息的名称仅是一种示例性说明,在实际应用中可能命名为其他的名称,如将中心点选举消息命名为XX,应理解,若该XX也可以实现本申请实施例中的中心点选举消息所实现的功能,也可以将XX理解为本申请实施例中的中心点选举消息。
A2,第一终端接收第二终端广播的中心点选举消息。第一终端在接收到第二终端广播的中心点选举消息时,可以保存该中心点选举消息携带的信息。
A3,第一终端根据预设规则以及第二终端广播的中心点选举消息确定第一终端是否为接入点。第一终端可以等待预设时长后根据预设规则以及第二终端广播的中心点选举消息确定第一终端是否为接入点,这样可以使得第一终端接收到目标群组中所有第二终端发送的中心点选举消息。若第一终端为接入点,则执行步骤A4。若第一终端不为接入点,则执行步骤A5。本申请实施例中所提及的接入点可以理解为GO,接入端可以理解为GC。
具体,步骤A3可以通过如下五种方式中的任一种方式实现:
方式一,若中心点选举消息中携带发送该中心点选举消息的终端的设备身份标识,则第一终端可以通过第一规则以及第二终端的设备身份标识确定第一终端是否为接入点。例 如,第一规则可以为接入点的设备身份标识在所有终端的设备身份标识中最小,则第一终端可以通过判断自身的设备身份标识是否小于任一第二终端的设备身份标识来确定自身是否为接入点。若第一终端的设备身份标识小于任一第二终端的设备身份标识,则确定自身为接入点,反之,则确定自身不为接入点。应理解,第一规则也可以为接入点的设备身份标识在所有终端的设备身份标识中最大,或者第一规则也可以为将所有终端的设备身份标识按照从大到小进行排序,接入点的设备身份标识排在第二位,或者第一规则也可以为将所有终端的设备身份标识按照从小到大进行排序,接入点的设备身份标识排在第二位等等,第一规则也可以为其他,本申请实施例在这里不对第一规则做具体限定。
方式二,若中心点选举消息中携带发送该中心点选举消息的终端的组网能力,则第一终端可以通过第二规则以及第二终端的组网能力确定第一终端是否为接入点。例如,第二规则可以为接入点的组网能力在所有终端的组网能力中最大,则第一终端可以通过判断自身的组网能力是否大于任一第二终端的组网能力来确定自身是否为接入点。若第一终端的组网能力大于任一第二终端的组网能力,则确定自身为接入点,反之,则确定自身不为接入点。
方式三,若中心点选举消息中携带终端发送该中心点选举消息的时间,则第一终端可以通过第三规则以及第二终端发送该中心点选举消息的时间确定第一终端是否为接入点。例如,第三规则可以为相比于其他终端发送该中心点选举消息的时间,接入点发送该中心点选举消息的时间最早,则第一终端可以通过判断自身发送该中心点选举消息的时间是否早于任一第二终端发送该中心点选举消息的时间来确定自身是否为接入点。若第一终端发送该中心点选举消息的时间是否早于任一第二终端发送该中心点选举消息的时间,则确定自身为接入点,反之,则确定自身不为接入点。
方式四,若中心点选举消息中携带发送该中心点选举消息的终端的负载信息,则第一终端可以通过第四规则以及第二终端的负载信息确定第一终端是否为接入点。例如,第四规则可以为接入点的负载在所有终端的负载中最小,则第一终端可以通过判断自身的负载是否小于任一第二终端的负载来确定自身是否为接入点。若第一终端的负载小于任一第二终端的负载,则确定自身为接入点,反之,则确定自身不为接入点。
方式五,若中心点选举消息中携带发送该中心点选举消息的终端的优先级,则第一终端可以通过第五规则以及第二终端的优先级确定第一终端是否为接入点。例如,第四规则可以为接入点的优先级在所有终端的优先级中最大,则第一终端可以通过判断自身的优先级是否大于任一第二终端的优先级来确定自身是否为接入点。若第一终端的优先级大于任一第二终端的优先级,则确定自身为接入点,反之,则确定自身不为接入点。
A4,第一终端若确定自身为接入点,则广播中心点创建消息,第二终端作为接入端连接到第一终端。其中,中心点创建消息可以用于通知接收端发送该中心点创建消息的终端为接入点,从而接收端可以接收到中心点创建消息后接入发送该中心点创建消息的终端。第一终端可以周期性广播中心点创建消息。接入端在接入接入点之后可以周期性广播中心点连接消息,中心点连接消息用于通知接收端发送该中心点连接消息已接入接入点,并且中心点连接消息可以携带接入点的标识。
当一个接入端连接的接入点发生了变化时,该接入端发送的中心点连接消息携带新的接入点的标识,从而接入端可以通过中心点连接消息通知群组中的其他终端该接入端迁移到新的接入点。
可选的,第一终端可以接收同一群组的其他终端所发送的消息,对于不是同一个群组的其他终端所发送的消息,第一终端可以不接收或者也可以在接收之后不做处理。该消息可以为中心点选举消息、也可以为中心点创建消息、也可以为中心点连接消息。
A5,第一终端若确定自身不是接入点,则在接收到接入点广播的中心点创建消息后,作为接入端连接到接入点,目标群组中除所述接入点以外的其他第二终端作为接入端接入所述接入点。该接入点可以为目标群组中某个第二终端根据预设规则以及目标群组中其他终端发送的中心点选举消息确定自身为接入点之后发送的。第一终端以及其他第二终端在连接到接入点之后,可以广播中心点连接消息。
第一终端、第二终端可以通过传统蓝牙、或者BLE广播中心点选举消息、中心点创建消息、中心点连接消息。蓝牙分为两种,即传统蓝牙和BLE。传统蓝牙可以用于数据量比较大的文件的传输,如语音,音乐,较高数据量传输等。BLE技术是低成本、短距离、可互操作的鲁棒性无线技术,工作在免许可的2.4GHz ISM射频频段,可以用于实时性要求比较高,但是数据速率比较低的产品,如鼠标,键盘等。
当然,第一终端、第二终端也可以采用其他技术广播中心点选举消息、中心点创建消息、中心点连接消息,如未来通信发展中出现的广播技术等,本申请实施例在这里不对广播技术进行具体限定。为了方便描述,本申请实施例以BLE为例进行说明。
一种实现方式中,接入点可以周期性广播中心点创建消息,接入端可以周期性广播中心点连接消息。
可选的,中心点连接消息的优先级>中心点创建消息的优先级>中心点选举消息的优先级,第一终端可以优先处理优先级高的消息。
若第一终端为接入端,在第一终端与第二终端建立近距离网络连接之后,第一终端可以通过接入点与任意一个作为接入端的第二终端进行通信。
在第一终端与第二终端建立近距离网络连接之后,当第一网络组的接入点离开第一网络组时,第一网络组的各个接入端之间可以自动建立近距离网络连接。第一网络组的接入点可以为第一终端,也可以为任一第二终端。第一网络组的接入点离开第一网络组的原因可以为第一网络组的接入点关机,或者也可以为第一网络组的接入点关闭网络连接功能,或者也可以为第一网络组的接入点远离第一网络组,当然,第一网络组的接入点也可以因为其他原因离开第一网络组,本申请实施例在这里不做具体限定。
接入端与其他接入端自动建立近距离网络连接时,可以参阅步骤A1至A5所述的方法,本申请实施例不再重复赘述。
在第一网络组的各个接入端之间可以自动建立近距离网络连接,得到第二网络组之后,若第一网络组的接入点重新回来时可以作为接入端接入第二网络组的接入点。第一网络组的接入点可以在重新开机时接入第二网络组,第一网络组的接入点也可以在重新启动网络连接功能时接入第二网络组,第一网络组的接入点也可以在靠近第二网络组时接入第二网络组,第一网络组的接入点也可以在其他场景下接入第二网络组,本申请实施例在这里不做具体限定。
以图4A为例,终端A、终端B、终端C、终端D组建一个网络组,其中,终端A为该网络组的接入点。当终端A离开该网络组时,终端B、终端C、终端D组建新的网络组,如图4B所示,其中,终端B为组建的新网络组的接入点。当终端A重新回来时可以作为接入端接入终端B,如图4C所示。
当两个网络组靠近时,这两个网络组可以合并为一个网络组。第一网络组和第三网络组可以通过如下方式合并为一个第四网络组,该第三网络组为至少两个终端建立近距离网络连接得到的。
B1,第一终端接收第三网络组中第三终端广播的消息。其中,若第三终端为第三网络组的接入点,则第三终端广播的消息为中心点创建消息,该中心点创建消息用于通知接收端该第三终端为第三网络组的接入点,且该中心点创建消息可以携带如下信息中的至少一项:第三终端的设备身份标识、第三终端的组网能力。若第三终端为第三网络组的接入端,则第三终端广播的消息可以为中心点连接消息,该中心点连接消息用于通知接收端第三终端已接入第三网络组的接入点,且该中心点连接消息可以携带如下信息中的至少一项:第三网络组的接入点的设备身份标识、第三网络组的接入点的组网能力。第一终端与第三终端可以在同一个群组中,因此第一终端可以处理第三终端广播的消息。
B2,第一终端根据预设规则以及第三终端广播的消息确定第二网络组的接入点是否可以作为第四网络组的接入点。若是,执行步骤B3。若否,执行步骤B4。其中,第一根据预设规则以及第三终端广播的消息确定第一网络组的接入点是否可以作为第四网络组的接入点的过程可以参阅步骤A3,本申请实施例在这里不再重复赘述。
B3,第一终端作为接入端连接到第三网络组的接入点。
在一种可能的实现方式中,在第一终端作为接入端连接到第三网络组的接入点之前,第一终端可以获得第三网络组中接入端的数量,从而第一终端可以根据第三网络组中接入端的数量以及第一网络组中接入端的数量确定需要连接到第三网络组的接入点的连接方式,进而第一终端可以按照确定的连接方式连接到第三网络组的接入点。第三终端广播的消息中可以携带第三网络组中接入端的数量,从而第一终端可以在接收到第三终端广播的消息时获得第三网络组中接入端的数量。
第一终端根据第三网络组中接入端的数量以及第一网络组中接入端的数量确定需要连接到第三网络组的接入点的连接方式,可以通过如下任一种方式实现:
方式一,若第一终端为第一网络组的接入点,则在第一网络组中接入端的数量与第三网络组中接入端的数量之和大于预设值时,第一终端可以作为WIFI STA连接到第三网络组的接入点,也就是第一终端采用WIFI连接的方式作为接入端连接到第三网络组的接入点。第一终端采用WIFI连接的方式作为接入端连接到第三网络组的接入点,第一终端可以保持与第一网络组中接入端之间的网络连接。预设值可以根据第三网络组的接入点的接入资源、接入能力、负载信息等确定。
终端可以作为无线路由器使用,将因特网分享给其他具备WLAN功能的终端,这时其他终端可以作为WIFI STA连接该终端上。WLAN热点架构中定义了三个组件:WIFI热点设备、WIFI接入点(access point,AP)、WIFI STA,其中,具有WLAN功能的终端均可以作为WIFI热点设备,WIFI STA为接入WIFI AP的WIFI热点设备。
方式二,若第一终端为第一网络组的接入点,则在第一网络组中接入端的数量与第三网络组中接入端的数量之和小于等于预设值时,第一终端可以作为GC连接到第三网络组的接入点,也就是第一终端采用WLAN直连的方式作为接入端连接到第三网络组的接入点。第一终端采用WLAN直连的方式作为接入端连接到第三网络组的接入点时,可以断开与第一网络组中接入端之间的网络连接。
方式三,若第一终端为第一网络组的接入端,则在第一网络组中接入端的数量与第三 网络组中接入端的数量之和大于预设值时,第一终端可以向所述第一网络组的接入点发送合并消息,该合并消息用于指示第一网络组的接入点作为WIFI STA连接到第三网络组的接入点。第一网络组的接入点作为WIFI STA连接到第三网络组的接入点时,可以保持与第一网络组的接入端之间的网络连接。
方式四,若第一终端为第一网络组的接入端,则在第一网络组中接入端的数量与第三网络组中接入端的数量之和小于等于所述预设值时,第一终端可以作为GC连接到第三网络组的接入点。第一终端作为GC连接到第三网络组的接入点时,可以断开与第一网络组的接入点之间的网络连接。第一终端作为GC连接到第三网络组的接入点时,还可以广播中心点连接消息,该中心点连接消息用于通知接收端第一终端已连接到第三网络组的接入点。第一网络组的其他终端在接收到第一终端广播的该中心点连接消息后也可以连接到第三网络组的接入点。或者,第一网络组的其他终端在接收到第一终端广播的该中心点连接消息后也可以在确定自身与第三网络组的接入点在同一群组时连接到第三网络组的接入点。
B4,第三网络组的接入点作为接入端连接到第一网络组的接入点。第三网络组的接入点作为接入端连接到第一网络组的接入点的过程,可以参阅B3所述的方法,本申请实施例在这里不再重复赘述。
为了更好地理解本申请实施例,以下结合具体应用场景,对组网过程进行具体详细描述。以中心点选举消息中携带发送该中心点选举消息的终端的设备身份标识,预设规则为接入点的设备身份标识在所有终端的设备身份标识中最小为例,对终端A、终端B、终端C、终端D的组网过程进行描述,其中终端A的设备身份标识最小,组网过程可以参阅图5所示。
S501,终端A、终端B、终端C、终端D分别检测到用户请求近距离组网的操作。
S502,终端A、终端B、终端C、终端D分别通过BLE广播中心点选举消息,并接收其他终端通过BLE广播的中心点选举消息。
S503,终端A、终端B、终端C、终端D分别保存接收的各个中心点选举消息中所携带的设备身份标识。
S504,终端A、终端B、终端C、终端D分别确定自身是否收到优先级比中心点选举消息高的消息。若是,执行步骤S505。若否,执行步骤S506。其中,优先级比中心点选举消息高的消息为中心点创建消息和/或中心点连接消息。
S505,处理接收到的优先级最高的消息。若接收到的优先级最高的消息为中心点创建消息,则该终端可以作为接入端连接到发送该中心点创建消息的终端上。若接收到的优先级最高的消息为中心点连接消息,且该中心点连接消息携带接入点的标识,则该终端可以作为接入端连接到该标识对应的终端。
S506,终端A确定自身的设备身份标识最小,并通过BLE广播中心点创建消息。终端B、终端C、终端D在接收到终端A通过BLE广播的中心点创建消息后作为接入端连接到终端A。从而终端A、终端B、终端C、终端D组建如图4A所示的网络组。
为了更好地理解本申请实施例,以下结合具体应用场景,对网络组合并进行具体详细描述。以图4A所示的网络组1以及网络组2为例,对网络组1以及网络组2的合并过程进行描述,网络组2包括终端E、终端F、终端G,其中终端E为网络组2的接入点。
场景一:网络组1的终端A与网络组2的终端E属于同一个群组,网络组1以及网络 组2靠近时,网络组1中的各个终端可以执行如下步骤,如图6A所示。
S601a,终端A接收到终端E通过BLE广播的中心点创建消息,该中心点创建消息携带终端E连接的接入端数量以及终端E的设备身份标识。执行步骤S602a。
S602a,终端A确定终端E的设备身份标识是否小于自身的设备身份标识。若是,执行步骤S603a。若否,不作处理。
S603a,终端A确定自身连接的接入端数量与终端E连接的接入端数量之和是否小于预设值。若是,执行步骤S604a。若否,执行步骤S607a。
S604a,终端A采用WLAN直连的方式接入终端E,并通过BLE广播中心点连接消息,该中心点连接消息用于通知接收端终端A已接入终端E。终端A采用WLAN直连的方式接入终端E时,可以断开与终端B、终端C、终端D之间的网络连接。
在执行完S604a之后,执行步骤S606a之前,针对终端B、终端C、终端D可以分别执行步骤S605a。
S605a,在接收到终端A通过BLE广播的中心点连接消息后,确定终端E与自身是否在同一群组中。若是,执行步骤S606a。若否,不作处理。
S606a,采用WLAN直连的方式接入终端E。若终端B、终端C、终端D分别采用WLAN直连的方式接入终端E,则合并的网络组可以如图7A所示。
S607a,终端A采用WIFI连接的方式接入终端E,并保持与终端B、终端C、终端D之间的网络连接。合并的网络组可以如图7B所示。
网络组2中的各个终端的执行过程可以参阅上述步骤S601a至S607a,本申请实施例不再重复赘述。
场景二:网络组1的终端B与网络组2的终端E属于同一个群组,网络组1以及网络组2靠近时,终端B可以执行如下步骤,如图6B所示。
S601b,终端B接收终端E通过BLE广播的中心点创建消息,该中心点创建消息携带终端E连接的接入端数量以及终端E的设备身份标识。执行步骤S602b。
S602b,终端B确定终端E的设备身份标识是否小于终端A的设备身份标识。若是,执行步骤S603b。若否,不作处理。
S603b,终端B确定终端E连接的接入端数量与终端A连接的接入端数量之和是否小于预设值。若是,执行步骤S604b。若否,执行步骤S607b。
S604b,终端B采用WLAN直连的方式接入终端A,并通过BLE广播中心点连接消息,该中心点连接消息用于通知接收端终端B已接入终端E。终端B采用WLAN直连的方式接入终端A时,可以断开与终端A之间的网络连接。
在执行完S604b之后,执行步骤S606b之前,针对终端A、终端C、终端D可以分别执行步骤S605b。
S605b,在接收到终端B通过BLE广播的中心点连接消息后,确定终端E与自身是否在同一群组中。若是,执行步骤S606b。若否,不作处理。
S606b,断开与其他终端的连接,并采用WLAN直连的方式接入终端E。若终端A、终端C、终端D分别采用WLAN直连的方式接入终端E,则合并的网络组可以如图7A所示。
S607b,终端B向终端A发送合并指示消息,该合并指示消息用于指示终端A采用 WIFI连接的方式接入终端E。从而终端A在接收到终端B发送的合并指示消息后采用WIFI连接的方式接入终端E。终端A采用WIFI连接的方式接入终端E时,可以保持与与终端B、终端C、终端D之间的网络连接,如图7B所示。
网络组1以及网络组2靠近时,终端E可以接收终端B广播的中心点连接消息,该中心点连接消息携带终端A连接的接入端数量以及终端A的设备身份标识。终端E在接收到终端B广播的中心点连接消息后,可以执行步骤S602a至S607a,本申请实施例不再重复赘述。
场景三:网络组1的终端B与网络组2的终端F属于同一个群组。网络组1以及网络组2靠近时,终端B可以接收终端F广播的中心点连接消息,该中心点连接消息携带终端E连接的接入端数量以及终端E的设备身份标识。终端B在接收到终端F广播的中心点连接消息后,可以执行步骤S602b至S607b,本申请实施例不再重复赘述。
网络组1以及网络组2靠近时,终端F可以接收终端B广播的中心点连接消息,该中心点连接消息携带终端A连接的接入端数量以及终端A的设备身份标识。终端F在接收到终端B广播的中心点连接消息后,可以执行步骤S602b至S607b,本申请实施例不再重复赘述。
本申请实施例中终端在检测到用户请求与目标群组近距离组网的操作时,不需要用户进行其他操作就可以与第二终端建立近距离网络连接。例如,以3个终端为例,3个终端分别检测到用户请求近距离组网的操作后,这3个终端自动建立近距离网络连接,从而这3个终端可以相互通信。相比于现有技术中,3个终端分别检测到用户请求近距离组网的操作后,用户需要协商确定其中一个终端作为GO,然后用户操作该GO搜索另外两个终端的无线信号。在搜索到另外两个终端后,用户再通过在该GO上操作选中另外两个终端,并通过操作该GO向另外两个终端发送请求消息,以请求另外两个终端基于WLAN Direct技术接入该GO。另外两个终端接收到GO发送的请求消息后,用户需要在终端上进行同意进行WLAN Direct的操作,使得该终端可以基于WLAN Direct技术接入该GO。本申请实施例中多个终端在建立近距离网络连接时,可以减少用户的操作,从而可以较好的实现组网建立过程对用户的无感知。并且,由于多个终端可以自动建立近距离网络连接,因此出现一些建网异常、冲突等场景时可以不需要人工参与解决,从而可以降低对用户要求高,进而可以提高用户体验。
基于与方法实施例的同一发明构思,本发明实施例提供一种组网装置80,具体用于实现图2至图7B所述的实施例描述的方法,该装置的结构如图8所示,包括检测模块81、网络连接模块82以及显示模块83,其中:
检测模块81,用于检测用户请求与目标群组近距离组网的操作,其中,所述目标群组包括第一终端及至少两个第二终端。网络连接模块82,用于在所述检测模块81检测到用户请求与目标群组近距离组网的操作后,与所述第二终端建立近距离网络连接。显示模块83,用于在所述网络连接模块82与所述第二终端建立近距离网络连接后,显示即时通信界面,用于与所述第二终端的用户通信。
网络连接模块82,可以具体用于:自动与所述第二终端建立近距离网络连接。
所述近距离网络连接可以为以下连接方式之一:蓝牙连接、NFC、WLAN直连、WLAN热点连接。
所述装置80还可以包括收发模块84。所述收发模块84,用于广播第一中心点选举消息,所述第一中心点选举消息携带如下信息中的至少一项:所述第一终端的设备身份标识、所述第一终端的组网能力、所述第一终端发送所述第一中心点选举消息的时间,所述第一中心点选举消息用于通知接收端所述第一终端处于待组网状态。以及,接收所述第二终端广播的第二中心点选举消息,所述第二中心点选举消息携带如下信息中的至少一项:所述第二终端的设备身份标识、所述第二终端的组网能力、所述第二终端发送所述第二中心点选举消息的时间,所述第二中心点选举消息用于通知接收端所述第二终端处于待组网状态。所述网络连接模块82,可以具体用于:根据预设规则以及所述收发模块84接收的所述第二中心点选举消息确定所述第一终端是否为接入点。若确定自身为接入点,所述收发模块84,还可以用于广播第一中心点创建消息,所述第二终端作为接入端连接到所述第一终端,所述第一中心点创建消息用于通知接收端所述第一终端为接入点。若确定自身不是接入点,所述收发模块84,还可以用于接收接入点广播的第二中心点创建消息。所述网络连接模块82,还可以用于在所述收发模块84接收到接入点广播的第二中心点创建消息后,作为接入端连接到所述接入点,所述目标群组中除所述接入点以外的其他第二终端接入所述接入点,所述第二中心点创建消息用于通知接收端发送所述第二中心点创建消息的终端为接入点。
所述装置80还可以包括通信模块85。所述通信模块85,用于在所述网络连接模块82与所述第二终端建立近距离网络连接之后,通过所述接入点与任意一个作为接入端的第二终端进行通信。
所述装置80还可以包括确定模块86。所述收发模块84,还可以用于在所述网络连接模块82与所述第二终端建立近距离网络连接之后,接收第二网络组的接入点所广播的第三中心点创建消息,所述第三中心点创建消息用于通知接收端发送所述第三中心点创建消息的终端为所述第二网络组的接入点,且所述第三中心点创建消息携带如下信息中的至少一项:所述第二网络组的接入点的设备身份标识、所述第二网络组的接入点的组网能力,所述第二网络组为至少两个第三终端建立近距离网络连接后得到的网络组。所述确定模块86,用于根据预设规则以及所述收发模块84接收的所述第三中心点创建消息确定第三网络组的接入点,所述第三网络组为第一网络组与所述第二网络组合并后得到的网络组,所述第一网络组为所述第一终端与所述第二终端建立近距离网络连接后得到的网络组。若所述确定模块86确定所述第三网络组的接入点为所述第二网络组的接入点,所述网络连接模块82还可以用于所述第一终端作为接入端连接到所述第二网络组的接入点。若所述确定模块86确定所述第三网络组的接入点为所述第一网络组的接入点,则所述第二网络组的接入点作为接入端连接到所述第一网络组的接入点。
在一种可能的实现方式中,所述收发模块84,还可以用于在所述网络连接模块82与所述第二终端建立近距离网络连接之后,接收第二网络组的接入端所广播的中心点连接消息,所述中心点连接消息用于通知接收端发送所述中心点连接消息的终端已接入所述第二网络组的接入点,且所述中心点连接消息携带如下信息中的至少一项:所述第二网络组的接入点的设备身份标识、所述第二网络组的接入点的组网能力,所述第二网络组为至少两个第三终端建立近距离网络连接后得到的网络组。所述确定模块86,还可以用于根据预设规则以及所述收发模块84接收的所述中心点连接消息确定第三网络组的接入点,所述第三网络组为第一网络组与所述第二网络组合并后得到的网络组,所述第一网络组为所述第 一终端与所述第二终端建立近距离网络连接后得到的网络组。若所述确定模块86确定所述第三网络组的接入点为所述第二网络组的接入点,所述网络连接模块82,还可以用于作为接入端连接到所述第二网络组的接入点。若所述确定模块86确定所述第三网络组的接入点为所述第一网络组的接入点,则所述第二网络组的接入点作为接入端连接到所述第一网络组的接入点。
所述装置80还可以包括获取模块87。获取模块87,用于在所述网络连接模块82作为接入端连接到所述第二网络组的接入点之前,获得所述第二网络组中接入端的数量。所述确定模块86,还可以用于根据所述第二网络组中接入端的数量以及所述第一网络组中接入端的数量,确定需要连接到所述第二网络组的接入点的连接方式。所述网络连接模块82,在作为接入端连接到所述第二网络组的接入点时,可以具体用于:按照确定的连接方式连接到所述第二网络组的接入点。
在一种可能的实现方式中,若所述第一终端为所述第一网络组的接入点。所述确定模块86,在根据所述第二网络组中接入端的数量以及所述收发模块84接收的所述第一网络组中接入端的数量,确定需要连接到所述第二网络组的接入点的连接方式时,可以具体用于:若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和大于预设值,则作为无线保真客户端WIFI STA连接到所述第二网络组的接入点,并保持与所述第一网络组中接入端之间的网络连接。或者,若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和小于等于所述预设值,则作为网络组客户端GC连接到所述第二网络组的接入点,并断开与所述第一网络组中接入端之间的网络连接。
在另一种可能的实现方式中,若所述第一终端为所述第一网络组的接入端。所述确定模块86,在根据所述第二网络组中接入端的数量以及所述第一网络组中接入端的数量,确定需要连接到所述第二网络组的接入点的连接方式时,可以具体用于:若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和大于预设值,则向通过收发模块84所述第一网络组的接入点发送合并消息,所述合并消息用于指示所述第一网络组的接入点作为WIFI STA连接到所述第二网络组的接入点。或者,若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和小于等于所述预设值,则作为GC连接到所述第二网络组的接入点,并断开与所述第一网络组的接入点之间的网络连接。
本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请实施例各个实施例中的各功能模块可以集成在一个处理器中,也可以是单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
采用硬件实现时,如图9所示,为本申请实施例提供的一种第一终端的结构示意图。其中,第一终端100包括显示屏110、处理器120以及存储器130。存储器130可用于存储软件程序以及数据,处理器120通过运行存储在存储器130的软件程序以及数据,从而执行第一终端100的各种功能应用以及数据处理,如处理器120可以执行图2至图7B所述方法中除收发消息、显示即时通信界面以外的其他操作,如图2中步骤S202、图5中的步骤S502、步骤S504等。存储器130可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统程序、至少一个功能所需的应用程序(比如与所述第二终端建立近距离网络连接等)等;存储数据区可存储根据第一终端100获取的数据(比如第一终端100接收到的中心点选举消息等)等。此外,存储器130可以包括高速随机存取存储器,还可 以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。处理器120是第一终端100的控制中心,利用各种接口和线路连接整个第一终端的各个部分,通过运行或执行存储在存储器130内的软件程序和/或数据,执行第一终端100的各种功能,从而对第一终端进行整体监控。处理器120可以包括一个或多个通用处理器,还可包括一个或多个数字信号处理器(digital signal processor,DSP),或者MCU等等,用于执行相关操作,以实现本申请实施例所提供的技术方案。
第一终端100还可以包括输入设备140,用于接收输入的数字信息、字符信息或接触式触摸操作/非接触式手势,以及产生与第一终端100的用户设置以及功能控制有关的信号输入等。具体地,本申请实施例中,该输入设备140可以包括触控面板141。触控面板141,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板141上或在触控面板141的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板141可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器120,并能接收处理器120发来的命令并加以执行。例如,用户在触控面板141上用手指单击用于请求近距离组网的图标或者图例等等,触摸检测装置检测到此次单击带来的这个信号,然后将该信号传送给触摸控制器,触摸控制器再将这个信号转换成坐标发送给处理器120,处理器120根据该坐标和该信号的类型(单击或双击)确定对该图标或者图例所执行的操作(开启),然后,确定执行该操作所需要占用的内存空间,若需要占用的内存空间小于空闲内存,则将开始与所述第二终端建立近距离网络连接。
触控面板141可以采用电阻式、电容式、红外线以及表面声波等多种类型实现。除了触控面板141,输入设备140还可以包括其他输入设备142,其他输入设备142可以包括但不限于物理键盘、功能键(比如控制按键、开关按键等)等中的一种或多种。
显示设备110,包括的显示面板111,用于显示用于与所述第二终端的用户通信的即时通信界面,即时通信界面。还可以由用户输入的信息或提供给用户的信息以及第一终端100的各种菜单界面等。可选的,显示面板可以采用液晶显示器(liquid crystal display,LCD)或有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示面板111。在其他一些实施例中,触控面板141可覆盖显示面板111上,形成触摸显示屏。
除以上之外,第一终端100还可以包括用于给其他模块供电的电源150。可穿戴智能设备100还可以包括收发器160,收发器160用于执行图2至图7B所述方法中收发消息的操作,如广播中心点选举消息、接收第二终端发送的中心点连接消息等。收发器160可以包括NFC模块161,用于与其他设备进行近场通信,还可以包括蓝牙模块162,用于与其他设备进行蓝牙通信,还可以包括无线射频(radio frequency,RF)电路163,用于与无线网络设备进行网络通信,还可以包括WLAN模块164,用于与其他设备采用WLAN直连方式进行通信或者与其他设备采用WIFI连接方式进行通信。第一终端100还可以包括扬声器170,用于播放音乐、语音提示或者发出提示音等等。
本发明实施例还提供了一种计算机可读存储介质,用于存储为执行上述处理器所需执行的计算机软件指令,其包含用于执行上述处理器所需执行的程序。
本发明实施例还提供了一种芯片,该芯片包括上述通信接口和上述处理器,用于支持终端实现图2至图7B所示实施例所述的方法中的任一种方法。
本领域内的技术人员应明白,本申请实施例的实施例可提供为方法、系统、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本申请实施例进行各种改动和变型而不脱离本申请实施例的精神和范围。这样,倘若本申请实施例的这些修改和变型属于本申请实施例权利要求及其等同技术的范围之内,则本申请实施例也意图包含这些改动和变型在内。

Claims (22)

  1. 一种组网方法,其特征在于,包括:
    第一终端检测用户请求与目标群组近距离组网的操作,其中,所述目标群组包括第一终端及至少两个第二终端;
    所述第一终端与所述第二终端建立近距离网络连接;
    所述第一终端显示即时通信界面,用于与所述第二终端的用户通信。
  2. 如权利要求1所述的方法,其特征在于,所述第一终端与所述第二终端建立近距离网络连接,包括:
    所述第一终端自动与所述第二终端建立近距离网络连接。
  3. 如权利要求1或2所述的方法,其特征在于,所述近距离网络连接为以下连接方式之一:蓝牙连接、无线局域网络WLAN直连、WLAN热点连接。
  4. 如权利要求1-3任一项所述的方法,其特征在于,所述第一终端自动与所述第二终端建立近距离网络连接,包括:
    所述第一终端广播第一中心点选举消息,所述第一中心点选举消息携带如下信息中的至少一项:所述第一终端的设备身份标识、所述第一终端的组网能力、所述第一终端发送所述第一中心点选举消息的时间,所述第一中心点选举消息用于通知接收端所述第一终端处于待组网状态;
    所述第一终端接收所述第二终端广播的第二中心点选举消息,所述第二中心点选举消息携带如下信息中的至少一项:所述第二终端的设备身份标识、所述第二终端的组网能力、所述第二终端发送所述第二中心点选举消息的时间,所述第二中心点选举消息用于通知接收端所述第二终端处于待组网状态;
    所述第一终端根据预设规则以及所述第二终端广播的所述第二中心点选举消息确定所述第一终端是否为接入点;
    所述第一终端若确定自身为接入点,则广播第一中心点创建消息,所述第二终端作为接入端连接到所述第一终端,所述第一中心点创建消息用于通知接收端所述第一终端为接入点;
    所述第一终端若确定自身不是接入点,则在接收到接入点广播的第二中心点创建消息后,作为接入端连接到所述接入点,所述目标群组中除所述接入点以外的其他第二终端接入所述接入点,所述第二中心点创建消息用于通知接收端发送所述第二中心点创建消息的终端为接入点。
  5. 如权利要求1-4任一项所述的方法,其特征在于,在所述第一终端与所述第二终端建立近距离网络连接之后,还包括:
    所述第一终端为接入端,所述第一终端通过所述接入点与任意一个作为接入端的第二终端进行通信。
  6. 如权利要求1-5任一项所述的方法,其特征在于,在所述第一终端与所述第二终端建立近距离网络连接之后,所述方法还包括:
    所述第一终端接收第二网络组的接入点所广播的第三中心点创建消息,所述第三中心点创建消息用于通知接收端发送所述第三中心点创建消息的终端为所述第二网络组的接入点,且所述第三中心点创建消息携带如下信息中的至少一项:所述第二网络组的接入点 的设备身份标识、所述第二网络组的接入点的组网能力,所述第二网络组为至少两个第三终端建立近距离网络连接后得到的网络组;
    所述第一终端根据预设规则以及所述第三中心点创建消息确定第三网络组的接入点,所述第三网络组为第一网络组与所述第二网络组合并后得到的网络组,所述第一网络组为所述第一终端与所述第二终端建立近距离网络连接后得到的网络组;
    若所述第三网络组的接入点为所述第二网络组的接入点,则所述第一终端作为接入端连接到所述第二网络组的接入点;
    若所述第三网络组的接入点为所述第一网络组的接入点,则所述第二网络组的接入点作为接入端连接到所述第一网络组的接入点。
  7. 如权利要求1-5任一项所述的方法,其特征在于,在所述第一终端与所述第二终端建立近距离网络连接之后,还包括:
    所述第一终端接收第二网络组的接入端所广播的中心点连接消息,所述中心点连接消息用于通知接收端发送所述中心点连接消息的终端已接入所述第二网络组的接入点,且所述中心点连接消息携带如下信息中的至少一项:所述第二网络组的接入点的设备身份标识、所述第二网络组的接入点的组网能力,所述第二网络组为至少两个第三终端建立近距离网络连接后得到的网络组;
    所述第一终端根据预设规则以及所述中心点连接消息确定第三网络组的接入点,所述第三网络组为第一网络组与所述第二网络组合并后得到的网络组,所述第一网络组为所述第一终端与所述第二终端建立近距离网络连接后得到的网络组;
    若所述第三网络组的接入点为所述第二网络组的接入点,则所述第一终端作为接入端连接到所述第二网络组的接入点;
    若所述第三网络组的接入点为所述第一网络组的接入点,则所述第二网络组的接入点作为接入端连接到所述第一网络组的接入点。
  8. 如权利要求6或7所述的方法,其特征在于,在所述第一终端作为接入端连接到所述第二网络组的接入点之前,还包括:
    所述第一终端获得所述第二网络组中接入端的数量;
    所述第一终端根据所述第二网络组中接入端的数量以及所述第一网络组中接入端的数量,确定需要连接到所述第二网络组的接入点的连接方式;
    所述第一终端作为接入端连接到所述第二网络组的接入点,包括:
    所述第一终端按照确定的连接方式连接到所述第二网络组的接入点。
  9. 如权利要求8所述的方法,其特征在于,所述第一终端为所述第一网络组的接入点;
    所述第一终端根据所述第二网络组中接入端的数量以及所述第一网络组中接入端的数量,确定需要连接到所述第二网络组的接入点的连接方式,包括:
    若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和大于预设值,则所述第一终端作为无线保真客户端WIFI STA连接到所述第二网络组的接入点,并保持与所述第一网络组中接入端之间的网络连接;或者
    若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和小于等于所述预设值,则所述第一终端作为网络组客户端GC连接到所述第二网络组的接入点,并断开与所述第一网络组中接入端之间的网络连接。
  10. 如权利要求9所述的方法,其特征在于,所述第一终端为所述第一网络组的接入端;
    所述第一终端根据所述第二网络组中接入端的数量以及所述第一网络组中接入端的数量,确定需要连接到所述第二网络组的接入点的连接方式,包括:
    若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和大于预设值,则所述第一终端向所述第一网络组的接入点发送合并消息,所述合并消息用于指示所述第一网络组的接入点作为WIFI STA连接到所述第二网络组的接入点;或者
    若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和小于等于所述预设值,则所述第一终端作为GC连接到所述第二网络组的接入点,并断开与所述第一网络组的接入点之间的网络连接。
  11. 一种第一终端,其特征在于,包括:
    处理器,用于检测用户请求与目标群组近距离组网的操作,其中,所述目标群组包括第一终端及至少两个第二终端;并与所述第二终端建立近距离网络连接;
    显示屏,用于在所述收发器与所述第二终端建立近距离网络连接后,显示即时通信界面,用于与所述第二终端的用户通信。
  12. 如权利要求11所述的第一终端,其特征在于,所述第一终端还包括触摸屏;
    所述触摸屏,用于在用户的操作下触发请求与目标群组近距离组网的指令;
    所述处理器,在检测用户请求与目标群组近距离组网的操作时,具体用于:
    接收所述触摸屏触发的所述指令。
  13. 如权利要求11或12所述的第一终端,其特征在于,所述处理器,在与所述第二终端建立近距离网络连接时,具体用于:
    自动与所述第二终端建立近距离网络连接。
  14. 如权利要求11至13任一项所述的第一终端,其特征在于,所述近距离网络连接为以下连接方式之一:蓝牙连接、WLAN直连、WLAN热点连接。
  15. 如权利要求11至14任一项所述的第一终端,其特征在于,所述第一终端还包括收发器;
    所述收发器,用于广播第一中心点选举消息,并接收所述第二终端广播的第二中心点选举消息;所述第一中心点选举消息携带如下信息中的至少一项:所述第一终端的设备身份标识、所述第一终端的组网能力、所述第一终端发送所述第一中心点选举消息的时间,所述第一中心点选举消息用于通知接收端所述第一终端处于待组网状态;所述第二中心点选举消息携带如下信息中的至少一项:所述第二终端的设备身份标识、所述第二终端的组网能力、所述第二终端发送所述第二中心点选举消息的时间,所述第二中心点选举消息用于通知接收端所述第二终端处于待组网状态;
    所述处理器,在与所述第二终端建立近距离网络连接时,具体用于:
    根据预设规则以及所述收发器接收到的所述第二中心点选举消息确定所述第一终端是否为接入点;
    若确定自身为接入点,所述收发器,还用于广播第一中心点创建消息,所述第二终端作为接入端连接到所述第一终端,所述第一中心点创建消息用于通知接收端所述第一终端为接入点;
    若确定自身不是接入点,所述收发器,还用于接收接入点广播的第二中心点创建消息, 所述第二中心点创建消息用于通知接收端发送所述第二中心点创建消息的终端为接入点;所述处理器,还用于在所述收发器接收到所述第二中心点创建消息后,作为接入端连接到所述接入点,所述目标群组中除所述接入点以外的其他第二终端接入所述接入点。
  16. 如权利要求11-15任一项所述的第一终端,其特征在于,所述第一终端为接入端,所述第一终端还包括收发器;
    所述收发器,用于在所述处理器与所述第二终端建立近距离网络连接之后,通过所述接入点与任意一个作为接入端的第二终端进行通信。
  17. 如权利要求11-16任一项所述的第一终端,其特征在于,所述第一终端为接入端,所述第一终端还包括收发器;
    所述收发器,用于在所述处理器与所述第二终端建立近距离网络连接之后,接收第二网络组的接入点所广播的第三中心点创建消息,所述第三中心点创建消息用于通知接收端发送所述第三中心点创建消息的终端为所述第二网络组的接入点,且所述第三中心点创建消息携带如下信息中的至少一项:所述第二网络组的接入点的设备身份标识、所述第二网络组的接入点的组网能力,所述第二网络组为至少两个第三终端建立近距离网络连接后得到的网络组;
    所述处理器,还用于根据预设规则以及所述收发器接收到的所述第三中心点创建消息确定第三网络组的接入点,所述第三网络组为第一网络组与所述第二网络组合并后得到的网络组,所述第一网络组为所述第一终端与所述第二终端建立近距离网络连接后得到的网络组;
    若所述第三网络组的接入点为所述第二网络组的接入点,所述处理器还用于作为接入端连接到所述第二网络组的接入点;
    若所述第三网络组的接入点为所述第一网络组的接入点,则所述第二网络组的接入点作为接入端连接到所述第一网络组的接入点。
  18. 如权利要求11-17任一项所述的第一终端,其特征在于,所述第一终端为接入端,所述第一终端还包括收发器;
    所述收发器,用于在所述处理器与所述第二终端建立近距离网络连接之后,接收第二网络组的接入端所广播的中心点连接消息,所述中心点连接消息用于通知接收端发送所述中心点连接消息的终端已接入所述第二网络组的接入点,且所述中心点连接消息携带如下信息中的至少一项:所述第二网络组的接入点的设备身份标识、所述第二网络组的接入点的组网能力,所述第二网络组为至少两个第三终端建立近距离网络连接后得到的网络组;
    所述处理器,还用于根据预设规则以及所述中心点连接消息确定第三网络组的接入点,所述第三网络组为第一网络组与所述第二网络组合并后得到的网络组,所述第一网络组为所述第一终端与所述第二终端建立近距离网络连接后得到的网络组;
    若所述第三网络组的接入点为所述第二网络组的接入点,所述处理器还用于作为接入端连接到所述第二网络组的接入点;
    若所述第三网络组的接入点为所述第一网络组的接入点,则所述第二网络组的接入点作为接入端连接到所述第一网络组的接入点。
  19. 如权利要求17或18所述的第一终端,其特征在于,所述处理器,还用于在作为接入端连接到所述第二网络组的接入点之前,获得所述第二网络组中接入端的数量;并根据所述第二网络组中接入端的数量以及所述第一网络组中接入端的数量,确定需要连接到 所述第二网络组的接入点的连接方式;
    所述处理器,在作为接入端连接到所述第二网络组的接入点时,具体用于:
    按照确定的连接方式连接到所述第二网络组的接入点。
  20. 如权利要求19所述的第一终端,其特征在于,所述第一终端为所述第一网络组的接入点;
    所述处理器,在根据所述第二网络组中接入端的数量以及所述第一网络组中接入端的数量,确定需要连接到所述第二网络组的接入点的连接方式时,具体用于:
    若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和大于预设值,则作为无线保真客户端WIFI STA连接到所述第二网络组的接入点,并保持与所述第一网络组中接入端之间的网络连接;或者
    若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和小于等于所述预设值,则作为网络组客户端GC连接到所述第二网络组的接入点,并断开与所述第一网络组中接入端之间的网络连接。
  21. 如权利要求19所述的第一终端,其特征在于,所述第一终端为所述第一网络组的接入端;
    所述处理器,在根据所述第二网络组中接入端的数量以及所述第一网络组中接入端的数量,确定需要连接到所述第二网络组的接入点的连接方式时,具体用于:
    若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和大于预设值,则控制所述收发器向所述第一网络组的接入点发送合并消息,所述合并消息用于指示所述第一网络组的接入点作为WIFI STA连接到所述第二网络组的接入点;或者
    若所述第一网络组中接入端的数量与所述第二网络组中接入端的数量之和小于等于所述预设值,则作为GC连接到所述第二网络组的接入点,并断开与所述第一网络组的接入点之间的网络连接。
  22. 一种计算机存储介质,其特征在于,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使所述计算机执行权利要求1至10任一项所述的方法。
PCT/CN2018/097288 2018-04-12 2018-07-26 一种组网方法及设备 WO2019196253A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201880044571.1A CN110832947B (zh) 2018-04-12 2018-07-26 一种组网方法及设备

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810325466.7 2018-04-12
CN201810325466 2018-04-12

Publications (1)

Publication Number Publication Date
WO2019196253A1 true WO2019196253A1 (zh) 2019-10-17

Family

ID=68163876

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/097288 WO2019196253A1 (zh) 2018-04-12 2018-07-26 一种组网方法及设备

Country Status (2)

Country Link
CN (1) CN110832947B (zh)
WO (1) WO2019196253A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901767A (zh) * 2020-08-05 2020-11-06 杭州叙简科技股份有限公司 一种执法记录仪poc自组网的系统
WO2023035834A1 (zh) * 2021-09-10 2023-03-16 华为技术有限公司 一种Wi-Fi直连通信方法及装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112055365B (zh) * 2020-09-16 2024-04-09 北京数码视讯技术有限公司 终端组网的方法及装置、终端、可读存储介质
CN115460220A (zh) * 2021-05-21 2022-12-09 华为技术有限公司 设备组网方法及装置、设备、存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103037318A (zh) * 2012-10-19 2013-04-10 香港应用科技研究院有限公司 移动设备通过接近式传感而形成点对点群组的装置、系统和方法
CN103118101A (zh) * 2013-01-25 2013-05-22 深圳清华大学研究院 一种用于移动终端的信息共享方法
CN103118337A (zh) * 2011-11-17 2013-05-22 中兴通讯股份有限公司 用于蓝牙设备的信息处理方法、装置及其蓝牙设备
WO2016056984A1 (en) * 2014-10-08 2016-04-14 Crunchfish Ab Communication device for improved sharing of content

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10387918B2 (en) * 2009-03-03 2019-08-20 Mobilitie, Llc System and method for retail sales using wireless communication devices in a wireless communication network
KR101842047B1 (ko) * 2012-03-15 2018-03-26 삼성전자주식회사 와이 파이 다이렉트 통신 시스템에서 그룹 프로파일 관리를 위한 방법 및 장치
CN103873342B (zh) * 2012-12-11 2017-06-06 腾讯科技(深圳)有限公司 一种加入社交群组的方法、终端以及系统
CN103686586B (zh) * 2013-12-11 2017-03-01 联想(北京)有限公司 一种信息处理方法及电子设备
CN104333888A (zh) * 2014-10-27 2015-02-04 中央民族大学 一种基于Wi-Fi直连的自组织即时通信方法
CN106937239A (zh) * 2015-12-29 2017-07-07 天津三星通信技术研究有限公司 建立近距离连接及控制电子终端建立该连接的方法和设备
CN107493563B (zh) * 2017-08-31 2020-10-27 大唐终端技术有限公司 一种蓝牙实现群组对讲的方法及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118337A (zh) * 2011-11-17 2013-05-22 中兴通讯股份有限公司 用于蓝牙设备的信息处理方法、装置及其蓝牙设备
CN103037318A (zh) * 2012-10-19 2013-04-10 香港应用科技研究院有限公司 移动设备通过接近式传感而形成点对点群组的装置、系统和方法
CN103118101A (zh) * 2013-01-25 2013-05-22 深圳清华大学研究院 一种用于移动终端的信息共享方法
WO2016056984A1 (en) * 2014-10-08 2016-04-14 Crunchfish Ab Communication device for improved sharing of content

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901767A (zh) * 2020-08-05 2020-11-06 杭州叙简科技股份有限公司 一种执法记录仪poc自组网的系统
WO2023035834A1 (zh) * 2021-09-10 2023-03-16 华为技术有限公司 一种Wi-Fi直连通信方法及装置

Also Published As

Publication number Publication date
CN110832947B (zh) 2021-08-31
CN110832947A (zh) 2020-02-21

Similar Documents

Publication Publication Date Title
US9510163B2 (en) Method and apparatus for managing a group profile in a Wi-Fi direct communication system
WO2019196253A1 (zh) 一种组网方法及设备
JP5985767B2 (ja) 近接場通信を用いたピア・ツー・ピアWi−Fiレンジングのための方法および装置
KR102005771B1 (ko) 무선 통신 네트워크에서 ip 주소 할당 방법 및 장치
KR101597177B1 (ko) 무선 통신 접속의 콘텍스트 인식 근접도 기반 설정
US9736767B2 (en) Identification-assisted wireless network connections
US20160028802A1 (en) Peer-to-peer group re-formation
TW201348970A (zh) 用於促進無線對接系統中的直接配對的設備和方法
US8515350B2 (en) Resolving an application service change in a system using bluetooth
US10863559B2 (en) Method and apparatus for communicating in a wireless communication network
JP6142079B2 (ja) ワイヤレスドッキング
WO2013159420A1 (zh) 网络设备能力共享方法及装置、网络设备
US20150043484A1 (en) Method and apparatus for wi-fi direct connection
JP7049086B2 (ja) 通信装置、制御方法、及びプログラム
US11974351B2 (en) Device for wireless communication with other devices
US9830116B2 (en) Printing device discovery
US20170103009A1 (en) Monitoring a device status for an application
KR20190091423A (ko) 무선 통신 네트워크에서 ip 주소 할당 방법 및 장치
WO2023207817A1 (zh) 主机连接方法、装置、系统、设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18914502

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18914502

Country of ref document: EP

Kind code of ref document: A1