WO2014187241A1 - 控制无线网络直连群组中无线设备断开的方法及无线设备 - Google Patents

控制无线网络直连群组中无线设备断开的方法及无线设备 Download PDF

Info

Publication number
WO2014187241A1
WO2014187241A1 PCT/CN2014/076986 CN2014076986W WO2014187241A1 WO 2014187241 A1 WO2014187241 A1 WO 2014187241A1 CN 2014076986 W CN2014076986 W CN 2014076986W WO 2014187241 A1 WO2014187241 A1 WO 2014187241A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless device
data frame
wireless
disconnected
disconnection
Prior art date
Application number
PCT/CN2014/076986
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 US15/106,905 priority Critical patent/US20170127472A1/en
Publication of WO2014187241A1 publication Critical patent/WO2014187241A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • H04W76/34Selective release of ongoing connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • H04W76/38Connection release triggered by timers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present invention relates to the field of wireless network direct connection, and in particular, to a method and a wireless device for controlling disconnection of a wireless device in a direct connection group of a wireless network. Background technique
  • Wi-Fi Alliance Wi-Fi Alliance
  • Wi-Fi Direct technology is defined to allow devices in a wireless network to connect to each other without using a wireless router. Since Wi-Fi routers or access points are not required, different Wi-Fi devices can implement each other in any location. connection.
  • the Wi-Fi Direct Device Discovery and Service Discovery features help users determine which devices and services are available and then establish a connection.
  • Wi-Fi Direct devices use Wi-Fi Protected SetupTM to simplify the process of creating secure connections between devices.
  • a wireless network direct connection group consisting of two new types of roles, Group Owner and Group Client, appears to support P2P ( Peer to Peer, peer-to-peer connection.
  • the Group Owner is compatible with a traditional Wi-Fi network and can act as a STA (station, station) or AP (wireless access point or wireless router). In addition, it can establish point-to-point with multiple Group Clients.
  • the secure connection; the Group Client is similar to the STA. In addition to the STA function, it can also establish a P2P connection with the Group Owner.
  • the Group Owner will assume the role of the gateway, and the other nodes in the network are the Group Client.
  • the Group Owner can only disconnect all Group Clients of the Group Owner at one time, and cannot selectively disconnect the Group Client in the network, which makes it impossible and effective. Manage the Group Client in the Wifi Direct runtime environment.
  • the main purpose of the embodiments of the present invention is to provide a method for controlling disconnection of a wireless device in a direct connection group of a wireless network, and a wireless device, which is capable of selectively disconnecting a wireless device in a direct connection group of the wireless network, and is effective,
  • an embodiment of the present invention provides a method for controlling disconnection of a wireless device in a direct connection group of a wireless network, the method comprising:
  • the wireless device constructs a disconnected data frame corresponding to each other wireless device that meets the preset disconnection condition when the other wireless device connected thereto meets the preset disconnection condition; the wireless device sends the constructed data frame The corresponding other wireless device is caused to cause the other wireless device receiving the data frame to disconnect from the wireless device according to the received data frame.
  • the wireless device prestores an information link list of each of the other wireless devices connected thereto, and the wireless device transmits the constructed data frame to the corresponding other wireless device, so that other wireless devices that receive the data frame are configured according to After receiving the data frame, disconnecting from the wireless device, the method further includes:
  • the wireless device finds connection parameter information of the disconnected other wireless device from the pre-stored information link list of each other wireless device connected thereto, and will find The connection parameter information is deleted.
  • the other wireless device that receives the data frame disconnects the wireless device according to the received data frame, including: Analyzing whether the data frame is a data frame disconnected from the wireless device; when the data frame is a data frame disconnected from the wireless device, acquiring, from the data frame, disconnecting from the wireless device a cause and type, and analyzing whether the data frame is a data frame that is immediately disconnected from the wireless device;
  • the wireless device When the data frame is a data frame that is immediately disconnected from the wireless device, the wireless device is disconnected and the cause of the disconnection is prompted.
  • the method includes:
  • the other wireless device that receives the data frame starts timing when the data frame is not immediately disconnected from the data frame of the wireless device, and includes:
  • an alert message is sent that will be disconnected from the wireless device after a preset time, and timing is started.
  • the embodiment of the present invention further provides a wireless device, which is applicable to the method for controlling disconnection of a wireless device in a direct connection group of a wireless network, and the wireless device includes:
  • a data generating module configured to construct a disconnected data frame corresponding to each of the other wireless devices that meet the preset disconnection condition when another wireless device connected to the wireless device meets the preset disconnection condition;
  • a data sending module configured to send the constructed data frame to the corresponding other wireless device, so that other wireless devices that receive the data frame disconnect the connection with the wireless device according to the received data frame.
  • the wireless device pre-stores an information link list of each of the other wireless devices connected thereto, and the wireless device further includes:
  • a processing module configured to when another wireless device disconnects from the wireless device In the information linked list of each of the pre-stored other wireless devices connected to the wireless device, the connection parameter information of the disconnected other wireless devices is found, and the found connection parameter information is deleted.
  • the wireless device further includes an analysis module and a disconnection response module.
  • the analyzing module is configured to: when the wireless device is connected to another wireless device, and receive a disconnected data frame sent by another wireless device, analyze whether the data frame is a data frame disconnected from the wireless device;
  • the processing module is further configured to: when the data frame is a data frame disconnected from the wireless device, obtain a reason and a type of disconnection from the wireless device from the data frame, and analyze the Whether the data frame is a data frame that is immediately disconnected from the wireless device;
  • the disconnection response module is configured to disconnect from the wireless device when the data frame is a data frame that is immediately disconnected from the wireless device, and prompt the cause of the disconnection.
  • the wireless device further includes a timing module
  • the timing module is configured to start timing when the data frame is not a data frame that is immediately disconnected from the wireless device
  • the disconnection response module is configured to disconnect from the wireless device when the preset time is reached, and prompt the cause of the disconnection.
  • the processing module is further configured to: when the data frame is not a data frame that is immediately disconnected from the wireless device, send a reminder message that will be disconnected from the wireless device after a preset time, and pass the The timing module starts timing.
  • Embodiments of the present invention further provide a computer storage medium in which computer executable instructions are stored, the computer executable instructions being used to perform the above method.
  • the wireless device in the embodiment of the present invention constructs a disconnected data frame corresponding to each other wireless device that meets the preset disconnection condition when other wireless devices connected thereto satisfy the preset disconnection condition;
  • the wireless device sends the constructed data frame to the corresponding other wireless device, so that other wireless devices that receive the data frame are disconnected according to the received data frame.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for controlling disconnection of a wireless device in a direct connection group of a wireless network according to the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for controlling disconnection of a wireless device in a direct connection group of a wireless network according to the present invention
  • FIG. 3 is a functional block diagram of a preferred embodiment of a wireless device of the present invention. detailed description
  • FIG. 1 it is a schematic flowchart of a first embodiment of a method for controlling disconnection of a wireless device in a direct connection group of a wireless network according to the present invention.
  • the wireless device constructs a disconnected data frame corresponding to each other wireless device that meets the preset disconnection condition when the other wireless device connected thereto meets the preset disconnection condition; the wireless device sends the constructed data frame The corresponding other wireless device is caused to cause the other wireless device receiving the data frame to disconnect from the wireless device according to the received data frame.
  • Step S11 The wireless device constructs a disconnected connection for each of the other wireless devices that meet the preset disconnection condition when the other wireless devices connected thereto meet the preset disconnection condition. Data Frame.
  • the wireless network direct connection is characterized by allowing wireless network direct devices in the wireless network to be connected to each other without using a wireless router.
  • Wireless network direct connected devices can be connected to each other at any time and place. Since wireless routers or wireless access points are not required, different wireless network direct connected devices can be connected to each other at any location.
  • Wireless Network Direct Device Discovery The Wireless Direct Connect Service Discovery feature helps users determine which devices and services are available and then establish a connection. When a wireless network direct connection device needs to establish a connection with other wireless devices through a wireless network direct connection, the wireless network direct connection device searches for other wireless devices through device discovery, and establishes a wireless connection with other wireless devices to form a wireless network direct connection.
  • wireless devices can be either wireless network direct connected devices or traditional wireless devices that are not part of a wireless network direct connected device.
  • the wireless network directly connected group may also be There are two wireless devices, and one of them is a wireless network direct connected device.
  • the wireless device in the direct connection group of the wireless network is a device directly connected to the wireless network, and any wireless device in the direct connection group of the wireless network can be owned as a group.
  • Group Owner used to manage wireless devices in a wireless network direct connection group; other wireless devices as a group client (GC).
  • GC group client
  • the second wireless device in the wireless network direct connection group is a GO
  • the other wireless device is a first wireless device, that is, a GC.
  • the second wireless device detects in real time whether the first wireless device connected to the wireless network directly connected group meets the preset disconnection condition (that is, the wireless device detects in real time whether the wireless network directly connected group has other connections connected thereto).
  • the wireless device meets the preset disconnection condition, the wireless device is the second wireless device, and the other wireless device is the first wireless device, and the first wireless device may be a wireless device as a GC or multiple wireless devices as a GC.
  • the second wireless device constructs a disconnected data frame corresponding to each of the first wireless devices that meet the preset disconnection condition.
  • the preset disconnection condition can be Therefore, the downlink traffic of the first wireless device is greater than the preset traffic value, and may also be any applicable user that the first wireless device does not have data traffic transmission within a preset time or the first wireless device signal is smaller than a preset signal value.
  • the preset traffic value may be a used traffic value set by any user, such as 5MB or 10MB, in advance; the preset time may be set after the wireless network group is successfully created, and any user such as 5 minutes or 10 minutes is set in advance.
  • the time interval; the preset signal value may be a signal value set by any user, such as a cell signal or a two-frame signal, in advance.
  • the data frame includes a MAC address of the second wireless device, a MAC address of the first wireless device that meets the preset disconnection condition, and a reason and type of disconnection from the second wireless device, where the data frame is divided into DA (Destination Address) a destination address field, a DS (sub-service) field, a frame control bit, and a frame body, the DA field filling in a MAC address of the first wireless device, the DS field filling in a MAC address of the second wireless device, and a frame control bit
  • DA Disposination Address
  • the unused data frame type reserved in the wireless network direct connection protocol is used to identify the current data frame type as a disconnected frame, and may also be an unused identifier reserved in the wireless network direct connection protocol to identify the current data frame type.
  • the frame body is configured to use a TLV (Tag Tag, Length Length, Value) encoding method, including a disconnection cause and a disconnection type, and the disconnection cause may be that the downlink traffic of the first wireless device is greater than
  • the preset value may also be any applicable application in which the first wireless device does not have data traffic transmission within a preset time or the first wireless device signal is smaller than a preset signal value.
  • the cause of disconnection set by the user in advance; the type of disconnection includes immediate disconnection and delayed disconnection.
  • Step S12 The wireless device sends the constructed data frame to the corresponding other wireless device, so that the other wireless device that receives the data frame disconnects the wireless device according to the received data frame.
  • the second wireless device after successfully constructing the disconnected data frame, the second wireless device sends the constructed data frame to the corresponding first wireless device, where the second wireless device is preferably a data frame to be constructed. Transmitting to the corresponding first wireless device through the link layer, so that the number is received The first wireless device according to the frame disconnects from the second wireless device according to the received data frame.
  • the first wireless device that receives the data frame disconnects the connection with the second wireless device according to the received data frame, including: the first wireless device, analyzing whether the data frame is disconnected from the second wireless device Opening a connected data frame, that is, analyzing whether the data frame needs to disconnect the first wireless device from the second wireless device, and removing the first wireless device from the wireless network directly connected group; a wireless device, when the data frame is a data frame disconnected from the second wireless device, obtaining a reason and a type of disconnection from the second wireless device from the data frame, and obtaining the
  • the data frame of the reason that the wireless device is disconnected is an encoded data frame, and the acquired data frame of the reason for disconnecting the second wireless device generates a corresponding character string, so as to prompt the user to disconnect the reason, and analyze the Whether the data frame is a data frame that is immediately disconnected from the second wireless device; when the data frame is not a data frame disconnected from the second wireless device, according to a normal frame Analysis of the processing flow of the data frame.
  • the first wireless device disconnects from the second wireless device when the data frame is a data frame that is immediately disconnected from the second wireless device, and prompts the disconnection.
  • the first wireless device starts timing when the data frame is not a data frame that is immediately disconnected from the second wireless device; when the preset time is reached, the first wireless device is disconnected from the second wireless device Open the connection and prompt the reason for the disconnection.
  • the preset time is a time interval that is set in advance by any applicable user, such as 30 seconds or 1 minute, when the data frame is not analyzed as a data frame that is immediately disconnected from the second wireless device.
  • the wireless device in order to enable the user to know in time whether the used wireless device is normally connected to other wireless devices in the direct connection group of the wireless network, or whether the wireless device in the group directly connected to the wireless network is directly connected to the wireless network.
  • Disconnecting or about to disconnect when the data frame is a data frame that is immediately disconnected from the second wireless device, an alert message is sent that is immediately disconnected from the second wireless device, prompting the user to disconnect immediately a connection with the second wireless device; when the data frame is not a data frame that is immediately disconnected from the second wireless device, issue an alert message that will be disconnected from the second wireless device after a preset time And start timing, the The way to wake up the message can be text, picture or sound.
  • the wireless device when the other wireless device connected to the wireless device meets the preset disconnection condition, the wireless device constructs a disconnected data frame corresponding to each other wireless device that meets the preset disconnection condition; the wireless device will construct Sending the data frame to the corresponding other wireless device, so that the other wireless device that receives the data frame disconnects from the wireless device in the direct connection group of the wireless network according to the received data frame.
  • FIG. 2 it is a schematic flowchart of a second embodiment of a method for controlling disconnection of a wireless device in a direct connection group of a wireless network according to the present invention.
  • the wireless device pre-stores an information link list of each of the other wireless devices connected thereto, and after step S12, the method further includes:
  • Step S13 When another wireless device disconnects from the wireless device, the wireless device finds connection parameter information of the disconnected other wireless device from the pre-stored information link list of each other wireless device connected thereto. And delete the connection parameter information found.
  • the wireless device prestores an information link table of each of the other wireless devices connected thereto, that is, the second wireless device prestores an information link table of each first wireless device connected thereto, and is directly connected to the group in a wireless network.
  • a wireless device is selected as the GO, and the GO pre-stores information of other wireless devices in the group directly connected to the wireless network, and the information of each other wireless device is constructed as an information linked list.
  • the second wireless device constructs a disconnected data frame corresponding to each of the first wireless devices that meet the preset disconnection condition.
  • the second wireless device Transmitting, by the second wireless device, the constructed data frame to the corresponding first wireless device, when the first wireless device disconnects from the wireless device, the second wireless device is pre-stored from each of the first wireless devices connected thereto In the information link table, the connection parameter information of the first wireless device that meets the preset disconnection condition is found, and the found connection parameter information is deleted.
  • the wireless device finds connection parameter information of the disconnected other wireless device from the pre-stored information link list of each other wireless device connected thereto. And delete the connection parameter information found. While ensuring that the preset wireless device is disconnected from the wireless device, the storage space of the wireless device is saved. As shown in FIG.
  • the device includes: a data generating module 10, a data sending module 20, a processing module 30, an analyzing module 40, a disconnecting response module 50, and a timing module 60.
  • the data generating module 10 is configured to construct a disconnected data frame corresponding to each of the other wireless devices that meet the preset disconnection condition when other wireless devices connected thereto satisfy the preset disconnection condition.
  • the wireless network direct connection is characterized by allowing wireless network direct devices in the wireless network to be connected to each other without using a wireless router.
  • Wireless network direct connected devices can be connected to each other at any time and place. Since wireless routers or wireless access points are not required, different wireless network direct connected devices can be connected to each other at any location.
  • Wireless Network Direct Device Discovery The Wireless Direct Connect Service Discovery feature helps users determine which devices and services are available and then establish a connection. When a wireless network direct connection device needs to establish a connection with other wireless devices through a wireless network direct connection, the wireless network direct connection device searches for other wireless devices through device discovery, and establishes a wireless connection with other wireless devices to form a wireless network direct connection.
  • wireless devices can be either wireless network direct connected devices or traditional wireless devices that are not part of a wireless network direct connected device.
  • the wireless network directly connected group may also be There are two wireless devices, and one of them is a wireless network direct connected device.
  • the wireless device in the direct connection group of the wireless network is a device directly connected to the wireless network, and the wireless network directly connects to any wireless device in the group. Both can be used as a group owner (GO) to manage wireless devices in a wireless network direct connection group; other wireless devices are used as a group client (GC).
  • GO group owner
  • GC group client
  • the data sending module 20 detects in real time whether the first wireless device in the direct connection group of the wireless network meets the preset disconnection condition (that is, the wireless device detects in real time whether the wireless network directly connected group has other wireless devices connected thereto Presetting the disconnection condition, the wireless device is the second wireless device, and the other wireless device is the first wireless device, and the first wireless device may be a wireless device as a GC or a plurality of wireless devices as a GC)
  • the data generating module 10 constructs a disconnected data frame for each of the first wireless devices that meet the preset disconnection condition.
  • the preset disconnection condition may be that the downlink traffic of the first wireless device is greater than the preset traffic value, or the first wireless device does not have the data traffic transmission within the preset time or the first wireless device signal is less than the preset.
  • a disconnection condition set in advance by any applicable user such as a signal value.
  • the preset traffic value may be a used traffic value set by any user, such as 5 MB or 10 MB, in advance; the preset time may be set after the wireless network group is successfully created, and any user such as 5 minutes or 10 minutes is set in advance.
  • the time interval; the preset signal value may be a signal value set by any user, such as a cell signal or a two-frame signal, in advance.
  • the data frame includes a MAC address of the second wireless device, a MAC address of the first wireless device that meets the preset disconnection condition, and a reason and type of disconnection from the second wireless device, where the data frame is divided into a DA field and a DS.
  • the used 0110 is used to identify that the current data frame type is a disconnected frame, and may also be an unused identifier reserved in the wireless network direct connection protocol to identify that the current data frame type is a disconnected frame;
  • the TLV (Tag Tag, Length Length, Value) encoding method includes the reason for the disconnection and the disconnection type. The reason for the disconnection may be that the downlink traffic of the first wireless device is greater than a preset value, or may be the first wireless.
  • the device does not transmit data traffic within a preset time or the first wireless device signal is less than the preset signal value.
  • the data sending module 20 is configured to send the constructed data frame to the corresponding other wireless device, so that other wireless devices that receive the data frame disconnect the connection with the wireless device according to the received data frame.
  • the data sending module 20 sends the constructed data frame to the corresponding first wireless device, and the data transmitting module 20 is preferably configured.
  • the data frame is sent to the corresponding first wireless device through the link layer, so that the first wireless device that receives the data frame disconnects from the second wireless device according to the received data frame.
  • the wireless device performs the above functions in the data generating module 10 and the data transmitting module included therein, the wireless device functions as a GO, that is, the second wireless device functions as a GO device.
  • the processing module 30, the analysis module 40, the disconnection response module 50, and the timing module 60 are disconnected according to the received data frame, and the connection process with the second wireless device includes: connecting the wireless device to other wireless devices, and receiving other When the disconnected data frame is sent by the wireless device, the analyzing module 40 analyzes whether the data frame is a data frame disconnected from the second wireless device, that is, the analyzing module 40 analyzes whether the data frame needs to be the second The wireless device is disconnected, and the wireless network is directly connected to the group; the processing module 30 obtains the data frame from the data frame when the data frame is a data frame disconnected from the second wireless device.
  • the reason and type of disconnection of the wireless device, the acquired data frame of the reason for disconnecting the second wireless device is an encoded data frame, and the acquired data frame of the reason for disconnecting the second wireless device is generated.
  • Corresponding string in order to prompt the user to disconnect the reason, and analyze, by the analysis module 40, whether the data frame is immediately disconnected from the second wireless device Data frames; in the data frame when the data frame is not disconnected from the second wireless device, the processing module 30 in accordance with the frame analysis processing flow of the data frame normal.
  • the disconnection response module 50 disconnects from the second wireless device when the data frame is a data frame that is immediately disconnected from the second wireless device, and prompts the reason for the disconnection.
  • the timing module 60 is not in the data frame that is immediately disconnected from the second wireless device
  • the disconnection response module 50 disconnects from the second wireless device and prompts the reason for the disconnection.
  • the preset time is a time interval when the analysis module 40 analyzes that the data frame is not immediately disconnected from the second wireless device, and the time interval is set by any applicable user, such as 30 seconds or 1 minute. . In other embodiments of the invention,
  • the processing module 30 issues a reminder message disconnected from the second wireless device, prompting the user to immediately Disconnecting from the second wireless device; when the data frame is not a data frame that is immediately disconnected from the second wireless device, the processing module 30 sends out that the second wireless device will be disconnected after a preset time
  • the connected reminder message is started by the timing module 60, and the manner of issuing the reminder message may be text, picture or sound.
  • the data generating module 10 constructs a disconnected data frame corresponding to each other wireless device that meets the preset disconnection condition when other wireless devices connected thereto satisfy the preset disconnection condition; the data sending module 20 Transmitting the constructed data frame to the corresponding other wireless device, so that other wireless devices that receive the data frame disconnect from the wireless device according to the received data frame
  • the wireless device prestores an information link list of each of the other wireless devices connected thereto
  • the processing module 30 is configured to: when the other wireless device disconnects from the wireless device, the wireless device is pre-stored from the wireless device In the information list of each connected wireless device, find the connection parameter information of the disconnected other wireless device, and delete the found connection parameter information.
  • the wireless device prestores a letter of each other wireless device connected thereto.
  • a link list that is, the second wireless device prestores an information link list of each of the first wireless devices connected thereto, and selects a wireless device as a GO in a group directly connected to the wireless network, and the GO is pre-stored with the wireless network directly connected Information of other wireless devices in the group, and the information of each other wireless device is constructed as an information link table.
  • the wireless device is a GO (second wireless device), and the other wireless device (the first wireless device) ) for GC.
  • the data generating module 10 constructs a disconnected data frame corresponding to each of the first wireless devices that meet the preset disconnection condition.
  • the sending module 20 sends the constructed data frame to the corresponding first wireless device, and when the first wireless device disconnects the wireless device, the processing module 30 is pre-stored in the information linked list of each first wireless device connected thereto. And finding connection parameter information of the first wireless device that meets the preset disconnection condition, and deleting the found connection parameter information.
  • the processing module 30 finds connection parameter information of the disconnected other wireless device from the pre-stored information link list of each other wireless device connected thereto. And delete the connection parameter information found.
  • the wireless device is saved in storage space while ensuring that the preset wireless device is disconnected from the wireless device.
  • Embodiments of the present invention further provide a computer storage medium in which computer executable instructions are stored, the computer executable instructions being used to perform the above method.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/AM, disk, In the CD), a number of instructions are included to make a terminal device (which can be a mobile phone, a computer, a server, Or a network device or the like) performs the methods described in various embodiments of the present invention.
  • a storage medium such as ROM/AM, disk, In the CD
  • a number of instructions are included to make a terminal device (which can be a mobile phone, a computer, a server, Or a network device or the like) performs the methods described in various embodiments of the present invention.
  • Each of the above modules may be implemented by a central processing unit (CPU), a digital signal processor (DSP) or a Field-Programmable Gate Array (FPGA) in the electronic device.
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA Field-Programmable Gate Array
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment of a combination of software and hardware. Moreover, the invention can be embodied in the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • 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 are provided to implement the work specified in one or more blocks of a flow or a flow and/or a block diagram of the flowchart The steps that can be made.

Abstract

本发明实施例公开了一种控制无线网络直连群组中无线设备断开的方法及无线设备,该方法包括:无线设备在有与其连接的其他无线设备满足预设断开条件时,对应每一个满足预设断开条件的其他无线设备,构建一个断开连接的数据帧;该无线设备将构建的数据帧发送给对应的其他无线设备,以使接收到所述数据帧的其他无线设备根据接收的数据帧,断开与该无线设备的连接,相应的,该无线设备包括:数据生成模块和数据发送模块。

Description

控制无线网络直连群组中无线设备断开的方法及无线设备 技术领域
本发明涉及无线网络直连领域, 特别涉及一种控制无线网络直连群组 中无线设备断开的方法及无线设备。 背景技术
2010年 10月, Wi-Fi Alliance (无线网络联盟)发布 Wi-Fi Direct (无 线网络直连)白皮书, 白皮书中介绍了有关于这种 Wi-Fi Direct技术的基本 信息、 特点和功能, 清楚的界定了 Wi-Fi Direct技术的特点为允许无线网络 中的设备无需通过无线路由器即可相互连接,由于不需要 Wi-Fi路由器或接 入点, 因此不同的 Wi-Fi设备可以在任何地点实现相互连接。 Wi-Fi Direct Device Discovery (无线网络直连设备发现 )与 Service Discovery (月良务发现 ) 功能帮助用户确定可用的设备与服务, 然后建立连接。 同时, Wi-Fi Direct 设备釆用 Wi-Fi Protected SetupTM (无线网络保护装置)简化了在设备之间 创建安全连接的过程。
在 Wi-Fi Direct 方式下的新型网络中, 出现了由两类新的角色 Group Owner (群组拥有者)和 Group Client (群组用户端)组成的无线网络直连 群组,以支持 P2P ( Peer to Peer,点对点 )的连接。规范定义中, Group Owner 兼容传统的 Wi-Fi网络, 可以充当 STA ( Station, 站 )或者 AP (无线接入 点或无线路由器)的角色, 此外, 还可以与多个 Group Client建立点到点的 安全连接; Group Client则是一种类似于 STA, 除了 STA的功能外还能与 Group Owner建立 P2P的连接。
目前,使用 Wi-Fi Direct技术的网络结构中,组网完成后, Group Owner 将担任网关的角色, 而网络中的其他节点则是 Group Client。 然而,在现有的 Wifi Direct组网环境中, Group Owner只能一次性的断 开连接到该 Group Owner的所有 Group Client, 无法有选择性的断开网络中 的 Group Client, 使得无法有效、 合理的对 Wifi Direct运行环境中的 Group Client进行管理。
上述内容仅用于辅助理解本发明的技术方案, 并不代表承认上述内容 是现有技术。 发明内容
本发明实施例的主要目的为提供控制无线网络直连群组中无线设备断 开的方法及无线设备, 实现无线网络直连群组中有选择性的断开无线设备, 进而有效、
Figure imgf000003_0001
为了达到上述目的, 本发明实施例提出一种控制无线网络直连群组中 无线设备断开的方法, 该方法包括:
无线设备在有与其连接的其他无线设备满足预设断开条件时, 对应每 一个满足预设断开条件的其他无线设备, 构建一个断开连接的数据帧; 该无线设备将构建的数据帧发送给对应的其他无线设备, 以使接收到 所述数据帧的其他无线设备根据接收的数据帧, 断开与该无线设备的连接。
优选地, 该无线设备预存有与其连接的各个其他无线设备的信息链表, 所述该无线设备将构建的数据帧发送给对应的其他无线设备, 以使接收到 所述数据帧的其他无线设备根据接收的数据帧, 断开与该无线设备的连接 之后, 该方法还包括:
在有其他无线设备断开与该无线设备的连接时, 该无线设备从预存的 与其连接的各个其他无线设备的信息链表中, 找出断开连接的其他无线设 备的连接参数信息, 并将找出的连接参数信息删除。
优选地, 所述接收到所述数据帧的其他无线设备根据接收的数据帧, 断开与该无线设备的连接, 包括: 分析所述数据帧是否为与该无线设备断开连接的数据帧; 在所述数据帧为与该无线设备断开连接的数据帧时, 从所述数据帧中 获取与该无线设备断开的原因和类型, 并分析所述数据帧是否为立即与该 无线设备断开的数据帧;
在所述数据帧为立即与该无线设备断开的数据帧时, 与该无线设备断 开连接, 并提示断开的原因。
优选地, 所述接收到所述数据帧的其他无线设备分析所述数据帧是否 为立即与该无线设备断开的数据帧的步骤之后, 该方法包括:
在所述数据帧不为立即与该无线设备断开的数据帧时, 开始计时; 在预设时间达到时, 与该无线设备断开连接, 并提示断开的原因。 优选地, 所述接收到所述数据帧的其他无线设备在所述数据帧不为立 即与该无线设备断开的数据帧时开始计时, 包括:
在所述数据帧不为立即与该无线设备断开的数据帧时, 发出将在预设 时间后与该无线设备断开连接的提醒消息, 并开始计时。
本发明实施例进一步提出一种适用于上述提出的控制无线网络直连群 组中无线设备断开的方法的无线设备, 该无线设备包括:
数据生成模块, 配置为在有与该无线设备连接的其他无线设备满足预 设断开条件时, 对应每一个满足预设断开条件的其他无线设备, 构建一个 断开连接的数据帧;
数据发送模块, 配置为将构建的数据帧发送给对应的其他无线设备, 以使接收到所述数据帧的其他无线设备根据接收的数据帧, 断开与该无线 设备的连接。
优选地, 该无线设备预存有与其连接的各个其他无线设备的信息链表, 该无线设备还包括:
处理模块, 配置为在有其他无线设备断开与该无线设备的连接时, 从 预存的与该无线设备连接的各个其他无线设备的信息链表中, 找出断开连 接的其他无线设备的连接参数信息, 并将找出的连接参数信息删除。
优选地, 该无线设备还包括分析模块及断开响应模块,
所述分析模块, 配置为在该无线设备与其他无线设备连接, 且接收到 其他无线设备发送的断开连接的数据帧时, 分析所述数据帧是否为与该无 线设备断开的数据帧;
所述处理模块, 还配置为在所述数据帧为与该无线设备断开的数据帧 时, 从所述数据帧中获取与该无线设备断开的原因和类型, 并通过分析模 块分析所述数据帧是否为立即与该无线设备断开的数据帧;
所述断开响应模块, 配置为在所述数据帧为立即与该无线设备断开的 数据帧时, 与该无线设备断开连接, 并提示断开的原因。
优选地, 该无线设备还包括计时模块,
所述计时模块, 配置为在所述数据帧不为立即与该无线设备断开的数 据帧时, 开始计时
所述断开响应模块, 配置为在预设时间达到时, 与该无线设备断开连 接, 并提示断开的原因。
优选地, 所述处理模块, 还配置为在所述数据帧不为立即与该无线设 备断开的数据帧时, 发出将在预设时间后与该无线设备断开连接的提醒消 息, 并通过计时模块开始计时。
本发明实施例进一步提出一种计算机存储介质, 其中存储有计算机可 执行指令, 所述计算机可执行指令用于执行上述的方法。
相对现有技术, 本发明实施例无线设备在有与其连接的其他无线设备 满足预设断开条件时, 对应每一个满足预设断开条件的其他无线设备, 构 建一个断开连接的数据帧; 该无线设备将构建的数据帧发送给对应的其他 无线设备, 以使接收到所述数据帧的其他无线设备根据接收的数据帧, 断 开与该无线设备的连接。 实现无线网络直连群组中有选择性的断开无线设
附图说明
图 1 为本发明控制无线网络直连群组中无线设备断开的方法的第一实 施例的流程示意图;
图 2 为本发明控制无线网络直连群组中无线设备断开的方法的第二实 施例的流程示意图;
图 3为本发明无线设备的较佳实施例的功能模块图。 具体实施方式
应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于 限定本发明。
如图 1 所示, 为本发明控制无线网络直连群组中无线设备断开的方法 的第一实施例的流程示意图。
需要强调的是, 图 1 所示流程图仅为一个较佳实施例, 本领域的技术 人员当知, 任何围绕本发明思想构建的实施例都不应脱离于如下技术方案 涵盖的范围:
无线设备在有与其连接的其他无线设备满足预设断开条件时, 对应每 一个满足预设断开条件的其他无线设备, 构建一个断开连接的数据帧; 该 无线设备将构建的数据帧发送给对应的其他无线设备, 以使接收到所述数 据帧的其他无线设备根据接收的数据帧, 断开与该无线设备的连接。
以下是本实施例逐步实现控制无线网络直连群组中无线设备断开的步 骤:
步骤 Sll, 无线设备在有与其连接的其他无线设备满足预设断开条件 时, 对应每一个满足预设断开条件的其他无线设备, 构建一个断开连接的 数据帧。
在本实施例中, 无线网络直连的特点是允许无线网络中的无线网络直 连设备无需通过无线路由器即可相互连接。 无线网络直连设备之间能够随 时随地实现互相连接。 由于不需要无线路由器或无线接入点, 因此不同的 无线网络直连设备可以在任何地点实现相互连接。 无线网络直连设备发现 与无线网络直连服务发现功能帮助用户确定可用的设备与服务, 然后建立 连接。 当无线网络直连设备需要通过无线网络直连与其他无线设备建立连 接时, 该无线网络直连设备通过设备发现去搜索到其他无线设备, 并与其 他无线设备建立无线连接, 组成无线网络直连群组, 其他无线设备可以是 无线网络直连设备也还可以是不属于无线网络直连设备的传统无线设备。 本实施例优选为该无线直连群组中存在至少三个无线设备, 且其中一个为 无线网络直连设备, 在本发明其他实施例中, 也还可以是该无线网络直连 群组中只存在两个无线设备, 且其中一个为无线网络直连设备。
在无线网络直连群组成功建立之后, 该无线网络直连群组中的无线设 备即为无线网络直连的设备, 该无线网络直连群组中的任意一个无线设备 均可作为群组拥有者(Group Owner, GO ), 用于管理无线网络直连群组中 的无线设备; 其他无线设备作为群组用户端 (Group Client, GC )。 本实施 例优选为无线网络直连群组中的第二无线设备为 GO,其他无线设备为第一 无线设备, 即为 GC。 该第二无线设备实时侦测无线网络直连群组中是否有 与其连接的第一无线设备满足预设断开条件 (即无线设备实时侦测无线网 络直连群组中是否有与其连接的其他无线设备满足预设断开条件, 无线设 备为第二无线设备, 其他无线设备为第一无线设备, 该第一无线设备可以 是一个作为 GC的无线设备也可以是多个作为 GC的无线设备), 在有第一 无线设备满足预设断开条件时, 该第二无线设备对应每一个满足预设断开 条件的第一无线设备, 构建一个断开连接的数据帧。 所述预设断开条件可 以是第一无线设备的下行流量大于预设流量值, 也还可以是第一无线设备 在预设时间内未有数据流量的传输或第一无线设备信号小于预设信号数值 等任意适用的用户提前设置的断开条件。 所述预设流量值可以是 5MB 或 10MB等任意用户提前设置的使用的流量值;所述预设时间可以是从无线网 络群组成功创建之后开始, 5分钟或 10分钟等任意用户提前设置的时间间 隔; 所述预设信号数值可以是一格信号或两格信号等任意用户提前设置的 信号值。
所述数据帧包括第二无线设备的 MAC地址、满足预设断开条件的第一 无线设备的 MAC地址、 与第二无线设备断开的原因及类型, 所述数据帧分 为 DA(Destination Address, 目的地址)字段、 DS (分服务)字段、 帧控制位 及帧主体, 所述 DA字段填写第一无线设备的 MAC地址, 所述 DS字段填 写第二无线设备的 MAC地址,帧控制位釆用无线网络直连协议中预留的未 使用的 0110来标识当前数据帧类型为断开帧, 也还可以是釆用无线网络直 连协议中预留的未使用的标识来标识当前数据帧类型为断开帧; 所述帧主 体釆用 TLV ( Tag标签, Length长度, Value值)编码方式, 包括断开的原 因及断开类型, 所述断开原因可以是第一无线设备的下行流量大于预设值, 也还可以是第一无线设备在预设时间内未有数据流量的传输或第一无线设 备信号小于预设信号数值等任意适用的用户提前设置的断开原因; 所述断 开类型包括立即断开和延迟断开。
步骤 S12, 该无线设备将构建的数据帧发送给对应的其他无线设备, 以 使接收到所述数据帧的其他无线设备根据接收的数据帧, 断开与该无线设 备的连接。
在本实施例中, 该第二无线设备在成功构建好断开连接的数据帧后, 将构建的数据帧发送至对应的第一无线设备, 该第二无线设备优选为将构 建好的数据帧通过链路层发送至对应的第一无线设备, 以使接收到所述数 据帧的第一无线设备根据接收的数据帧, 断开与该第二无线设备的连接。 接收到所述数据帧的第一无线设备根据接收的数据帧, 断开与该第二 无线设备的连接过程包括: 该第一无线设备, 分析所述数据帧是否为与该 第二无线设备断开连接的数据帧, 即分析所述数据帧是否需要将该第一无 线设备与该第二无线设备断开连接, 将该第一无线设备从该无线网络直连 群组中移除; 该第一无线设备, 在所述数据帧为与该第二无线设备断开连 接的数据帧时, 从所述数据帧中获取与该第二无线设备断开连接的原因和 类型, 获取的与该第二无线设备断开的原因的数据帧为编码数据帧, 将获 取的与该第二无线设备断开连接的原因的数据帧生成对应的字符串, 以便 提示用户断开连接的原因, 并分析所述数据帧是否为立即与该第二无线设 备断开连接的数据帧; 在所述数据帧不为与该第二无线设备断开连接的数 据帧时, 按照正常的帧解析处理流程处理所述数据帧。 该第一无线设备, 在所述数据帧为立即与该第二无线设备断开连接的数据帧时, 与该第二无 线设备断开连接, 并提示断开的原因。 该第一无线设备, 在所述数据帧不 为立即与该第二无线设备断开连接的数据帧时, 开始计时; 在预设时间达 到时, 该第一无线设备与该第二无线设备断开连接, 并提示断开的原因。 所述预设时间为在分析出所述数据帧不为立即与该第二无线设备断开连接 的数据帧时起计时, 30秒或 1分钟等任意适用的用户提前设置的时间间隔。 在本发明其他实施例中, 为了使得用户能及时了解到使用的无线设备是否 正常与无线网络直连群组中的其他无线设备连接, 或者是是否与无线网络 直连群组中的其他无线设备断开连接或者即将断开连接; 在所述数据帧为 立即与第二无线设备断开连接的数据帧时, 发出与该第二无线设备立即断 开连接的提醒消息, 提醒用户将马上断开与该第二无线设备的连接; 在所 述数据帧不为立即与该第二无线设备断开连接的数据帧时, 发出将在预设 时间后与该第二无线设备断开连接的提醒消息, 并开始计时, 所述发出提 醒消息的方式可以是文字、 图片或声音等。
本实施例无线设备在有与其连接的其他无线设备满足预设断开条件 时, 对应每一个满足预设断开条件的其他无线设备, 构建一个断开连接的 数据帧; 该无线设备将构建的数据帧发送给对应的其他无线设备, 以使接 收到所述数据帧的其他无线设备根据接收的数据帧, 断开与该无线设备的 理的对无线网络直连群组中的无线设备进行管理。 如图 2所示, 为本发明控制无线网络直连群组中无线设备断开的方法 的第二实施例的流程示意图。
基于上述第一实施例, 该无线设备预存有与其连接的各个其他无线设 备的信息链表, 步骤 S12之后还包括:
步骤 S13,在有其他无线设备断开与该无线设备的连接时,该无线设备 从预存的与其连接的各个其他无线设备的信息链表中, 找出断开连接的其 他无线设备的连接参数信息, 并将找出的连接参数信息删除。
在本实施例中, 该无线设备预存有与其连接的各个其他无线设备的信 息链表, 即该第二无线设备预存有与其连接的各个第一无线设备的信息链 表, 在一个无线网络直连的群组中, 选择一个无线设备作为 GO, 该 GO预 存有该无线网络直连的群组中的其他无线设备的信息, 并将各个其他无线 设备的信息构建为信息链表。 当无线网络直连群组中有第一无线设备满足 预设断开条件时, 第二无线设备对应每一个满足预设断开条件的第一无线 设备, 构建一个断开连接的数据帧, 该第二无线设备将构建的数据帧发送 至对应的第一无线设备, 在有第一无线设备断开与该无线设备的连接时, 该第二无线设备从预存与其连接的各个第一无线设备的信息链表中, 找出 满足预设断开条件的第一无线设备的连接参数信息, 并将找出的连接参数 信息删除。 本实施例在有其他无线设备断开与该无线设备的连接时, 该无线设备 从预存的与其连接的各个其他无线设备的信息链表中, 找出断开连接的其 他无线设备的连接参数信息, 并将找出的连接参数信息删除。 在保证满足 预设断开条件其他无线设备与该无线设备断开连接的同时, 节约该无线设 备的存储空间。 如图 3 所示, 为本发明无线设备的较佳实施例的功能模块图。 该装置 包括: 数据生成模块 10、 数据发送模块 20、 处理模块 30、 分析模块 40、 断开响应模块 50及计时模块 60,
所述数据生成模块 10, 配置为在有与其连接的其他无线设备满足预设 断开条件时, 对应每一个满足预设断开条件的其他无线设备, 构建一个断 开连接的数据帧。
在本实施例中, 无线网络直连的特点是允许无线网络中的无线网络直 连设备无需通过无线路由器即可相互连接。 无线网络直连设备之间能够随 时随地实现互相连接。 由于不需要无线路由器或无线接入点, 因此不同的 无线网络直连设备可以在任何地点实现相互连接。 无线网络直连设备发现 与无线网络直连服务发现功能帮助用户确定可用的设备与服务, 然后建立 连接。 当无线网络直连设备需要通过无线网络直连与其他无线设备建立连 接时, 该无线网络直连设备通过设备发现去搜索到其他无线设备, 并与其 他无线设备建立无线连接, 组成无线网络直连群组, 其他无线设备可以是 无线网络直连设备也还可以是不属于无线网络直连设备的传统无线设备。 本实施例优选为该无线直连群组中存在至少三个无线设备, 且其中一个为 无线网络直连设备, 在本发明其他实施例中, 也还可以是该无线网络直连 群组中只存在两个无线设备, 且其中一个为无线网络直连设备。
在无线网络直连群组成功建立之后, 该无线网络直连群组中的无线设 备即为无线网络直连的设备, 该无线网络直连群组中的任意一个无线设备 均可作为群组拥有者(Group Owner, GO ), 用于管理无线网络直连群组中 的无线设备; 其他无线设备作为群组用户端 (Group Client, GC )。 数据发 送模块 20实时侦测无线网络直连群组中是否有第一无线设备满足预设断开 条件 (即该无线设备实时侦测无线网络直连群组中是否有与其连接的其他 无线设备满足预设断开条件, 无线设备为第二无线设备, 其他无线设备为 第一无线设备,该第一无线设备可以是一个作为 GC的无线设备也可以是多 个作为 GC的无线设备), 在有第一无线设备满足预设断开条件时, 数据生 成模块 10对应每一个满足预设断开条件的第一无线设备, 构建一个断开连 接的数据帧。 所述预设断开条件可以是第一无线设备的下行流量大于预设 流量值, 也还可以是第一无线设备在预设时间内未有数据流量的传输或第 一无线设备信号小于预设信号数值等任意适用的用户提前设置的断开条 件。所述预设流量值可以是 5MB或 10MB等任意用户提前设置的使用的流 量值; 所述预设时间可以是从无线网络群组成功创建之后开始, 5 分钟或 10分钟等任意用户提前设置的时间间隔; 所述预设信号数值可以是一格信 号或两格信号等任意用户提前设置的信号值。
所述数据帧包括第二无线设备的 MAC地址、满足预设断开条件的第一 无线设备的 MAC地址、 与第二无线设备断开的原因及类型, 所述数据帧分 为 DA字段、 DS字段、 帧控制位及帧主体, 所述 DA字段填写第一无线设 备的 MAC地址, 所述 DS字段填写第二无线设备的 MAC地址, 帧控制位 釆用无线网络直连协议中预留的未使用的 0110来标识当前数据帧类型为断 开帧, 也还可以是釆用无线网络直连协议中预留的未使用的标识来标识当 前数据帧类型为断开帧; 所述帧主体釆用 TLV ( Tag标签, Length长度, Value值)编码方式, 包括断开的原因及断开类型, 所述断开原因可以是第 一无线设备的下行流量大于预设值, 也还可以是第一无线设备在预设时间 内未有数据流量的传输或第一无线设备信号小于预设信号数值等任意适用 的用户提前设置的断开原因; 所述断开类型包括立即断开和延迟断开。 所述数据发送模块 20, 配置为将构建的数据帧发送给对应的其他无线 设备, 以使接收到所述数据帧的其他无线设备根据接收的数据帧, 断开与 该无线设备的连接。
在本实施例中, 数据发送模块 20在数据生成模块 10成功构建好断开 连接的数据帧后, 将构建的数据帧发送至对应的第一无线设备, 数据接发 模块 20优选为将构建好的数据帧通过链路层发送至对应的第一无线设备, 以使接收到所述数据帧的第一无线设备根据接收的数据帧, 断开与该第二 无线设备的连接。 该无线设备在其包括的数据生成模块 10及数据发送模块 发生上述作用时, 该无线设备作为 GO, 即该第二无线设备作为 GO设备。
处理模块 30、 分析模块 40、 断开响应模块 50及计时模块 60根据接收 的数据帧断开, 与该第二无线设备的连接过程包括: 在该无线设备与其他 无线设备连接, 且接收到其他无线设备发送的断开连接的数据帧时, 分析 模块 40分析所述数据帧是否为与该第二无线设备断开连接的数据帧, 即分 析模块 40分析所述数据帧是否需要与该第二无线设备断开连接, 该无线网 络直连群组中移除; 处理模块 30在所述数据帧为与该第二无线设备断开连 接的数据帧时, 从所述数据帧中获取与该第二无线设备断开连接的原因和 类型, 获取的与该第二无线设备断开连接的原因的数据帧为编码数据帧, 将获取的与该第二无线设备断开连接的原因的数据帧生成对应的字符串, 以便提示用户断开连接的原因, 并通过分析模块 40分析所述数据帧是否为 立即与该第二无线设备断开连接的数据帧; 在所述数据帧不为与该第二无 线设备断开连接的数据帧时, 处理模块 30按照正常的帧解析处理流程处理 所述数据帧。 断开响应模块 50在所述数据帧为立即与该第二无线设备断开 连接的数据帧时, 与该第二无线设备断开连接, 并提示断开连接的原因。 计时模块 60 在所述数据帧不为立即与该第二无线设备断开连接的数据帧 时, 开始计时; 在预设时间达到时, 断开响应模块 50与该第二无线设备断 开连接, 并提示断开连接的原因。 所述预设时间为在分析模块 40分析出所 述数据帧不为立即与该第二无线设备断开连接的数据帧时起计时, 30秒或 1分钟等任意适用的用户提前设置的时间间隔。在本发明其他实施例中, 为
断开连接或者即将断开连接; 在所述数据帧为立即与该第二无线设备断开 的数据帧时, 处理模块 30发出与该第二无线设备断开连接的提醒消息, 提 醒用户将马上断开与该第二无线设备的连接; 在所述数据帧不为立即与该 第二无线设备断开的数据帧时, 处理模块 30发出将在预设时间后与该第二 无线设备断开连接的提醒消息, 并通过计时模块 60开始计时, 所述发出提 醒消息的方式可以是文字、 图片或声音等。 该无线设备在其包括的处理模 块 30、 分析模块 40、 断开响应模块 50及计时模块 60发生上述作用时, 该 无线设备作为 GC。
本实施例数据生成模块 10在有与其连接的其他无线设备满足预设断开 条件时, 对应每一个满足预设断开条件的其他无线设备, 构建一个断开连 接的数据帧;数据发送模块 20将构建的数据帧发送给对应的其他无线设备, 以使接收到所述数据帧的其他无线设备根据接收的数据帧, 断开与该无线
较佳的, 该无线设备预存有与其连接的各个其他无线设备的信息链表, 所述处理模块 30, 配置为在有其他无线设备断开与该无线设备的连接时, 该无线设备从预存的与其连接的各个其他无线设备的信息链表中, 找出断 开连接的其他无线设备的连接参数信息, 并将找出的连接参数信息删除。
在本实施例中, 该无线设备预存有与其连接的各个其他无线设备的信 息链表, 即该第二无线设备预存有与其连接的各个第一无线设备的信息链 表, 在一个无线网络直连的群组中, 选择一个无线设备作为 GO, 该 GO预 存有该无线网络直连的群组中的其他无线设备的信息, 并将各个其他无线 设备的信息构建为信息链表, 在本实施例中, 该无线设备为 GO (第二无线 设备), 其他无线设备(第一无线设备) 为 GC。 当无线网络直连群组中有 第一无线设备满足预设断开条件时, 数据生成模块 10对应每一个满足预设 断开条件的第一无线设备, 构建一个断开连接的数据帧, 数据发送模块 20 将构建的数据帧发送至对应的第一无线设备, 在有第一无线设备断开与该 无线设备的连接时, 处理模块 30从预存与其连接的各个第一无线设备的信 息链表中, 找出满足预设断开条件的第一无线设备的连接参数信息, 并将 找出的连接参数信息删除。
本实施例在有其他无线设备断开与该无线设备的连接时, 处理模块 30 从预存的与其连接的各个其他无线设备的信息链表中, 找出断开连接的其 他无线设备的连接参数信息, 并将找出的连接参数信息删除。 在保证满足 预设断开条件其他无线设备与该无线设备断开连接的同时, 节约该无线设 备的存储空间。
本发明实施例进一步提出一种计算机存储介质, 其中存储有计算机可 执行指令, 所述计算机可执行指令用于执行上述的方法。
上述本发明实施例序号仅仅为了描述, 不代表实施例的优劣。 通过以 上的实施方式的描述, 本领域的技术人员可以清楚地了解到上述实施例方 法可借助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件, 但很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技术方 案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出 来, 该计算机软件产品存储在一个存储介质(如 ROM/ AM、 磁碟、 光盘) 中, 包括若干指令用以使得一台终端设备(可以是手机, 计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述的方法。
上述各模块可以由电子设备中的中央处理器( Central Processing Unit, CPU ), 数字信号处理器 (Digital Signal Processor, DSP )或可编程逻辑阵 列 (Field - Programmable Gate Array, FPGA ) 实现。
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产品。 因此, 本发明可釆用硬件实施例、 软件实施例、 或结 合软件和硬件方面的实施例的形式。 而且, 本发明可釆用在一个或多个其 中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器和光学存储器等 )上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序 产品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程 图和 /或方框图中的每一流程和 /或方框、以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使得 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功 能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机 实现的处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功 能的步骤。
以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换, 或直 接或间接运用在其他相关的技术领域, 均同理包括在本发明的专利保护范 围内。

Claims

权利要求书
1、 一种控制无线网络直连群组中无线设备断开的方法, 其中, 该方法 包括:
无线设备在有与其连接的其他无线设备满足预设断开条件时, 对应每 一个满足预设断开条件的其他无线设备, 构建一个断开连接的数据帧; 该无线设备将构建的数据帧发送给对应的其他无线设备, 以使接收到 所述数据帧的其他无线设备根据接收的数据帧, 断开与该无线设备的连接。
2、 根据权利要求 1所述的控制无线网络直连群组中无线设备断开的方 法, 其中, 该无线设备预存有与其连接的各个其他无线设备的信息链表, 所述该无线设备将构建的数据帧发送给对应的其他无线设备, 以使接收到 所述数据帧的其他无线设备根据接收的数据帧, 断开与该无线设备的连接 之后, 该方法还包括:
在有其他无线设备断开与该无线设备的连接时, 该无线设备从预存的 与其连接的各个其他无线设备的信息链表中, 找出断开连接的其他无线设 备的连接参数信息, 并将找出的连接参数信息删除。
3、 根据权利要求 1所述的控制无线网络直连群组中无线设备断开的方 法, 其中, 所述接收到所述数据帧的其他无线设备根据接收的数据帧, 断 开与该无线设备的连接, 包括:
分析所述数据帧是否为与该无线设备断开连接的数据帧;
在所述数据帧为与该无线设备断开连接的数据帧时, 从所述数据帧中 获取与该无线设备断开的原因和类型, 并分析所述数据帧是否为立即与该 无线设备断开的数据帧;
在所述数据帧为立即与该无线设备断开的数据帧时, 与该无线设备断 开连接, 并提示断开的原因。
4、 根据权利要求 3所述的控制无线网络直连群组中无线设备断开的方 法, 其中, 所述接收到所述数据帧的其他无线设备分析所述数据帧是否为 立即与该无线设备断开的数据帧之后, 该方法包括:
在所述数据帧不为立即与该无线设备断开的数据帧时, 开始计时; 在预设时间达到时, 与该无线设备断开连接, 并提示断开的原因。
5、 根据权利要求 4所述的控制无线网络直连群组中无线设备断开的方 法, 其中, 所述接收到所述数据帧的其他无线设备在所述数据帧不为立即 与该无线设备断开的数据帧时开始计时, 包括:
在所述数据帧不为立即与该无线设备断开的数据帧时, 发出将在预设 时间后与该无线设备断开连接的提醒消息, 并开始计时。
6、 一种无线设备, 其中, 该无线设备包括:
数据生成模块, 配置为在有与该无线设备连接的其他无线设备满足预 设断开条件时, 对应每一个满足预设断开条件的其他无线设备, 构建一个 断开连接的数据帧;
数据发送模块, 配置为将构建的数据帧发送给对应的其他无线设备, 以使接收到所述数据帧的其他无线设备根据接收的数据帧, 断开与该无线 设备的连接。
7、 根据权利要求 6所述的无线设备, 其中, 该无线设备预存有与其连 接的各个其他无线设备的信息链表, 该无线设备还包括:
处理模块, 配置为在有其他无线设备断开与该无线设备的连接时, 从 预存的与该无线设备连接的各个其他无线设备的信息链表中, 找出断开连 接的其他无线设备的连接参数信息, 并将找出的连接参数信息删除。
8、 根据权利要求 6所述的无线设备, 其中, 该无线设备还包括分析模 块及断开响应模块,
所述分析模块, 配置为在该无线设备与其他无线设备连接, 且接收到 其他无线设备发送的断开连接的数据帧时, 分析所述数据帧是否为与该无 线设备断开的数据帧;
所述处理模块, 还配置为在所述数据帧为与该无线设备断开的数据帧 时, 从所述数据帧中获取与该无线设备断开的原因和类型, 并通过分析模 块分析所述数据帧是否为立即与该无线设备断开的数据帧;
所述断开响应模块, 配置为在所述数据帧为立即与该无线设备断开的 数据帧时, 与该无线设备断开连接, 并提示断开的原因。
9、 根据权利要求 8所述的无线设备, 其中, 该无线设备还包括计时模 块,
所述计时模块, 配置为在所述数据帧不为立即与该无线设备断开的数 据帧时, 开始计时;
所述断开响应模块, 配置为在预设时间达到时, 与该无线设备断开连 接, 并提示断开的原因。
10、 根据权利要求 9所述的无线设备, 其中,
所述处理模块, 还配置为在所述数据帧不为立即与该无线设备断开的 数据帧时, 发出将在预设时间后与该无线设备断开连接的提醒消息, 并通 过计时模块开始计时。
11、 一种计算机存储介质, 其中存储有计算机可执行指令, 所述计算 机可执行指令用于执行所述权利要求 1至 5任一项所述的方法。
PCT/CN2014/076986 2013-12-23 2014-05-07 控制无线网络直连群组中无线设备断开的方法及无线设备 WO2014187241A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/106,905 US20170127472A1 (en) 2013-12-23 2014-05-07 Method and wireless device for controlling disconnection of a wireless device in a wi-fi direct group of a wireless network

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310719354.7A CN104735816A (zh) 2013-12-23 2013-12-23 控制无线网络直连群组中无线设备断开的方法及无线设备
CN201310719354.7 2013-12-23

Publications (1)

Publication Number Publication Date
WO2014187241A1 true WO2014187241A1 (zh) 2014-11-27

Family

ID=51932822

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/076986 WO2014187241A1 (zh) 2013-12-23 2014-05-07 控制无线网络直连群组中无线设备断开的方法及无线设备

Country Status (3)

Country Link
US (1) US20170127472A1 (zh)
CN (1) CN104735816A (zh)
WO (1) WO2014187241A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6415105B2 (ja) * 2014-05-16 2018-10-31 キヤノン株式会社 通信装置、制御方法およびプログラム
JP6642982B2 (ja) * 2015-05-29 2020-02-12 キヤノン株式会社 通信装置、通信装置の制御方法、プログラム
CN105630130B (zh) * 2015-12-18 2022-05-31 联想(北京)有限公司 信息处理方法和信息处理装置
CN106507289A (zh) * 2016-12-07 2017-03-15 广东欧珀移动通信有限公司 一种无线网络的接入方法及移动终端

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179749A (zh) * 2006-11-09 2008-05-14 艾威梯软件技术(北京)有限公司 一种支持自动建立和断开无线群连接的系统和方法
CN102364979A (zh) * 2011-10-26 2012-02-29 中兴通讯股份有限公司 一种移动终端接入网络的方法及系统
CN102573115A (zh) * 2011-12-19 2012-07-11 广东步步高电子工业有限公司 一种移动终端设备的近距离无线局域网通信方法及系统
CN102710612A (zh) * 2012-05-11 2012-10-03 张伟 实现多方交互通信应用的方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020167909A1 (en) * 2001-05-08 2002-11-14 Bartosz Balazinski Method, system and service node for pre-paid service provision in packet data cellular telecommunication networks
JP4706262B2 (ja) * 2004-05-21 2011-06-22 日本電気株式会社 アクセス制御システム、アクセス制御方法およびアクセス制御用プログラム
JP5282448B2 (ja) * 2008-05-30 2013-09-04 富士通株式会社 無線通信システム、無線通信装置及びその切断処理方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179749A (zh) * 2006-11-09 2008-05-14 艾威梯软件技术(北京)有限公司 一种支持自动建立和断开无线群连接的系统和方法
CN102364979A (zh) * 2011-10-26 2012-02-29 中兴通讯股份有限公司 一种移动终端接入网络的方法及系统
CN102573115A (zh) * 2011-12-19 2012-07-11 广东步步高电子工业有限公司 一种移动终端设备的近距离无线局域网通信方法及系统
CN102710612A (zh) * 2012-05-11 2012-10-03 张伟 实现多方交互通信应用的方法及装置

Also Published As

Publication number Publication date
CN104735816A (zh) 2015-06-24
US20170127472A1 (en) 2017-05-04

Similar Documents

Publication Publication Date Title
JP6333964B2 (ja) インターネットプロトコルなしでのWi−Fi DirectサービスアプリケーションサービスプラットフォームのためのMAC層トランスポート
US9769732B2 (en) Wireless network connection establishment method and terminal device
WO2021082715A1 (zh) 直接通信的处理方法、装置、中继终端及远端终端
RU2014123536A (ru) Способ установления связности данных между устройством беспроводной связи и базовой сетью по ip сети доступа, устройство беспроводной связи и система связи
WO2015139179A1 (zh) 一种终端间同步内容的方法和终端
WO2013143342A1 (zh) 家庭网关、云服务器及两者之间进行通信的方法
WO2017097023A1 (zh) 无感知认证方法系统,基于该方法系统的控制方法、系统
WO2014183404A1 (zh) 数据传输方法、装置及系统、终端
US9980121B2 (en) Method and apparatus for performing discovery in wireless communication system
WO2014036957A1 (zh) 设备间共享内容的方法、设备及系统
WO2010127508A1 (zh) 通过网关设备进行设备管理的方法、装置及设备管理服务器
WO2007003103A1 (en) A method for sharing data and a method for recovering the backup data
WO2012151994A1 (zh) 资源下载方法、装置及系统
WO2014135050A1 (zh) 消息处理方法、装置、网关、机顶盒及网络电视系统
WO2014187241A1 (zh) 控制无线网络直连群组中无线设备断开的方法及无线设备
US9923844B1 (en) Conveying instant messages via HTTP
WO2018196463A1 (zh) 网络接入方法、装置、存储介质及处理器
JP6548445B2 (ja) 通信装置、通信方法及びプログラム
WO2011116598A1 (zh) 一种对网关实现管理的方法及系统
WO2013056552A1 (zh) 业务数据处理的方法、装置和系统
WO2014036933A1 (zh) 一种设备间共享内容的方法、设备及系统
WO2012130048A1 (zh) 设备管理系统中对网关进行初始化的方法及装置
WO2015100975A1 (zh) 一种选择认证算法的方法、装置及系统
US20230413120A1 (en) Methods and systems for communication session management
WO2009025252A1 (ja) WiMAXにおけるIPベースの緊急サービスの処理方法

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: 14801232

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15106905

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14801232

Country of ref document: EP

Kind code of ref document: A1