The content of the invention
It is existing to solve the invention provides hotspot connection control method, device, equipment and computer-readable storage medium
Because focus password leaks out the problems such as existing network speed is slow, network is dangerous in technology.
First aspect according to embodiments of the present invention connects control method there is provided a kind of hotspot, and methods described includes:
The corresponding relation of device identification and passwords of visitors is obtained, the device identification is the mark of electronic equipment, the visit
Workable focus password when objective password is the electronic equipment connection hotspot;
The corresponding relation of the device identification and passwords of visitors is updated and is stored in the configuration file of focus;
Hotspot service is started according to the configuration file, the hotspot service is based in the configuration file
Corresponding relation, it is allowed to wireless heat is connected with the electronic equipment of the device identification in the corresponding relation and passwords of visitors Corresponding matching
Point.
In an optional implementation, the corresponding relation for obtaining device identification and passwords of visitors, including:
Show for setting the focus of device identification and passwords of visitors to set interface;
The corresponding relation of interface acquisition device identification and passwords of visitors is set based on the focus.
In an optional implementation, the passwords of visitors has ageing, and methods described also includes:
When being failed according to the timeliness sex determination passwords of visitors of passwords of visitors, failed passwords of visitors in corresponding relation is deleted
And device identification corresponding with failed passwords of visitors.
In an optional implementation, the configuration file includes focus configuration file and corresponding relation management configuration
File, the corresponding relation management configuration file is used to store the corresponding relation, and the focus configuration file is hotspot
When service starts the relevant corresponding relation management configuration is configured in the configuration file of required loading, the focus configuration file
The configuration item of corresponding relation in file.
In an optional implementation, public code is also included in the configuration file, the public code is to appoint
Workable focus password when what electronic equipment connects hotspot, the public code is different from the passwords of visitors.
In an optional implementation, methods described also includes:
The connection request for carrying target device mark and target password is received, the target device mark is to initiate described
The mark of the target device of connection request;
If the target device mark and target password are corresponding with the device identification in the corresponding relation and passwords of visitors
Matching, then allow the target device access hotspot;
If the target password is matched with the public code, allow the target device access hotspot.
Second aspect according to embodiments of the present invention connects control device there is provided a kind of hotspot, and described device includes:
Relation acquisition module, the corresponding relation for obtaining device identification and passwords of visitors, the device identification is electronics
The mark of equipment, workable focus password when the passwords of visitors is the electronic equipment connection hotspot;
Information updating module, matching somebody with somebody for focus is stored in for the corresponding relation of the device identification and passwords of visitors to be updated
Put in file;
Starting module is serviced, for starting hotspot service according to the configuration file, the hotspot services base
Corresponding relation in the configuration file, it is allowed to the device identification in the corresponding relation and passwords of visitors Corresponding matching
Electronic equipment connects hotspot.
In an optional implementation, public code is also included in the configuration file, the public code is to appoint
Workable focus password when what electronic equipment connects hotspot, the public code is different from the passwords of visitors.
In an optional implementation, described device also includes:
Request receiving module, the connection request of target device mark and target password, the target are carried for receiving
Device identification is the mark for the target device for initiating the connection request;
Link control module, if being identified for the target device and target password and the equipment mark in the corresponding relation
Know and passwords of visitors Corresponding matching, then allow the target device access hotspot;If the target password with it is described public
Password match, then allow the target device access hotspot.
The third aspect according to embodiments of the present invention there is provided a kind of electronic equipment, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
The corresponding relation of device identification and passwords of visitors is obtained, the device identification is the mark of electronic equipment, the visit
Workable focus password when objective password is the electronic equipment connection hotspot;
The corresponding relation of the device identification and passwords of visitors is updated and is stored in the configuration file of focus;
Hotspot service is started according to the configuration file, the hotspot service is based in the configuration file
Corresponding relation, it is allowed to wireless heat is connected with the electronic equipment of the device identification in the corresponding relation and passwords of visitors Corresponding matching
Point.
Fourth aspect according to embodiments of the present invention is stored in the storage medium there is provided a kind of computer-readable storage medium
There is programmed instruction, described program instruction includes:
The corresponding relation of device identification and passwords of visitors is obtained, the device identification is the mark of electronic equipment, the visit
Workable focus password when objective password is the electronic equipment connection hotspot;
The corresponding relation of the device identification and passwords of visitors is updated and is stored in the configuration file of focus;
Hotspot service is started according to the configuration file, the hotspot service is based in the configuration file
Corresponding relation, it is allowed to wireless heat is connected with the electronic equipment of the device identification in the corresponding relation and passwords of visitors Corresponding matching
Point.
Using scheme of the embodiment of the present invention, pair of electronic equipment and focus password is set up by device identification and passwords of visitors
It should be related to, and corresponding relation is updated in the configuration file of focus, and hotspot service is started based on configuration file;Realize
When receiving connection request, it is allowed to which device identification correspondence electronic equipment can use the device identification corresponding in corresponding relation
Passwords of visitors connects hotspot, though passwords of visitors is leaked to other people by user, but the equipment of other people electronic equipment
Mark is not in corresponding relation, then other people can not connect hotspot using the passwords of visitors, so as to avoid because focus is close
Code leakage causes other people to connect focus.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not
Can the limitation present invention.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the present invention.
It is the purpose only merely for description specific embodiment in terminology used in the present invention, and is not intended to be limiting the present invention.
" one kind ", " described " and "the" of singulative used in the present invention and appended claims are also intended to including majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wrapped
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the present invention
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from
In the case of the scope of the invention, the first information can also be referred to as the second information, similarly, and the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
WiFi technology is as a kind of communication, and it uses more and more extensive.Many electronic equipments can pass through nothing
Line communication module connects hotspot, to realize networking.AP is only existed in equipment for providing hotspot, some equipment
(Access Point access points) pattern, some equipment both include AP (Access Point access points) pattern, and STA is included again
(Station work stations) pattern.Wherein, under ap mode, equipment can provide Wi-Fi hotspot, with shared flow or cable network,
Under STA mode, for connecting wireless router online.For example, router is often provided only with AP modules, smart mobile phone, intelligent machine
Top box etc. often has double mode.Such as, existing Android smart machines use two WiFi modules, one of WiFi moulds
Block can be operated in STA mode, and another WiFi module can be operated in ap mode so that Android device being capable of same luck
Row is in STA mode and ap mode.In STA mode, Android device is as wireless terminal, by being operated in STA mode
WiFi module is connected to the trunkings such as wireless router, so as to realize the wireless networking capabilities of Android device;In AP
During pattern, Android device provides wirelessly access, and other have the wireless terminal of WiFi function by being operated in ap mode
WiFi module access external network, realize that other have the wireless networking capabilities of the wireless terminal of WiFi function.
In view of network security there is provided the equipment of hotspot can set connection hotspot focus password.So
And, anyone needs to use same focus password during connection hotspot, it may appear that the unsafe problem of focus password.Example
Such as, if using the user of the focus password to leak the focus password, other people can connect the focus using focus password,
Network speed is caused to slow down, the problems such as network is dangerous.Particularly in the application scenarios of enterprise, visitor often inquires nothing when visiting
, if focus password is informed into any visitor, easily there is the phenomenon of focus password leakage in the focus password of line focus.
In order to avoid owner causes what focus password was easily revealed using identical focus password connection hotspot
Problem, the present invention provides a kind of hotspot connection control method, device, equipment and computer-readable storage medium.The present invention is implemented
Example sets up the corresponding relation of electronic equipment and focus password by device identification and passwords of visitors, and corresponding relation is updated in heat
In the configuration file of point, and hotspot service is started based on configuration file.Realize when receiving connection request, it is allowed to correspondence
Device identification correspondence electronic equipment can use the corresponding passwords of visitors connection hotspot of the device identification in relation, without permitting
Perhaps electronic equipment of the device identification not in corresponding relation uses the passwords of visitors connection hotspot in corresponding relation, does not also permit
Perhaps device identification is in corresponding relation but electronic equipment uses the passwords of visitors connection hotspot in other corresponding relations.Can
See, though passwords of visitors is leaked to other people by user, but other people electronic equipment device identification not in corresponding relation,
Then other people can not connect hotspot using the passwords of visitors, so as to avoid because the leakage of focus password causes other people to connect
Focus.
The embodiment of the present invention is described in detail below in conjunction with accompanying drawing.
As shown in Figure 1A, Figure 1A is a kind of hotspot connection controlling party of the present invention according to an exemplary embodiment
The flow chart of method, this method may comprise steps of 101 to step 103:
In a step 101, the corresponding relation of device identification and passwords of visitors is obtained, the device identification is electronic equipment
Mark, workable focus password when the passwords of visitors is the electronic equipment connection hotspot.
In a step 102, the corresponding relation of the device identification and passwords of visitors is updated to the configuration text for being stored in focus
In part.
In step 103, hotspot service is started according to the configuration file, the hotspot service is based on described
Corresponding relation in configuration file, it is allowed to set with the electronics of the device identification in the corresponding relation and passwords of visitors Corresponding matching
Standby connection hotspot.
The embodiment of the present invention can apply to in the electronic equipment for providing hotspot function, for example, can apply
In electronic equipments such as routing device, set top box, flat board, smart mobile phones.Specifically, can apply to Android set top boxes,
Android game cartridges, Android intelligent television, Android intelligent advisement players, Android meetings machine, Android intelligent education machines etc.
Equipment.
First, first device identification is introduced with passwords of visitors for the embodiment of the present invention.
Device identification is the mark of electronic equipment, for example, it may be the title of electronic equipment, numbering or numeral,
Any combination of character string, symbol etc., as long as can unique mark electronic equipment.In an optional implementation, by
When electronic equipment sends connection request to the equipment for providing hotspot, the MAC Address of this electronic equipment is often carried
(Media Access Control Address, media access control address or physical address), therefore, institute of the embodiment of the present invention
It can be MAC Address to state device identification.
It can be seen that, by the way that identification information is defined into MAC Address, and due to MAC Address can be carried originally in connection request,
Later use corresponding relation to whether allow electronic equipment connect hotspot be controlled when, carry other without connection request
Equipment identification information, reduces the information content that connection request is carried.
Workable focus password, i.e. device identification corresponding electronics when passwords of visitors is electronic equipment connection hotspot
Equipment can connect hotspot by passwords of visitors.It is understood that passwords of visitors is to distinguish below public close
Code and name a kind of focus password, be not limited to the focus password that visitor could use.Password in corresponding relation all may be used
To be referred to as passwords of visitors.
Passwords of visitors and the corresponding relation of device identification can be one-to-one, can also be one-to-many.For example, for difference
Electronic equipment, different passwords of visitors can be set, realize that distinct electronic apparatuses use the wireless heat of different passwords of visitors connection
Point.And for example, for different electronic equipments, identical passwords of visitors can be set, realize that distinct electronic apparatuses are visited using identical
Objective password connects hotspot, reduces passwords of visitors quantity.
It can be seen that, for general focus password in the prior art, passwords of visitors has authority, only allows and visitor
The electronic equipment that password has the device identification of corresponding relation connects hotspot using passwords of visitors, does not allow and passwords of visitors
Passwords of visitors connection hotspot is used in the absence of the electronic equipment of the device identification of corresponding relation.
In one example, passwords of visitors can be permanent, that is, the user for holding the electronic equipment of device identification can
To be connected hotspot at any time by there is the passwords of visitors of corresponding relation with device identification.
In another example, because hotspot will not be used for a long time in certain user, such as visitor is often once in a while
Carry out target place (such as enterprise or family) once, target place is to provide the electronic equipment service provided of hotspot function
Place;Then in order to avoid corresponding relation quantity takes the more memory space of configuration file too much, can set passwords of visitors when
Effect property, you can to set the time-to-live of passwords of visitors.Passwords of visitors is properly termed as temporary password again.According to passwords of visitors when
Imitate when sex determination passwords of visitors fails (such as at the end of the time-to-live of passwords of visitors), it is failed in deletion corresponding relation to visit
Objective password and device identification corresponding with failed passwords of visitors.
It can be seen that, after passwords of visitors failure, the corresponding relation of the passwords of visitors can be deleted, is accounted for so as to reduce corresponding relation
Memory space.
Next, the acquisition modes to corresponding relation are introduced.
In one example, a password can arbitrarily be inputted to connect hotspot by holding the user of electronic equipment, be touched
Send out electronic equipment and send connection request to the equipment for providing hotspot.There is provided the equipment of focus can be obtained based on connection request
The device identification of electronic equipment, determines the passwords of visitors of electronic equipment by way of generating password at random, so as to obtain equipment
The corresponding relation of mark and passwords of visitors.
However, in practical application, user tends not to arbitrarily input password to connect nothing in the case where not knowing password
Line focus, therefore electronic equipment transmission connection request will not be triggered.In consideration of it, the embodiment of the present invention is provided previously by setting for setting
The focus of standby mark and passwords of visitors sets interface.Show for setting the focus of device identification and passwords of visitors to set interface,
The corresponding relation of interface acquisition device identification and passwords of visitors is set based on the focus.
Wherein, device identification control and passwords of visitors control can be included by setting in interface, user (such as keeper) can be with
By setting the device identification control in interface to determine device identification, by setting the passwords of visitors control in interface to determine visitor
Password.For device identification, electronic equipment can be inquired about by user and informs that user's (such as keeper/webmaster), user will set
Standby mark input sets the mode at interface to obtain.Can be that user directly inputs on passwords of visitors;It can also be random life
Into, user the corresponding passwords of visitors of device identification is determined by selecting control or password confirming control, and because control is present pair
It should be related to, so as to obtain the corresponding relation of device identification and passwords of visitors.
In one example, corresponding relation has been set in order to prompt, can have read and match somebody with somebody when showing that focus sets interface
The corresponding relation stored in file, parsing configuration file is put, the device identification in corresponding relation and passwords of visitors are updated aobvious
Show that focus is set in interface, so that user checks or changed the corresponding relation set.
As shown in Figure 1B, Figure 1B is that a kind of focus of the present invention according to an exemplary embodiment sets interface to illustrate
Figure.In the schematic diagram, interface is set to include SSID (the Service Set Identifier, services set of hotspot
Mark) control, security control, device identification control, passwords of visitors control, increase control, deletion control etc..In the embodiment
In, the title of hotspot can be set by SSID controls, the security of hotspot is set by security control, passed through
Increase control increases corresponding relation, deletes corresponding relation etc. by deleting control.Device identification is MAC Address.In setting circle
Three kinds of corresponding relations are provided with face:
00:11:22:33:44:55 23456789
11:22:33:44:55:66 34567890
22:33:44:55:66:77 45678901
Password in the corresponding password control of each MAC Address can be that user is manually entered or generated at random,
With specific reference to demand setting.Setting after interface is provided with, can by clicking on " it is determined that " control realizes that triggering generation confirms
Instruction, obtains corresponding relation.
As seen from the above-described embodiment, the corresponding relation of device identification and passwords of visitors is determined by focus setting interface, can
To improve the controllability of corresponding relation, and easily realize.
, can be with it is understood that except determining the corresponding relation of device identification and passwords of visitors using aforesaid way
Determined using other modes, it is numerous to list herein.
It is determined that after corresponding relation, passwords of visitors can be notified to hold the user of electronic equipment corresponding to device identification.
Advice method can be informed orally, for example, keeper informs user by oral mode.Advice method can also be automatic
Notify, for example, according to the register information (such as telephone number, mailbox) of user, the passwords of visitors, example are pushed to corresponding application
Such as, the short message of passwords of visitors is included based on telephone number transmission content, and for example, passwords of visitors is included based on mailbox transmission content
Mail etc..No matter which kind of mode used, passwords of visitors can be notified to corresponding user, so that user is connected using passwords of visitors
Connect hotspot.
It is determined that after corresponding relation, the corresponding relation of the device identification and passwords of visitors can be updated and be stored in focus
Configuration file in.
In one example, the signified configuration file of the embodiment of the present invention can be focus configuration file, focus configuration file
It is the configuration file of required loading when hotspot service starts.Not only include corresponding relation in focus configuration file, can be with
Including configuration parameters such as Wi-Fi hotspot state, SSID broadcast states, SSID name, secure cryptography modes.Wi-Fi hotspot state
For indicating whether the AP functions of correspondence WiFi module open.SSID name refers to the Wi-Fi hotspot title of correspondence WiFi module, uses
Search for and connect in network access device.SSID broadcast states are used to indicate whether corresponding SSID name is in visible state.Peace
Full property cipher mode includes open state and encrypted state, for indicating whether need input close during connection correspondence WiFi module
Code.
For example, hotspot service can be hostapd hotspot services, hostapd is that a User space is used for AP and recognized
Demonstrate,prove the finger daemon of server.Focus configuration file can be hostapd.conf configuration files, start hotspot clothes every time
During business, hostapd.conf configuration files need to be loaded.
However, in practical application, it is necessary to update correspondence pass when addition or deletion allow to connect the electronic equipment of focus every time
System.If corresponding relation is stored in focus configuration file, need to update focus configuration text when updating corresponding relation every time
Part, and the corresponding relation that focus configuration file is updated than larger, every time in focus configuration file needs to load excessive configuration text
Part, therefore, in an optional implementation, sets up a kind of corresponding relation management configuration text for being exclusively used in storing corresponding relation
Corresponding relation, can be stored in corresponding relation management configuration file by part, and configure relevant described in focus configuration file
The configuration item of corresponding relation in corresponding relation management configuration file, so that hotspot service is closed using configuration item association correspondence
It is corresponding relation in management configuration file.
For example, corresponding relation management configuration file is hostapd.wpa_psk configuration files, in hostapd.conf configurations
Wpa_psk_file=hostapd.wpa_psk configuration items are provided with file, realize that hotspot service is gone in loading
After hostapd.conf configuration files, the correspondence in hostapd.wpa_psk configuration files can be got by the configuration item
Relation.
As seen from the above-described embodiment, due to corresponding relation is stored in independent corresponding relation management configuration file, and
Corresponding relation management configuration file is different configuration files from focus configuration file, then can open with focus configuration file not
Same thread loading corresponding relation management configuration file, improves configuration loading velocity, convenient to manage.
During due to changing configuration file every time, generally require to restart hotspot service, therefore, updating configuration text
After part, hotspot service can be started according to the configuration file.When starting hotspot service, the service, which can be loaded, matches somebody with somebody
File is put, the hotspot service of corresponding function is then supported according to the configuration item deactivation inside configuration file.It can also open simultaneously
Dynamic DHCP (Dynamic Host Configuration Protocol, DHCP) services etc., so as to network
Service distribution IP address etc..
As seen from the above-described embodiment, the corresponding pass of electronic equipment and focus password is set up by device identification and passwords of visitors
System, and corresponding relation is updated in the configuration file of focus, and hotspot service is started based on configuration file.Realization is connecing
When receiving connection request, it is allowed to which device identification correspondence electronic equipment can use the corresponding visitor of the device identification in corresponding relation
Password connects hotspot, though passwords of visitors is leaked to other people by user, but the device identification of other people electronic equipment
Not in corresponding relation, then other people can not connect hotspot using the passwords of visitors, so as to avoid because focus password is let out
Dew causes other people to connect focus.
In an optional implementation, the field fewer for the quantity of electronic equipment of hotspot need to be connected
Scape, for example, hotspot is connected in family, can be only with corresponding relation to whether allowing electronic equipment connection hotspot to carry out
Judge.
In another optional implementation, the field more for the quantity of electronic equipment of hotspot need to be connected
Jing Zhong, corresponding passwords of visitors is set for each electronic equipment that need to connect hotspot, increases the workload set, mirror
In this, the embodiment of the present invention also provides a kind of public code, when the public code is any electronic equipment connection hotspot
Workable focus password and public code is different from any passwords of visitors.The hotspot service allows any electronics to set
It is standby to connect hotspot using public code.It can be seen that, such password is the password without authority.It is hereby understood that public code
Importance be better than passwords of visitors because public code reveal, any electronic equipment can use the public code connect nothing
Line focus.Therefore, passwords of visitors is the low password of privacy degrees, and public code is the high password of privacy degrees.
A class user for that will not reveal password, can inform its public code, for example, can tell enterprises people
Member's public code, can inform household internal member's public code;User for that may reveal password, only tells its visitor
Password, such as the personnel, the passwords of visitors for only telling the device identification with its electronic equipment corresponding of coming to visit.Therefore, although
Passwords of visitors is leaked to other people by visitor, but other people device identification not in corresponding relation, then other people can not use
The passwords of visitors connects hotspot.
On the acquisition modes of public code, in one example, based on focus interface can be set to obtain public code.
As shown in Figure 1 C, Fig. 1 C are that another focus of the present invention according to an exemplary embodiment sets interface schematic diagram.At this
In schematic diagram, interface is set not only to include SSID (the Service Set Identifier, services set mark of hotspot
Know) control, security control, device identification control, passwords of visitors control, increase control, deletion control etc., public affairs can also be included
Password control, public code is obtained by public code control altogether.
As seen from the above-described embodiment, by the way that password is divided into passwords of visitors and public code by access rights, and will not
Same password tells the user of different rights, can not only avoid public code from revealing, can also avoid to all electronic equipments
Corresponding passwords of visitors is all set to cause the defect for setting efficiency low.
In one example, public code and corresponding relation may be stored in relation management configuration file.With relation
Exemplified by management configuration file is hostapd.wpa_psk configuration files, for example, corresponding hostapd.wpa_psk configuration files
Be stored with following content:
00:00:00:00:00:00 12345678
00:11:22:33:44:55 23456789
11:22:33:44:55:66 34567890
22:33:44:55:66:77 45678901
Wherein, MAC Address 00 is utilized:00:00:00:00:00 represents all connection equipment, then corresponding password is public
Password, other items are specified MAC Address and the corresponding relation of passwords of visitors.
In another example, because the frequency that public code updates is not high, it therefore, it can public code being stored in heat
In point configuration file, hotspot service is when receiving the connection request for carrying target device mark and target password, if institute
State target password to match with the public code, then allow the target device access focus.
Next, hotspot connection control is introduced the angle being had been started up from hotspot service.Such as Fig. 2 institutes
Show, Fig. 2 is the flow chart that another hotspot of the present invention according to an exemplary embodiment connects control method, the party
Method may comprise steps of 201 to step 203:
In step 201, the connection request for carrying target device mark and target password, the target device mark are received
Knowledge is the mark for the target device for initiating the connection request.
In step 202., if target device mark and target password and the device identification in corresponding relation and visitor
Password Corresponding matching, then allow the target device access hotspot.
Wherein, corresponding relation is stored in the device identification in configuration file and the corresponding relation of passwords of visitors.Correspondence is closed
System can be obtained based on the mode of step 101 and step 102, will not be described here.
In step 203, if the target password is matched with the public code, the target device access nothing is allowed
Line focus.
As seen from the above-described embodiment, in the present embodiment, any electronic equipment can use public code to connect hotspot,
The corresponding electronic equipment of device identification only in corresponding relation can connect hotspot using corresponding passwords of visitors, by difference
The password of grade tells different types of user, it is ensured that the security of password, it is to avoid password leakage cause to occur network speed it is slow,
The problems such as network is dangerous.
Various technical characteristics in embodiment of above can be arbitrarily combined, as long as the combination between feature is not present
Conflict or contradiction, but as space is limited, are not described one by one, therefore the various technical characteristics in above-mentioned embodiment is any
It is combined the scope for falling within this disclosure.
It is corresponding with the embodiment that foregoing hotspot connects control method, controlled present invention also offers hotspot connection
Device processed and its electronic equipment and the embodiment of computer-readable storage medium applied.
As shown in figure 3, Fig. 3 is a kind of hotspot connection control device of the present invention according to an exemplary embodiment
Block diagram, described device includes:Relation acquisition module 320, information updating module 340 and service starting module 360.
Wherein, Relation acquisition module 320, the corresponding relation for obtaining device identification and passwords of visitors, the equipment mark
Knowledge is the mark of electronic equipment, workable focus password when the passwords of visitors is the electronic equipment connection hotspot.
Information updating module 340, focus is stored in for the corresponding relation of the device identification and passwords of visitors to be updated
Configuration file in.
Starting module 360 is serviced, for starting hotspot service, the hotspot service according to the configuration file
Based on the corresponding relation in the configuration file, it is allowed to the device identification in the corresponding relation and passwords of visitors Corresponding matching
Electronic equipment connection hotspot.
As seen from the above-described embodiment, the corresponding pass of electronic equipment and focus password is set up by device identification and passwords of visitors
System, and corresponding relation is updated in the configuration file of focus, and hotspot service is started based on configuration file;Realization is connecing
When receiving connection request, it is allowed to which device identification correspondence electronic equipment can use the corresponding visitor of the device identification in corresponding relation
Password connects hotspot, though passwords of visitors is leaked to other people by user, but the device identification of other people electronic equipment
Not in corresponding relation, then other people can not connect hotspot using the passwords of visitors, so as to avoid because focus password is let out
Dew causes other people to connect focus.
In an optional implementation, the Relation acquisition module 320, specifically for:
Show for setting the focus of device identification and passwords of visitors to set interface;
The corresponding relation of interface acquisition device identification and passwords of visitors is set based on the focus.
In an optional implementation, the passwords of visitors has ageing, and described information update module 340 is also used
In:
When being failed according to the timeliness sex determination passwords of visitors of passwords of visitors, failed passwords of visitors in corresponding relation is deleted
And device identification corresponding with failed passwords of visitors.
In an optional implementation, the configuration file includes focus configuration file and corresponding relation management configuration
File, the corresponding relation management configuration file is used to store the corresponding relation, and the focus configuration file is hotspot
When service starts the relevant corresponding relation management configuration is configured in the configuration file of required loading, the focus configuration file
The configuration item of corresponding relation in file.
In an optional implementation, public code is also included in the configuration file, the public code is to appoint
Workable focus password when what electronic equipment connects hotspot, the public code is different from the passwords of visitors.
In an optional implementation, described device also includes (Fig. 3 is not shown):
Request receiving module, the connection request of target device mark and target password, the target are carried for receiving
Device identification is the mark for the target device for initiating the connection request;
Link control module, if being identified for the target device and target password and the equipment mark in the corresponding relation
Know and passwords of visitors Corresponding matching, then allow the target device access hotspot;If the target password with it is described public
Password match, then allow the target device access hotspot.
Accordingly, the present invention also provides a kind of electronic equipment, and the equipment includes processor;Can for storing processor
The memory of execute instruction;Wherein, the processor is configured as:
The corresponding relation of device identification and passwords of visitors is obtained, the device identification is the mark of electronic equipment, the visit
Workable focus password when objective password is the electronic equipment connection hotspot;
The corresponding relation of the device identification and passwords of visitors is updated and is stored in the configuration file of focus;
Hotspot service is started according to the configuration file, the hotspot service is based in the configuration file
Corresponding relation, it is allowed to wireless heat is connected with the electronic equipment of the device identification in the corresponding relation and passwords of visitors Corresponding matching
Point.
Accordingly, have program stored therein instruction, institute in a kind of computer-readable storage medium of the embodiment of the present invention, the storage medium
Stating programmed instruction includes:
The corresponding relation of device identification and passwords of visitors is obtained, the device identification is the mark of electronic equipment, the visit
Workable focus password when objective password is the electronic equipment connection hotspot;
The corresponding relation of the device identification and passwords of visitors is updated and is stored in the configuration file of focus;
Hotspot service is started according to the configuration file, the hotspot service is based in the configuration file
Corresponding relation, it is allowed to wireless heat is connected with the electronic equipment of the device identification in the corresponding relation and passwords of visitors Corresponding matching
Point.
The present invention can be used (includes but is not limited to disk in one or more storage mediums for wherein including program code
Memory, CD-ROM, optical memory etc.) on the form of computer program product implemented.Computer-usable storage medium bag
Permanent and non-permanent, removable and non-removable media is included, can realize that information is stored by any method or technique.Letter
Breath can be computer-readable instruction, data structure, the module of program or other data.The example bag of the storage medium of computer
Include but be not limited to:Phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM),
Other kinds of random access memory (RAM), read-only storage (ROM), Electrically Erasable Read Only Memory
(EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), digital versatile disc
(DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus or any other non-pass
Defeated medium, the information that can be accessed by a computing device available for storage.
The function of modules and the specific details of implementation process of effect are shown in correspondence step in the above method in said apparatus
Implementation process, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component
The module of explanation can be or may not be physically separate, and the part shown as module can be or can also
It is not physical module, you can with positioned at a place, or can also be distributed on multiple mixed-media network modules mixed-medias.Can be according to reality
Selection some or all of module therein is needed to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
The embodiment of hotspot connection control device of the present invention can be using on an electronic device.Device embodiment can be with
Realized, can also be realized by way of hardware or software and hardware combining by software.Exemplified by implemented in software, patrolled as one
Device in volume meaning, is by corresponding computer program in nonvolatile memory by the processor of electronic equipment where it
Instruction reads what operation in internal memory was formed.For hardware view, as shown in figure 4, connecting control for hotspot of the present invention
A kind of hardware structure diagram of the place electronic equipment of device 432, except the processor 410 shown in Fig. 4, internal memory 430, network interface
420 and nonvolatile memory 440 outside, the electronic equipment in embodiment where device 432 is generally according to the electronic equipment
Actual functional capability, can also include other hardware, this is repeated no more.
Those skilled in the art will readily occur to its of the present invention after considering specification and putting into practice invention disclosed herein
Its embodiment.It is contemplated that cover the present invention any modification, purposes or adaptations, these modifications, purposes or
Person's adaptations follow the general principle of the present invention and including undocumented common knowledge in the art of the invention
Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God is with principle, and any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.