CN106559284A - The method and device of STA reception states is detected at AP ends - Google Patents

The method and device of STA reception states is detected at AP ends Download PDF

Info

Publication number
CN106559284A
CN106559284A CN201610164820.3A CN201610164820A CN106559284A CN 106559284 A CN106559284 A CN 106559284A CN 201610164820 A CN201610164820 A CN 201610164820A CN 106559284 A CN106559284 A CN 106559284A
Authority
CN
China
Prior art keywords
sta
sent
data
response message
request
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201610164820.3A
Other languages
Chinese (zh)
Inventor
吴敏
韦泽垠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201610164820.3A priority Critical patent/CN106559284A/en
Publication of CN106559284A publication Critical patent/CN106559284A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Abstract

The present invention relates to cordless communication network technical field, and in particular to a kind of method and device that STA reception states are detected at AP ends, the method include:Obtain the MAC Address of all STA of current AP ends connection;ARP is sent to the LAN segment that the AP ends are located and seeks request, obtain the corresponding IP address of each described STA;The request for obtaining STA current reception conditions is sent to IP address each described;The data of each STA current reception conditions are obtained, the data is packaged as into response message, and the response message is sent to AP ends.The present invention can detect connection and the reception state of all STA at AP ends, be easy to the diagnosis of WIFI relevant issues and the planning and adjustment of WIFI network layout, improve the Consumer's Experience of product, greatly strengthen product competitiveness.

Description

AP End detection STA The method and device of reception state
Technical field
The present invention relates to cordless communication network technical field, and in particular to a kind of method and device that STA reception states are detected at AP ends.
Background technology
The basic module of 802.11 wireless networks is by BSS(Basic Service Set)Mark, and BSS point is IBSS (Independent BSS) and infrastrcture BSS, IBSS is that have several work stations(Station)The point-to-point provisional network constituted for specific purpose, basic communication mode are Station<->Station, and infrastrcture BSS are the base structure networks that 802.11 networks are most generally commonly used and are concerned, comprising an AP(Access Point)With several STAs (Stations), its basic communication mode is Station<-> AP <->Station, it is seen that the communication between the communication of all STA and outer net in this wireless topology and STAs, family and all of WIFI network of public situation are based on this structure.
After STA and AP sets up communication connection, at STA places, system end can pass through application software and WIFI NIC drivers read the current reception states of STA, can such as obtain the signal intensity that current STA accesses AP(RSSI), the byte number that STA is received from AP, from number of dropped packets of AP receiving data bags etc., but these reception states can't return the reception signal and receiving data situation for being not aware that its all STA for being connected to AP ends, i.e. AP.
The content of the invention
It is an object of the invention to propose a kind of method and device that STA reception states are detected at AP ends, connection and the reception state of all STA can be detected at AP ends, improve the Consumer's Experience of product, greatly strengthen product competitiveness.
It is that, up to this purpose, the present invention is employed the following technical solutions:
As one aspect of the present invention, there is provided a kind of method for detecting STA reception states at AP ends, including:
Obtain the MAC Address of all STA of current AP ends connection;
ARP is sent to the LAN segment that the AP ends are located and seeks request, obtain the corresponding IP address of each described STA;
The request for obtaining STA current reception conditions is sent to IP address each described;
The data of each STA current reception conditions are obtained, the data is packaged as into response message, and the response message is sent to AP ends.
Preferably, described to send ARP to the LAN segment that the AP ends are located and seek request, obtaining the corresponding IP address of each described STA includes:
ARP is sent to the LAN segment that the AP ends are located and seeks request;
Scanning gets the mapping relations of all MAC-IP, and the mapping relations of MAC-IP each described are recorded in ARP table lattice, and the mapping relations include the mapping relations at the mapping relations of wireless client and cable customer end;
According to the MAC Address, the ARP table lattice are traveled through, the corresponding IP address of each STA is found.
Preferably, the described response message is sent to AP ends also includes:
After AP terminations receive the response message, confirmation is sent to corresponding STA.
Preferably, after the AP terminations receive the response message, sending confirmation includes to corresponding STA:
AP ends receive the response message of each SAT, and the response message includes the data of each the STA current reception conditions needed for AP ends;
The response message is recorded in STA forms, and the STA forms are write into into caching, for inquiry;
Confirmation is sent to STA.
Preferably, also include before the MAC Address of all STA for obtaining current AP ends connection:
The communication unit that establishment is communicated with AP ends.
Preferably, the data for obtaining each STA current reception conditions include:
The request of the data for submitting the acquisition STA current reception conditions to is driven by the PROC interactive interfaces that WIFI drives to WIFI;
The network interface card private data structure for preserving all information states is obtained by the PROC performance elements that WIFI drives, the data of each the STA current reception conditions needed for AP ends are extracted.
Preferably, the communication unit adopts user datagram protocol UDP, and the udp port of the request of the data that STA current reception conditions are obtained for reception is provided with the communication unit.
As another aspect of the present invention, there is provided a kind of device that STA reception states are detected at AP ends, including:
MAC Address acquisition module, for obtaining the MAC Address of all STA of current AP ends connection;
IP address acquisition module, sends ARP for the LAN segment that is located to the AP ends and seeks request, obtains the corresponding IP address of each described STA;
Request module is sent, for the request for obtaining STA current reception conditions is sent to IP address each described;
The data, for obtaining the data of each STA current reception conditions, are packaged as response message, and the response message are sent to AP ends by data acquisition sending module.
Preferably, the described device in AP ends detection STA reception states also includes:
Communication creation module, for creating the communication unit communicated with AP ends;
Request module is received, for receiving the request of the data of the acquisition STA current reception conditions that AP ends send;
Confirmation module is sent, is received after response message for AP terminations, confirmation is sent to corresponding STA;
Confirmation module is received, for receiving the confirmation that AP ends are sent.
Beneficial effects of the present invention:A kind of method and device that STA reception states are detected at AP ends, the method include:Obtain the MAC Address of all STA of current AP ends connection;ARP is sent to the LAN segment that the AP ends are located and seeks request, obtain the corresponding IP address of each described STA;The request for obtaining STA current reception conditions is sent to IP address each described;The data of each STA current reception conditions are obtained, the data is packaged as into response message, and the response message is sent to AP ends.The present invention can detect connection and the reception state of all STA at AP ends, be easy to the diagnosis of WIFI relevant issues and the planning and adjustment of WIFI network layout, improve the Consumer's Experience of product, greatly strengthen product competitiveness.
Description of the drawings
Fig. 1 is a kind of method flow diagram that STA reception states are detected at AP ends that the embodiment of the present invention one is provided;
Fig. 2 is the concrete grammar flow chart of step S102 in Fig. 1;
Fig. 3 is the concrete grammar flow chart of step S105 in Fig. 1;
Fig. 4 is a kind of exemplary block diagram of device that STA reception states are detected at AP ends that the embodiment of the present invention two is provided;
Fig. 5 is the exemplary block diagram of the device that the another kind that the embodiment of the present invention two is provided detects STA reception states at AP ends.
Specific embodiment
Technical scheme is further illustrated with reference to Fig. 1-Fig. 5 and by specific embodiment.
Embodiment one
Fig. 1 is a kind of method flow diagram that STA reception states are detected at AP ends that the present embodiment is provided.
In the present embodiment, a kind of method for detecting STA reception states at AP ends, it is adaptable to AP ends, including:
S101, the MAC Address for obtaining all STA that current AP ends connect;
S102, the LAN segment transmission ARP being located to AP ends(Address Resolution Protocol, address resolution protocol)Request is sought, the corresponding IP address of each described STA is obtained;
S103, the request that acquisition STA current reception conditions are sent to IP address each described;
The data are packaged as response message, and the response message are sent to AP ends by S104, the data for obtaining each STA current reception conditions.
In the present embodiment, development and application and test of the present invention based on 802.11 Infrastrcure BSS networks, it is easy to detect the connection of all STA and reception state at AP ends, it is easy to the diagnosis of WIFI relevant issues and the planning and adjustment of WIFI network layout, the Consumer's Experience of product is improve, product competitiveness is greatly strengthen.
In step S101, the MAC Address of all wireless client STA in current AP ends connection can be got by wlanconfig Open-Source Tools, ordered as follows: wlanconfig Wlan0 [interface] list sta, recorded MAC table lattice mac_table.
As shown in Fig. 2 in the present embodiment, step S102 includes:
S1021, the LAN segment to AP ends place send ARP and seek request;
S1022, scanning get the mapping relations of all MAC-IP, and the mapping relations of MAC-IP each described are recorded in ARP table lattice, the mapping relations include the mapping relations at the mapping relations of wireless client and cable customer end, and the mapping relations at the cable customer end are the cable customer ends by being wiredly connected to AP Ethernet interfaces;
S1023, according to the MAC Address, travel through the ARP table lattice, find the corresponding IP address of each STA.
As shown in figure 3, in the present embodiment, also include step S105 after step S104:After AP terminations receive the response message, confirmation is sent to corresponding STA.
Step S105 includes:
S1051, AP end receives the response message of each SAT, and the response message includes the data of each the STA current reception conditions needed for AP ends;
S1052, the response message is recorded in STA forms, and the STA forms are write into into caching, for inquiry;
S1053, send confirmation to STA, so that STA knows that AP ends have obtained its reception state.
In the present embodiment, after AP terminations receive the data of STA current reception conditions, the form of STA forms as shown in table 1 shows, for diagnosis and network topology contrast.
MAC IP CHANNNEL RSSI RX_packets PX_Drops RX_cur_tp
STA1 00:02:03:04:05:01 192.168.1.100 1~13 -30dbm 1000 40 100Mbps
STA2 00:02:03:04:05:02 192.168.1.101 1~11,36,40,44,48 -56dbm 2000 60 60Mbps
STA2 00:02:03:04:05:03 192.168.1.102 1~13,52,56,60,64 -70dbm 500 70 30Mbps
Table 1
In the present embodiment, the data for obtaining each STA current reception conditions can be expressed as follows with C language:
typedef struct sta_rx_info{
char rssi[32];// show that current STA receives the signal intensity of AP data, according to this value, can // judge signal strength situation
long rx_packets;// show that current STA receives the quantity of the packet of AP
long rx_drops;// show the number // amount of the packet sended over from AP ends that current STA loses, the disturbance regime of current WIFI local environments is can determine whether accordingly
char cur_rx_tp[32];// show that current STA receives the rate conditions of AP packets
char channel_list_supported[128];// show the channel list supported by STA, accordingly may be used
// judge whether this STA supports 5G channel, support how many 2.4G/5G channel
} sta_rx_info。
In the present embodiment, the communication unit udp socket adopt user datagram protocol UDP(User Datagram Protocol), in the communication unit, it is provided with the udp port udp port of the request of the data that STA current reception conditions are obtained for reception.
In the present embodiment, the data for obtaining each STA current reception conditions include:
The request of the data for submitting the acquisition STA current reception conditions to is driven by the PROC interactive interfaces that WIFI drives to WIFI;
The network interface card private data structure for preserving all information states is obtained by the PROC performance elements that WIFI drives, the data of each the STA current reception conditions needed for AP ends are extracted.
In the present embodiment, PROC is a pseudo file system, and it is only existed in the middle of internal memory, and is not take up external space, and it provides interface as the operation for accessing system kernel data in the way of file system;In the present embodiment, processing routine STA Handler in STA ends processes the request that AP ends send in the way of reading proc files, and WIFI drives the operation for receiving that this Proc file is read, and performs this corresponding function execution action of operation.
In the present embodiment, also include after step S105:
Judge whether STA receives the confirmation that AP ends are sent, if so, then continue waiting for the request of the data of the acquisition STA current reception conditions that AP ends next time send;Otherwise, the response message is resend to AP ends.
Embodiment two
As shown in figure 4, in the present embodiment, a kind of device that STA reception states are detected at AP ends, including:
MAC Address acquisition module 101, for obtaining the MAC Address of all STA of current AP ends connection;
IP address acquisition module 102, sends ARP for the LAN segment that is located to the AP ends and seeks request, obtains the corresponding IP address of each described STA;
Request module 103 is sent, for the request for obtaining STA current reception conditions is sent to IP address each described;
The data, for obtaining the data of each STA current reception conditions, are packaged as response message, and the response message are sent to AP ends by data acquisition sending module 104.
As shown in figure 5, in the present embodiment, also include:
Communication creation module 105, for creating the communication unit communicated with AP ends;
Request module 106 is received, for receiving the request of the data of the acquisition STA current reception conditions that AP ends send;
Confirmation module 107 is sent, is received after response message for AP terminations, confirmation is sent to corresponding STA;
Confirmation module 108 is received, for receiving the confirmation that AP ends are sent.
The specific embodiment of the present invention is the foregoing is only, these descriptions are intended merely to the principle for explaining the present invention, and can not be construed to limiting the scope of the invention by any way.Based on explanation herein, those skilled in the art associates other specific implementation methods of the present invention by need not paying performing creative labour, and these modes are fallen within protection scope of the present invention.

Claims (9)

1. it is a kind of AP ends detect STA reception states method, it is characterised in that include:
Obtain the MAC Address of all STA of current AP ends connection;
ARP is sent to the LAN segment that the AP ends are located and seeks request, obtain the corresponding IP address of each described STA;
The request for obtaining STA current reception conditions is sent to IP address each described;
The data of each STA current reception conditions are obtained, the data is packaged as into response message, and the response message is sent to AP ends.
2. the method for detecting STA reception states at AP ends according to claim 1, it is characterised in that described to send ARP to the LAN segment that the AP ends are located and seek request, obtaining the corresponding IP address of each described STA includes:
ARP is sent to the LAN segment that the AP ends are located and seeks request;
Scanning gets the mapping relations of all MAC-IP, and the mapping relations of MAC-IP each described are recorded in ARP table lattice, and the mapping relations include the mapping relations at the mapping relations of wireless client and cable customer end;
According to the MAC Address, the ARP table lattice are traveled through, the corresponding IP address of each STA is found.
3. it is according to claim 2 AP ends detect STA reception states method, it is characterised in that the described response message is sent to AP ends also includes:
After AP terminations receive the response message, confirmation is sent to corresponding STA.
4. the method for detecting STA reception states at AP ends according to claim 3, it is characterised in that after AP termination receives the response message, sending confirmation includes to corresponding STA:
AP ends receive the response message of each SAT, and the response message includes the data of each the STA current reception conditions needed for AP ends;
The response message is recorded in STA forms, and the STA forms are write into into caching, for inquiry;
Confirmation is sent to STA.
5. the method for detecting STA reception states at AP ends according to claim 1, it is characterised in that also include before the MAC Address of all STA of the current AP ends connection of the acquisition:
The communication unit that establishment is communicated with AP ends.
6. the method for detecting STA reception states at AP ends according to claim 1, it is characterised in that the data of the acquisition each STA current reception conditions include:
The request of the data for submitting the acquisition STA current reception conditions to is driven by the PROC interactive interfaces that WIFI drives to WIFI;
The network interface card private data structure for preserving all information states is obtained by the PROC performance elements that WIFI drives, the data of each the STA current reception conditions needed for AP ends are extracted.
7. it is according to claim 5 AP ends detect STA reception states method, it is characterized in that, the communication unit adopts user datagram protocol UDP, and the udp port of the request of the data that STA current reception conditions are obtained for reception is provided with the communication unit.
8. it is a kind of AP ends detect STA reception states device, it is characterised in that include:
MAC Address acquisition module, for obtaining the MAC Address of all STA of current AP ends connection;
IP address acquisition module, sends ARP for the LAN segment that is located to the AP ends and seeks request, obtains the corresponding IP address of each described STA;
Request module is sent, for the request for obtaining STA current reception conditions is sent to IP address each described;
The data, for obtaining the data of each STA current reception conditions, are packaged as response message, and the response message are sent to AP ends by data acquisition sending module.
9. it is according to claim 7 AP ends detect STA reception states device, it is characterised in that also include:
Communication creation module, for creating the communication unit communicated with AP ends;
Request module is received, for receiving the request of the data of the acquisition STA current reception conditions that AP ends send;
Confirmation module is sent, is received after response message for AP terminations, confirmation is sent to corresponding STA;
Confirmation module is received, for receiving the confirmation that AP ends are sent.
CN201610164820.3A 2016-03-22 2016-03-22 The method and device of STA reception states is detected at AP ends Pending CN106559284A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610164820.3A CN106559284A (en) 2016-03-22 2016-03-22 The method and device of STA reception states is detected at AP ends

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610164820.3A CN106559284A (en) 2016-03-22 2016-03-22 The method and device of STA reception states is detected at AP ends

Publications (1)

Publication Number Publication Date
CN106559284A true CN106559284A (en) 2017-04-05

Family

ID=58417995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610164820.3A Pending CN106559284A (en) 2016-03-22 2016-03-22 The method and device of STA reception states is detected at AP ends

Country Status (1)

Country Link
CN (1) CN106559284A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140119291A1 (en) * 2012-10-25 2014-05-01 Snu R&Db Foundation Wlan service method and wlan system
CN103906107A (en) * 2014-03-21 2014-07-02 杭州敦崇科技股份有限公司 Data collecting type WLAN testing system and method based on WIFI terminal
CN104601737A (en) * 2013-10-31 2015-05-06 上海斐讯数据通信技术有限公司 Method for AP (Access Point) to acquire IP (Internet Protocol) addresses of clients

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140119291A1 (en) * 2012-10-25 2014-05-01 Snu R&Db Foundation Wlan service method and wlan system
CN104601737A (en) * 2013-10-31 2015-05-06 上海斐讯数据通信技术有限公司 Method for AP (Access Point) to acquire IP (Internet Protocol) addresses of clients
CN103906107A (en) * 2014-03-21 2014-07-02 杭州敦崇科技股份有限公司 Data collecting type WLAN testing system and method based on WIFI terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
神州数据网络(北京)有限公司: ""AP Web快速配置手册"", 《神州数码网络(北京)有限公司技术手册》 *

Similar Documents

Publication Publication Date Title
WO2021023093A1 (en) Sensing method and communication apparatus
JP5876025B2 (en) System and method for parallel communication with legacy WLAN receivers
CN103650569B (en) Wireless network method for diagnosing faults and equipment
CN101112019B (en) Method of determining transmission rate of control response frame for acknowledging data receipt in wireless lan
RU2670605C1 (en) System and method for indicating type of response frame
CN107613583B (en) Distributed wireless sensor network data summarizing gateway
JP2009515487A5 (en)
JP2017502564A (en) Extended block acknowledgment protocol
KR101589077B1 (en) Idle measurement periods in a communication network
US9226229B2 (en) Method for internet protocol-based sleep mode control using synchronization information
CN107078764A (en) A kind of data communications method and relevant apparatus
WO2007094547A1 (en) Method and apparatus for packet aggregation in power line communication network
WO2017157306A1 (en) Distance measurement method using wireless fidelity (wi-fi), related device, and system
EP3293915B1 (en) Communication method, wireless base station, server, and wireless distribution system
CN107949069A (en) terminal wireless data transmission method, device, terminal and storage medium
CN110337103A (en) A kind of connectionless data hided transmission method based on 802.11 agreements
US10785059B2 (en) Processing of wireless signals for access points using a central controller
US9979793B2 (en) Methods and systems for sending and receiving information data
CN106559284A (en) The method and device of STA reception states is detected at AP ends
US20080155052A1 (en) Method And System For Capture, Display And Network Analysis For A Wireless Access Point
KR101947273B1 (en) Performance Test Device For RF Performance Test Of Test Device And Performance Test Method Of Thereof
CN107295119B (en) Information acquisition system and method based on heterogeneous network
CN104768176A (en) SFlow sampling method and device in wireless network
CN103905147B (en) Data processing method, sending device, receiving device and communication system
JP2021536186A (en) Detection of network devices that are not connected to the network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170405

RJ01 Rejection of invention patent application after publication