CN115580912A - Whole-house intelligent equipment WiFi connection management method, system and storage medium - Google Patents

Whole-house intelligent equipment WiFi connection management method, system and storage medium Download PDF

Info

Publication number
CN115580912A
CN115580912A CN202211563469.7A CN202211563469A CN115580912A CN 115580912 A CN115580912 A CN 115580912A CN 202211563469 A CN202211563469 A CN 202211563469A CN 115580912 A CN115580912 A CN 115580912A
Authority
CN
China
Prior art keywords
information
equipment
intelligent equipment
wifi
connection
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
CN202211563469.7A
Other languages
Chinese (zh)
Other versions
CN115580912B (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.)
Shenzhen SDMC Technology Co Ltd
Original Assignee
Shenzhen SDMC Technology 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 SDMC Technology Co Ltd filed Critical Shenzhen SDMC Technology Co Ltd
Priority to CN202211563469.7A priority Critical patent/CN115580912B/en
Publication of CN115580912A publication Critical patent/CN115580912A/en
Application granted granted Critical
Publication of CN115580912B publication Critical patent/CN115580912B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a WiFi connection management method, a WiFi connection management system and a storage medium for whole-house intelligent equipment, wherein the method comprises the following steps: acquiring intelligent equipment information; based on a first preset protocol, connecting the intelligent equipment with any gateway equipment; reporting the intelligent equipment information to all gateway equipment based on a first preset frame; obtaining historical WiFi information of connection, comparing and analyzing the historical WiFi information of connection with current WiFi connection information to determine appointed WiFi information of current intelligent equipment, and disconnecting the current WiFi from the intelligent equipment and connecting the intelligent equipment to the appointed WiFi. In the WiFi connection management of the intelligent equipment, even if WiFi information of all gateway equipment is different, the intelligent equipment can be connected with any gateway equipment in an insensible manner. In addition, when the intelligent device is disconnected due to the problems of connection quality, information change and the like, the intelligent device can be reconnected with any gateway device without external operation.

Description

Whole-house intelligent equipment WiFi connection management method, system and storage medium
Technical Field
The invention relates to the technical field of smart home, in particular to a WiFi connection management method, a WiFi connection management system and a storage medium for full-house smart equipment.
Background
In recent years, with the development of whole-house intelligence, more and more internet of things and intelligent household equipment provide simple and intelligent life style for modern life. However, when WiFi information of one of the gateway devices is changed, the smart device may be disconnected from the WiFi; when the position of the intelligent gateway equipment changes, the intelligent gateway equipment can not be connected with the old gateway equipment any more, and needs to be connected with other gateway equipment according to the current environmental information; when one of the gateway devices is connected with too many devices and the load is too heavy, performance is reduced or connection is unstable, and adjustment needs to be made in time according to information such as connection load and connection quality of each gateway device to find optimal connection.
Accordingly, there are deficiencies in the art and improvements are needed.
Disclosure of Invention
In view of the foregoing problems, it is an object of the present invention to provide a WiFi connection management method, system and storage medium for a whole-house smart device, which can provide a stable and high-quality WiFi connection for the whole-house smart device.
The invention provides a WiFi connection management method for whole-house intelligent equipment in a first aspect, which comprises the following steps:
acquiring intelligent equipment information;
based on a first preset protocol, connecting the intelligent equipment with any gateway equipment;
reporting the intelligent equipment information to all gateway equipment based on the first preset frame;
the WiFi information of the historical connection is acquired,
comparing and analyzing historical connected WiFi information and current WiFi connection information to determine appointed WiFi information of current intelligent equipment;
disconnecting the current WiFi of the intelligent equipment and connecting the intelligent equipment to the designated WiFi.
In this scheme, still include:
acquiring successful information of gateway equipment connecting with intelligent equipment;
updating an intelligent device connection information table corresponding to the gateway device;
and based on the two-layer connection, sending the connection information of the intelligent equipment to all gateway equipment and storing the connection information.
In this scheme, still include:
acquiring WiFi information change information of gateway equipment;
obtaining Beacon frame information in a monitoring environment within a preset first time;
acquiring BSSID information according to Beacon frame information in a monitoring environment within preset time;
judging whether the BSSID information hits WiFi information connected for the last time, if so, reconnecting WiFi when the SSID of the intelligent equipment is changed; if not, the intelligent equipment issues the intelligent equipment loop connection message on each channel in an action broadcasting mode.
In this scheme, still include:
acquiring loop connection message information of the intelligent equipment;
obtaining data information of the intelligent equipment according to the connection message information of the intelligent equipment;
judging whether the intelligent equipment is in the range of an intelligent equipment information table or not, if so, updating WiFi information corresponding to the intelligent equipment and trying to reconnect; if not, setting the corresponding intelligent equipment as unknown intelligent equipment.
In this scheme, still include:
acquiring intelligent equipment connection information reported by slave equipment within a preset second time period;
obtaining connection quality information of the intelligent equipment connected with all gateway equipment according to the intelligent equipment connection information reported from the equipment within a preset second time period;
arranging the connection quality of the intelligent equipment connected with all gateway equipment according to the sequence of the quality from high to low;
and connecting the intelligent equipment with the gateway equipment with the highest connection quality.
In this scheme, the connection quality information that all gateway devices are connected to the smart device specifically is:
acquiring factor information influencing the quality of intelligent equipment connected with a gateway device;
will be described inThe set of factors influencing the quality of the intelligent equipment connecting gateway equipment is set as
Figure DEST_PATH_IMAGE001
Dividing the factors from weak to strong according to the quality of the intelligent equipment connected with the gateway equipment to obtain a plurality of grades n;
obtaining the connection quality grade Q of the intelligent equipment connection gateway equipment according to the factors influencing the quality of the intelligent equipment connection gateway equipment and the corresponding factor grade, wherein the formula is as follows:
Figure 899727DEST_PATH_IMAGE002
and is provided with
Figure DEST_PATH_IMAGE003
Wherein m is the total number of factors influencing the quality of the intelligent equipment connected with the gateway equipment,
Figure 775410DEST_PATH_IMAGE004
Figure DEST_PATH_IMAGE005
Figure 853087DEST_PATH_IMAGE006
the level corresponding to the factor X is represented,
Figure DEST_PATH_IMAGE007
(ii) a When in use
Figure 167525DEST_PATH_IMAGE008
When the utility model is used, the water is discharged,
Figure DEST_PATH_IMAGE009
a second aspect of the present invention provides a whole-house intelligent device WiFi connection management system, which is characterized by including a memory and a processor, where the memory stores a whole-house intelligent device WiFi connection management method program, and when the whole-house intelligent device WiFi connection management method program is executed by the processor, the following steps are implemented:
acquiring intelligent equipment information;
based on a first preset protocol, connecting the intelligent equipment with any gateway equipment;
reporting the intelligent equipment information to all gateway equipment based on the first preset frame;
the WiFi information of the historical connection is acquired,
comparing and analyzing historical connected WiFi information and current WiFi connection information to determine appointed WiFi information of current intelligent equipment;
disconnecting the current WiFi of the intelligent equipment and connecting the intelligent equipment to the designated WiFi.
In this scheme, still include:
acquiring successful information of gateway equipment connecting with intelligent equipment;
updating an intelligent device connection information table corresponding to the gateway device;
and based on the two-layer connection, the connection information of the intelligent equipment is sent to all gateway equipment and stored.
In this scheme, still include:
acquiring WiFi information change information of gateway equipment;
obtaining Beacon frame information in a monitoring environment within a preset first time;
acquiring BSSID information according to Beacon frame information in a monitoring environment within preset time;
judging whether the BSSID information hits WiFi information connected for the last time, if so, reconnecting WiFi when the SSID of the intelligent equipment is changed; if not, the intelligent equipment issues the intelligent equipment loop connection message on each channel in an action broadcasting mode.
In this scheme, still include:
acquiring loop connection message information of the intelligent equipment;
obtaining data information of the intelligent equipment according to the message information of the intelligent equipment;
judging whether the intelligent equipment is in the range of an intelligent equipment information table or not, if so, updating WiFi information corresponding to the intelligent equipment and trying to reconnect; if not, setting the corresponding intelligent equipment as unknown intelligent equipment.
In this scheme, still include:
acquiring intelligent equipment connection information reported by slave equipment within a preset second time period;
obtaining connection quality information of the intelligent equipment connected with all gateway equipment according to the intelligent equipment connection information reported from the equipment within a preset second time period;
arranging the connection quality of the intelligent equipment connected with all gateway equipment according to the sequence of the quality from high to low;
and connecting the intelligent equipment with the gateway equipment with the highest connection quality.
In this scheme, the connection quality information that all gateway devices are connected to the smart device specifically is:
acquiring factor information influencing the quality of intelligent equipment connected with a gateway device;
setting the factor set influencing the quality of the intelligent equipment connection gateway equipment as
Figure 522414DEST_PATH_IMAGE001
Dividing the factors from weak to strong according to the quality of the intelligent equipment connected with the gateway equipment to obtain a plurality of grades n;
obtaining the connection quality grade Q of the intelligent equipment connection gateway equipment according to the factors influencing the quality of the intelligent equipment connection gateway equipment and the corresponding factor grade, wherein the formula is as follows:
Figure 755950DEST_PATH_IMAGE002
and is provided with
Figure 789765DEST_PATH_IMAGE003
Wherein m is the total number of factors influencing the quality of the intelligent equipment connected with the gateway equipment,
Figure 439052DEST_PATH_IMAGE004
Figure 710764DEST_PATH_IMAGE005
Figure 787305DEST_PATH_IMAGE006
the level corresponding to the factor X is represented,
Figure 573995DEST_PATH_IMAGE007
(ii) a When in use
Figure 89290DEST_PATH_IMAGE008
When the temperature of the water is higher than the set temperature,
Figure 12247DEST_PATH_IMAGE009
a third aspect of the present invention provides a computer storage medium, where a whole-house intelligent device WiFi connection management method program is stored in the computer storage medium, and when the whole-house intelligent device WiFi connection management method program is executed by a processor, the steps of the whole-house intelligent device WiFi connection management method described in any one of the above are implemented.
According to the WiFi connection management method, the WiFi connection management system and the WiFi connection management storage medium for the whole-house intelligent equipment, even if WiFi information of all gateway equipment is different, the intelligent equipment can be connected with any gateway equipment in an insensible manner. In addition, when the intelligent device is disconnected from the gateway device due to the problems of connection quality, wiFi information change of the gateway device and the like, the intelligent device can be reconnected with any gateway device without any external operation condition.
Drawings
FIG. 1 is a flow chart illustrating a WiFi connection management method for a whole-house smart device according to the present invention;
FIG. 2 shows a single home smart device topology;
fig. 3 shows a block diagram of a WiFi connection management system for a whole-house smart device of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention, taken in conjunction with the accompanying drawings and detailed description, is set forth below. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced otherwise than as specifically described herein and, therefore, the scope of the present invention is not limited by the specific embodiments disclosed below.
Fig. 1 shows a flowchart of a WiFi connection management method for a whole-house smart device according to the present invention.
As shown in fig. 1, the invention discloses a WiFi connection management method for a whole-house intelligent device, comprising:
s102, acquiring intelligent equipment information;
s104, based on a first preset protocol, connecting the intelligent equipment with any gateway equipment;
s106, reporting the intelligent equipment information to all gateway equipment based on the first preset frame;
s108, obtaining the WiFi information of the historical connection,
s110, comparing and analyzing historical WiFi information and current WiFi connection information to determine appointed WiFi information of current intelligent equipment;
and S112, disconnecting the current WiFi from the intelligent equipment and connecting the intelligent equipment to the designated WiFi.
It should be noted that, a Router at a subscriber end is connected to a modem device at an upper level, serves as a master control device in a gateway topology, serves as an information processing center, and is connected to a gateway routing device downward through various combined connection modes such as Mesh connection, relay connection, wired connection, mesh + relay/wired connection, and the like, hereinafter referred to as a device for short, to form a gateway device topology, and after connection is successful, the master control device broadcasts a discovery message through two layers of original sockets, and when the master control device receives the discovery message, the master control device mainly issues two messages. One is as follows: the unicast master device finds a response message to the slave device, and the message needs to be filled with the latest intelligent device connection information list (to prepare for subsequent intelligent device connection). The second step is as follows: and updating the message of the gateway topology information unicast to all the gateway devices, wherein the message needs to contain the MAC information of all the gateway devices. The slave device receives the main control device discovery response message to form a stable two-layer connection with the main control device, and the slave device needs to report the current gateway device channel quality information and device connection quality (such as RSSI, rate, etc.) to the main control device. The first preset protocol is a manufacturer-defined protocol, and the first preset frame is an action frame. The intelligent equipment is bound with any gateway equipment through one key of a manufacturer-defined protocol, after the connection is successful, the intelligent equipment information is reported to the corresponding gateway equipment through action frames, and the message is filled with identification information such as mac information, oui information and the like of the intelligent gateway equipment; and the corresponding gateway equipment timely issues intelligent equipment information (identification information such as MAC (media access control), manufacturer OUI (OUI) and the like) to all gateway equipment, records current WiFi (wireless fidelity) connection information, and updates and maintains WiFi information of last connection, including BSSID (basic service set identifier), authentication mode, SSID (service set identifier), password and the like. The historical WiFi information is the connection information of all intelligent equipment and gateway equipment before the current intelligent equipment, the connection information comprises the connection quality information of the intelligent equipment and the gateway equipment, the historical WiFi information and the current WiFi connection information are compared and analyzed to obtain the WiFi with the best connection quality of the current intelligent equipment and the gateway equipment, and the WiFi is set as the designated WiFi; and disconnecting the current WiFi from the intelligent equipment and connecting the intelligent equipment to the specified WiFi.
According to the embodiment of the invention, the method further comprises the following steps:
acquiring successful information of gateway equipment connecting with intelligent equipment;
updating an intelligent device connection information table corresponding to the gateway device;
and based on the two-layer connection, the connection information of the intelligent equipment is sent to all gateway equipment and stored.
It should be noted that, after discovering that the intelligent device is connected, the gateway device needs to update its own intelligent device connection information list, and meanwhile unicasts an intelligent device information list update message to all gateway devices through two-layer connection.
According to the embodiment of the invention, the method further comprises the following steps:
acquiring WiFi information change information of gateway equipment;
obtaining Beacon frame information in a monitoring environment within a preset first time;
acquiring BSSID information according to Beacon frame information in a monitoring environment within preset time;
judging whether the BSSID information hits WiFi information connected last time, if yes, reconnecting WiFi on the condition that SSID is changed by the intelligent equipment; if not, the intelligent equipment issues the intelligent equipment loop connection message on each channel in an action broadcasting mode.
It should be noted that, when WiFi information of any one gateway device changes, the smart device senses that WiFi is disconnected. If the preset first time is set as one minute, monitoring a Beacon frame in the environment within one minute, and if BSSID information hits WiFi information connected for the last time, trying to reconnect WiFi by the intelligent equipment under the condition that only SSID is changed; and if the intelligent equipment fails to be connected with the WiFi, issuing an intelligent equipment return connection message in each channel in 10 minutes in an action broadcast mode.
According to the embodiment of the invention, the method further comprises the following steps:
acquiring loop connection message information of the intelligent equipment;
obtaining data information of the intelligent equipment according to the connection message information of the intelligent equipment;
judging whether the intelligent equipment is in the range of an intelligent equipment information table or not, if so, updating WiFi information corresponding to the intelligent equipment and trying to reconnect; if not, setting the corresponding intelligent equipment as unknown intelligent equipment.
It should be noted that the intelligent gateway device monitors the smart device connection back message of the current channel at any time, after parsing, compares whether the smart device is on the smart device information list, if yes, unicasts the encrypted WiFi information to the smart device through action, the smart device tries to reconnect according to the updated WiFi information, and after the connection is successful, renews the WiFi connection information again. And if the intelligent equipment does not exist, setting the corresponding intelligent equipment as unknown intelligent equipment, and reconnecting the intelligent equipment according to the new equipment.
According to the embodiment of the invention, the method further comprises the following steps:
acquiring intelligent equipment connection information reported by slave equipment within a preset second time period;
obtaining connection quality information of the intelligent equipment connected with all gateway equipment according to the intelligent equipment connection information reported from the equipment within a preset second time period;
arranging the connection quality of the intelligent equipment connected with all gateway equipment according to the sequence of the quality from high to low;
and connecting the intelligent equipment with the gateway equipment with the highest connection quality.
If the preset second time period is set to one hour, it is stated that the slave device feeds back the connection information of the intelligent device to the master control device every other hour, and the master control device finds that if there is a better gateway device for the intelligent device to connect according to the connection quality information of the intelligent device reported by the slave device and according to the comparison calculation of the information such as rate, channel occupation condition, rsi, and the like, and switches the WiFi message to the gateway device through the two-layer channel unicast intelligent device, where the message includes the information of the intelligent device and switches the WiFi information of the current gateway device. Wherein: after receiving the WiFi switching message of the intelligent equipment, the gateway equipment unicasts the intelligent equipment to switch the WiFi message action message to the intelligent equipment, and then sends an 802.11deauth message to disconnect the current connection; after receiving the WiFi message switched by the intelligent equipment, the intelligent equipment tries to connect the target gateway equipment and updates WiFi connection information.
According to the embodiment of the present invention, the connection quality information of the intelligent device connected to all gateway devices specifically includes:
acquiring factor information influencing the quality of intelligent equipment connected with a gateway device;
setting the factor set influencing the quality of the intelligent equipment connection gateway equipment as
Figure 525268DEST_PATH_IMAGE001
Dividing the factors according to the quality of the intelligent equipment connected with the gateway equipment from weak to strong to obtain a plurality of grades n;
obtaining the connection quality of the intelligent equipment connection gateway equipment according to the factors influencing the quality of the intelligent equipment connection gateway equipment and the corresponding factor gradesGrade Q, which is formulated as:
Figure 736937DEST_PATH_IMAGE002
and is
Figure 993606DEST_PATH_IMAGE003
Wherein m is the total number of factors influencing the quality of the intelligent equipment connected with the gateway equipment,
Figure 771069DEST_PATH_IMAGE004
Figure 517309DEST_PATH_IMAGE005
Figure 13012DEST_PATH_IMAGE006
the level corresponding to the factor X is represented,
Figure 807793DEST_PATH_IMAGE007
(ii) a When in use
Figure 643025DEST_PATH_IMAGE008
When the temperature of the water is higher than the set temperature,
Figure 220550DEST_PATH_IMAGE009
it should be noted that, in the following description,
Figure 469129DEST_PATH_IMAGE010
the key grade of the quality of the intelligent equipment connection gateway equipment is shown to be influenced by the factor X, when the grade of the factor X is smaller than k, the explained factor X directly influences the normal connection of the corresponding intelligent equipment, and the connection quality grade of the intelligent equipment connection gateway equipment is obtained
Figure 129917DEST_PATH_IMAGE006
Minimum value of (1).
According to the embodiment of the invention, the method further comprises the following steps:
judging whether unconnected gateway equipment exists in the connection information of the intelligent equipment reported by the slave equipment based on the connection information of the intelligent equipment reported by the slave equipment within a preset second time period, and if so, marking the connected gateway equipment; if not, no marking is carried out;
and sending the marked gateway equipment to a preset terminal for displaying.
It should be noted that when there is gateway device information not connected to the smart device, it is indicated that there is a redundant gateway device or a faulty gateway device in the home smart device topology, and the gateway device is marked and displayed on a preset terminal for processing.
Fig. 2 shows a single home smart device topology.
As shown in fig. 2, in a single home smart device topology, a gateway device topology network and smart devices are formed. Gateway device topology: the home terminal is connected with the optical modems through one Router, is connected with a plurality of routers through various combined connection modes such as Mesh connection, relay connection, wired connection, mesh + relay/wired connection and the like, and is distributed in a home to form a gateway topology network, and each device in the gateway topology can provide WiFi for connection of intelligent devices. The intelligent equipment: there may be more than dozens of intelligent devices connected with any one device in the gateway topology, and the devices are interconnected to form a home intelligent device topology.
Fig. 3 shows a block diagram of a WiFi connection management system for a whole-house smart device of the present invention.
As shown in fig. 3, a second aspect of the present invention provides a whole-house smart device WiFi connection management system 3, including a memory 31 and a processor 32, where the memory stores a whole-house smart device WiFi connection management method program, and when the processor executes the whole-house smart device WiFi connection management method program, the following steps are implemented:
acquiring intelligent equipment information;
based on a first preset protocol, connecting the intelligent equipment with any gateway equipment;
reporting the intelligent equipment information to all gateway equipment based on the first preset frame;
the WiFi information of the historical connection is acquired,
comparing and analyzing historical connected WiFi information and current WiFi connection information to determine appointed WiFi information of current intelligent equipment;
disconnecting the current WiFi of the intelligent equipment and connecting the intelligent equipment to the designated WiFi.
It should be noted that, a Router at a subscriber end is connected to a modem device at an upper level, serves as a master control device in a gateway topology, serves as an information processing center, and is connected to a gateway routing device downward through various combined connection modes such as Mesh connection, relay connection, wired connection, mesh + relay/wired connection, and the like, hereinafter referred to as a device for short, to form a gateway device topology, and after connection is successful, the master control device broadcasts a discovery message through two layers of original sockets, and when the master control device receives the discovery message, the master control device mainly issues two messages. One is as follows: the unicast master device finds a response message to the slave device, and the message needs to be filled with the latest intelligent device connection information list (to prepare for subsequent intelligent device connection). The second step is as follows: and updating the message of the gateway topology information unicast to all the gateway devices, wherein the message needs to contain the MAC information of all the gateway devices. The slave device receives the main control device discovery response message to form a stable two-layer connection with the main control device, and the slave device needs to report the current gateway device channel quality information and device connection quality (such as RSSI, rate, etc.) to the main control device. The first preset protocol is a manufacturer-defined protocol, and the first preset frame is an action frame. The intelligent equipment is bound with any gateway equipment through one key of a manufacturer-defined protocol, after the connection is successful, the intelligent equipment information is reported to the corresponding gateway equipment through action frames, and the message is filled with identification information such as mac information, oui information and the like of the intelligent gateway equipment; and the corresponding gateway equipment timely issues intelligent equipment information (identification information such as MAC (media access control), manufacturer OUI (OUI) and the like) to all gateway equipment, records current WiFi (wireless fidelity) connection information, and updates and maintains WiFi information of last connection, including BSSID (basic service set identifier), authentication mode, SSID (service set identifier), password and the like. The historical WiFi information is the connection information of all intelligent equipment and gateway equipment before the current intelligent equipment, including the connection quality information of the previous intelligent equipment and the gateway equipment, the historical WiFi information and the current WiFi connection information are compared and analyzed to obtain the WiFi with the best connection quality of the current intelligent equipment and the gateway equipment, and the current WiFi is set as the designated WiFi; and disconnecting the current WiFi from the intelligent equipment and connecting the intelligent equipment to the designated WiFi.
According to the embodiment of the invention, the method further comprises the following steps:
acquiring successful information of gateway equipment connected with intelligent equipment;
updating an intelligent equipment connection information table corresponding to the gateway equipment;
and based on the two-layer connection, the connection information of the intelligent equipment is sent to all gateway equipment and stored.
It should be noted that, after discovering that the intelligent device is connected, the gateway device needs to update its own intelligent device connection information list, and meanwhile unicasts an intelligent device information list update message to all gateway devices through two-layer connection.
According to the embodiment of the invention, the method further comprises the following steps:
acquiring WiFi information change information of gateway equipment;
obtaining Beacon frame information in a monitoring environment within a preset first time;
acquiring BSSID information according to Beacon frame information in a monitoring environment within preset time;
judging whether the BSSID information hits WiFi information connected for the last time, if so, reconnecting WiFi when the SSID of the intelligent equipment is changed; if not, the intelligent equipment issues the intelligent equipment loop connection message on each channel in an action broadcasting mode.
It should be noted that, when WiFi information of any one gateway device changes, the smart device senses that WiFi is disconnected. If the preset first time is set as one minute, monitoring a Beacon frame in the environment within one minute, and if BSSID information hits WiFi information connected for the last time, the intelligent equipment tries to reconnect WiFi under the condition that only SSID is changed; and if the intelligent equipment fails to be connected with the WiFi, issuing an intelligent equipment loopback message on each channel in 10 minutes in an action broadcasting mode.
According to the embodiment of the invention, the method further comprises the following steps:
acquiring loop connection message information of the intelligent equipment;
obtaining data information of the intelligent equipment according to the connection message information of the intelligent equipment;
judging whether the intelligent equipment is in the range of an intelligent equipment information table or not, if so, updating WiFi information corresponding to the intelligent equipment and trying to reconnect; if not, setting the corresponding intelligent equipment as unknown intelligent equipment.
It should be noted that the intelligent gateway device monitors the smart device connection back message of the current channel at any time, after parsing, compares whether the smart device is on the smart device information list, if yes, unicasts the encrypted WiFi information to the smart device through action, the smart device tries to reconnect according to the updated WiFi information, and after the connection is successful, renews the WiFi connection information again. And if the intelligent equipment does not exist, setting the corresponding intelligent equipment as unknown intelligent equipment, and reconnecting the intelligent equipment according to the new equipment.
According to the embodiment of the invention, the method further comprises the following steps:
acquiring intelligent equipment connection information reported by slave equipment within a preset second time period;
obtaining connection quality information of the intelligent equipment connected with all gateway equipment according to the intelligent equipment connection information reported from the equipment within a preset second time period;
arranging the connection quality of the intelligent equipment connected with all gateway equipment according to the sequence of the quality from high to low;
and connecting the intelligent equipment with the gateway equipment with the highest connection quality.
If the preset second time period is set to one hour, it is stated that the slave device feeds back the connection information of the intelligent device to the master control device every other hour, and the master control device finds that if there is a better gateway device for the intelligent device to connect according to the connection quality information of the intelligent device reported by the slave device and according to the comparison calculation of the information such as rate, channel occupation condition, rsi, and the like, and switches the WiFi message to the gateway device through the two-layer channel unicast intelligent device, where the message includes the information of the intelligent device and switches the WiFi information of the current gateway device. Wherein: after receiving the WiFi switching message of the intelligent equipment, the gateway equipment unicasts the intelligent equipment to switch the WiFi message action message to the intelligent equipment, and then sends an 802.11deauth message to disconnect the current connection; after receiving the WiFi message switched by the intelligent equipment, the intelligent equipment tries to connect the target gateway equipment and updates WiFi connection information.
According to the embodiment of the present invention, the connection quality information of the intelligent device connected to all gateway devices specifically includes:
acquiring factor information influencing the quality of intelligent equipment connected with a gateway device;
setting the factor set influencing the quality of the intelligent equipment connection gateway equipment as
Figure 881973DEST_PATH_IMAGE001
Dividing the factors from weak to strong according to the quality of the intelligent equipment connected with the gateway equipment to obtain a plurality of grades n;
obtaining the connection quality grade Q of the intelligent equipment connection gateway equipment according to the factors influencing the quality of the intelligent equipment connection gateway equipment and the corresponding factor grade, wherein the formula is as follows:
Figure 110960DEST_PATH_IMAGE002
and is
Figure 315676DEST_PATH_IMAGE003
Wherein m is the total number of factors influencing the quality of the intelligent equipment connected with the gateway equipment,
Figure 452260DEST_PATH_IMAGE004
Figure 386717DEST_PATH_IMAGE005
Figure 848923DEST_PATH_IMAGE006
the grade corresponding to the factor X is represented,
Figure 478618DEST_PATH_IMAGE007
(ii) a When in use
Figure 418893DEST_PATH_IMAGE008
When the temperature of the water is higher than the set temperature,
Figure 145540DEST_PATH_IMAGE009
it should be noted that, in the following description,
Figure 247488DEST_PATH_IMAGE010
the key grade of the quality of the intelligent equipment connection gateway equipment is shown to be influenced by the factor X, when the grade of the factor X is smaller than k, the explained factor X directly influences the normal connection of the corresponding intelligent equipment, and the connection quality grade of the intelligent equipment connection gateway equipment is obtained
Figure 754693DEST_PATH_IMAGE006
Minimum value of (1).
According to the embodiment of the invention, the method further comprises the following steps:
judging whether unconnected gateway equipment exists in the connection information of the intelligent equipment reported by the slave equipment based on the connection information of the intelligent equipment reported by the slave equipment within a preset second time period, and if so, marking the connected gateway equipment; if not, no marking is carried out;
and sending the marked gateway equipment to a preset terminal for displaying.
It should be noted that when there is gateway device information not connected to the smart device, it is indicated that there is a redundant gateway device or a faulty gateway device in the home smart device topology, and the gateway device is marked and displayed on a preset terminal for processing.
A third aspect of the present invention provides a computer storage medium, where a whole-house intelligent device WiFi connection management method program is stored in the computer storage medium, and when the whole-house intelligent device WiFi connection management method program is executed by a processor, the steps of the whole-house intelligent device WiFi connection management method described in any one of the above are implemented.
The invention discloses a WiFi connection management method, a WiFi connection management system and a storage medium for whole-house intelligent equipment, wherein the method comprises the following steps: acquiring intelligent equipment information; based on a first preset protocol, connecting the intelligent equipment with any gateway equipment; reporting the intelligent equipment information to all gateway equipment based on a first preset frame; obtaining historical WiFi information of connection, comparing and analyzing the historical WiFi information of connection with current WiFi connection information to determine appointed WiFi information of current intelligent equipment, and disconnecting the current WiFi from the intelligent equipment and connecting the intelligent equipment to the appointed WiFi. In the WiFi connection management of the intelligent equipment, even if WiFi information of all gateway equipment is different, the intelligent equipment can be connected with any gateway equipment in an insensible manner. In addition, when the intelligent device is disconnected from the gateway device due to the problems of connection quality, wiFi information change of the gateway device and the like, the intelligent device can be reconnected with any gateway device without any external operation condition.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.

Claims (10)

1. A WiFi connection management method for full-house intelligent equipment is characterized by comprising the following steps:
acquiring intelligent equipment information;
based on a first preset protocol, connecting the intelligent equipment with any gateway equipment;
reporting the intelligent equipment information to all gateway equipment based on a first preset frame;
the WiFi information of the historical connections is obtained,
comparing and analyzing historical connected WiFi information and current WiFi connection information to determine appointed WiFi information of current intelligent equipment;
disconnecting the current WiFi of the intelligent equipment and connecting the intelligent equipment to the designated WiFi.
2. The WiFi connection management method for whole house intelligent device according to claim 1, further comprising:
acquiring successful information of gateway equipment connecting with intelligent equipment;
updating an intelligent equipment connection information table corresponding to the gateway equipment;
and based on the two-layer connection, the connection information of the intelligent equipment is sent to all gateway equipment and stored.
3. The WiFi connection management method for whole house intelligent device according to claim 1, further comprising:
acquiring WiFi information change information of gateway equipment;
obtaining Beacon frame information in a monitoring environment within a preset first time;
acquiring BSSID information according to Beacon frame information in a monitoring environment within preset time;
judging whether the BSSID information hits WiFi information connected last time, if yes, reconnecting WiFi on the condition that SSID is changed by the intelligent equipment; if not, the intelligent equipment issues the intelligent equipment loop connection message on each channel in an action broadcasting mode.
4. The WiFi connection management method for the whole-house intelligent equipment according to claim 2 or 3, further comprising:
acquiring loop connection message information of the intelligent equipment;
obtaining data information of the intelligent equipment according to the connection message information of the intelligent equipment;
judging whether the intelligent equipment is in the range of an intelligent equipment information table or not, if so, updating WiFi information corresponding to the intelligent equipment and trying to reconnect; if not, setting the corresponding intelligent equipment as unknown intelligent equipment.
5. The WiFi connection management method for whole house intelligent device according to claim 1, further comprising:
acquiring intelligent equipment connection information reported by slave equipment within a preset second time period;
obtaining connection quality information of the intelligent equipment connected with all gateway equipment according to the intelligent equipment connection information reported by the slave equipment within a preset second time period;
arranging the connection quality of the intelligent equipment connected with all gateway equipment according to the sequence of the quality from high to low;
and connecting the intelligent equipment with the gateway equipment with the highest connection quality.
6. The WiFi connection management method for the whole-house intelligent equipment according to claim 5, wherein the connection quality information of the intelligent equipment connected with all gateway equipment specifically comprises:
acquiring factor information influencing the quality of intelligent equipment connected with a gateway device;
setting the factor set influencing the quality of the intelligent equipment connection gateway equipment as
Figure 322573DEST_PATH_IMAGE001
Dividing the factors from weak to strong according to the quality of the intelligent equipment connected with the gateway equipment to obtain a plurality of grades n;
obtaining the connection quality grade Q of the intelligent equipment connection gateway equipment according to the factors influencing the quality of the intelligent equipment connection gateway equipment and the corresponding factor grade, wherein the formula is as follows:
Figure 441839DEST_PATH_IMAGE002
and is
Figure 100353DEST_PATH_IMAGE003
Where m is affecting smart device connectionsThe total number of factors that contribute to the quality of the gateway device,
Figure 129403DEST_PATH_IMAGE004
Figure 898776DEST_PATH_IMAGE005
Figure 872548DEST_PATH_IMAGE006
the level corresponding to the factor X is represented,
Figure 764280DEST_PATH_IMAGE007
(ii) a When the temperature is higher than the set temperature
Figure 354662DEST_PATH_IMAGE008
When the temperature of the water is higher than the set temperature,
Figure 599829DEST_PATH_IMAGE009
7. a whole-house intelligent device WiFi connection management system is characterized by comprising a memory and a processor, wherein a whole-house intelligent device WiFi connection management method program is stored in the memory, and when being executed by the processor, the whole-house intelligent device WiFi connection management method program realizes the following steps:
acquiring intelligent equipment information;
based on a first preset protocol, connecting the intelligent equipment with any gateway equipment;
reporting the intelligent equipment information to all gateway equipment based on the first preset frame;
the WiFi information of the historical connection is acquired,
comparing and analyzing historical connected WiFi information and current WiFi connection information to determine appointed WiFi information of current intelligent equipment;
disconnecting the current WiFi of the intelligent equipment and connecting the intelligent equipment to the designated WiFi.
8. The WiFi connection management system for whole house smart device of claim 7, further comprising:
acquiring successful information of gateway equipment connecting with intelligent equipment;
updating an intelligent equipment connection information table corresponding to the gateway equipment;
and based on the two-layer connection, the connection information of the intelligent equipment is sent to all gateway equipment and stored.
9. The WiFi connection management system of a whole house smart device of claim 7, further comprising:
acquiring WiFi information change information of gateway equipment;
obtaining Beacon frame information in a monitoring environment within a preset first time;
acquiring BSSID information according to Beacon frame information in a monitoring environment within preset time;
judging whether the BSSID information hits WiFi information connected for the last time, if so, reconnecting WiFi when the SSID of the intelligent equipment is changed; if not, the intelligent equipment issues the intelligent equipment loop connection message on each channel in an action broadcasting mode.
10. A computer storage medium, in which a whole-house smart device WiFi connection management method program is stored, and when the whole-house smart device WiFi connection management method program is executed by a processor, the steps of a whole-house smart device WiFi connection management method according to any one of claims 1 to 6 are implemented.
CN202211563469.7A 2022-12-07 2022-12-07 Whole-house intelligent equipment WiFi connection management method, system and storage medium Active CN115580912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211563469.7A CN115580912B (en) 2022-12-07 2022-12-07 Whole-house intelligent equipment WiFi connection management method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211563469.7A CN115580912B (en) 2022-12-07 2022-12-07 Whole-house intelligent equipment WiFi connection management method, system and storage medium

Publications (2)

Publication Number Publication Date
CN115580912A true CN115580912A (en) 2023-01-06
CN115580912B CN115580912B (en) 2023-03-03

Family

ID=84590562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211563469.7A Active CN115580912B (en) 2022-12-07 2022-12-07 Whole-house intelligent equipment WiFi connection management method, system and storage medium

Country Status (1)

Country Link
CN (1) CN115580912B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116389181A (en) * 2023-04-03 2023-07-04 深圳市麦驰信息技术有限公司 Connection management method and system for full-house intelligent equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108551415A (en) * 2018-06-20 2018-09-18 深圳市彬讯科技有限公司 Intelligent domestic system, intelligent gateway and its control method
US20190306086A1 (en) * 2018-03-27 2019-10-03 Nicira, Inc. Incorporating layer 2 service between two interfaces of gateway device
CN112261708A (en) * 2020-12-18 2021-01-22 深圳市晶讯技术股份有限公司 System and method for automatically configuring WiFi equipment in batches
CN112511392A (en) * 2021-02-05 2021-03-16 深圳市晶讯技术股份有限公司 Intelligent home network Combo equipment gateway selection method and control system
US20220240136A1 (en) * 2018-02-17 2022-07-28 Comcast Cable Communications, Llc Uplink Selection For Handover

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220240136A1 (en) * 2018-02-17 2022-07-28 Comcast Cable Communications, Llc Uplink Selection For Handover
US20190306086A1 (en) * 2018-03-27 2019-10-03 Nicira, Inc. Incorporating layer 2 service between two interfaces of gateway device
CN108551415A (en) * 2018-06-20 2018-09-18 深圳市彬讯科技有限公司 Intelligent domestic system, intelligent gateway and its control method
CN112261708A (en) * 2020-12-18 2021-01-22 深圳市晶讯技术股份有限公司 System and method for automatically configuring WiFi equipment in batches
CN112511392A (en) * 2021-02-05 2021-03-16 深圳市晶讯技术股份有限公司 Intelligent home network Combo equipment gateway selection method and control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116389181A (en) * 2023-04-03 2023-07-04 深圳市麦驰信息技术有限公司 Connection management method and system for full-house intelligent equipment
CN116389181B (en) * 2023-04-03 2024-02-06 深圳市麦驰信息技术有限公司 Connection management method and system for full-house intelligent equipment

Also Published As

Publication number Publication date
CN115580912B (en) 2023-03-03

Similar Documents

Publication Publication Date Title
US9288114B2 (en) Apparatus and system for managing a sensor network
CN111741500B (en) Roaming method in multilink scene, multilink device and storage medium
CN105897860B (en) Network device and information processing method
US8837327B2 (en) Method and device for managing network topology structure of machine to machine network
CN108880899B (en) Network topological graph generation method and server
CN105357116B (en) A kind of method and intelligent terminal of multiple terminal access server
CN110621032B (en) Communication method, related device and equipment
US20090116448A1 (en) Apparatus and method of changing access point in wireless network system
KR100700085B1 (en) Selection of access point in a wireless communication system
WO2005122601B1 (en) Multimode roaming mobile devices
CN106487583B (en) Method for establishing network connection and local area network system
CN115580912B (en) Whole-house intelligent equipment WiFi connection management method, system and storage medium
CN107135548B (en) Method and device for updating BSSID and connecting network
CN105392185A (en) Intelligent equipment networking method and device, and system
CN112839310A (en) Wireless communication method and Mesh device
CN112566104B (en) Roaming coordination method based on Mesh network, wireless access point and storage medium
US20110158173A1 (en) System for distributing broadband wireless signals indoors
CN107786441B (en) Communication method, OpenFlow switch and communication system
CN112333764A (en) Network slice selection method and device, slice mapping system and network equipment
CN113938983B (en) Multi-link terminal, method and device for performing link exchange and storage medium
CN112433480A (en) Intelligent household system and control method and device thereof
Zhao et al. Design and implementation of a topology discovery mechanism for bidirectional VLC networking
US20230198849A1 (en) Topology path obtaining method of mesh network and system thereof
WO2024062828A1 (en) Ru device, du device, communication system, and communication method
JP2006100970A (en) Communication terminal, wireless lan system, and communication method

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
GR01 Patent grant
GR01 Patent grant