CN107396358A - Hotspot connection control method, device, equipment and computer-readable storage medium - Google Patents

Hotspot connection control method, device, equipment and computer-readable storage medium Download PDF

Info

Publication number
CN107396358A
CN107396358A CN201710551694.1A CN201710551694A CN107396358A CN 107396358 A CN107396358 A CN 107396358A CN 201710551694 A CN201710551694 A CN 201710551694A CN 107396358 A CN107396358 A CN 107396358A
Authority
CN
China
Prior art keywords
hotspot
ssid
focus
mac address
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710551694.1A
Other languages
Chinese (zh)
Other versions
CN107396358B (en
Inventor
郭崇鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Shenzhen Open View 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 Open View Electronic Technology Co Ltd, Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Shenzhen Open View Electronic Technology Co Ltd
Priority to CN201710551694.1A priority Critical patent/CN107396358B/en
Publication of CN107396358A publication Critical patent/CN107396358A/en
Application granted granted Critical
Publication of CN107396358B publication Critical patent/CN107396358B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • 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
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

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

Abstract

The present invention provides a kind of hotspot connection control method, device, equipment and computer-readable storage medium, if the configuration-direct based on hotspot determines that the SSID quantity of the hotspot of same WiFi module is more than 1, obtains the MAC Address of WiFi module;The BSSID of hotspot is obtained based on MAC Address, and combines the SSID and focus password of at least two hotspot obtained based on configuration-direct, generates the focus configuration information of each hotspot, and be stored in focus configuration file;The IP address section of each hotspot is determined based on the focus configuration information, and is stored in DHCP configuration files;Hotspot service and DHCP service are respectively started according to the focus configuration file and the DHCP configuration files, the hotspot service allows to connect equipment utilization and the corresponding hotspot of focus password connection corresponding to each SSID.Realized using the embodiment of the present invention and provide multiple hotspot using a WiFi module, multiple SSID are provided without being realized by the WiFi module of corresponding number, so as to cost-effective.

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 equipment has Wireless Fidelity function mostly, can be by opening the wireless heat near wireless communication module connection Point.SSID (Service Set Identifier, the services set of access hotspot can be set by providing the equipment of hotspot Mark) title and focus password, and Broadcast SSIDs title.Connecting equipment can be by searching for SSID name, and it is close to input focus Code is to access hotspot.
Multiple hotspot are needed in a scenario, but each WiFi module only provides a SSID, then needs to lead to The WiFi module realization for crossing corresponding number provides multiple SSID, and cost is higher.
The content of the invention
It is existing to solve the invention provides hotspot connection control method, device, equipment and computer-readable storage medium In order to realize the problem of multiple SSID cause cost higher in technology.
First aspect according to embodiments of the present invention, there is provided a kind of hotspot connects control method, and methods described includes:
If the configuration-direct based on hotspot determines that the SSID quantity of the hotspot of same WiFi module is more than 1, obtain Take the MAC Address of the WiFi module;
The BSSID of hotspot is obtained based on the MAC Address, and with reference at least two obtained based on the configuration-direct The SSID and focus password of individual hotspot, generate the focus configuration information of each hotspot, and are stored in focus configuration text In part;
The IP address section of each hotspot is determined based on the focus configuration information, and is stored in DHCP configuration files In;
Hotspot service and DHCP service are respectively started according to the focus configuration file and the DHCP configuration files, The hotspot service allows to connect equipment utilization and the corresponding hotspot of focus password connection corresponding to each SSID.
In an optional implementation, it is pre-configured with for setting the focus of at least two hotspot to set boundary Face, the configuration-direct based on hotspot determine the SSID quantity of the hotspot of same WiFi module more than 1, including:
If it is not sky that the focus, which sets at least two SSID input controls in interface, it is determined that same WiFi module The SSID quantity of hotspot is more than 1, and the SSID input controls are the controls for inputting SSID.
In an optional implementation, the BSSID that hotspot is obtained based on the MAC Address, including:
The MAC Address is converted to the MAC Address of specified format, the MAC Address of the specified format meets:Wireless heat BSSID that MAC Address of the point service based on specified format obtains it is expansible go out different BSSID;
The MAC Address of the WiFi module is reset using the MAC Address after conversion, and the MAC Address based on replacement obtains BSSID corresponding to one of SSID, so that BSSID of the hotspot service based on acquisition is expanded corresponding to other SSID BSSID。
In an optional implementation, the focus sets interface to include an original SSID specified and at least One extension SSID, methods described also include:
If the focus is set in interface, focus password is close for focus corresponding to empty and original SSID corresponding to extension SSID Code is not sky, then using focus password corresponding to original SSID as focus password corresponding to extension SSID.
In an optional implementation, different IP address sections is configured with the authority of different access Internet resources.
Second aspect according to embodiments of the present invention, there is provided a kind of hotspot connects control device, and described device includes:
Address acquisition module, if the hotspot of same WiFi module is determined for the configuration-direct based on hotspot SSID quantity is more than 1, obtains the MAC Address of the WiFi module;
First information memory module, for obtaining the BSSID of hotspot based on the MAC Address, and combine and be based on institute The SSID and focus password of at least two hotspot of configuration-direct acquisition are stated, the focus for generating each hotspot matches somebody with somebody confidence Breath, and be stored in focus configuration file;
Second information storage module, for determining the IP address section of each hotspot based on the focus configuration information, And it is stored in DHCP configuration files;
Starting module is serviced, for wireless heat to be respectively started according to the focus configuration file and the DHCP configuration files Point service and DHCP service, the hotspot service allow to connect equipment utilization focus password company corresponding with each SSID Connect corresponding hotspot.
In an optional implementation, it is pre-configured with for setting the focus of at least two hotspot to set boundary Face, the address acquisition module, is specifically used for:
If it is not sky that the focus, which sets at least two SSID input controls in interface, it is determined that same WiFi module The SSID quantity of hotspot is more than 1, and the SSID input controls are the controls for inputting SSID.
In an optional implementation, the first information memory module, it is specifically used for:
The MAC Address is converted to the MAC Address of specified format, the MAC Address of the specified format meets:Wireless heat BSSID that MAC Address of the point service based on specified format obtains it is expansible go out different BSSID;
The MAC Address of the WiFi module is reset using the MAC Address after conversion, and the MAC Address based on replacement obtains BSSID corresponding to one of SSID, so that BSSID of the hotspot service based on acquisition is expanded corresponding to other SSID BSSID。
The third aspect according to embodiments of the present invention, there is provided a kind of electronic equipment, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
If the configuration-direct based on hotspot determines that the SSID quantity of the hotspot of same WiFi module is more than 1, obtain Take the MAC Address of the WiFi module;
The BSSID of hotspot is obtained based on the MAC Address, and with reference at least two obtained based on the configuration-direct The SSID and focus password of individual hotspot, generate the focus configuration information of each hotspot, and are stored in focus configuration text In part;
The IP address section of each hotspot is determined based on the focus configuration information, and is stored in DHCP configuration files In;
Hotspot service and DHCP service are respectively started according to the focus configuration file and the DHCP configuration files, The hotspot service allows to connect equipment utilization and the corresponding hotspot of focus password connection corresponding to each SSID.
Fourth aspect according to embodiments of the present invention, there is provided a kind of computer-readable storage medium, store in the storage medium There is programmed instruction, described program instruction includes:
If the configuration-direct based on hotspot determines that the SSID quantity of the hotspot of same WiFi module is more than 1, obtain Take the MAC Address of the WiFi module;
The BSSID of hotspot is obtained based on the MAC Address, and with reference at least two obtained based on the configuration-direct The SSID and focus password of individual hotspot, generate the focus configuration information of each hotspot, and are stored in focus configuration text In part;
The IP address section of each hotspot is determined based on the focus configuration information, and is stored in DHCP configuration files In;
Hotspot service and DHCP service are respectively started according to the focus configuration file and the DHCP configuration files, The hotspot service allows to connect equipment utilization and the corresponding hotspot of focus password connection corresponding to each SSID.
, can when it is determined that the SSID quantity of the hotspot of same WiFi module is more than 1 using scheme of the embodiment of the present invention To obtain the MAC Address of WiFi module, the BSSID of hotspot is obtained based on the MAC Address, is referred to reference to based on the configuration The SSID and focus password obtained is made, generates the focus configuration information of each hotspot, and be stored in focus configuration file; The IP address section of each hotspot is determined based on focus configuration information, and is stored in DHCP configuration files, and then according to heat Hotspot service and DHCP service is respectively started in point configuration file and DHCP configuration files, and a WiFi mould is utilized so as to realize Block provides multiple hotspot, multiple SSID is provided without being realized by the WiFi module of corresponding number, so as to cost-effective.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not Can the limitation present invention.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms 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 a kind of flow chart of hotspot connection control method of the present invention according to an exemplary embodiment.
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 of another hotspot connection control method of the present invention according to an exemplary embodiment Figure.
Fig. 3 is a kind of block diagram of hotspot connection control device of the present invention according to an exemplary embodiment.
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 being described in detail in claims, of the invention.
It is only merely for the purpose of description specific embodiment in terminology used in the present invention, and is not intended to be limiting the present invention. It is also intended in " one kind " of the singulative of the invention with used in appended claims, " described " and "the" including majority Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wrapped Containing the associated list items purpose of one or more, any or all may be combined.
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, do not departing from In the case of the scope of the invention, the first information can also be referred to as the second information, and similarly, 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 ".
As a kind of communication, it uses more and more extensive WiFi technology.Many electronic equipments can pass through nothing Line communication module connects hotspot, to realize networking.For the equipment of offer hotspot, AP is only existed in some equipment (Access Point access points) pattern, some equipment both include AP (Access Point access points) pattern, include STA again (Station work stations) pattern.Wherein, under ap mode, equipment can provide hotspot, to share flow or cable network, Under STA mode, function of surfing the Net is realized for connecting hotspot.For example, router is often provided only with AP modules, smart mobile phone, Intelligent set top box etc. often has double mode.For example existing Android smart machines have STA mode and ap mode.It is operated in During STA mode, for Android device as connection equipment, the hotspot provided by connecting other equipment realizes that Android is set Standby wireless networking capabilities;When being operated in ap mode, Android device provides wireless access as the equipment for providing hotspot Service, so that there is the connection equipment of WiFi function can connect the hotspot that this Android device provides for other, the company of realization Connect equipment wireless networking capabilities.
Multiple hotspot are needed in a scenario, for example, the visitor in same occasion different classifications connects not Same hotspot.But each WiFi module only provides a SSID, then need to realize by the WiFi module of corresponding number Multiple SSID are provided, cost is higher.
In order to avoid cost it is higher the problem of, the embodiment of the present invention provide a kind of hotspot connection control method, device, Equipment and computer-readable storage medium.The embodiment of the present invention provides multiple SSID by same WiFi module, realizes that offer is multiple Hotspot, and then reduce cost.The embodiment of the present invention is illustrated 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 104:
In a step 101, if the configuration-direct based on hotspot determines the SSID of the hotspot of same WiFi module Quantity is more than 1, obtains the MAC Address of the WiFi module.
In a step 102, the BSSID of hotspot is obtained based on the MAC Address, and with reference to based on the configuration-direct The SSID and focus password of at least two hotspot obtained, generate the focus configuration information of each hotspot, and store In focus configuration file.
In step 103, the IP address section of each hotspot is determined based on the focus configuration information, and be stored in In DHCP configuration files.
At step 104, hotspot clothes are respectively started according to the focus configuration file and the DHCP configuration files Business and DHCP service, the hotspot service, which allows to connect equipment utilization focus password corresponding with each SSID, connects phase The hotspot answered.
The embodiment of the present invention can apply in the electronic equipment with offer 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.
Wherein, the configuration-direct of hotspot can be the instruction for setting the configuration information of hotspot.Configuration refers to Order can be based on user and operate triggering generation.
In an optional implementation, it is provided previously by for setting the focus of at least two hotspot to set boundary Face.In focus sets interface, the configuration information of the different radio focus of same WiFi module can be set.For example, not only may be used To set the SSID of hotspot (i.e. the title of hotspot, for other connection equipment search connections), nothing can also be set The focus password (focus password is the connection password of required input when connecting the hotspot) of line focus, so as to close using focus The hotspot that code connection name is SSID.Further, other relevant informations of hotspot can also be set, for example, SSID broadcast states, secure cryptography mode etc..Whether SSID broadcast states are used to indicate corresponding SSID name in visible State.Whether secure cryptography mode includes open state and encrypted state, needed when connecting corresponding WiFi module for instruction Input password.
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 focus sets interface, the configuration information of three kinds of hotspot can be set, configuration information can include hotspot SSID, focus password and security.It is understood that other of hotspot can also be set in focus setting interface Configuration information, Figure 1B only lift wherein several information and illustrated.
Set interface to obtain the configuration-direct of hotspot based on focus, hotspot is carried out according to configuration-direct and matched somebody with somebody The setting of confidence breath.Interface is set to set multiple hotspot to there may be a variety of situations based on focus, for example, different radio is warm The SSID of point is different and password is different;The SSID of different radio focus is different but password is identical;The SSID of different radio focus Identical but password is different;The SSID of different radio focus is identical and password is also identical.
In embodiments of the present invention, it is that hotspot setting is carried out to same WiFi module because focus sets interface Interface, thus instruct according to setting and determine hotspot SSID several at least two when, it may be determined that same WiFi module Hotspot SSID number be more than 1.In one example, it can set whether SSID controls in interface are empty according to focus Judge SSID number.If specifically, it is not sky that the focus, which sets at least two SSID input controls in interface, it is determined that The SSID quantity of the hotspot of same WiFi module is more than 1.
Wherein, SSID input controls can be the control for inputting SSID, and the number of SSID input controls can be based on The SSID number that provide pre-set determines.In one example, whether SSID input controls are empty, can be SSID corresponding SSID input controls whether input legal SSID, if inputting legal SSID, judge the SSID input controls for sky, otherwise Judge the input control for sky.So-called legal SSID refers to the SSID for meeting specified format requirement.In another example, SSID Input control whether be empty or SSID corresponding to SSID input controls whether input information, if input information, judges The input control is not sky, otherwise judges the input control for sky.SSID forms are not limited in the example.
It can be seen that because SSID is the title of hotspot, therefore SSID number can characterize the number of hotspot, root Whether it is empty according to SSID input controls, can quickly judges SSID number, and then the quick number for judging hotspot.
In some application scenarios, it is not very big to set identical SSID demand using same WiFi patterns, in consideration of it, It is also whether identical to SSID to limit in an optional implementation.If specifically, the focus is set in interface extremely Rare two SSID input controls are not different for the SSID in empty and SSID input controls, it is determined that the nothing of same WiFi module The SSID quantity of line focus is more than 1, and the SSID input controls are the controls for inputting SSID.
It can be seen that not only considering whether SSID input controls are empty, it is also contemplated that whether the information in SSID input controls is identical, So as to realize that determination has at least two different SSID just to perform the present invention program.Further, if detecting current SSID When the input information of SSID input control of the input information of input control with having set is identical, output SSID identicals remind letter Breath, to remind user to set different SSID.
It is empty situation on SSID input controls, in one example, if whether being empty using SSID input controls Judge the SSID quantity of hotspot, be then space-time in SSID input controls, can represent not enabling the hotspot service.Further , in order to remind user, can also in input control corresponding to SSID display alarm information:" emptying expression not enable ".Example Such as, can be prompted in input frame using the mode of placeholder (being properly termed as shading word again).In another example, no Whether it is the empty SSID quantity for judging hotspot using SSID input controls, but sets SSID in interface to input according to focus The quantity of control determines the SSID quantity of hotspot.In consideration of it, it is in empty SSID input controls that focus, which is set in interface, Value default value is the SSID in empty SSID input controls., can be advance in order to be specifically used for the SSID of default value A SSID input control is specified, using specified SSID input controls as original SSID input controls, other SSID input controls Part is as extension SSID input controls.Such as using first SSID input control as original SSID input controls, by other SSID input controls are as extension SSID input controls.Using the SSID in original SSID input controls as default value SSID, when other extension SSID input controls are empty, the SSID using original SSID as extension SSID input controls. In order to facilitate description, the SSID in original SSID input controls is properly termed as original SSID, and original SSID is original wireless focus Title.SSID in extension SSID input controls is properly termed as extending SSID, and extension SSID is the title of extended wireless focus.
Because different hotspot can distribute different IP address sections, then in the input control for input expanding SSID For space-time, indicate that the extension SSID of the extended wireless focus is identical with original SSID, then can make the title of extended wireless focus It is identical with the title of original wireless focus, IP address section corresponding to extended wireless focus is used, realizes the abundant of network Utilize.
Further, in order to remind user, can also in input control corresponding to SSID display alarm information:" empty Represent identical with SSID name 1 ".For example, it can be prompted in input frame using the mode of shading word.
Accordingly, focus password corresponding to SSID is also included in focus sets interface.Focus corresponding to different SSID is close Code can be with identical, can also be different.
In one example, a SSID input control can be preassigned, using specified SSID input controls as original Beginning SSID input control, other SSID input controls are as extension SSID input controls.Such as by first SSID input control As original SSID input controls, using other SSID input controls as extension SSID input controls.It is original in order to facilitate description SSID in SSID input controls is properly termed as original SSID, and original SSID is the title of original wireless focus.It is defeated to extend SSID Enter the SSID in control to be properly termed as extending SSID, extension SSID is the title of extended wireless focus.
It is empty situation on code input control, if focus sets interface to include original SSID and at least one expansion SSID is opened up, can be using output password as empty prompting message when focus password corresponding to extension SSID be space-time.
In one example, if it is empty and original that the focus, which sets focus password corresponding to extension SSID in interface, Focus password corresponding to SSID is not sky, then focus password corresponding to original SSID is close as focus corresponding to extension SSID Code.It is space-time in focus password corresponding to extension SSID, is automatically arranged to focus password corresponding to original SSID to extend SSID Corresponding focus password, is set so as to save password the time.
As shown in Figure 1 C, Fig. 1 C are that another focus of the present invention according to an exemplary embodiment sets interface to illustrate Figure.In the focus sets interface, the configuration information of three kinds of hotspot can be set, configuration information includes hotspot SSID, focus password and security.Also, if SSID input controls are sky, can represent not enabling the hotspot service.In order to Remind user, can also in SSID input controls display alarm information:" emptying expression not enable ".Using SSID1 as original SSID, using SSID2 and SSID3 as extension SSID, when extension SSID corresponding to focus password be space-time, can be by SSID1 pairs The focus password answered is arranged to extend focus password corresponding to SSID, and the display alarm information in code input control:" for sky Represent with ' password 1 ' is identical ".It can be seen that administrative staff can be facilitated quickly to be configured.
When determining that the SSID quantity of the hotspot of same WiFi module is more than 1, the MAC of the WiFi module can be obtained Address (Media Access Control Address, media access control address or physical address).
Wherein, MAC Address is properly termed as media access control address, also referred to as Ethernet ID or physical address, and it is one The individual address for being used for confirming network equipment position.MAC Address totally 48 (6 bytes), typically with hexadecimal representation.MAC First 24 of location determine how to distribute by IEEE, and latter 24 of MAC Address are voluntarily referred to by the manufacturer of the actual production network equipment It is fixed.
Obtain WiFi module MAC Address mode have it is a variety of, for example, reading/sys/class/net/ can be passed through Wlan0/address obtains the MAC Address of WiFi module, for example the MAC Address got is 44:2c:05:b9:a2:d2.
Because each hotspot needs to configure BSSID (Basic Service Set Identifier, basic service list First identifier), and the BSSID of different radio focus is different, and BSSID can be based on MAC Address and obtain, therefore can be based on The MAC Address obtains the BSSID of hotspot.
In an optional implementation, the BSSID that hotspot is obtained based on the MAC Address, including:
The MAC Address is converted to the MAC Address of specified format;
The MAC Address of the WiFi module is reset using the MAC Address after conversion, and the MAC Address based on replacement obtains BSSID corresponding to one of SSID, so that BSSID of the hotspot service based on acquisition is expanded corresponding to other SSID BSSID。
Wherein, the MAC Address of the specified format meets:MAC Address of the hotspot service based on specified format obtains BSSID it is expansible go out different BSSID, for example, specified format can be local management (Locally Administered) Form, user can oneself management definition under specified format.The MAC Address of local management form is with being called local management Location (Locally Administered Address, LAA).Specifically, the first character section of MAC Address can be converted to finger The byte to fix needed for formula.For example, by MAC Address 44:2c:05:b9:a2:D2 first character section 44 is revised as specified format Required byte 02, the MAC Address after changing is 02:2c:05:b9:a2:d2.
The MAC Address of the WiFi module is reset using the MAC Address after conversion.For example, using configuration order and turn MAC Address after changing resets the MAC Address of the WiFi module.Configuration order can be ifconfig orders, specifically, can be with Use ifconfig wlan0 hw ether 02:2c:05:b9:a2:D2 orders reset WiFi module MAC Address.
BSSID is generally WiFi module MAC Address under default situations, then can obtain corresponding to one of SSID BSSID.For example, in the focus configuration information of first hotspot of generation, such as bssid=02 can be generated:2c:05: b9:a2:D2 configuration item, hostapd services can automatically configure extended wireless focus below by this configuration item according to BSSID BSSID, expand BSSID corresponding to other SSID.Using the MAC Address after changing into 02:xx:xx:xx:xx:Exemplified by 00, then BSSID corresponding to one SSID is 02:xx:xx:xx:xx:00, BSSID corresponding to second SSID are 02:xx:xx:xx:xx: 01, the 3rd BSSID corresponding to SSID is 02:xx:xx:xx:xx:02, it is automatic cumulative, to expand corresponding to other SSID BSSID。
Assuming that interface is set to determine that SSID number of the hotspot of same WiFi module is 3,3 SSID points based on focus Not Wei SSID1, SSID2, SSID3, then based on MAC Address obtain 3 BSSID, BSSID corresponding to SSID1 be 02:2c:05: b9:a2:BSSID corresponding to d2, SSID2 and SSID3 can be 02:2c:05:b9:a2:Cumulative extension obtains automatically on the basis of d2 , so need not be embodied in focus configuration information.With reference to BSSID, focus, SSID and focus password in interface, generation are set The focus configuration information of each hotspot, it is specific as follows:
interface wlan0
Bssid=02:2c:05:b9:a2:d2
Driver=nl80211
Ssid=SSID1
Wpa=2
Wpa_passphrase=password1
Wpa_key_mgmt=WPA-PSK
Rsn_pairwise=CCMP
Bss=wlan0_0
Ssid=SSID2
Wpa=2
Wpa_passphrase=password2
Wpa_key_mgmt=WPA-PSK
Rsn_pairwise=CCMP
Bss=wlan0_1
Ssid=SSID3
Wpa=2
Wpa_passphrase=password3
Wpa_key_mgmt=WPA-PSK
Rsn_pairwise=CCMP
Above-mentioned focus configuration information is that SSID1, SSID2, SSID3 are enabled and had focus during independent password to configure Information, separated respectively with null.In one example, if SSID input controls do not enable the hotspot for empty expression, Then some SSID input control is space-time, does not generate corresponding focus configuration information.For example, if SSID corresponding to SSID2 is inputted Control is sky, then focus configuration information is as follows:
interface wlan0
Bssid=02:2c:05:b9:a2:d2
Driver=nl80211
Ssid=SSID1
Wpa=2
Wpa_passphrase=password1
Wpa_key_mgmt=WPA-PSK
Rsn_pairwise=CCMP
Bss=wlan0_1
Ssid=SSID3
Wpa=2
Wpa_passphrase=password3
Wpa_key_mgmt=WPA-PSK
Rsn_pairwise=CCMP
If code input control is close for the focus of the empty focus password and first hotspot for indicating the hotspot Code-phase is same, then when code input control is space-time, without generating this 4 row configuration item of wpa=2 to rsn_pairwise=CCMP. For example, if focus password corresponding to SSID2 is sky, focus configuration information is as follows:
interface wlan0
Bssid=02:2c:05:b9:a2:d2
Driver=nl80211
Ssid=SSID1
Wpa=2
Wpa_passphrase=password1
Wpa_key_mgmt=WPA-PSK
Rsn_pairwise=CCMP
Bss=wlan0_0
Ssid=SSID2
Bss=wlan0_1
Ssid=SSID3
Wpa=2
Wpa_passphrase=password3
Wpa_key_mgmt=WPA-PSK
Rsn_pairwise=CCMP
If in addition, based on the focus set interface determine same WiFi module hotspot SSID number for 1 when, Single SSID focus configuration information can be generated.For example, if single SSID situations, then do not generate corresponding to SSID2 and SSID3 Focus configuration information, and do not include bssid=02 in focus configuration information corresponding to SSID1:2c:05:b9:a2:D2 matches somebody with somebody Put item.For example, if input control corresponding to SSID2 and SSID3 is sky, focus configuration information is as follows:
interface wlan0
Driver=nl80211
Ssid=SSID1
Wpa=2
Wpa_passphrase=password1
Wpa_key_mgmt=WPA-PSK
Rsn_pairwise=CCMP
After the focus configuration information for generating each hotspot, focus configuration information is stored in focus configuration file. Focus configuration file is the configuration file of required loading when hotspot service starts.WiFi can be included in focus configuration file The heat such as focus state, SSID broadcast states, SSID name, focus password, secure cryptography mode, working channel, working frequency range Point configuration information.Wi-Fi hotspot state is used to indicate whether the AP functions of corresponding WiFi module open.SSID name refers to correspondingly The Wi-Fi hotspot title of WiFi module, search for and connect for network access device.SSID broadcast states are corresponding for indicating Whether SSID name is in visible state.Secure cryptography mode includes open state and encrypted state, for indicating connection pair Whether answer needs to input password during WiFi module.Working frequency range can be 2.4GHz (hertz) frequency range, 5.8GHz frequency ranges etc..
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.
Due to when connecting equipment connection hotspot, it is necessary to by DHCP service for connection equipment with distributing corresponding IP Location and DNS information, it is therefore desirable to configure the IP address section of each hotspot, and generate corresponding DHCP configuration informations.
Wherein, it is one that DynamicHost, which sets agreement (Dynamic Host Configuration Protocol, DHCP), The procotol of LAN, is worked using udp protocol, can be used for internal network or Internet service provider with distributing IP automatically Location is to user.
In consideration of it, it is determined that after focus configuration information, according to focus configuration information corresponding DHCP can be set to match somebody with somebody confidence Breath.IP address section in DHCP configuration informations can be that designer is pre-configured.Configured for different hotspot Different IP address sections.DHCP configuration informations can follow the change of focus configuration information and change, and hotspot, which is in, starts shape Corresponding DHCP configuration informations during state just be present, if hotspot does not start, in the absence of DHCP configuration informations.
Assuming that interface is set to determine that SSID number of the hotspot of same WiFi module is 3,3 SSID points based on focus Not Wei SSID1, SSID2, SSID3, then DHCP configuration informations are as follows:
Interface=wlan0
Dhcp-range=wlan0,192.168.66.110,192.168.66.220,12h
Interface=wlan0_0
Dhcp-range=wlan0_0,192.168.67.110,192.168.67.220,12h
Interface=wlan0_1
Dhcp-range=wlan0_1,192.168.68.110,192.168.68.220,12h
Above-mentioned corresponding entry followed by the change of focus configuration information and change, if corresponding SSID name is sky, correspond to Interface and dhcp-range entry deletions, if single SSID situations, then only retain and most start two rows.
It is determined that after the IP address section of each hotspot, can store information in DHCP configuration files.For example, can To be stored in dnsmasq.conf configuration files.
Hotspot service and DHCP service are respectively started according to the focus configuration file and the DHCP configuration files. During due to changing focus configuration file every time, generally require to restart hotspot service, therefore, in renewal focus configuration text After part, hotspot service can be started according to the focus configuration file.When starting hotspot service, the service can add Heat-carrying point configuration file, the hotspot service of corresponding function is then supported according to the configuration item deactivation inside focus configuration file. DHCP configuration files are also based on simultaneously and start DHCP service, and when starting DHCP service, the service can load DHCP configurations File, the service of corresponding function is then supported according to the configuration item deactivation inside DHCP configuration files, to be connection equipment Distribute corresponding IP address and DNS information etc..
When starting hotspot service and DHCP service, IP address setting command need to be performed with setting WiFi module IP Location.IP address setting command can be based on DHCP configuration informations corresponding to SSID in DHCP configuration files and determine.IP address sets life Order is corresponding with SSID, when DHCP configuration files include DHCP configuration informations corresponding to N number of SSID, is then set including N bar IP address Order is put, each IP address setting command is used for the IP address for setting respective wireless focus.If for example, in DHCP configuration files Including DHCP configuration informations corresponding to SSID1, SSID12, SSID3, then need to perform such as to issue orders:
ifconfig wlan0 192.168.66.1up
ifconfig wlan0_0 192.168.67.1up
ifconfig wlan0_1 192.168.68.1up
It can be seen that the setting of WiFi module IP address can be realized by mentioned order.
As seen from the above-described embodiment, when it is determined that the SSID quantity of the hotspot of same WiFi module is more than 1, can obtain The MAC Address of WiFi module is taken, the BSSID of hotspot is obtained based on the MAC Address, is obtained with reference to based on the configuration-direct The SSID and focus password obtained, generates the focus configuration information of each hotspot, and be stored in focus configuration file;It is based on Focus configuration information determines the IP address section of each hotspot, and is stored in DHCP configuration files, and then is matched somebody with somebody according to focus Put file and hotspot service and DHCP service is respectively started in DHCP configuration files, carried so as to realize using a WiFi module For multiple hotspot, multiple SSID are provided without being realized by the WiFi module of corresponding number, so as to cost-effective.
In one example, due to multiple SSID can be marked off for same WiFi module, then can provide multiple Hotspot, different users can be classified by role, such as be divided into intra-company's group, client's group, supplier's group etc.. Different SSID is informed to the user of different role group, so as to realize that the user of different role group connects different hotspot.
Further, the authority of different access Internet resources can also be configured with to different IP address sections, so as to real The authority difference that different radio focus accesses Internet resources is now connected, then realizing the user of different role group has different networks to visit Ask authority.
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, do 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.
Illustrated below with a combination.
As shown in Fig. 2 Fig. 2 is another hotspot connection controlling party of the present invention according to an exemplary embodiment The flow chart of method, this method may comprise steps of 201 to step 206:
In step 201, if judging the SSID numbers of the hotspot of same WiFi module based on focus setting interface Whether amount is more than 1, if SSID quantity is more than 1, into step 202, if SSID quantity is equal to 1, into step 205.
In step 202, the MAC Address of the WiFi module is obtained, and the MAC Address is converted into specified format MAC Address, into step 203.
The MAC Address of the specified format meets:MAC Address of the hotspot service based on specified format obtains BSSID it is expansible go out different BSSID.
In step 203, the MAC Address of the WiFi module is reset using the MAC Address after conversion, into step 204.
In step 204, it is close with reference to the MAC Address after conversion and the SSID in focus setting interface and focus Code, generates the focus configuration information of each hotspot, and focus configuration information is stored in focus configuration file;Based on institute The IP address section that focus configuration information determines each hotspot is stated, generates corresponding DHCP configuration informations, and DHCP is configured Information is stored in DHCP configuration files, and enters step 206.
In step 205, single SSID focus configuration information and DHCP configuration informations are generated, and is respectively stored in focus and matches somebody with somebody Put in file and DHCP configuration files, and enter step 206.
Wherein, the focus configuration information and DHCP configuration informations for generating single SSID configure with generating single SSID in correlation technique The process of information is identical, will not be repeated here.
In step 206, hotspot clothes are respectively started according to the focus configuration file and the DHCP configuration files Business and DHCP service, the hotspot service allow connection equipment utilization corresponding to focus password connection corresponding to the SSID Hotspot.
As seen from the above-described embodiment, it is more than 1 according to the SSID quantity of the hotspot of same WiFi module, generates single SSID Configuration information or more SSID configuration informations, to realize that same WiFi module provides single SSID hotspot, or provide multiple SSID hotspot, realize it is multi-functional, and can be with cost-effective when providing more hotspot.
Corresponding with the embodiment of foregoing hotspot connection control method, present invention also offers hotspot connection to control 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:
Address acquisition module 320, if determining the wireless heat of same WiFi module for the configuration-direct based on hotspot The SSID quantity of point is more than 1, obtains the MAC Address of the WiFi module.
First information memory module 340, for obtaining the BSSID of hotspot based on the MAC Address, and combine and be based on The SSID and focus password at least two hotspot that the configuration-direct obtains, generate the focus configuration of each hotspot Information, and be stored in focus configuration file.
Second information storage module 360, for determining the IP address of each hotspot based on the focus configuration information Section, and be stored in DHCP configuration files.
Starting module 380 is serviced, for nothing to be respectively started according to the focus configuration file and the DHCP configuration files Line hotspot service and DHCP service, the hotspot service allow to connect equipment utilization focus corresponding with each SSID close Code connects corresponding hotspot.
As seen from the above-described embodiment, when it is determined that the SSID quantity of the hotspot of same WiFi module is more than 1, can obtain The MAC Address of WiFi module is taken, the BSSID of hotspot is obtained based on the MAC Address, is obtained with reference to based on the configuration-direct The SSID and focus password obtained, generates the focus configuration information of each hotspot, and be stored in focus configuration file;It is based on Focus configuration information determines the IP address section of each hotspot, and is stored in DHCP configuration files, and then is matched somebody with somebody according to focus Put file and hotspot service and DHCP service is respectively started in DHCP configuration files, carried so as to realize using a WiFi module For multiple hotspot, multiple SSID are provided without being realized by the WiFi module of corresponding number, so as to cost-effective.
In an optional implementation, it is pre-configured with for setting the focus of at least two hotspot to set boundary Face, the address acquisition module 320, is specifically used for:
If it is not sky that the focus, which sets at least two SSID input controls in interface, it is determined that same WiFi module The SSID quantity of hotspot is more than 1, and the SSID input controls are the controls for inputting SSID.
In an optional implementation, the first information memory module 340, it is specifically used for:
The MAC Address is converted to the MAC Address of specified format, the MAC Address of the specified format meets:Wireless heat BSSID that MAC Address of the point service based on specified format obtains it is expansible go out different BSSID;
The MAC Address of the WiFi module is reset using the MAC Address after conversion, and the MAC Address based on replacement obtains BSSID corresponding to one of SSID, so that BSSID of the hotspot service based on acquisition is expanded corresponding to other SSID BSSID。
In an optional implementation, the focus sets interface to include an original SSID specified and at least One extension SSID, the first information memory module 340, is additionally operable to:If the focus sets extension SSID in interface corresponding Focus password be empty and original SSID corresponding to focus password be not it is empty, then using focus password corresponding to original SSID as Extend focus password corresponding to SSID.
In an optional implementation, the power of different access Internet resources is configured with to different IP address sections Limit.
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:
If the configuration-direct based on hotspot determines that the SSID quantity of the hotspot of same WiFi module is more than 1, obtain Take the MAC Address of the WiFi module;
The BSSID of hotspot is obtained based on the MAC Address, and with reference at least two obtained based on the configuration-direct The SSID and focus password of individual hotspot, generate the focus configuration information of each hotspot, and are stored in focus configuration text In part;
The IP address section of each hotspot is determined based on the focus configuration information, and is stored in DHCP configuration files In;
Hotspot service and DHCP service are respectively started according to the focus configuration file and the DHCP configuration files, The hotspot service allows to connect equipment utilization and the corresponding hotspot of focus password connection corresponding to each SSID.
Accordingly, a kind of computer-readable storage medium of the embodiment of the present invention, have program stored therein in the storage medium instruction, institute Stating programmed instruction includes:
If the configuration-direct based on hotspot determines that the SSID quantity of the hotspot of same WiFi module is more than 1, obtain Take the MAC Address of the WiFi module;
The BSSID of hotspot is obtained based on the MAC Address, and with reference at least two obtained based on the configuration-direct The SSID and focus password of individual hotspot, generate the focus configuration information of each hotspot, and are stored in focus configuration text In part;
The IP address section of each hotspot is determined based on the focus configuration information, and is stored in DHCP configuration files In;
Hotspot service and DHCP service are respectively started according to the focus configuration file and the DHCP configuration files, The hotspot service allows to connect equipment utilization and the corresponding hotspot of focus password connection corresponding to each SSID.
The present invention can use the storage medium for wherein including program code in one or more (to include but is not limited to disk 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 stores 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-biography 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, which are shown in, in said apparatus corresponds to step in the above method 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, can be as the part that module is shown 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 Need to select some or all of module therein 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 applied 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, it 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, to be of the invention according to an exemplary implementation A kind of hardware structure diagram of a kind of hotspot connection place electronic equipment of control device 432 exemplified, except shown in Fig. 4 Outside processor 410, internal memory 430, network interface 420 and nonvolatile memory 440, in embodiment where device 432 Electronic equipment can also include other hardware, this is repeated no more generally according to the actual functional capability of the electronic equipment.
Those skilled in the art will readily occur to the present invention its 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 knowledges 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 any modification, equivalent substitution and improvements done etc., should be included within the scope of protection of the invention with principle.

Claims (10)

1. a kind of hotspot connects control method, it is characterised in that methods described includes:
If the configuration-direct based on hotspot determines that the SSID quantity of the hotspot of same WiFi module is more than 1, institute is obtained State the MAC Address of WiFi module;
The BSSID of hotspot is obtained based on the MAC Address, and with reference at least two nothings obtained based on the configuration-direct The SSID and focus password of line focus, generate the focus configuration information of each hotspot, and are stored in focus configuration file;
The IP address section of each hotspot is determined based on the focus configuration information, and is stored in DHCP configuration files;
Hotspot service and DHCP service are respectively started according to the focus configuration file and the DHCP configuration files, it is described Hotspot service allows to connect equipment utilization and the corresponding hotspot of focus password connection corresponding to each SSID.
2. according to the method for claim 1, it is characterised in that be pre-configured with the heat for setting at least two hotspot Point sets interface, and the configuration-direct based on hotspot determines that the SSID quantity of the hotspot of same WiFi module is more than 1, including:
If it is not sky that the focus, which sets at least two SSID input controls in interface, it is determined that same WiFi module it is wireless The SSID quantity of focus is more than 1, and the SSID input controls are the controls for inputting SSID.
3. according to the method for claim 1, it is characterised in that described that hotspot is obtained based on the MAC Address BSSID, including:
The MAC Address is converted to the MAC Address of specified format, the MAC Address of the specified format meets:Hotspot takes Be engaged in BSSID that MAC Address based on specified format obtains it is expansible go out different BSSID;
The MAC Address of the WiFi module is reset using the MAC Address after conversion, and the MAC Address based on replacement obtains wherein BSSID corresponding to one SSID, so that BSSID of the hotspot service based on acquisition expands BSSID corresponding to other SSID.
4. according to the method for claim 2, it is characterised in that the focus set interface include one specify it is original SSID and at least one extension SSID, methods described also include:
If the focus, which is set, extends focus password corresponding to SSID for focus password corresponding to empty and original SSID not in interface For sky, then using focus password corresponding to original SSID as focus password corresponding to extension SSID.
5. according to the method described in any one of Claims 1-4, it is characterised in that different IP address sections is configured with different Access the authority of Internet resources.
6. a kind of hotspot connects control device, it is characterised in that described device includes:
Address acquisition module, if determining the SSID of the hotspot of same WiFi module for the configuration-direct based on hotspot Quantity is more than 1, obtains the MAC Address of the WiFi module;
First information memory module, for obtaining the BSSID of hotspot based on the MAC Address, and match somebody with somebody with reference to based on described The SSID and focus password at least two hotspot that instruction obtains are put, generates the focus configuration information of each hotspot, And it is stored in focus configuration file;
Second information storage module, for determining the IP address section of each hotspot based on the focus configuration information, and deposit Storage is in DHCP configuration files;
Starting module is serviced, for hotspot clothes to be respectively started according to the focus configuration file and the DHCP configuration files Business and DHCP service, the hotspot service, which allows to connect equipment utilization focus password corresponding with each SSID, connects phase The hotspot answered.
7. device according to claim 6, it is characterised in that be pre-configured with the heat for setting at least two hotspot Point sets interface, the address acquisition module, is specifically used for:
If it is not sky that the focus, which sets at least two SSID input controls in interface, it is determined that same WiFi module it is wireless The SSID quantity of focus is more than 1, and the SSID input controls are the controls for inputting SSID.
8. device according to claim 6, it is characterised in that the first information memory module, be specifically used for:
The MAC Address is converted to the MAC Address of specified format, the MAC Address of the specified format meets:Hotspot takes Be engaged in BSSID that MAC Address based on specified format obtains it is expansible go out different BSSID;
The MAC Address of the WiFi module is reset using the MAC Address after conversion, and the MAC Address based on replacement obtains wherein BSSID corresponding to one SSID, so that BSSID of the hotspot service based on acquisition expands BSSID corresponding to other SSID.
9. a kind of electronic equipment, it is characterised in that including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
If the configuration-direct based on hotspot determines that the SSID quantity of the hotspot of same WiFi module is more than 1, institute is obtained State the MAC Address of WiFi module;
The BSSID of hotspot is obtained based on the MAC Address, and with reference at least two nothings obtained based on the configuration-direct The SSID and focus password of line focus, generate the focus configuration information of each hotspot, and are stored in focus configuration file;
The IP address section of each hotspot is determined based on the focus configuration information, and is stored in DHCP configuration files;
Hotspot service and DHCP service are respectively started according to the focus configuration file and the DHCP configuration files, it is described Hotspot service allows to connect equipment utilization and the corresponding hotspot of focus password connection corresponding to each SSID.
10. a kind of computer-readable storage medium, it is characterised in that have program stored therein instruction in the storage medium, and described program refers to Order includes:
If the configuration-direct based on hotspot determines that the SSID quantity of the hotspot of same WiFi module is more than 1, institute is obtained State the MAC Address of WiFi module;
The BSSID of hotspot is obtained based on the MAC Address, and with reference at least two nothings obtained based on the configuration-direct The SSID and focus password of line focus, generate the focus configuration information of each hotspot, and are stored in focus configuration file;
The IP address section of each hotspot is determined based on the focus configuration information, and is stored in DHCP configuration files;
Hotspot service and DHCP service are respectively started according to the focus configuration file and the DHCP configuration files, it is described Hotspot service allows to connect equipment utilization and the corresponding hotspot of focus password connection corresponding to each SSID.
CN201710551694.1A 2017-07-07 2017-07-07 Wireless hotspot connection control method, device and equipment and computer storage medium Active CN107396358B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710551694.1A CN107396358B (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
CN201710551694.1A CN107396358B (en) 2017-07-07 2017-07-07 Wireless hotspot connection control method, device and equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN107396358A true CN107396358A (en) 2017-11-24
CN107396358B CN107396358B (en) 2020-07-07

Family

ID=60335478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710551694.1A Active CN107396358B (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) CN107396358B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587665A (en) * 2018-11-20 2019-04-05 陕西师范大学 The WiFi network-building method and device of no SSID broadcast
CN111246454A (en) * 2018-11-29 2020-06-05 千寻位置网络有限公司 Internet access method and device for iOS device, iOS device and interaction system
CN111328116A (en) * 2020-01-20 2020-06-23 广州华欣电子科技有限公司 Control method and system for dual-mode coexistence of wireless equipment and wireless equipment
CN112688811A (en) * 2020-12-22 2021-04-20 北京天融信网络安全技术有限公司 Wireless local area network management method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160254941A1 (en) * 2013-10-09 2016-09-01 Beijing Qihoo Technology Company Limited Apparatus And Method For Managing Network Access Device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160254941A1 (en) * 2013-10-09 2016-09-01 Beijing Qihoo Technology Company Limited Apparatus And Method For Managing Network Access Device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YKZDLXX: "《华为企业互动社区》", 24 August 2015 *
行YUTIAN空: "《CSDN-专业IT技术社区》", 26 August 2016 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587665A (en) * 2018-11-20 2019-04-05 陕西师范大学 The WiFi network-building method and device of no SSID broadcast
CN109587665B (en) * 2018-11-20 2023-06-06 陕西师范大学 WiFi networking method and device without SSID broadcasting
CN111246454A (en) * 2018-11-29 2020-06-05 千寻位置网络有限公司 Internet access method and device for iOS device, iOS device and interaction system
CN111328116A (en) * 2020-01-20 2020-06-23 广州华欣电子科技有限公司 Control method and system for dual-mode coexistence of wireless equipment and wireless equipment
CN112688811A (en) * 2020-12-22 2021-04-20 北京天融信网络安全技术有限公司 Wireless local area network management method, device, equipment and storage medium
CN112688811B (en) * 2020-12-22 2023-03-24 北京天融信网络安全技术有限公司 Wireless local area network management method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN107396358B (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN107396358A (en) Hotspot connection control method, device, equipment and computer-readable storage medium
US9401842B2 (en) Method and device for configuring terminal devices
CN104126330B (en) Method and apparatus for emulating multinomial order
CN112399412B (en) Session establishment method and device, and communication system
US7477632B1 (en) Subscriber management and service profiles
CN107736047A (en) Safe Architecture For eNet for honeycomb Internet of Things
CN109068346A (en) A kind of method and device configuring WiFi parameter
CN103841626A (en) Internet of Things wireless terminal, configuration method thereof and mobile terminal
CN104937887A (en) Methods and devices for replacing and configuring router in network
CN111356207A (en) Service slice selection method and device
CN101138204A (en) Upnp vpn gateway configuration service
CN105451300B (en) A kind of method for connecting network and mobile device
CN102209324A (en) Mobile terminal and method for accessing mobile terminal into wireless local area network (WLAN) hotspot
US20220394599A1 (en) Dynamic roaming partner prioritization based on service quality feedback
CN108401037A (en) User terminal and the binding method of equipment, device and system
CN103812653B (en) Automatically obtain the method and system of wireless network access account information
CN107889194B (en) Obtain, provide method, equipment and the medium of wireless access point access information
US11627011B1 (en) Smart device network provisioning
CN107182054A (en) Hotspot connection control method, device, equipment and computer-readable storage medium
CN105916144A (en) Techniques for dynamically supporting different authentication algorithms
CN106535357A (en) Method and system for configuring wifi parameters
CN109818769A (en) The method and apparatus for sending information
CN103326959A (en) Switching application method and switching application system of multiple network modes, and cloud storage system
US11646946B2 (en) Generating and utilizing templates and logical paths to deploy network equipment
CN107113615A (en) A kind of authentication method, system and relevant device to access point AP

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: 20200319

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

Applicant after: GUANGZHOU SHIYUAN ELECTRONICS Co.,Ltd.

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

Applicant before: GUANGZHOU SHIYUAN ELECTRONICS Co.,Ltd.

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

GR01 Patent grant
GR01 Patent grant