CN108112053A - A kind of method and mobile terminal for automatically accessing wireless network - Google Patents
A kind of method and mobile terminal for automatically accessing wireless network Download PDFInfo
- Publication number
- CN108112053A CN108112053A CN201810101315.3A CN201810101315A CN108112053A CN 108112053 A CN108112053 A CN 108112053A CN 201810101315 A CN201810101315 A CN 201810101315A CN 108112053 A CN108112053 A CN 108112053A
- Authority
- CN
- China
- Prior art keywords
- wireless network
- ssid
- mac address
- reception device
- radio reception
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/08—Access security
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of method for automatically accessing wireless network, the described method includes:The broadcast message under current SSID networks is obtained, the MAC Address of radio reception device is parsed from the broadcast message;The MAC Address with a storage table is matched, if successful match, obtains the corresponding all wireless network passwords of the MAC Address;It is matched one by one with the current SSID with all wireless network passwords, and it carries out trial with the radio reception device and is connected, it realizes after the SSID of wireless network is modified, mobile terminal can automatically access the wireless network again, be brought convenience to user.
Description
Technical field
The invention belongs to radio network technique field, the method and mobile terminal of wireless network are more particularly to automatically accessed.
Background technology
At present, mobile terminal can realize the wireless network for automatically accessing and having connected, but when wireless network
SSID(Service Set Identifer, service set)After being modified, mobile terminal just cannot automatically access wireless network
.Especially when mobile terminal is in the numerous environment of wireless network, if it is not known that by amended SSID, movement is eventually
End is difficult to automatically access wireless network again, and inconvenience is brought to user.
But after the SSID of wireless network is modified, the password of wireless network is it is possible that have not changed as, some wireless networks
Network administrator for convenience, only has changed the SSID of wireless network, and the password without changing wireless network, this is also often to send out
Raw situation.
The present invention is based on this, when the SSID of wireless network is modified, using the history password of the wireless network, automatically
The wireless network is connected, is brought convenience to user.
The content of the invention
In consideration of it, it is an object of the invention to provide a kind of methods and mobile terminal for automatically accessing wireless network, realize
After the SSID of wireless network is modified, mobile terminal can automatically access the wireless network again, brought convenience to user.
According to foregoing invention purpose, the present invention provides a kind of method for automatically accessing wireless network, the described method includes:
Broadcast message under S1, the current SSID networks of acquisition, the MAC of radio reception device is parsed from the broadcast message
Location;
S2, the MAC Address with a storage table is matched, if successful match, it is corresponding all obtains the MAC Address
Wireless network password;
S3, matched one by one with the current SSID with all wireless network passwords, and with the radio reception device
Carry out trial connection.
Preferably, the broadcast message includes Beacon frames and probe request.
Preferably, further included before step S1:
Pair of the MAC Address of radio reception device, the SSID of wireless network and wireless network password is established in the storage table
It should be related to, wherein, the MAC Address of the radio reception device corresponds to multiple SSID and multiple wireless network passwords.
Preferably, the step S2 is further included:
S201, the inquiry current SSID are with the presence or absence of in the storage table, if in the presence of it is corresponding to obtain the MAC Address
All wireless network passwords are matched one by one with all wireless network passwords with the current SSID, and with the nothing
Gauze network carries out trial connection;
If S202, being not present, the MAC Address that the radio reception device is inquired about in the storage table whether there is.
Preferably, step S201 is further included:
If mobile terminal is not successfully accessed the wireless network, a prompting message is exported, reminds wireless network described in user
Password it is modified.
Preferably, the step S2 is further included:
If matching is unsuccessful, a prompting message is exported, new SSID and password are inputted to remind.
Preferably, the step S3 is further included:
After mobile terminal is successfully accessed the wireless network, by the current SSID and corresponding wireless network password, storage
Into the storage table;
A prompting message is exported, to remind the SSID of wireless network described in user modified.
Preferably, the step S3 is further included:
After the mobile terminal is not successfully accessed the wireless network, a prompting message is exported, to remind described in user
The SSID and password of wireless network are modified.
According to foregoing invention purpose, the present invention provides a kind of mobile terminal, including:
Parsing module, for obtaining the broadcast message under current SSID networks, parsing wireless access is set from the broadcast message
Standby MAC Address;
Matching module for the MAC Address to be matched with a storage table, if successful match, obtains the MAC Address
Corresponding all wireless network passwords;
Network connecting module, for all wireless network passwords to be matched one by one with the current SSID, and with institute
It states radio reception device and carries out trial connection.
Preferably, the mobile terminal further includes memory module, for establishing radio reception device in the storage table
MAC Address, the SSID of wireless network and the correspondence of wireless network password, wherein, the MAC of the radio reception device
Location corresponds to multiple SSID and multiple wireless network passwords.
Compared with prior art, the method and mobile terminal provided by the invention for automatically accessing wireless network has following
Advantageous effect:It solves after mobile terminal connects wireless network automatically in the prior art, if the SSID changes of the wireless network
After the problem of can not automatically accessing the wireless network, the function of automatically accessing the wireless network is realized, to bringing convenience
With better experience effect.
Description of the drawings
Below by a manner of clearly understandable, preferred embodiment is described with reference to the drawings, wireless network is automatically accessed to one kind
The method of network and above-mentioned characteristic, technical characteristic, advantage and its realization method of mobile terminal are further described.
Fig. 1 is a kind of flow chart for the method for automatically accessing wireless network of the present invention;
Fig. 2 is the schematic diagram of the storage table of one embodiment of the invention;
Fig. 3 is a kind of composition structure diagram of mobile terminal of the present invention.
Specific embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, control is illustrated below
The specific embodiment of the present invention.It should be evident that the accompanying drawings in the following description is only some embodiments of the present invention, for
For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings
Attached drawing, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically shown in each figure, they are not represented
Its practical structures as product.In addition, so that simplified form readily appreciates, there is identical structure or function in some figures
Component only symbolically depicts one of those or has only marked one of those.Herein, "one" is not only represented
" only this " can also represent the situation of " more than one ".
As shown in Figure 1, according to one embodiment of present invention, a kind of method for automatically accessing wireless network, the method
Including:
Broadcast message under S1, the current SSID networks of acquisition, the MAC of radio reception device is parsed from the broadcast message
Location;
S2, the MAC Address with a storage table is matched, if successful match, it is corresponding all obtains the MAC Address
Wireless network password;
S3, matched one by one with the current SSID with all wireless network passwords, and with the radio reception device
Carry out trial connection.
One embodiment of the present invention, the broadcast message include Beacon frames(Beacon frame)With Probe Request frames
(Probe request).In Beacon beacon frames and Probe Request probe requests comprising wireless network SSID information,
The information such as source MAC address information, Beacon interval, country code and channel.By taking Beacon beacon frames as an example, following institute
Show, be the frame structure of Beacon beacon frames.
Beacon beacon frames include at least medium access control(MAC, Media Access control)Head file and frame
Body field.Wherein, MAC header field includes some type informations, it may include the fields such as frame control.Frame body field is used for bearer management
Information, the management information of carrying include SSID, source MAC address information etc., and source MAC is the radio reception device
MAC Address.In general, a radio reception device can support more than one SSID, due to containing ssid field in Beacon frames,
Different SSID is carried in different Beacon frames, i.e., different SSID corresponds to different Beacon frames.Beacon beacon frames
It is a kind of wireless management frame of broadcast.Wireless access point device periodically sends Beacon frames to wireless client, wireless client
Monitoring obtains Beacon frames.Beacon frame lengths are 16, are separated by how many a chronomeres between Beacon frames for setting.When
Between unit be commonly abbreviated as TU, represent 1024 microseconds, be equivalent to 1 millisecond.Beacon frames would generally be set to 100 time lists
Position is equivalent to every 100 milliseconds, that is, the Beacon frame of broadcast in 0.1 second.Present embodiment please using Beacon frames and detection
The SSID of the wireless access point device included in frame and source MAC address information this feature are asked, to SSID and source MAC address information
Parsing.
One embodiment of the present invention establishes a storage table in the mobile terminal, stores in the storage table and wirelessly connect
Enter the correspondence of the MAC Address of equipment, the SSID of wireless network and wireless network password.The MAC of wireless access point device
Location is unique and constant.The SSID and wireless network password of wireless network are changeable, and can be multiple, each
SSID corresponds to multiple passwords.Therefore, in the storage table, the MAC Address of the radio reception device corresponds to multiple SSID, institute
It states each SSID and corresponds to multiple wireless network passwords.As shown in Fig. 2, a kind of structure diagram of storage table.According to the technical side
Case, it is when the mobile terminal can connect the wireless network automatically, i.e., mobile when the SSID of described network is modified not yet
The broadcast message that terminal is sent by radio reception device, obtain radio reception device in the broadcast message MAC Address,
The SSID of wireless network and wireless network password.For example, the Beacon frames sent by obtaining wireless access point device, right
Beacon frames carry out parsing, and can to obtain the MAC Address of the radio reception device, the SSID of wireless network and wireless network close
Code.
After the SSID of wireless network is modified, mobile terminal cannot automatically access the wireless network.Acquisition for mobile terminal
Broadcast message under current SSID networks parses the MAC Address of radio reception device from the broadcast message.The one of the present invention
Specific embodiment, the broadcast message are illustrated by taking Beacon beacon frames as an example.Under current SSID networks, the wireless access
Terminal device in equipment periodic broadcasting Beacon frames to the wireless network, the acquisition for mobile terminal Beacon frames, and it is right
Beacon frames are parsed, and obtain MAC Address, the current SSID of wireless network of the radio reception device in Beacon frames.Institute
State the MAC Address that source MAC address information is the radio reception device.
The specific embodiment of the present invention according to the current SSID, is inquired about the current SSID and is deposited with the presence or absence of described
It stores up in table, if in the presence of the corresponding all wireless network passwords of the MAC Address being obtained, with all wireless network passwords
It is matched one by one with the current SSID, and carries out trial with the radio reception device and be connected.If mobile terminal not into
Work(accesses the wireless network, then exports a prompting message, and the password for reminding wireless network described in user is modified.If it does not deposit
The MAC Address that the radio reception device is then inquired about in the storage table whether there is.
The MAC Address with the storage table is matched, if successful match, it is corresponding to obtain the MAC Address
All wireless network passwords.Matched one by one with the current SSID with all wireless network passwords, and with it is described
Wireless network carries out trial connection.
One embodiment of the invention, if the MAC Address matches unsuccessful, one prompting letter of output with the storage table
Breath inputs new SSID and password to remind.It is unsuccessful when matching, then show the wireless network under current SSID, the shifting
It was not connected automatically before dynamic terminal, it is necessary to input new SSID and password.
One embodiment of the invention, after mobile terminal is successfully accessed the wireless network, by the current SSID and right
The wireless network password answered, stores into the storage table.And a prompting message is exported, to remind wireless network described in user
SSID it is modified.By the technical solution, when the SSID of wireless network have changed and wireless network password do not change after,
It is matched one by one by the wireless network password of new SSID and history, until being successfully accessed the wireless network.
One embodiment of the invention, after the mobile terminal is not successfully accessed the wireless network, output one is reminded
Information, to remind the SSID of wireless network described in user and password all modified.
According to the technical solution, after the SSID changes of the wireless network, by the MAC for obtaining the radio reception device
Address and the history encrypted message of the wireless network, automatically access the wireless network, solve the problems of the prior art,
To with bringing convenience and better experience effect.
As shown in figure 3, one embodiment of the present of invention, a kind of mobile terminal, including:
For obtaining the broadcast message under current SSID networks, wireless access is parsed from the broadcast message for parsing module 30
The MAC Address of equipment;
Matching module 31, for the MAC Address to be matched with a storage table, if successful match, with obtaining the MAC
The corresponding all wireless network passwords in location;
Network connecting module 32, for all wireless network passwords to be matched one by one with the current SSID, and with
The radio reception device carries out trial connection.
The mobile terminal further includes memory module, for establishing the MAC of radio reception device in the storage table
The correspondence of location, the SSID of wireless network and wireless network password, wherein, the MAC Address of the radio reception device corresponds to
Multiple SSID, each SSID correspond to multiple wireless network passwords.The MAC Address of wireless access point device is unique and constant
's.The SSID and password of wireless network are changeable, and can be multiple, and each SSID corresponds to multiple passwords.Therefore, exist
In the storage table, the MAC Address of the radio reception device corresponds to multiple SSID, and each SSID corresponds to multiple passwords.
One embodiment of the present invention, the broadcast message include Beacon frames(Beacon frame)With Probe Request frames
(Probe request).In Beacon beacon frames and Probe Request probe requests comprising wireless network SSID information,
The information such as source MAC address information, Beacon interval, country code and channel.Source MAC sets for the wireless access
Standby MAC Address.Beacon beacon frames are a kind of wireless management frames of broadcast.Wireless access point device periodically sends Beacon frames
To wireless client, wireless client monitoring obtains Beacon frames.
In parsing module 30, the broadcast message under current SSID networks is obtained, is parsed from the broadcast message wireless
The MAC Address of access device.The specific embodiment of the present invention, the broadcast message are said by taking Beacon beacon frames as an example
It is bright.Under the wireless network of current SSID, the radio reception device is with cycle periodic broadcasting Beacon beacon frames.Mobile terminal
After the Beacon beacon frames monitored, which is received by parsing module, and Beacon beacon frames are solved
Analysis obtains the source MAC address information in Beacon beacon frames.The source MAC address information is the MAC of the radio reception device
Address.
In matching module 31, according to the MAC Address, matched in the storage table, if successful match, obtained
The corresponding all wireless network passwords of the MAC Address.It matches unsuccessful, then shows the wireless network under current SSID, institute
It was not connected automatically before stating mobile terminal, it is necessary to input new SSID and password.
In network connecting module 32, all wireless network passwords are matched one by one with the current SSID, and
Trial is carried out with the radio reception device to be connected.If being successfully accessed the wireless network, by the current SSID and correspondence
Wireless network password, store into the storage table, and export a prompting message, remind user described in wireless network SSID
It is modified.If the movement is not successfully accessed the wireless network, the SSID and password of surface wireless network are
Change, then export a prompting message, to remind the SSID of wireless network described in user and password all modified.
In conclusion the present invention utilizes the MAC Address for obtaining the radio reception device and the history password of wireless network
Information connects the wireless network automatically, is brought convenience and better experience effect to user.
It should be noted that above-described embodiment can be freely combined as needed.The above is only the preferred of the present invention
Embodiment, it is noted that for those skilled in the art, do not departing from the premise of the principle of the invention
Under, several improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.
Claims (10)
- A kind of 1. method for automatically accessing wireless network, which is characterized in that the described method includes:Broadcast message under S1, the current SSID networks of acquisition, the MAC of radio reception device is parsed from the broadcast message Location;S2, the MAC Address with a storage table is matched, if successful match, it is corresponding all obtains the MAC Address Wireless network password;S3, matched one by one with the current SSID with all wireless network passwords, and with the radio reception device Carry out trial connection.
- 2. the method as described in claim 1 for automatically accessing wireless network, which is characterized in that the broadcast message includes Beacon frames and probe request.
- 3. the method as claimed in claim 2 for automatically accessing wireless network, which is characterized in that further included before step S1:Pair of the MAC Address of radio reception device, the SSID of wireless network and wireless network password is established in the storage table It should be related to, wherein, the MAC Address of the radio reception device corresponds to multiple SSID and multiple wireless network passwords.
- 4. the method as claimed in claim 3 for automatically accessing wireless network, which is characterized in that the step S2 is further included:S201, the inquiry current SSID are with the presence or absence of in the storage table, if in the presence of it is corresponding to obtain the MAC Address All wireless network passwords are matched one by one with all wireless network passwords with the current SSID, and with the nothing Gauze network carries out trial connection;If S202, being not present, the MAC Address that the radio reception device is inquired about in the storage table whether there is.
- 5. the method as claimed in claim 4 for automatically accessing wireless network, which is characterized in that step S201 is further included:If mobile terminal is not successfully accessed the wireless network, a prompting message is exported, reminds wireless network described in user Password it is modified.
- 6. the method as described in claim 1 for automatically accessing wireless network, which is characterized in that the step S2 is further included:If matching is unsuccessful, a prompting message is exported, new SSID and password are inputted to remind.
- 7. the method as described in claim 1 for automatically accessing wireless network, which is characterized in that the step S3 is further included:After mobile terminal is successfully accessed the wireless network, by the current SSID and corresponding wireless network password, storage Into the storage table;A prompting message is exported, to remind the SSID of wireless network described in user modified.
- 8. the method as described in claim 1 for automatically accessing wireless network, which is characterized in that the step S3 is further included:After the mobile terminal is not successfully accessed the wireless network, a prompting message is exported, to remind described in user The SSID and password of wireless network are modified.
- 9. a kind of mobile terminal, which is characterized in that including:Parsing module, for obtaining the broadcast message under current SSID networks, parsing wireless access is set from the broadcast message Standby MAC Address;Matching module for the MAC Address to be matched with a storage table, if successful match, obtains the MAC Address Corresponding all wireless network passwords;Network connecting module, for all wireless network passwords to be matched one by one with the current SSID, and with institute It states radio reception device and carries out trial connection.
- 10. mobile terminal as claimed in claim 9, which is characterized in that the mobile terminal further includes memory module, for The correspondence of the MAC Address of radio reception device, the SSID of wireless network and wireless network password is established in the storage table, Wherein, the MAC Address of the radio reception device corresponds to multiple SSID and multiple wireless network passwords.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810101315.3A CN108112053A (en) | 2018-02-01 | 2018-02-01 | A kind of method and mobile terminal for automatically accessing wireless network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810101315.3A CN108112053A (en) | 2018-02-01 | 2018-02-01 | A kind of method and mobile terminal for automatically accessing wireless network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108112053A true CN108112053A (en) | 2018-06-01 |
Family
ID=62220938
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810101315.3A Pending CN108112053A (en) | 2018-02-01 | 2018-02-01 | A kind of method and mobile terminal for automatically accessing wireless network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108112053A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109068342A (en) * | 2018-08-20 | 2018-12-21 | 河南省通信建设监理有限公司 | Automatic monitoring system of mobile wireless network, monitoring method, the information processing terminal |
CN109587325A (en) * | 2018-11-01 | 2019-04-05 | Oppo(重庆)智能科技有限公司 | Using the management-control method of operation, device, storage medium and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103841626A (en) * | 2014-02-21 | 2014-06-04 | 普联技术有限公司 | Internet of Things wireless terminal, configuration method thereof and mobile terminal |
CN105357671A (en) * | 2015-11-12 | 2016-02-24 | 乐鑫信息科技(上海)有限公司 | System and method for connecting wireless access points with same SSID and different passwords |
CN105792315A (en) * | 2016-02-25 | 2016-07-20 | 珠海市魅族科技有限公司 | Wireless local area network access method and access apparatus, and station |
-
2018
- 2018-02-01 CN CN201810101315.3A patent/CN108112053A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103841626A (en) * | 2014-02-21 | 2014-06-04 | 普联技术有限公司 | Internet of Things wireless terminal, configuration method thereof and mobile terminal |
CN105357671A (en) * | 2015-11-12 | 2016-02-24 | 乐鑫信息科技(上海)有限公司 | System and method for connecting wireless access points with same SSID and different passwords |
CN105792315A (en) * | 2016-02-25 | 2016-07-20 | 珠海市魅族科技有限公司 | Wireless local area network access method and access apparatus, and station |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109068342A (en) * | 2018-08-20 | 2018-12-21 | 河南省通信建设监理有限公司 | Automatic monitoring system of mobile wireless network, monitoring method, the information processing terminal |
CN109587325A (en) * | 2018-11-01 | 2019-04-05 | Oppo(重庆)智能科技有限公司 | Using the management-control method of operation, device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8811979B2 (en) | Method for providing private information to mobile user and associated wireless communication network and mobile station | |
EP1860836B1 (en) | A method, system and device for obtaining multicast program address | |
CN107148787B (en) | Discovery method and electronic equipment thereof | |
CA2546570C (en) | Methods and apparatus for providing network broadcast information to wlan enabled wireless communication devices | |
CN101605361B (en) | Method for allocating paging resource and resource allocating apparatus thereof | |
CN107509201A (en) | More Subscriber Identity Module devices, its chip and the method with its reception paging signal | |
US20090274094A1 (en) | Advertising support for a plurality of service networks by a wireless access point | |
CN105451214B (en) | Card application access method and apparatus | |
EP3135053B1 (en) | Data transmission | |
CN111263338B (en) | Network distribution method of Bluetooth Mesh network, related network distribution equipment and system | |
CN104283743A (en) | Home network equipment and proxy service discovering method | |
CN113056929B (en) | Method and device for parameter configuration | |
CN105916100A (en) | Heartbeat packet agency method, device and communication system | |
CN107743154B (en) | Tracking and attendance system based on Wi-Fi intelligent terminal and method thereof | |
CN108738003A (en) | Bluetooth matching method and system based on shared bluetooth communication address | |
CN104303575B (en) | System and method for reducing signaling overheads | |
EP2925072A1 (en) | Node scheduling method, device and system | |
CN108112053A (en) | A kind of method and mobile terminal for automatically accessing wireless network | |
US11412453B2 (en) | Apparatus and method for controlling time period related to operating mode in wireless communication system | |
CN103369562A (en) | System and method for cell measurement based on multi-standby mobile terminal | |
CN108334917A (en) | Based on LORA technology wireless low-power consumption electronic labelling systems | |
US20180007676A1 (en) | Method, device and system for uniformly controlling multiple smart devices | |
CN102946634B (en) | Communicator and data communications method | |
US11184753B2 (en) | Apparatus, method and program for transmitting and receiving data to and from IoT device | |
CN109756956B (en) | Communication method and communication device, access point equipment and station equipment |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180601 |