CN107182054A - Wireless hotspot connection control method, device and equipment and computer storage medium - Google Patents

Wireless hotspot connection control method, device and equipment and computer storage medium Download PDF

Info

Publication number
CN107182054A
CN107182054A CN201710552386.0A CN201710552386A CN107182054A CN 107182054 A CN107182054 A CN 107182054A CN 201710552386 A CN201710552386 A CN 201710552386A CN 107182054 A CN107182054 A CN 107182054A
Authority
CN
China
Prior art keywords
passwords
visitors
hotspot
corresponding relation
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710552386.0A
Other languages
Chinese (zh)
Inventor
郭崇鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Shenzhen Kaishi Electronic Technology Co ltd
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Kaishi Electronic Technology Co ltd, Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Shenzhen Kaishi Electronic Technology Co ltd
Priority to CN201710552386.0A priority Critical patent/CN107182054A/en
Publication of CN107182054A publication Critical patent/CN107182054A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • H04L63/0846Network architectures or network communication protocols for network security for authentication of entities using passwords using time-dependent-passwords, e.g. periodically changing passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/108Network architectures or network communication protocols for network security for controlling access to devices or network resources when the policy decisions are valid for a limited amount of time

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a wireless hotspot connection control method, a device, equipment and a computer storage medium, wherein the method comprises the following steps: acquiring a corresponding relation between a device identifier and a visitor password, wherein the device identifier is an identifier of electronic equipment, and the visitor password is a hotspot password which can be used when the electronic equipment is connected with a wireless hotspot; updating and storing the corresponding relation between the equipment identification and the visitor password in a configuration file of the hot spot; and starting a wireless hotspot service according to the configuration file, wherein the wireless hotspot service allows the electronic equipment correspondingly matched with the equipment identifier and the visitor password in the corresponding relation to be connected with the wireless hotspot based on the corresponding relation in the configuration file. By applying the embodiment of the invention, even if the user reveals the visitor password to other people, the device identification of the electronic device of other people is not in the corresponding relation, other people cannot utilize the visitor password to connect the wireless hotspot, so that the phenomenon that other people connect the hotspot due to the revealed hotspot password is avoided.

Description

Hotspot connection control method, device, equipment and computer-readable storage medium
Technical field
The present invention relates to technical field of intelligent equipment, more particularly to hotspot connection control method, device, equipment and meter Calculation machine storage medium.
Background technology
WiFi (Wireless-Fidelity, Wireless Fidelity) technologies are as a kind of communication, and it is using increasingly Extensively.Existing electronic equipment has Wireless Fidelity function mostly, can be by opening the nothing near wireless communication module connection Line focus, it is contemplated that there is provided the focus password that the equipment of hotspot can set connection hotspot for the security of network.
However, anyone needs to use same focus password during connection hotspot, easily because focus password is let out Dew causes other people to connect focus, and the equipment for connecting focus is more, it may appear that the problems such as network speed is slow, network is dangerous.
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.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the present invention Example, and for explaining principle of the invention together with specification.
Figure 1A is the flow chart that a kind of hotspot of the present invention according to an exemplary embodiment connects control method.
Figure 1B is that a kind of focus of the present invention according to an exemplary embodiment sets interface schematic diagram.
Fig. 1 C are that another focus of the present invention according to an exemplary embodiment sets interface schematic diagram.
Fig. 2 is the flow that another hotspot of the present invention according to an exemplary embodiment connects control method Figure.
Fig. 3 is the block diagram that a kind of hotspot of the present invention according to an exemplary embodiment connects control device.
Electronics where Fig. 4 is a kind of hotspot connection control device of the present invention according to an exemplary embodiment is set A kind of standby hardware structure diagram.
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.

Claims (11)

1. a kind of hotspot connects control method, it is characterised in that methods described includes:
The corresponding relation of device identification and passwords of visitors is obtained, the device identification is the mark of electronic equipment, and the visitor is close Workable focus password when code 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 on the correspondence in the configuration file Relation, it is allowed to be connected hotspot with the electronic equipment of the device identification in the corresponding relation and passwords of visitors Corresponding matching.
2. according to the method described in claim 1, it is characterised in that the acquisition device identification is corresponding with passwords of visitors to close System, 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.
3. according to the method described in claim 1, it is characterised in that the passwords of visitors has ageing, and methods described is also wrapped Include:
When being failed according to the timeliness sex determination passwords of visitors of passwords of visitors, delete corresponding relation in failed passwords of visitors and with The corresponding device identification of failed passwords of visitors.
4. the method according to any one of claims 1 to 3, it is characterised in that the configuration file includes focus and configures text Part and corresponding relation management configuration file, the corresponding relation management configuration file are used to store the corresponding relation, the heat Configure relevant in the configuration file of required loading, the focus configuration file when point configuration file is hotspot service startup The configuration item of corresponding relation in the corresponding relation management configuration file.
5. the method according to any one of claims 1 to 3, it is characterised in that also include in the configuration file public close Code, workable focus password, the public code and institute when the public code is any electronic equipment connection hotspot State passwords of visitors different.
6. method according to claim 5, it is characterised in that methods described also includes:
The connection request for carrying target device mark and target password is received, the target device mark is to initiate the connection The mark of the target device of request;
If the target device mark and target password and the device identification in the corresponding relation and passwords of visitors Corresponding matching, Then allow the target device access hotspot;
If the target password is matched with the public code, allow the target device access hotspot.
7. a kind of hotspot connects control device, it is characterised in that described device includes:
Relation acquisition module, the corresponding relation for obtaining device identification and passwords of visitors, the device identification is electronic equipment Mark, workable focus password when the passwords of visitors is electronic equipment connection hotspot;
Information updating module, the configuration text of focus is stored in for the corresponding relation of the device identification and passwords of visitors to be updated In part;
Starting module is serviced, for starting hotspot service according to the configuration file, the hotspot service is based on institute State the corresponding relation in configuration file, it is allowed to the device identification in the corresponding relation and the electronics of passwords of visitors Corresponding matching Equipment connects hotspot.
8. device according to claim 7, it is characterised in that also include public code, the public affairs in the configuration file Workable focus password when password is any electronic equipment connection hotspot altogether, the public code and the passwords of visitors It is different.
9. device according to claim 8, it is characterised in that described device also includes:
Request receiving module, the connection request of target device mark and target password, the target device are carried for receiving Mark is the mark for the target device for initiating the connection request;
Link control module, if for the target device identify and target password and the corresponding relation in device identification and Passwords of visitors Corresponding matching, then allow the target device access hotspot;If the target password and the public code Matching, then allow the target device access hotspot.
10. a kind of electronic equipment, it is characterised in that 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, and the visitor is close Workable focus password when code 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 on the correspondence in the configuration file Relation, it is allowed to be connected hotspot with the electronic equipment of the device identification in the corresponding relation and passwords of visitors Corresponding matching.
11. a kind of computer-readable storage medium, it is characterised in that have program stored therein instruction in the storage medium, described program refers to Order includes:
The corresponding relation of device identification and passwords of visitors is obtained, the device identification is the mark of electronic equipment, and the visitor is close Workable focus password when code 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 on the correspondence in the configuration file Relation, it is allowed to be connected hotspot with the electronic equipment of the device identification in the corresponding relation and passwords of visitors Corresponding matching.
CN201710552386.0A 2017-07-07 2017-07-07 Wireless hotspot connection control method, device and equipment and computer storage medium Pending CN107182054A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710552386.0A CN107182054A (en) 2017-07-07 2017-07-07 Wireless hotspot connection control method, device and equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710552386.0A CN107182054A (en) 2017-07-07 2017-07-07 Wireless hotspot connection control method, device and equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN107182054A true CN107182054A (en) 2017-09-19

Family

ID=59845766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710552386.0A Pending CN107182054A (en) 2017-07-07 2017-07-07 Wireless hotspot connection control method, device and equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN107182054A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109561431A (en) * 2019-01-17 2019-04-02 西安电子科技大学 The WLAN access control system and method identified based on more password identity
CN109688603A (en) * 2018-03-30 2019-04-26 新华三技术有限公司 Network diagnosis method, device and machine readable storage medium
CN110856174A (en) * 2019-12-13 2020-02-28 上海兴容信息技术有限公司 Access authentication system, method, device, computer equipment and storage medium
CN111132047A (en) * 2019-11-14 2020-05-08 华为终端有限公司 Network connection method and device
WO2020181812A1 (en) * 2019-03-11 2020-09-17 平安科技(深圳)有限公司 Application broadcast message push method, apparatus, and readable storage medium
CN112001746A (en) * 2020-08-07 2020-11-27 Oppo(重庆)智能科技有限公司 Information pushing method and device, electronic equipment and storage medium
CN113873485A (en) * 2021-09-22 2021-12-31 联想(北京)有限公司 Communication method and communication system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851637A (en) * 2017-03-31 2017-06-13 上海斐讯数据通信技术有限公司 A kind of method and system of convenient many password login wireless networks

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851637A (en) * 2017-03-31 2017-06-13 上海斐讯数据通信技术有限公司 A kind of method and system of convenient many password login wireless networks

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109688603A (en) * 2018-03-30 2019-04-26 新华三技术有限公司 Network diagnosis method, device and machine readable storage medium
US11277319B2 (en) 2018-03-30 2022-03-15 New H3C Technologies Co., Ltd. Diagnosing network
CN109561431A (en) * 2019-01-17 2019-04-02 西安电子科技大学 The WLAN access control system and method identified based on more password identity
WO2020181812A1 (en) * 2019-03-11 2020-09-17 平安科技(深圳)有限公司 Application broadcast message push method, apparatus, and readable storage medium
CN111132047A (en) * 2019-11-14 2020-05-08 华为终端有限公司 Network connection method and device
CN110856174A (en) * 2019-12-13 2020-02-28 上海兴容信息技术有限公司 Access authentication system, method, device, computer equipment and storage medium
CN112001746A (en) * 2020-08-07 2020-11-27 Oppo(重庆)智能科技有限公司 Information pushing method and device, electronic equipment and storage medium
CN113873485A (en) * 2021-09-22 2021-12-31 联想(北京)有限公司 Communication method and communication system
CN113873485B (en) * 2021-09-22 2024-04-23 联想(北京)有限公司 Communication method and communication system

Similar Documents

Publication Publication Date Title
CN107182054A (en) Wireless hotspot connection control method, device and equipment and computer storage medium
CN107040568B (en) identification information generation method and device
CN101123811B (en) Apparatus and method for managing stations associated with WPA-PSK wireless network
CN109831527B (en) File processing method, user side, server and readable storage medium
US8214885B2 (en) Managing network components using USB keys
US10693863B2 (en) Methods and systems for single sign-on while protecting user privacy
CN108337210B (en) Equipment configuration method, device and system
CN102823195A (en) System and methods for remote maintenance of client systems in an electronic network using software testing by a virtual machine
CN106384042B (en) A kind of electronic equipment and security system
JP2012527670A (en) Data backup system
CN107580032B (en) Data processing method, device and equipment
CN110149634A (en) The method and apparatus of mobile device management
JP4897503B2 (en) Account linking system, account linking method, linkage server device
CN104125567A (en) Femto and authentication method and authentication device for access of femto to network side
CN106911681A (en) Network access authentication method and device
CN105812370B (en) Intelligent card in processing method, apparatus and system
CN109769249A (en) A kind of authentication method, system and its apparatus
CN110855688B (en) Block chain information processing method and related equipment
CN108966230A (en) Share the method and apparatus of wireless access point
CN105224541B (en) Uniqueness control method, information storage means and the device of data
CN107396358A (en) Wireless hotspot connection control method, device and equipment and computer storage medium
CN114338153A (en) IPSec negotiation method and device
CN104981791A (en) Mobile sender controlled data access and data deletion method and system
CN109560954B (en) Equipment configuration method and device
CN117675900A (en) Device management method, device, equipment and machine-readable storage medium

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200318

Address after: 510530 Guangdong city of Guangzhou province YUNPU Whampoa district four Road No. 6

Applicant after: Guangzhou Shiyuan Electronic Technology Company Limited

Address before: 510530 Guangdong city of Guangzhou province YUNPU Whampoa district four Road No. 6

Applicant before: Guangzhou Shiyuan Electronic Technology Company Limited

Applicant before: SHENZHEN KAISHI ELECTRONIC TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170919