The content of the invention
It is existing to solve the present invention provides a kind of method, apparatus, equipment and storage medium for connecting wireless access points
Have that the speed of the access wireless network of equipment in technology is slow, and low success rate of problem.
The technical solution adopted by the present invention provides a kind of method for connecting wireless access points, including:
When receiving monitoring instruction, the beacon Beacon frames that each alternative access point is sent are obtained, and acquisition control is eventually
The configuration message for the carrying linking objective access point configuration information that end is sent;
Based on Beacon frames and configuration message, the corresponding intended communication channel of target access is determined;
According to the connection configuration information received by intended communication channel, target access is connected to.
Optionally, configuration message includes the corresponding target address information of target access;
Based on Beacon frames and configuration message, the corresponding communication channel of target access is determined, including:
By parsing configuration message, target address information is obtained;
The target Beacon frames of carrying target address information are determined in all Beacon frames;
By parsing target Beacon frames, the corresponding destinations traffic letter of the target access for sending target Beacon frames is determined
Road.
Optionally, after the target Beacon frames that carrying target address information is determined in all Beacon frames, method is also
Including:
By parsing target Beacon frames, the data encryption configuration information of target access is obtained.
Optionally, according to the connection configuration information received by intended communication channel, target access is connected to, is wrapped
Include:
According to the connection configuration information received by intended communication channel, and data encryption configuration information, it is connected to
Target access.
Optionally, determine to carry the target Beacon frames of target address information in all Beacon frames, including:
By parsing each Beacon frames, the mapping for obtaining the alternative address information that Beacon frames are carried with Beacon frames is closed
System;
Mapping relations based on Beacon frames Yu alternative address information, determine the corresponding target Beacon of target address information
Frame.
Optionally, the beacon Beacon frames of each alternative access point transmission are being obtained, and is obtaining taking for control terminal transmission
Before the configuration message of band connection target access configuration information, method further includes:
By in the corresponding alternative communication channel of each alternatively access point, monitoring duration successively with setting and being monitored,
Obtain the data message transmitted in each alternative communication channel;
Wherein, data message includes at least one of following information:Management frame, control frame and data frame.
The present invention also provides a kind of device for connecting wireless access points, including:
Acquisition module, for when receiving monitoring instruction, obtaining the beacon Beacon frames that each alternative access point is sent,
And obtain the configuration message for the carrying linking objective access point configuration information that control terminal is sent;
Configuration module, for based on Beacon frames and configuration message, determining the corresponding intended communication channel of target access;
Link block, for according to the connection configuration information received by intended communication channel, being connected to target access
Point.
Optionally, configuration message includes the corresponding target address information of target access;
Configuration module, including:
Parsing module, for by parsing configuration message, obtaining target address information;
First determining module, for determining the target Beacon frames of carrying target address information in all Beacon frames;
Second determining module, for by parsing target Beacon frames, determining to send the target access of target Beacon frames
The corresponding intended communication channel of point.
The present invention also provides a kind of computer equipment, computer equipment includes processor and memory;
Processor is used for the program for performing the connection wireless access points stored in memory, to realize above-mentioned connection
The step of method of wireless access points.
The present invention also provides a kind of computer-readable recording medium, computer-readable recording medium storage has one or more
A program, one or more program can be performed by one or more processor, be accessed with the connection accessing wirelessly in realization
The step of method of point.
Using above-mentioned technical proposal, the present invention at least has following advantages:
It is of the present invention it is a kind of connect wireless access points method, apparatus, equipment and storage medium, applicability compared with
Extensively, development risk is low, effectively increases the speed, efficiency and success rate of equipment linking objective AP;Design is simple, lock onto target AP
Channel it is efficient, effectively prevent false-lock and determine the channel of mistake AP causes linking objective AP configuration failures, effectively increases user
The user experience of control device linking objective AP.
Embodiment
Further to illustrate the present invention to reach the technological means and effect that predetermined purpose is taken, below in conjunction with attached drawing
And preferred embodiment, the present invention is described in detail as after.
First embodiment of the invention, a kind of method for connecting wireless access points, as shown in Figure 1, including in detail below
Step:
Step S101, when receiving monitoring instruction, obtains the Beacon that each alternative wireless access points are sent and (believes
Mark) frame, and obtain the configuration message for the carrying linking objective wireless access points configuration information that control terminal is sent.
Wherein, all alternative wireless access points include Target Wireless access points.
Beacon frames are a kind of broadcast frames, and Beacon frames include:Send the wireless access points channel of the Beacon frames
Information, SSID (Service Set Identifier, service set), and BSSID (Basic Service Set ID,
Infrastructure service sets mark) encryption information etc. sends the wireless access points information of the Beacon frames;Optionally, BSSID is
MAC (Media Access Control, media access control) address information.
Step S102, based on Beacon frames and configuration message, determines the corresponding destinations traffic of Target Wireless access points
Channel.
Optionally, step S102, including:
By parsing configuration message, linking objective wireless access points configuration information is obtained;Wherein, configuration message includes
The corresponding target address information of Target Wireless access points;
The target Beacon frames of carrying target address information are determined in all Beacon frames;
By parsing target Beacon frames, determine to send the corresponding mesh of Target Wireless access points of target Beacon frames
Mark communication channel.
Optionally, target address information is the corresponding mac address information of Target Wireless access points.
Step S103, according to the connection configuration information received by intended communication channel, is connected to Target Wireless access
Access point.
Optionally, step S103, including:
The connection configuration information sent according to the Target Wireless access points received by intended communication channel, connection
To Target Wireless access points.
The method of connection wireless access points described in first embodiment of the invention, applicability is wider, and development risk is low,
Effectively increase the speed, efficiency and success rate of equipment linking objective wireless access points;Design is simple, and lock onto target is wireless
The channel of access points is efficient, effectively prevent the channel of the fixed wrong wireless access points of false-lock and causes linking objective wireless
Access points configuration failure, effectively increases the user experience of user control device linking objective wireless access points.
Second embodiment of the invention, a kind of method for connecting wireless access points, as shown in Fig. 2, including in detail below
Step:
Step S201, by successively in the corresponding alternative communication channel of each alternative wireless access points, with setting
Monitor duration to be monitored, obtain the data message transmitted in each alternative communication channel.
Wherein, data message includes at least one of following information:The information such as management frame, control frame and data frame.
In the present embodiment, monitor duration to setting to be not specifically limited, can be that engineer is set according to engineering experience
Optimal monitor duration or optimal monitor duration by what limited trials were got or pass through limited number of time
The optimal monitoring duration that Computer Simulation is got.
Optionally, the scope for monitoring duration is set as [100ms, 200ms].
Step S202, when receiving monitoring instruction, obtains the Beacon frames that each alternative wireless access points are sent,
And obtain the configuration message for the carrying linking objective wireless access points configuration information that control terminal is sent.
Wherein, all alternative wireless access points include Target Wireless access points.
Beacon frames are a kind of broadcast frames, and Beacon frames include:Send the wireless access points channel of the Beacon frames
Information, SSID, and BSSID encryption information etc. send the wireless access points information of the Beacon frames;Optionally, BSSID
For mac address information.
Optionally, configuration message includes the corresponding target address information of Target Wireless access points.
Optionally, the corresponding target address information of Target Wireless access points is corresponding for Target Wireless access points
Mac address information.
Step S203, based on Beacon frames and configuration message, determines the corresponding destinations traffic of Target Wireless access points
Channel.
Optionally, step S203, including:
By parsing configuration message, linking objective wireless access points configuration information is obtained;
The target Beacon frames of carrying target address information are determined in all Beacon frames;
By parsing target Beacon frames, determine to send the corresponding mesh of Target Wireless access points of target Beacon frames
Mark communication channel.
Optionally, step S203, including:
By parsing configuration message, linking objective wireless access points configuration information is obtained;Linking objective accessing wirelessly
Access point configuration information includes the corresponding target address information of Target Wireless access points;
The target Beacon frames of carrying target address information are determined in all Beacon frames;
By parsing target Beacon frames, determine to send the corresponding mesh of Target Wireless access points of target Beacon frames
Communication channel is marked, and obtains the data encryption configuration information of Target Wireless access points.
Optionally, determine to carry the mode of the target Beacon frames of target address information in all Beacon frames, including:
By parsing each Beacon frames, the mapping for obtaining the alternative address information that Beacon frames are carried with Beacon frames is closed
System;
Mapping relations based on Beacon frames Yu alternative address information, determine the corresponding target Beacon of target address information
Frame.
Step S204, according to the connection configuration information received by intended communication channel, is connected to Target Wireless access
Access point.
Optionally, step S204, including:
The connection configuration information sent according to the Target Wireless access points received by intended communication channel, connection
To Target Wireless access points.
Optionally, step S204, including:
According to the connection configuration information received by intended communication channel, and data encryption configuration information, it is connected to
Target Wireless access points.
The method of connection wireless access points described in second embodiment of the invention, applicability is wider, and development risk is low,
Effectively increase the speed, efficiency and success rate of equipment linking objective wireless access points;Design is simple, and lock onto target is wireless
The channel of access points is efficient, effectively prevent the channel of the fixed wrong wireless access points of false-lock and causes linking objective wireless
Access points configuration failure, effectively increases the user experience of user control device linking objective wireless access points.
Third embodiment of the invention, the present embodiment are on the basis of above-described embodiment, and wireless visit is connected with smart machine
Exemplified by the method for asking access point, an application example of the invention is introduced with reference to attached drawing 3.
Step S301, starts (sniffer) pattern of monitoring.
Optionally, step S301, including:
Start listening mode, Fixed Time Interval is monitored in the corresponding communication channel of each alternative wireless access points
([100ms~200ms]), (management frame, control frame and data are included to receive all wireless data informations in the communication channel
Frame), establish basis for following steps.
Step S302, obtains the Beacon frames that each alternative wireless access points are sent, and obtains intelligent terminal hair
The configuration message of the carrying linking objective wireless access points configuration information sent.
Wherein, configuration message includes but not limited to:The mac address information of Target Wireless access points.
Step S303, by parsing each Beacon frames, and configuration message, obtains the logical of Target Wireless access points
Believe channel.
Optionally, step S303, including:
By parsing each Beacon frames, with obtaining the MAC for the alternative wireless access points that each Beacon frames carry
Location information;
By parsing configuration message, the mac address information of Target Wireless access points is obtained;
By the way that by the mac address information of Target Wireless access points, alternative with the carrying of each Beacon frames is wirelessly visited
Ask that the mac address information of access point is matched, obtain the Beacon for the mac address information for carrying Target Wireless access points
Frame;
By parsing the Beacon frames for the mac address information for carrying Target Wireless access points, obtain Target Wireless and visit
Ask the communication channel of access point.
Step S304, the connection of Target Wireless access points is received in the communication channel of Target Wireless access points and is matched somebody with somebody
Confidence ceases.
Step S305, connects configuration information according to Target Wireless access points, accesses Target Wireless access points.
In some embodiments of the invention, smart machine is not specifically limited, can is various intelligent appliance equipment,
Such as refrigerator, colour TV and washing machine with wireless Internet function etc..
The method of smart machine connection wireless access points described in third embodiment of the invention, applicability is wider, opens
It is low to send out risk, effectively increases the speed, efficiency and success rate of equipment linking objective wireless access points;Design is simple, lock
Set the goal wireless access points channel it is efficient, effectively prevent the channel of the fixed wrong wireless access points of false-lock causes to connect
Target Wireless access points configuration failure is connect, effectively increases the use of user control device linking objective wireless access points
Experience at family.
Fourth embodiment of the invention, the present embodiment are on the basis of above-described embodiment, and wireless visit is connected with smart machine
Exemplified by the method for asking access point, an application example of the invention is introduced with reference to attached drawing 4.
Step S401, starts (sniffer) pattern of monitoring.
Optionally, step S401, including:
Start listening mode, Fixed Time Interval is monitored in the corresponding communication channel of each alternative wireless access points
([100ms~200ms]), (management frame, control frame and data are included to receive all wireless data informations in the communication channel
Frame), establish basis for following steps.
Step S402, obtains the Beacon frames that each alternative wireless access points are sent, and obtains intelligent terminal hair
The configuration message of the carrying linking objective wireless access points configuration information sent.
Wherein, configuration message includes but not limited to:The mac address information of Target Wireless access points.
Step S403, by parsing each Beacon frames and configuration message, obtains the communication of Target Wireless access points
Channel.
Optionally, step S403, including:
By parsing each Beacon frames, with obtaining the MAC for the alternative wireless access points that each Beacon frames carry
Location information;
By parsing configuration message, the mac address information of Target Wireless access points is obtained;
By the way that by the mac address information of Target Wireless access points, alternative with the carrying of each Beacon frames is wirelessly visited
Ask that the mac address information of access point is matched, obtain the Beacon for the mac address information for carrying Target Wireless access points
Frame;
By parsing the Beacon frames for the mac address information for carrying Target Wireless access points, obtain Target Wireless and visit
Ask the communication channel of access point.
Optionally, step S403, including:
The Beacon frames sent by parsing each alternative wireless access points, obtain what each Beacon frames carried
Mac address information;
Each alternative wireless access points are recorded with tabular form;Wherein, it is each alternative wireless with tabular form record
Access points, including:SSID, BSSID (mac address information) and signal of each alternative wireless access points of record are strong
Degree;
By parsing configuration message, the mac address information of Target Wireless access points is obtained;
By the way that by the mac address information of Target Wireless access points, alternative with the carrying of each Beacon frames is wirelessly visited
Ask that the mac address information of access point is matched, obtain the Beacon for the mac address information for carrying Target Wireless access points
Frame;
By parsing the Beacon frames for the mac address information for carrying Target Wireless access points, obtain Target Wireless and visit
Ask the communication channel of access point.
Wherein, the mode for the Beacon frames that each alternative wireless access points of parsing are sent, including:
Parse the Element ID (component identification) of Beacon frames:0th, 3,61,48 and 221.
The Element ID of Beacon frames, specifically include:
Element ID 0:The SSID of wireless access points;
Element ID 3:The main channel of wireless access points;
Element ID 61:The auxiliary channel of wireless access points;
And other are related to encrypted Element ID.
Step S404, the connection of Target Wireless access points is received in the communication channel of Target Wireless access points and is matched somebody with somebody
Confidence ceases.
Wherein, Target Wireless access points connection configuration information includes at least one of following information:
The main channel of Target Wireless access points, the auxiliary channel of Target Wireless access points, Target Wireless access
The cipher mode of the SSID of access point, the BSSID of Target Wireless access points and Target Wireless access points.
Step S405, connects configuration information according to Target Wireless access points, accesses Target Wireless access points.
In some embodiments of the invention, smart machine is not specifically limited, can is various intelligent appliance equipment,
Such as refrigerator, colour TV and washing machine with wireless Internet function etc..
The method of smart machine connection wireless access points described in fourth embodiment of the invention, applicability is wider, opens
It is low to send out risk, effectively increases the speed, efficiency and success rate of equipment linking objective wireless access points;Design is simple, lock
Set the goal wireless access points channel it is efficient, effectively prevent the channel of the fixed wrong wireless access points of false-lock causes to connect
Target Wireless access points configuration failure is connect, effectively increases the use of user control device linking objective wireless access points
Experience at family.
Fifth embodiment of the invention, a kind of device for connecting wireless access points, as shown in figure 5, including consisting of
Part:
Acquisition module 200, for when receiving monitoring instruction, obtaining what each alternative wireless access points were sent
Beacon frames, and obtain the configuration message for the carrying linking objective wireless access points configuration information that control terminal is sent.
Wherein, all alternative wireless access points include Target Wireless access points.
Beacon frames are a kind of broadcast frames, and Beacon frames include:Send the wireless access points channel of the Beacon frames
Information, SSID, and BSSID encryption information etc. send the wireless access points information of the Beacon frames;Optionally, BSSID
For mac address information.
Configuration module 300, for based on Beacon frames and configuration message, determining the corresponding mesh of Target Wireless access points
Mark communication channel.
Optionally, configuration module 300, including:
Parsing module 301, for by parsing configuration message, obtaining linking objective wireless access points configuration information;
Wherein, configuration message includes the corresponding target address information of Target Wireless access points;
First determining module 302, for determining the target Beacon of carrying target address information in all Beacon frames
Frame;
Second determining module 303, for by parsing target Beacon frames, determine to send the targets of target Beacon frames without
The corresponding intended communication channel of line access points.
Optionally, target address information is the corresponding mac address information of Target Wireless access points.
Link block 400, for according to the connection configuration information that is received by intended communication channel, be connected to target without
Line access points.
Optionally, link block 400, are specifically used for:
The connection configuration information sent according to the Target Wireless access points received by intended communication channel, connection
To Target Wireless access points.
The device of connection wireless access points described in fifth embodiment of the invention, applicability is wider, and development risk is low,
Effectively increase the speed, efficiency and success rate of equipment linking objective wireless access points;Design is simple, and lock onto target is wireless
The channel of access points is efficient, effectively prevent the channel of the fixed wrong wireless access points of false-lock and causes linking objective wireless
Access points configuration failure, effectively increases the user experience of user control device linking objective wireless access points.
Sixth embodiment of the invention, a kind of method for connecting wireless access points, as shown in fig. 6, including in detail below
Step:
Module 100 is monitored, for by successively in the corresponding alternative communication channel of each alternative wireless access points,
Duration is monitored with setting to be monitored, and obtains the data message transmitted in each alternative communication channel.
Wherein, data message includes at least one of following information:The information such as management frame, control frame and data frame.
In the present embodiment, monitor duration to setting to be not specifically limited, can be that engineer is set according to engineering experience
Optimal monitor duration or optimal monitor duration by what limited trials were got or pass through limited number of time
The optimal monitoring duration that Computer Simulation is got.
Optionally, the scope for monitoring duration is set as [100ms, 200ms].
Acquisition module 200, for when receiving monitoring instruction, obtaining what each alternative wireless access points were sent
Beacon frames, and obtain the configuration message for the carrying linking objective wireless access points configuration information that control terminal is sent.
Wherein, all alternative wireless access points include Target Wireless access points.
Beacon frames are a kind of broadcast frames, and Beacon frames include:Send the wireless access points channel of the Beacon frames
Information, SSID, and BSSID encryption information etc. send the wireless access points information of the Beacon frames;Optionally, BSSID
For mac address information.
Optionally, configuration message includes the corresponding target address information of Target Wireless access points.
Optionally, the corresponding target address information of Target Wireless access points is corresponding for Target Wireless access points
Mac address information.
Configuration module 300, for based on Beacon frames and configuration message, determining the corresponding mesh of Target Wireless access points
Mark communication channel.
Optionally, configuration module 300, including:
Parsing module 301, for by parsing configuration message, obtaining linking objective wireless access points configuration information;
First determining module 302, for determining the target Beacon of carrying target address information in all Beacon frames
Frame;
Second determining module 303, for by parsing target Beacon frames, determine to send the targets of target Beacon frames without
The corresponding intended communication channel of line access points.
Optionally, configuration module 300, including:
Parsing module 301, for by parsing configuration message, obtaining linking objective wireless access points configuration information;
Linking objective wireless access points configuration information includes the corresponding target address information of Target Wireless access points;
First determining module 302, for determining the target Beacon of carrying target address information in all Beacon frames
Frame;
Second determining module 303, for by parsing target Beacon frames, determine to send the targets of target Beacon frames without
The corresponding intended communication channel of line access points;
Encryption configuration module 304, for by parsing target Beacon frames, obtaining the data of Target Wireless access points
Encryption configuration information.
Optionally, the first determining module 302, is specifically used for:
By parsing each Beacon frames, the mapping for obtaining the alternative address information that Beacon frames are carried with Beacon frames is closed
System;
Mapping relations based on Beacon frames Yu alternative address information, determine the corresponding target Beacon of target address information
Frame.
Link block 400, for according to the connection configuration information that is received by intended communication channel, be connected to target without
Line access points.
Optionally, link block 400, are specifically used for:
The connection configuration information sent according to the Target Wireless access points received by intended communication channel, connection
To Target Wireless access points.
Optionally, link block 400, are specifically used for:
According to the connection configuration information received by intended communication channel, and data encryption configuration information, it is connected to
Target Wireless access points.
The device of connection wireless access points described in sixth embodiment of the invention, applicability is wider, and development risk is low,
Effectively increase the speed, efficiency and success rate of equipment linking objective wireless access points;Design is simple, and lock onto target is wireless
The channel of access points is efficient, effectively prevent the channel of the fixed wrong wireless access points of false-lock and causes linking objective wireless
Access points configuration failure, effectively increases the user experience of user control device linking objective wireless access points.
Seventh embodiment of the invention, a kind of computer equipment, as shown in figure 5, including consisting of part:
Processor 501 and memory 502.In some embodiments of the invention, processor 501 and memory 502 can lead to
Cross bus or other manner connection.
Processor 501 can be general processor, such as central processing unit, can also be digital signal processor, special
Integrated circuit, or it is arranged to implement one or more integrated circuits of the embodiment of the present invention.Wherein, memory 502 is used
In the executable instruction of storage processor 501;
Memory 502, processor 501 is transferred to for store program codes, and by the program code.Memory 502 can
With including volatile memory, such as random access memory;Memory 502 can also include nonvolatile memory, such as
Read-only storage (Read-Only Memory, ROM), flash memory, hard disk or solid state hard disc;Memory 502 can also wrap
Include the combination of the memory of mentioned kind.
Wherein, processor 501 is used for the program code management code for calling memory 502 to store, to realize the present invention the
One embodiment into fourth embodiment of the invention in any embodiment part or Overall Steps.
Computer equipment described in seventh embodiment of the invention, applicability is wider, and development risk is low, effectively increases equipment
Speed, efficiency and the success rate of linking objective wireless access points;Design is simple, the letter of lock onto target wireless access points
Road is efficient, effectively prevent the channel of the fixed wrong wireless access points of false-lock and causes linking objective wireless access points to configure
Failure, effectively increases the user experience of user control device linking objective wireless access points.
Eighth embodiment of the invention, a kind of computer-readable recording medium.
Computer-readable storage medium can be RAM memory, flash memory, ROM memory, eprom memory, EEPROM storages
Device, register, hard disk, mobile hard disk, the storage medium of CD-ROM or any other form known in the art.
Computer-readable recording medium storage has one or more program, one or more program can by one or
The multiple processors of person perform, with realize first embodiment of the invention into fourth embodiment of the invention in any embodiment part or
Overall Steps.
A kind of computer-readable recording medium described in eighth embodiment of the invention, is stored with one or more journey
Sequence, one or more program can be performed by one or more processor, effectively increased equipment linking objective and wirelessly visited
Ask the speed, efficiency and success rate of access point;Design is simple, and the channel of lock onto target wireless access points is efficient, effectively keeps away
Having exempted from the channel of the fixed wrong wireless access points of false-lock causes linking objective wireless access points configuration failure, effectively improves
The user experiences of user control device linking objective wireless access points.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And other elements that are not explicitly listed are further included, or further include as this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, services
Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, those of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make very much
Form, these are belonged within the protection of the present invention.