[go: up one dir, main page]

CN106658756A - Method and device for recognizing connection between terminal device and hotspot - Google Patents

Method and device for recognizing connection between terminal device and hotspot Download PDF

Info

Publication number
CN106658756A
CN106658756A CN201611144990.1A CN201611144990A CN106658756A CN 106658756 A CN106658756 A CN 106658756A CN 201611144990 A CN201611144990 A CN 201611144990A CN 106658756 A CN106658756 A CN 106658756A
Authority
CN
China
Prior art keywords
message
focus
type message
terminal
hotspot
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.)
Granted
Application number
CN201611144990.1A
Other languages
Chinese (zh)
Other versions
CN106658756B (en
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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201611144990.1A priority Critical patent/CN106658756B/en
Publication of CN106658756A publication Critical patent/CN106658756A/en
Application granted granted Critical
Publication of CN106658756B publication Critical patent/CN106658756B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Landscapes

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

Abstract

The embodiment of the invention discloses a method and a device for recognizing connection between a terminal device and a hotspot. The method comprises steps: a to-be-recognized packet group is acquired, and packets in the packet group are analyzed; according to information carried in the packets, the packets are divided into terminal-type packets and hotspot-type packets; as for a terminal-type packet, the BSSID in the acquired terminal-type packet is matched with an MAC address in a hotspot-type packet; and in the case of successful match, a transmission end corresponding to the terminal-type packet is determined to be connected with the hotspot. As in the embodiment of the invention, the received packets are analyzed, the BSSID in the acquired terminal-type packet is matched with the MAC address in the hotspot-type packet, whether the transmission end corresponding to the terminal-type packet is connected with the hotspot is determined according to whether to be matched successfully, whether each terminal device is connected with the hotspot can be recognized accurately, and the data transmission state of the terminal device can be known and monitored.

Description

Recognition methods and device that a kind of terminal device is connected with focus
Technical field
The present invention relates to wireless communication technology field, recognition methods that more particularly to a kind of terminal device is connected with focus and Device.
Background technology
With the reach of science and progress, the network equipment starts to come into huge numbers of families, and with the productive life of people manner of breathing is ceased Close.Relative to cable network, the application of wireless network solves equipment and is limited by factors such as circuit, environment so that interconnection becomes Simply, it is convenient, application it is also more and more extensive.The interconnection of intelligent appliance in family, mobile phone, panel computer of various models etc. with Online, connection of various monitoring devices etc. in security protection of wireless routing, brings greatly just to every aspects such as productive lifes Profit.Can be unceremoniously say, the productive life of people too busy to get away wireless network.
With terminal device application more and more extensively, the effect that terminal device is played in productive life is also increasingly Greatly, normally carry out to ensure productive life, need that the data is activation state of terminal device is understood and monitored, to end Whether end equipment connects focus is identified.For example:When terminal device is wireless network camera, need to know that it whether can Enough video datas to collecting normally are sent.But prior art is entered when needing whether to connect focus to terminal device Row identification when, can only registration terminal equipment or terminal device connection focus checked, be limited by very large.
The content of the invention
The embodiment of the invention discloses a kind of recognition methods that is connected with focus of terminal device and device, to set to terminal Standby data is activation state is understood and is monitored.
To reach above-mentioned purpose, the embodiment of the invention discloses the recognition methods that a kind of terminal device is connected with focus, should For wireless network card, methods described includes:
The first message group to be identified is obtained, the message in the first message group is parsed, in the first message group Message be what the wireless network card was received;
According to the information carried in message after parsing, message is divided into into terminal type message and hotspot type message;
For terminal type message, the first BSSID in the terminal type message that parsing is obtained BSSID is matched with the first MAC address in hotspot type message;
When the match is successful, the corresponding transmitting terminal connection focus in the terminal type message is determined.
Further, methods described also includes:
According to the information with carrying in the terminal type message hotspot type message that the match is successful, the transmission is obtained The information of the focus of end connection.
Further, the information of the focus includes:
One or more in the cipher mode of focus, the title of focus and the channel that is connected with the focus.
Further, the acquisition the first message group package to be identified is included:
According to the moment that current moment and last time are identified, the time span that message is received is determined;
Judge whether the time span reaches the time threshold of setting, if it is, the report that will be received in the time span Text is divided into the first message group to be identified.
Further, the acquisition the first message group package to be identified is included:
Receive message and by the packet buffer;
Whether the quantity of the message preserved in judging to cache reaches the amount threshold of setting, if it is, will preserve in caching Message be divided into the first message group to be identified, and empty the caching.
Further, it is described according to the information carried in message after parsing, message is divided into into terminal type message and heat Vertex type message includes:
For each message, detect and whether carry in the message that beacon Beacon is identified;
If it is, the message is divided into into hotspot type message, otherwise, the message is divided into into terminal type report Text.
Further, methods described also includes:
The information of the MAC Address carried in hotspot type message is added in hotspot database.
Further, methods described also includes:
The second message group to be identified is obtained, the message in the second message group is parsed, in the second message group Message be what the wireless network card was received;
According to the information carried in message after parsing, message is divided into into terminal type message and hotspot type message;
For terminal type message, the 2nd BSSID in the terminal type message that parsing is obtained and hotspot type message In the second MAC Address matched;
When the match is successful, the corresponding transmitting terminal connection focus in the terminal type message is determined, otherwise, will be described 2nd BSSID is matched with the MAC Address preserved in hotspot database, and when existing with the 2nd BSSID, the match is successful During three MAC Address, the corresponding transmitting terminal connection focus in the terminal type message is determined.
Further, the wireless network card is based on the multi-antenna wireless net of 2.4GHz and/or 5GHz wireless standard protocols Card.
The embodiment of the invention discloses the identifying device that a kind of terminal device is connected with focus, is applied to wireless network card, institute Stating device includes:
First acquisition module, for obtaining the first message group to be identified, parses to the message in the first message group, Message in the first message group is what the wireless network card was received;
Division module, for according to the information carried in message after parsing, message being divided into into terminal type message and heat Vertex type message;
Matching module, takes for for terminal type message, first in the terminal type message that parsing is obtained to be basic Business set identifier BSSID is matched with the first MAC address in hotspot type message;When the match is successful When, determine the corresponding transmitting terminal connection focus in the terminal type message.
Further, described device also includes:
Second acquisition module, for basis and carrying in the terminal type message hotspot type message that the match is successful Information, obtains the information of the focus of the transmitting terminal connection.
Further, second acquisition module, specifically for obtain the cipher mode of focus, the title of focus and with institute State one or more in the channel of focus connection.
Further, first acquisition module, specifically for be identified according to current moment and last time when Carve, determine the time span that message is received;Judge whether the time span reaches the time threshold of setting, if it is, during by this Between the message that receives in length be divided into the first message group to be identified.
Further, first acquisition module, specifically for receiving message and by the packet buffer;In judging caching Whether the quantity of the message of preservation reaches the amount threshold of setting, if it is, the message preserved in caching is divided into be identified The first message group, and empty the caching.
Further, the division module, specifically for for each message, detecting in the message whether carry beacon Beacon is identified;If it is, the message is divided into into hotspot type message, otherwise, the message is divided into into terminal class Type message.
Further, described device also includes:
Memory module, for the information of the MAC Address carried in hotspot type message to be added in hotspot database.
Further, described device also includes:
First acquisition module, is additionally operable to obtain the second message group to be identified, and the message in the second message group is solved Analysis, the message in the second message group is what the wireless network card was received;
Division module, be additionally operable to according in message after parsing carry information, by message be divided into terminal type message and Hotspot type message;
Matching module, is additionally operable to the 2nd BSSID for terminal type message, in the terminal type message that parsing is obtained Matched with the second MAC Address in hotspot type message;When the match is successful, it is right in the terminal type message to determine The transmitting terminal connection focus answered, otherwise, the 2nd BSSID is matched with the MAC Address preserved in hotspot database, when When existing with the 2nd BSSID three MAC Address that the match is successful, the corresponding transmission in the terminal type message is determined End connection focus.
Further, the wireless network card is based on the multi-antenna wireless net of 2.4GHz and/or 5GHz wireless standard protocols Card.
Recognition methods and device that a kind of terminal device is connected with focus are embodiments provided, the method includes: The first message group to be identified is obtained, the message in the first message group is parsed, the message in the first message group is What the wireless network card was received;According to the information carried in message after parsing, message is divided into into terminal type message and focus Type message;For terminal type message, the first BSSID in the terminal type message that parsing is obtained BSSID is matched with the first MAC address in hotspot type message;When the match is successful, it is determined that described Corresponding transmitting terminal connection focus in terminal type message.Due in embodiments of the present invention, wireless network card is to receiving Message is parsed, and the MAC Address in the BSSID in the terminal type message of acquisition and hotspot type message has been carried out Match somebody with somebody, according to whether the match is successful, determine whether the corresponding transmitting terminal of terminal type message connects focus, such that it is able to accurate Recognize whether each terminal device connects focus, contribute to that the data is activation state of terminal device is understood and monitored.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the recognition methods flow chart that a kind of terminal device that the embodiment of the present invention 1 is provided is connected with focus;
Fig. 2 is a kind of wireless network card structural representation that the embodiment of the present invention 1 is provided;
Fig. 3 is the recognition methods flow chart that a kind of terminal device that the embodiment of the present invention 6 is provided is connected with focus;
The recognition methods flow chart that Fig. 4 is connected for a kind of terminal device that further embodiment of this invention is provided with focus;
Fig. 5 is the identifying device schematic diagram that a kind of terminal device provided in an embodiment of the present invention is connected with focus.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Embodiment 1:
Fig. 1 is the recognition methods flow chart that a kind of terminal device provided in an embodiment of the present invention is connected with focus, concrete step It is rapid as follows:
S101:The first message group to be identified is obtained, the message in the first message group is parsed, first message Message in group is what the wireless network card was received.
The embodiment of the present invention is applied to wireless network card, and the wireless network card can be provided in the wireless network of electronic equipment internal Card, or the wireless network card being connected with electronic equipment by USB interface.For example:The wireless network card can be provided in The wireless network card in wireless network card, or mobile terminal inside PC, or by USB interface and electronics The wireless network card that equipment is connected.
It is right below by taking the wireless network card being connected with electronic equipment web camera (IPC) by USB2.0 interfaces as an example The structure of wireless network card is illustrated, as shown in Fig. 2 the wireless network card includes:Anneta module, wifi chip module, power supply mould Block, clock module.Wherein, Anneta module is used for the transmitting-receiving of message;Wifi chip module is used to realize the nothing in 802.11 agreements The data processing of line MAC layer;Each module during power module is used for as wireless network card provides power supply;Clock module is used for wifi Chip module provides the information such as clock frequency.
Wireless network card is the wireless network card based on 2.4GHz or 5GHz wireless standard protocols, or while supports The wireless network card of 2.4GHz and 5GHz wireless standard protocols.
When parsing to message, the media access control (Media of the corresponding transmitting terminal of the message can be obtained Access Control, MAC) address, the MAC Address of receiving terminal, the content and other information in message.Wherein message is entered The process of row parsing belongs to prior art, is not repeated in embodiments of the present invention.
S102:According to the information carried in message after parsing, message is divided into into terminal type message and hotspot type report Text.
Specifically, in embodiments of the present invention, for each message in the first message group is parsed, according in message The information of carrying, divides to message, and the information of the concrete carrying can be the MAC Address of the transmitting terminal carried in message The information of the beacon carried in information, or message.Wherein terminal type message refers to the message that terminal device sends, heat Vertex type message refers to the message that focus sends.
After message is divided, for terminal type message, the Basic Service Set mark included in identification terminal type message Know symbol (Basic Service Set Identifier, BSSID) and MAC Address, the MAC Address is in terminal type message Source MAC, i.e. the MAC Address of transmitting terminal.Terminal type message is parsed in embodiments of the present invention, is obtained wherein BSSID and source MAC belong to prior art, the process is not illustrated in embodiments of the present invention.
For each hotspot type message, the first MAC Address included in hotspot type message, a MAC are recognized Address is the source MAC in hotspot type message, the i.e. MAC Address of transmitting terminal.In embodiments of the present invention to hotspot type Message is parsed, and is obtained source MAC therein and is belonged to prior art, and the process is not said in embodiments of the present invention It is bright.
S103:For terminal type message, the first basic service set identification in the terminal type message that parsing is obtained Symbol BSSID is matched with the first MAC address in hotspot type message.
S104:When the match is successful, the corresponding transmitting terminal connection focus in the terminal type message is determined.
In embodiments of the present invention, for each terminal type message, by the BSSID in the terminal type message with First MAC Address of each hotspot type message matches, and when the match is successful, determines the correspondence in the terminal type message Transmitting terminal connection focus.When matching unsuccessful, it is determined that the corresponding transmitting terminal in the terminal type message is not connected with Focus.For the BSSID in terminal type message is matched with the MAC Address in hotspot type message, belong to prior art, The process is not illustrated in embodiments of the present invention.
Because in embodiments of the present invention, wireless network card is parsed to the message for receiving, the terminal class that will be obtained BSSID in type message is matched with the MAC Address in hotspot type message, according to whether the match is successful, determines the end Whether type message corresponding transmitting terminal in end connects focus, such that it is able to accurately recognize whether each terminal device connects heat Point, contributes to that the data is activation state of terminal device is understood and monitored.
Embodiment 2:
In embodiments of the present invention in order to further obtain the information that terminal device connects focus, in above-described embodiment 1 On the basis of, in embodiments of the present invention methods described also includes:
According to the information with carrying in the terminal type message hotspot type message that the match is successful, the transmission is obtained The information of the focus of end connection.
The information of the focus includes:
One or more in the cipher mode of focus, the title of focus and the channel that is connected with the focus.
Specifically, determine in the terminal type message corresponding transmitting terminal connection focus after, pair with the terminal class The type message hotspot type message that the match is successful is parsed, and is obtained the terminal type message correspondence transmitting terminal and is connected focus Cipher mode, the title of focus and the channel that is connected with the focus in one or more.Because working as terminal device conduct After transmitting terminal connection focus, the information comprising focus in the hotspot type message that connected focus sends, therefore to the heat Vertex type message is parsed, you can obtain the information of the focus of terminal device connection.Specifically, hotspot type message is carried out Parsing, the information for obtaining focus belongs to prior art, and this is not repeated in embodiments of the present invention.
Embodiment 3:
In embodiments of the present invention, it is the report for receiving when whether connecting focus to terminal device and being identified What text was carried out, for the accuracy for ensureing to recognize, need to obtain at least two messages, and at least two message preferably includes end End type message and hotspot type message.Therefore it is in an embodiment of the present invention, described on the basis of embodiment illustrated in fig. 1 Obtain the first message group package to be identified to include:
According to the moment that current moment and last time are identified, the time span that message is received is determined;
Judge whether the time span reaches the time threshold of setting, if it is, the report that will be received in the time span Text is divided into the first message group to be identified.
Specifically, wireless network card cyclic switching channel carries out message reception, because wireless network card can be by being connected thereto Operating system obtain operating system on time, therefore wireless network card can judge constantly each channel current moment and on Time span between the moment being once identified, if reach the time threshold of setting, if it is, by the time span The message for receiving is divided into the first message group to be identified.The time threshold of the setting can be for 100ms, 200ms etc., can Flexibly to be set as needed, the report that can be received typically is can ensure that in the corresponding time span of the time threshold Wen Zhong, while comprising terminal type message and hotspot type message.In embodiments of the present invention, wireless network card cyclic switching channel Carry out message to receive is prior art, is not being repeated in the embodiment of the present invention.
Embodiment 4:
In embodiments of the present invention, it is the report for receiving when whether connecting focus to terminal device and being identified What text was carried out, for the accuracy for ensureing to recognize, need to obtain at least two messages, and at least two message preferably includes end End type message and hotspot type message.Therefore it is in an embodiment of the present invention, described on the basis of embodiment illustrated in fig. 1 Obtain the first message group package to be identified to include:
Receive message and by the packet buffer;
Whether the quantity of the message preserved in judging to cache reaches the amount threshold of setting, if it is, will preserve in caching Message be divided into the first message group to be identified, and empty the caching.
Specifically, the message for receiving is saved in into caching, whether the quantity of the message preserved in judging to cache reaches and set Fixed amount threshold, if it is, the message preserved in caching is divided into into the first message group to be identified, in the first message group quilt After acquisition, the message preserved in caching is emptied.The amount threshold for example can be 40,60 etc., it is ensured that in the message of preservation Simultaneously comprising terminal type message and hotspot type message.
Embodiment 5:
In order to accurately message is divided into into terminal type message and hotspot type message, on the basis of embodiment illustrated in fig. 1 On, described according to the information carried in message after parsing, message is divided into into terminal type message and hotspot type message includes:
For each message, detect and whether carry in the message that beacon Beacon is identified;
If it is, the message is divided into into hotspot type message, otherwise, the message is divided into into terminal type report Text.
Specifically, because only that carrying Beacon marks in the message of focus transmission, therefore after parsing to message, According to Beacon marks whether are carried in message, can determine whether whether message is hotspot type message.Examine in embodiments of the present invention Observe and predict and whether carry in text Beacon and be designated prior art, the process is not illustrated in embodiments of the present invention.
Embodiment 6:
On the basis of embodiment illustrated in fig. 1, in embodiments of the present invention in order to further improve terminal device and focus The accuracy of the identification of connection, methods described also includes:
The information of the MAC Address carried in hotspot type message is added in hotspot database.
The MAC Address of focus is preserved in hotspot database, therefore when being matched, not only can be using in message group The MAC Address carried in hotspot type message is identified, and the MAC Address in hotspot database can also be utilized to be identified, Even if therefore not including hotspot type message in message in embodiments of the present invention, it is also possible to be made whether the knowledge for connecting focus Not, so as to improve the accuracy of identification.
Specifically, methods described also includes:
The second message group to be identified is obtained, the message in the second message group is parsed, in the second message group Message be what the wireless network card was received;
According to the information carried in message after parsing, message is divided into into terminal type message and hotspot type message;
For terminal type message, the 2nd BSSID in the terminal type message that parsing is obtained and hotspot type message In the second MAC Address matched;
When the match is successful, the corresponding transmitting terminal connection focus in the terminal type message is determined, otherwise, will be described 2nd BSSID is matched with the MAC Address preserved in hotspot database, and when existing with the 2nd BSSID, the match is successful During three MAC Address, the corresponding transmitting terminal connection focus in the terminal type message is determined.
The identification process that terminal device is connected with focus in the embodiment, as shown in figure 3, the flow process includes:
S301:Message group to be identified is obtained, the message in message group is parsed, the message in the message group is What the wireless network card was received.
S302:According to the information carried in message in message group after parsing, message is divided into into terminal type message and heat Vertex type message.
S303:For terminal type message in message group, the BSSID and focus in the terminal type message that parsing is obtained MAC Address in type message is matched, and when the match is successful, carries out S305, otherwise, carries out S304.
S304:The BSSID is matched with the MAC Address preserved in hotspot database, when the match is successful, is carried out S305, otherwise, carries out S306.
S305:Determine the corresponding transmitting terminal connection focus in the terminal type message.
S306:Determine the not connected focus of corresponding transmitting terminal in the terminal type message.
And whether the MAC Address that can also now recognize transmitting terminal in each the hotspot type message in the message group is protected In there is hotspot database, if it is not, then the MAC is saved in into hotspot database, subsequently used with facilitating.
In the various embodiments described above of the present invention, the wireless network card can be based on 2.4GHz and/or 5GHz wireless standards The single-antenna wireless network interface card of agreement, or the multi-antenna wireless network interface card based on 2.4GHz and/or 5GHz wireless standard protocols. Because 2.4GHz wireless standard protocols include 802.11n agreements, and 802.11n agreements are comprising multiple-input, multiple-output (Multiple-Input Multiple-Output, MIMO) technology, 5GHz wireless standard protocols are comprising 802.11ac associations View, and 802.11ac agreements are also comprising multiple-input, multiple-output (Multiple-Input Multiple-Output, MIMO) technology , therefore when the wireless network card is the multi-antenna wireless network interface card based on 2.4GHz and/or 5GHz wireless standard protocols, this is wireless Network interface card not only can receive the message of single antenna terminal equipment transmission, can also receive the report of multi-antenna terminal equipment transmission Text.Therefore wireless network card can be made to receive all of message based on 2.4GHz and/or 5GHz wireless standard protocols, so as to can To ensure the comprehensive of follow-up identification.
In embodiments of the present invention wireless network card is before identification terminal equipment is connected with focus, in addition it is also necessary to carry out initial Change, the initialization includes wireless drive load and intiating radio protocol stack, after the completion of initialization, can be by the drive of wireless network card Dynamic model formula is set to listening mode, in the listen mode wireless network card can receive in air based on 2.4GHz and/or 5GHz without The message of line standard agreement.
Fig. 4 is the detailed identification process schematic diagram that a kind of terminal device provided in an embodiment of the present invention is connected with focus, should Process includes:
S401:Initialized, the initialization includes wireless drive load and intiating radio protocol stack.
S402:When itself is arranged to listening mode, receives in air and assisted based on 2.4GHz and/or 5GHz wireless standards The message of view.
S403:Message group to be identified is obtained, the message in message group is parsed, the message in the message group is What the wireless network card was received.
S404:According to the information carried in message after parsing, message is divided into into terminal type message and hotspot type report Text.
S405:For terminal type message, the BSSID in the terminal type message that parsing is obtained BSSID is matched with the MAC address in hotspot type message.
S406:When the match is successful, the corresponding transmitting terminal connection focus in the terminal type message is determined.
Fig. 5 is the identifying device schematic diagram that a kind of terminal device provided in an embodiment of the present invention is connected with focus, using nothing Gauze card, the device includes:
First acquisition module 51, for obtaining the first message group to be identified, solves to the message in the first message group Analysis, the message in the first message group is what the wireless network card was received;
Division module 52, for according in message after parsing carry information, by message be divided into terminal type message and Hotspot type message;
Matching module 53, for for terminal type message, first in the terminal type message that parsing is obtained to be basic Service set identifier BSSID is matched with the first MAC address in hotspot type message;When the match is successful When, determine the corresponding transmitting terminal connection focus in the terminal type message.
Described device also includes:
Second acquisition module 55, for basis and carrying in the terminal type message hotspot type message that the match is successful Information, obtain the information of the focus of transmitting terminal connection.
Second acquisition module 55, specifically for obtain the cipher mode of focus, the title of focus and with the focus One or more in the channel of connection.
First acquisition module 51, specifically for the moment being identified according to current moment and last time, it is determined that The time span that message is received;Judge whether the time span reaches the time threshold of setting, if it is, by the time span The message for receiving is divided into the first message group to be identified.
First acquisition module 51, specifically for receiving message and by the packet buffer;Judge what is preserved in caching Whether the quantity of message reaches the amount threshold of setting, if it is, the message preserved in caching is divided into into be identified first Message group, and empty the caching.
The division module 52, whether carry in the message that beacon Beacon is marked specifically for for each message, detecting Know;If it is, the message is divided into into hotspot type message, otherwise, the message is divided into into terminal type message.
Described device also includes:
Memory module 54, for the information of the MAC Address carried in hotspot type message to be added in hotspot database.
First acquisition module 51, is additionally operable to obtain the second message group to be identified, to the message in the second message group Parsed, the message in the second message group is what the wireless network card was received.
The division module 52, is additionally operable to, according to the information carried in message after parsing, message is divided into into terminal type Message and hotspot type message.
The matching module 53, is additionally operable to for terminal type message, the in the terminal type message that parsing is obtained Two BSSID are matched with the second MAC Address in hotspot type message;When the match is successful, the terminal type report is determined Corresponding transmitting terminal connection focus in text, otherwise, the 2nd BSSID is entered with the MAC Address of preservation in hotspot database Row matching, when existing with the 2nd BSSID three MAC Address that the match is successful, in determining the terminal type message Corresponding transmitting terminal connects focus.
As shown in Figure 5 device, the wireless network card be multiple antennas based on 2.4GHz and/or 5GHz wireless standard protocols without Gauze card.
Recognition methods and device that a kind of terminal device is connected with focus are embodiments provided, the method includes: The first message group to be identified is obtained, the message in the first message group is parsed, the message in the first message group is What the wireless network card was received;According to the information carried in message after parsing, message is divided into into terminal type message and focus Type message;For terminal type message, the first BSSID in the terminal type message that parsing is obtained BSSID is matched with the first MAC address in hotspot type message;When the match is successful, it is determined that described Corresponding transmitting terminal connection focus in terminal type message.Due in embodiments of the present invention, wireless network card is to receiving Message is parsed, and the MAC Address in the BSSID in the terminal type message of acquisition and hotspot type message has been carried out Match somebody with somebody, according to whether the match is successful, determine whether the corresponding transmitting terminal of terminal type message connects focus, such that it is able to accurate Recognize whether each terminal device connects focus, contribute to that the data is activation state of terminal device is understood and monitored.
For systems/devices embodiment, because it is substantially similar to embodiment of the method, so the comparison of description is simple Single, related part is illustrated referring to the part of embodiment of the method.
Those skilled in the art are it should be appreciated that embodiments herein can be provided as method, system or computer program Product.Therefore, the application can be using complete hardware embodiment, complete software embodiment or with reference to the reality in terms of software and hardware Apply the form of example.And, the application can be adopted and wherein include the computer of computer usable program code at one or more The computer program implemented in usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) is produced The form of product.
The application is the flow process with reference to method, equipment (system) and computer program according to the embodiment of the present application Figure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagram The combination of journey and/or square frame and flow chart and/or the flow process in block diagram and/or square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices The device of the function of specifying in present one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy In determining the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring to Make the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one The step of function of specifying in individual square frame or multiple square frames.
Although having been described for the preferred embodiment of the application, those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to include excellent Select embodiment and fall into having altered and changing for the application scope.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the application to the application God and scope.So, if these modifications of the application and modification belong to the scope of the application claim and its equivalent technologies Within, then the application is also intended to comprising these changes and modification.

Claims (18)

1. the recognition methods that a kind of terminal device is connected with focus, it is characterised in that be applied to wireless network card, methods described bag Include:
The first message group to be identified is obtained, the message in the first message group is parsed, the report in the first message group Text is received for the wireless network card;
According to the information carried in message after parsing, message is divided into into terminal type message and hotspot type message;
For terminal type message, the first BSSID BSSID in the terminal type message that parsing is obtained with The first MAC address in hotspot type message is matched;
When the match is successful, the corresponding transmitting terminal connection focus in the terminal type message is determined.
2. the method for claim 1, it is characterised in that methods described also includes:
According to the information with carrying in the terminal type message hotspot type message that the match is successful, obtain the transmitting terminal and connect The information of the focus for connecing.
3. method as claimed in claim 2, it is characterised in that the information of the focus includes:
One or more in the cipher mode of focus, the title of focus and the channel that is connected with the focus.
4. the method for claim 1, it is characterised in that the acquisition the first message group package to be identified is included:
According to the moment that current moment and last time are identified, the time span that message is received is determined;
Judge whether the time span reaches the time threshold of setting, if it is, the message received in the time span is drawn Assign to the first message group to be identified.
5. the method for claim 1, it is characterised in that the acquisition the first message group package to be identified is included:
Receive message and by the packet buffer;
Whether the quantity of the message preserved in judging to cache reaches the amount threshold of setting, if it is, by the report preserved in caching Text is divided into the first message group to be identified, and empties the caching.
6. the method for claim 1, it is characterised in that described according to the information carried in message after parsing, by message Being divided into terminal type message and hotspot type message includes:
For each message, detect and whether carry in the message that beacon Beacon is identified;
If it is, the message is divided into into hotspot type message, otherwise, the message is divided into into terminal type message.
7. the method for claim 1, it is characterised in that methods described also includes:
The information of the MAC Address carried in hotspot type message is added in hotspot database.
8. method as claimed in claim 7, it is characterised in that methods described also includes:
The second message group to be identified is obtained, the message in the second message group is parsed, the report in the second message group Text is received for the wireless network card;
According to the information carried in message after parsing, message is divided into into terminal type message and hotspot type message;
For terminal type message, in the 2nd BSSID and hotspot type message in the terminal type message that parsing is obtained Second MAC Address is matched;
When the match is successful, the corresponding transmitting terminal connection focus in the terminal type message is determined, otherwise, by described second BSSID is matched with the MAC Address preserved in hotspot database, and when existing with the 2nd BSSID, the match is successful the 3rd During MAC Address, the corresponding transmitting terminal connection focus in the terminal type message is determined.
9. the method as described in any one of claim 1-8, it is characterised in that the wireless network card be based on 2.4GHz and/or The multi-antenna wireless network interface card of 5GHz wireless standard protocols.
10. the identifying device that a kind of terminal device is connected with focus, it is characterised in that be applied to wireless network card, described device bag Include:
First acquisition module, for obtaining the first message group to be identified, parses to the message in the first message group, described Message in first message group is what the wireless network card was received;
Division module, for according to the information carried in message after parsing, message being divided into into terminal type message and focus class Type message;
Matching module, for for terminal type message, the first Basic Service Set in the terminal type message that parsing is obtained Identifier BSSID is matched with the first MAC address in hotspot type message;When the match is successful, really Corresponding transmitting terminal connection focus in the fixed terminal type message.
11. devices as claimed in claim 10, it is characterised in that described device also includes:
Second acquisition module, for the letter carried in basis and the terminal type message hotspot type message that the match is successful Breath, obtains the information of the focus of the transmitting terminal connection.
12. devices as claimed in claim 11, it is characterised in that second acquisition module, specifically for obtaining focus One or more in cipher mode, the title of focus and the channel that is connected with the focus.
13. devices as claimed in claim 10, it is characterised in that first acquisition module, specifically for according to current At the moment that moment and last time are identified, determine the time span that message is received;Judge whether the time span reaches setting Time threshold, if it is, the message received in the time span is divided into into the first message group to be identified.
14. devices as claimed in claim 10, it is characterised in that first acquisition module, specifically for receiving message simultaneously By the packet buffer;Whether the quantity of the message preserved in judging to cache reaches the amount threshold of setting, if it is, will caching The message of middle preservation is divided into the first message group to be identified, and empties the caching.
15. devices as claimed in claim 10, it is characterised in that the division module, specifically for for each message, inspection Survey in the message and whether carry beacon Beacon marks;If it is, the message is divided into into hotspot type message, otherwise, The message is divided into into terminal type message.
16. devices as claimed in claim 10, it is characterised in that described device also includes:
Memory module, for the information of the MAC Address carried in hotspot type message to be added in hotspot database.
17. devices as claimed in claim 10, it is characterised in that described device also includes:
First acquisition module, is additionally operable to obtain the second message group to be identified, the message in the second message group is parsed, institute It is what the wireless network card was received to state the message in the second message group;
Division module, is additionally operable to, according to the information carried in message after parsing, message is divided into into terminal type message and focus Type message;
Matching module, is additionally operable to for terminal type message, the 2nd BSSID and heat in the terminal type message that parsing is obtained The second MAC Address in vertex type message is matched;When the match is successful, determine corresponding in the terminal type message Transmitting terminal connects focus, otherwise, the 2nd BSSID is matched with the MAC Address preserved in hotspot database, works as presence During with the 2nd BSSID three MAC Address that the match is successful, determine that the corresponding transmitting terminal in the terminal type message connects Connect focus.
18. devices as described in any one of claim 10-17, it is characterised in that the wireless network card be based on 2.4GHz and/ Or the multi-antenna wireless network interface card of 5GHz wireless standard protocols.
CN201611144990.1A 2016-12-13 2016-12-13 Method and device for identifying connection between terminal equipment and hotspot Active CN106658756B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611144990.1A CN106658756B (en) 2016-12-13 2016-12-13 Method and device for identifying connection between terminal equipment and hotspot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611144990.1A CN106658756B (en) 2016-12-13 2016-12-13 Method and device for identifying connection between terminal equipment and hotspot

Publications (2)

Publication Number Publication Date
CN106658756A true CN106658756A (en) 2017-05-10
CN106658756B CN106658756B (en) 2020-05-26

Family

ID=58824421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611144990.1A Active CN106658756B (en) 2016-12-13 2016-12-13 Method and device for identifying connection between terminal equipment and hotspot

Country Status (1)

Country Link
CN (1) CN106658756B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729202A (en) * 2017-11-06 2018-02-23 深圳开发微电子有限公司 Method for tracing USB production source
CN108282551A (en) * 2018-03-07 2018-07-13 成都众网行科技有限公司 Message identifying processing method, apparatus, audiomonitor and readable storage medium storing program for executing
CN109451530A (en) * 2019-01-03 2019-03-08 中国联合网络通信集团有限公司 Formation gathering method and Information Collection System
CN109743745A (en) * 2019-02-19 2019-05-10 北京三快在线科技有限公司 The recognition methods of mobile network's access style, device, electronic equipment and storage medium
CN109803264A (en) * 2018-12-24 2019-05-24 北京奇安信科技有限公司 The method and apparatus for identifying wireless invasive
CN109982413A (en) * 2019-02-19 2019-07-05 北京三快在线科技有限公司 Recognition methods, device, electronic equipment and the storage medium of mobile hot spot
CN110650516A (en) * 2019-09-23 2020-01-03 芯海科技(深圳)股份有限公司 Network distribution method and device, Internet of things equipment, terminal equipment and storage medium
CN112235849A (en) * 2020-10-19 2021-01-15 展讯半导体(成都)有限公司 Method, system, electronic device, and medium for identifying Wi-Fi hotspot type

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852203A (en) * 2006-02-10 2006-10-25 华为技术有限公司 Virtual-link set-up method and apparatus
CN102437897A (en) * 2011-11-11 2012-05-02 杭州华三通信技术有限公司 Beacon sending method and equipment
CN102480729A (en) * 2010-11-22 2012-05-30 中兴通讯股份有限公司 Method and access point for preventing counterfeit users in wireless access network
CN104023336A (en) * 2014-06-13 2014-09-03 张力军 Mobile terminal and wireless access method thereof
CN105429695A (en) * 2015-10-28 2016-03-23 京信通信技术(广州)有限公司 Method and device of detecting wireless equipment information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852203A (en) * 2006-02-10 2006-10-25 华为技术有限公司 Virtual-link set-up method and apparatus
CN102480729A (en) * 2010-11-22 2012-05-30 中兴通讯股份有限公司 Method and access point for preventing counterfeit users in wireless access network
CN102437897A (en) * 2011-11-11 2012-05-02 杭州华三通信技术有限公司 Beacon sending method and equipment
CN104023336A (en) * 2014-06-13 2014-09-03 张力军 Mobile terminal and wireless access method thereof
CN105429695A (en) * 2015-10-28 2016-03-23 京信通信技术(广州)有限公司 Method and device of detecting wireless equipment information

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729202A (en) * 2017-11-06 2018-02-23 深圳开发微电子有限公司 Method for tracing USB production source
CN108282551A (en) * 2018-03-07 2018-07-13 成都众网行科技有限公司 Message identifying processing method, apparatus, audiomonitor and readable storage medium storing program for executing
CN108282551B (en) * 2018-03-07 2021-04-09 成都众网行科技有限公司 Message identification processing method and device, monitoring equipment and readable storage medium
CN109803264A (en) * 2018-12-24 2019-05-24 北京奇安信科技有限公司 The method and apparatus for identifying wireless invasive
CN109451530A (en) * 2019-01-03 2019-03-08 中国联合网络通信集团有限公司 Formation gathering method and Information Collection System
CN109451530B (en) * 2019-01-03 2022-04-22 中国联合网络通信集团有限公司 Information collection method and information collection system
CN109743745A (en) * 2019-02-19 2019-05-10 北京三快在线科技有限公司 The recognition methods of mobile network's access style, device, electronic equipment and storage medium
CN109982413A (en) * 2019-02-19 2019-07-05 北京三快在线科技有限公司 Recognition methods, device, electronic equipment and the storage medium of mobile hot spot
CN109743745B (en) * 2019-02-19 2021-01-22 北京三快在线科技有限公司 Mobile network access type identification method and device, electronic equipment and storage medium
CN110650516A (en) * 2019-09-23 2020-01-03 芯海科技(深圳)股份有限公司 Network distribution method and device, Internet of things equipment, terminal equipment and storage medium
CN110650516B (en) * 2019-09-23 2021-10-08 芯海科技(深圳)股份有限公司 Network distribution method and device, Internet of things equipment, terminal equipment and storage medium
CN112235849A (en) * 2020-10-19 2021-01-15 展讯半导体(成都)有限公司 Method, system, electronic device, and medium for identifying Wi-Fi hotspot type

Also Published As

Publication number Publication date
CN106658756B (en) 2020-05-26

Similar Documents

Publication Publication Date Title
CN106658756A (en) Method and device for recognizing connection between terminal device and hotspot
CN104185141B (en) The detecting system and method for user area residence time based on Bluetooth beacon equipment
US20180310157A1 (en) Near field communication method and mobile terminal
CN105577293B (en) A kind of test method of bluetooth equipment, apparatus and system
CN105940720A (en) Method for triggering registration machine protocol interaction, access point and station point
KR100882814B1 (en) Dual processing system to ensure the real-time property of protocol conformance test
CN104469665A (en) Data processing method and user terminals
CN106162647B (en) Intelligent equipment configuration network access method and device
CN103052094B (en) Method for acquiring service set identifier of wireless mobile terminal
CN101753370A (en) System and method for detecting usability of certification process for broadband access user
CN105557045A (en) Access network node, core network node and paging method
CN102917386B (en) Device and method for consistency protocol verification of interfaces S1 of LTE (Long Term Evolution) wireless network
CN106535316A (en) Method for connecting internet-of-things module to network, router and internet-of-things module
CN108712751A (en) A kind of terminal communication of internet of things detection method, system and device
CN105163275B (en) A kind of data transmission method for uplink, relevant apparatus and system
CN110337103A (en) A kind of connectionless data hided transmission method based on 802.11 agreements
CN107548058A (en) Equipment cut-in method and intelligent terminal
CN104704867A (en) Data routing method and device
CN109392018B (en) Data transmission method and related device
CN103491609B (en) Method, system and device for carry out communication between mobile terminals
CN106792542A (en) The control method and device of mobile device networking behavior
US20240380775A1 (en) Method and device for mining security vulnerability of air interface protocol, and mobile terminal
CN106817766A (en) A kind of method and device that Radio Resource optimization is carried out to terminal
CN108352897A (en) One kind intercepting reference mark transmission method and Remote Radio Unit
US20150110119A1 (en) Virtual gateway for machine to machine capillary 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
GR01 Patent grant
GR01 Patent grant